Commit Graph

94 Commits

Author SHA1 Message Date
Nick Fisher f6906ac3fd chore!: remove EntityTransformController (requires replacement) 2024-10-23 14:45:02 +08:00
Nick Fisher 85dcd5a5b9 fix!: (web/wasm) free pick callbacks on dispose 2024-10-23 14:45:01 +08:00
Nick Fisher 92fbe2e5d5 chore!: restructure viewer folders as libraries to only export the public interface 2024-10-23 14:45:01 +08:00
Nick Fisher 943ca26eae normalize direction in addLight 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 493d547c7b add Dart Camera type 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 cb7828820d add ThermionPickResult typedef 2024-10-23 14:44:59 +08:00
Nick Fisher a6d457f664 update bindings 2024-10-23 14:44:59 +08:00
Nick Fisher fd95c634f1 add setMaterialDepthWrite method 2024-10-23 14:44:59 +08:00
Nick Fisher 6c6991f0a9 update stub 2024-10-23 14:44:59 +08:00
Nick Fisher d248a85aee add createUnlitMaterialInstance, setMaterialPropertyInt methods to viewer interface 2024-10-23 14:44:59 +08:00
Nick Fisher 64642204fc update bindings 2024-10-23 14:44:59 +08:00
Nick Fisher 5bb84618c3 replace some async methods with futures, fix setMaterialProperty4, update unproject, setMaterialPropertyInt, createUnlitMaterialInstance 2024-10-23 14:44:59 +08:00
Nick Fisher fc5cce71b7 export geometry from thermion_dart 2024-10-23 14:44:59 +08:00
Nick Fisher 180f3f08dc update unproject texture to accept input texture 2024-10-23 14:44:58 +08:00
Nick Fisher 67698775a3 update unproject texture to accept input texture 2024-10-23 14:44:58 +08:00
Nick Fisher 257c4b29f2 add spot constructor 2024-10-23 14:44:58 +08:00
Nick Fisher 40a7f86cef fixes for createMaterialInstance 2024-10-23 14:44:57 +08:00
Nick Fisher b7e64b3abe ThermionViewer: add create/destroy materialinstance, add MaterialInstance property to createGeometry, priority/layer to loadGlbFromBuffer 2024-10-23 14:44:57 +08:00
Nick Fisher e542855639 add priority/layer to FFI viewer, use struct for model matrix, add createUbershaderMaterialInstance and destroyMaterialInstance 2024-10-23 14:44:57 +08:00
Nick Fisher 6fc3f49152 update bindings 2024-10-23 14:44:57 +08:00
Nick Fisher a62762be92 refactor: Dart types 2024-10-23 14:44:56 +08:00
Nick Fisher 60dbc4ffd6 add texture methods (including unproject) 2024-10-23 14:44:39 +08:00
Nick Fisher 19bec9a9cf restructure viewer/types/helper folders, remove old WASM/web FFI interop, add SceneUpdated stream 2024-10-23 14:44:39 +08:00
Nick Fisher 475f90d224 restructure viewer/types/helper folders, remove old WASM/web FFI interop, add SceneUpdated stream 2024-10-23 14:44:39 +08:00
Nick Fisher 5923d07abc allow setting material property by name 2024-10-23 14:44:39 +08:00
Nick Fisher 20852c7ae5 update bindings 2024-10-23 14:44:38 +08:00
Nick Fisher d7149c8282 fix setCameraModelMatrix4 2024-10-23 14:44:38 +08:00
Nick Fisher 571c7e60aa update bindings 2024-10-23 14:44:38 +08:00
Nick Fisher a434829a6c initialize viewportDimensions to (0,0) in ThermionViewer 2024-10-23 14:44:38 +08:00
Nick Fisher 60b8716315 fix winding order in GeometryHelper 2024-10-23 14:44:38 +08:00
Nick Fisher cac80159ff add v2 gesture handlers 2024-10-23 14:44:37 +08:00
Nick Fisher 8899d4b960 use opaque CameraPtr to set camera matrices/properties/etc 2024-10-23 14:44:37 +08:00
Nick Fisher 1ba91a1fd6 rename getBoundingBox to getViewportBoundingBox and add camera methods 2024-10-23 14:44:37 +08:00
Nick Fisher c34d89affd rename getBoundingBox to getViewportBoundingBox 2024-10-23 14:44:37 +08:00
Nick Fisher 7b96ee0d9c add matrix helper 2024-10-23 14:44:36 +08:00
Nick Fisher 5994908197 update stubbed ThermionViewer methods 2024-10-23 14:44:36 +08:00
Nick Fisher 9aa9e84bc0 update stub ThermionViewer 2024-10-23 14:44:36 +08:00
Nick Fisher f3637eab3f update bindings 2024-10-23 14:44:36 +08:00
Nick Fisher 9f9ee09f9c add loadGlbFromBuffer implementation to ThermionViewerFFI 2024-10-23 14:44:36 +08:00
Nick Fisher 6a8f0bda09 don't set stencil highlight in Gizmo 2024-10-23 14:44:36 +08:00
Nick Fisher dff3cc21fa add loadGlbFromBuffer method and normals param to ThermionViewer 2024-10-23 14:44:35 +08:00
Nick Fisher 9cff791ce5 add GeometryHelper 2024-10-23 14:44:35 +08:00
Nick Fisher ec9366d72b feat: add getAncestor method 2024-10-23 14:44:35 +08:00
Nick Fisher b71ba411fd update bindings 2024-10-23 14:44:35 +08:00
Nick Fisher dfe7b4e6c6 feat: set stencil highlight on gizmo attach 2024-10-23 14:44:35 +08:00