Commit Graph

69 Commits

Author SHA1 Message Date
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
Nick Fisher 9b91da3798 feat: add removeStencilHighlight, queuePositionUpdateFromViewportCoords to ThermionViewer 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 d17cce2ca4 feat: expose setLightDirection and setLightPosition 2024-10-23 14:44:33 +08:00
Nick Fisher c93cc296a0 chore: update binding 2024-10-23 14:44:33 +08:00
Nick Fisher f63d42a75b chore: (js) stub missing methods 2024-10-23 14:44:33 +08:00
Nick Fisher 1ae7be0846 chore: (wasm) add missing interop methods 2024-10-23 14:44:33 +08:00
Nick Fisher dc0a698330 chore: stub new methods 2024-10-23 14:44:32 +08:00
Nick Fisher 6e54ed096f doc: pixelRatio 2024-10-23 14:44:32 +08:00
Nick Fisher 8ed26c72e2 fix: (wasm) use correct coords for pick, free memory correctly, keep pixelratio copy 2024-10-23 14:44:32 +08:00
Nick Fisher 580d795054 chore: Dart Gizmo class cleanup 2024-10-23 14:44:32 +08:00
Nick Fisher 329193f2f2 feat: add setGizmoVisibility/pickGizmo methods to ThermionViewer 2024-10-23 14:44:32 +08:00
Nick Fisher ec27935d81 fix stub methods 2024-10-23 14:44:31 +08:00
Nick Fisher 08ae0387a9 add implementations to JS bridge/shim classes 2024-10-23 14:44:31 +08:00
Nick Fisher ca69c783d3 add missing methods to wasm viewer 2024-10-23 14:44:31 +08:00
Nick Fisher d1fbbe1167 add implementations to FFI viewer 2024-10-23 14:44:31 +08:00
Nick Fisher f588b3b6e7 feat: expose setLayerEnabled, viewportDimensions and getCameraFov on ThermionView 2024-10-23 14:44:31 +08:00
Nick Fisher c29db74b1d stub out new methods 2024-10-23 14:44:31 +08:00
Nick Fisher 8ac9876ec3 chore: update bindings 2024-10-23 14:44:30 +08:00
Nick Fisher 4a29a77a78 feat: re-implement (native) Gizmo class, expose preserveScaling parameter for setParent, add methods for getting viewport bounding box from renderable entity 2024-10-23 14:44:29 +08:00
Nick Fisher 10cab8dcb4 feat!: (web) (flutter) create canvas when createViewer is called (no longer need to manually add canvas element to web HTML) 2024-10-23 14:44:29 +08:00
Nick Fisher 0a720fae72 feat: add capture() function and expose viewportDimensions on ThermionViewer (allows easier saving of captured images to PNG) 2024-10-23 14:44:29 +08:00
Nick Fisher 479a9ead03 feat: (web) add capture() method and missing camera navigation controls 2024-10-23 14:44:29 +08:00
Nick Fisher 88257c7e03 feat: download WASM module directly on web (no need to embed in index.html any more) and expose updateViewportAndCameraProjection 2024-10-23 14:44:29 +08:00
Nick Fisher a30e2f295f feat: add startOffset parameter to gltf playAnimation 2024-10-23 14:44:29 +08:00
Nick Fisher 41bf9ededa feat: add clearMorphAnimationData function 2024-07-23 09:38:26 +08:00