Commit Graph

75 Commits

Author SHA1 Message Date
Nick Fisher
8e1c611e92 set clearOptions to true 2024-10-23 14:45:00 +08:00
Nick Fisher
ed5f23faf2 introduce stronger native typing, camera projection/culling methods, update tests 2024-10-23 14:45:00 +08:00
Nick Fisher
ab1de78b74 rename from *FFI to *RenderThread, return bool from render() to check frame timings, update render loop to wait on condition variable, add requestFrame() method 2024-10-23 14:45:00 +08:00
Nick Fisher
7bcfd0f805 rename CameraPtr to TCamera and use named arguments for setCameraLensProjection 2024-10-23 14:45:00 +08:00
Nick Fisher
3e1b151488 move MaterialInstance methods to own class 2024-10-23 14:45:00 +08:00
Nick Fisher
820ad7cb28 rename setLayerEnabled to setLayerVisibility, add setVisibilityLayer method 2024-10-23 14:45:00 +08:00
Nick Fisher
df0a744cc9 add setMaterialDepthWrite method 2024-10-23 14:44:59 +08:00
Nick Fisher
2e404f2087 add setMaterialProperty for int, add create_unlit_material_instance 2024-10-23 14:44:59 +08:00
Nick Fisher
024201a7b7 set default layer for loadGlb to 0,. add setMaterialProperty for int, add SceneManager::createUnlitMaterialInstance 2024-10-23 14:44:58 +08:00
Nick Fisher
22f97beeaa update unproject texture to accept input texture 2024-10-23 14:44:58 +08:00
Nick Fisher
94ff71281f don't call clearBackgroundImage when setBackgroundImage is called (would deadlock) 2024-10-23 14:44:58 +08:00
Nick Fisher
4a96df1574 set default material for geometry to baseColorIndex 0 2024-10-23 14:44:58 +08:00
Nick Fisher
80448d4a24 depth pre-pass when projecting texture 2024-10-23 14:44:58 +08:00
Nick Fisher
40a7f86cef fixes for createMaterialInstance 2024-10-23 14:44:57 +08:00
Nick Fisher
357d815489 use TMaterialInstance for FFI API, add priority/layer params to load_glb_from_buffer 2024-10-23 14:44:57 +08:00
Nick Fisher
e67c77b322 use SceneManager::LAYERS enum for Overlay, set priority/layer in loadGlbFromBuffer, add create/destroy material instance 2024-10-23 14:44:57 +08:00
Nick Fisher
c3291f672e use SceneManager::LAYERS enum for Overlay 2024-10-23 14:44:57 +08:00
Nick Fisher
176036402a use SceneManager::LAYERS enum for gizmo 2024-10-23 14:44:57 +08:00
Nick Fisher
60dbc4ffd6 add texture methods (including unproject) 2024-10-23 14:44:39 +08:00
Nick Fisher
b714d421f6 remove using namespace filament* 2024-10-23 14:44:38 +08:00
Nick Fisher
f18f04734d allow setting material property by name 2024-10-23 14:44:38 +08:00
Nick Fisher
ae91e3e2c1 geometry receives/casts shadows by default 2024-10-23 14:44:38 +08:00
Nick Fisher
cabed69c48 remove double sided from HighlightOverlay material 2024-10-23 14:44:38 +08:00
Nick Fisher
2832686193 adjust gizmo size 2024-10-23 14:44:38 +08:00
Nick Fisher
7aba6d15b7 reduce size of gizmo 2024-10-23 14:44:37 +08:00
Nick Fisher
48ada59a2f remove logging 2024-10-23 14:44:37 +08:00
Nick Fisher
c5aa1abb30 culling fixes for HighlightOverlay 2024-10-23 14:44:37 +08:00
Nick Fisher
78a0763ad7 remove camera methods from FilamentViewer 2024-10-23 14:44:37 +08:00
Nick Fisher
c1898b97c9 use opaque CameraPtr to set camera matrices/properties/etc 2024-10-23 14:44:37 +08:00
Nick Fisher
2a30a6f2e1 remove update_viewport_and_camera_projection_ffi 2024-10-23 14:44:36 +08:00
Nick Fisher
08b986c5e3 add createGeometryWithNormals to SceneManager 2024-10-23 14:44:36 +08:00
Nick Fisher
ae1c8dbdfc add normals to CustomGeometry implementation 2024-10-23 14:44:36 +08:00
Nick Fisher
7a6e9cd598 HighlightOverlay fixes 2024-10-23 14:44:36 +08:00
Nick Fisher
ae59288b1f add create_geometry_with_normals method 2024-10-23 14:44:36 +08:00
Nick Fisher
02dffaade5 add create_geometry_with_normals_ffi method, switch load_glb_from_buffer type to uint8_t for Dart leaf compat and add keepData param 2024-10-23 14:44:35 +08:00
Nick Fisher
825c6e1a80 feat: parent the cloned entity instance when setting stencil highlight 2024-10-23 14:44:35 +08:00
Nick Fisher
ff304ad3d4 feat: add getAncestor method 2024-10-23 14:44:35 +08:00
Nick Fisher
d4d4dc4fd7 feat: move createGeometry to SceneManager, add queueRelativePositionUpdateFromViewportVector and removeStencilHighlight 2024-10-23 14:44:34 +08:00
Nick Fisher
2ccbb4c0c4 chore: remove createGeometry method from FilamentViewer, set default view blend mode 2024-10-23 14:44:34 +08:00
Nick Fisher
709b098054 fix: properly destroy entities/material/etc in Gizmo on destruction, remove custom scene creation logic 2024-10-23 14:44:34 +08:00
Nick Fisher
53ff6c72f0 feat: move HighlightOverlay to nested class, move createGeometry to SceneManager, add queueRelativePositionUpdateFromViewportVector 2024-10-23 14:44:34 +08:00
Nick Fisher
8ca4205d2c fix: add Fence to capture() and set stencil buffer by default 2024-10-23 14:44:34 +08:00
Nick Fisher
0a4e3501dc feat: add flag for keepData for gltf instancing, add highlightScene, add stencilHighlight method 2024-10-23 14:44:34 +08:00
Nick Fisher
65a6231f23 feat: grid uses own material 2024-10-23 14:44:33 +08:00
Nick Fisher
4b70116754 chore: clean up old commented code 2024-10-23 14:44:33 +08:00
Nick Fisher
d17cce2ca4 feat: expose setLightDirection and setLightPosition 2024-10-23 14:44:33 +08:00
Nick Fisher
1bdf6888c6 fix: emscripten export visibility for add_light 2024-10-23 14:44:32 +08:00
Nick Fisher
f69fcbb783 chore: use float instead of float32_t in FilamentViewer 2024-10-23 14:44:32 +08:00
Nick Fisher
6771431038 chore: add nested PickCallbackHandler to Gizmo 2024-10-23 14:44:32 +08:00
Nick Fisher
b20acaec6f feat: remove gizmo view references, exclude gizmo entities from picking, add createIbl 2024-10-23 14:44:32 +08:00