Nick Fisher
81c27dde9f
feat: parent the cloned entity instance when setting stencil highlight
2024-09-08 13:55:25 +08:00
Nick Fisher
5c4d5d4b9d
feat: add getAncestor method
2024-09-08 13:52:04 +08:00
Nick Fisher
ee24fca20e
feat: move createGeometry to SceneManager, add queueRelativePositionUpdateFromViewportVector and removeStencilHighlight
2024-09-07 18:00:50 +08:00
Nick Fisher
a00fdbe042
chore: remove createGeometry method from FilamentViewer, set default view blend mode
2024-09-07 17:59:55 +08:00
Nick Fisher
c2eb28a8f5
fix: properly destroy entities/material/etc in Gizmo on destruction, remove custom scene creation logic
2024-09-07 17:59:03 +08:00
Nick Fisher
4c6c20f3de
feat: move HighlightOverlay to nested class, move createGeometry to SceneManager, add queueRelativePositionUpdateFromViewportVector
2024-09-07 17:57:38 +08:00
Nick Fisher
b2ae8135c6
feat: add removeStencilHighlight, accept color param for setStencilHighlight, queuePositionUpdateFromViewportCoords to ThermionDartApi
2024-09-07 17:55:40 +08:00
Nick Fisher
63e2b74bb1
chore: rebuild unlit material
2024-09-07 17:53:55 +08:00
Nick Fisher
6ec84b6249
fix: add Fence to capture() and set stencil buffer by default
2024-09-06 13:03:51 +08:00
Nick Fisher
9c5156e41a
feat: add flag for keepData for gltf instancing, add highlightScene, add stencilHighlight method
2024-09-06 12:36:16 +08:00
Nick Fisher
2284d9d081
feat: grid uses own material
2024-09-05 22:20:27 +08:00
Nick Fisher
cf61369a8d
chore: clean up old commented code
2024-09-05 22:20:11 +08:00
Nick Fisher
4e14bd2396
fix: ignore pick results directly on axis
2024-09-05 22:19:54 +08:00
Nick Fisher
0798d5c071
feat: add grid material
2024-09-05 22:19:27 +08:00
Nick Fisher
80d5b1d23f
feat: expose setLightDirection and setLightPosition
2024-09-05 22:18:54 +08:00
Nick Fisher
683105c4f7
fix: emscripten export visibility for add_light
2024-09-05 17:42:17 +08:00
Nick Fisher
6f2331582c
chore: use float instead of float32_t in FilamentViewer
2024-09-05 17:41:55 +08:00
Nick Fisher
f0f97e310c
chore: add nested PickCallbackHandler to Gizmo
2024-09-05 17:41:24 +08:00
Nick Fisher
85116f43a2
feat: remove gizmo view references, exclude gizmo entities from picking, add createIbl
2024-08-27 21:47:56 +08:00
Nick Fisher
3ecb8920ea
feat: createIbl
2024-08-27 21:47:02 +08:00
Nick Fisher
8923d97129
chore: init SceneManager pointers to nullptr
2024-08-27 21:46:47 +08:00
Nick Fisher
375e1cc887
fix: add more nan checks for gizmo manipulation
2024-08-27 21:46:21 +08:00
Nick Fisher
78dcbc8bb9
feat: expose API methods for create_ibl, pick/set gizmo visibility
2024-08-27 21:45:49 +08:00
Nick Fisher
a3f7b98bf7
feat: create transparent overlay for gizmo for easier picking
2024-08-27 21:45:19 +08:00
Nick Fisher
12b61e8767
feat: rescale gizmo based on distance from camera
2024-08-27 16:54:40 +08:00
Nick Fisher
0e3b014c2c
feat: rescale gizmo based on distance from camera
2024-08-27 16:50:54 +08:00
Nick Fisher
10db8c39f3
fix: add check for nan NDC coordinates for viewport translation
2024-08-25 21:54:08 +08:00
Nick Fisher
3cc876f972
feat: layers, grid
2024-08-24 16:18:23 +08:00
Nick Fisher
7d1e706045
feat: layers, grid
2024-08-24 16:18:12 +08:00
Nick Fisher
11756fcedd
feat: ignore grid overlay and gizmo center when picking, implement highlighting
2024-08-24 16:17:34 +08:00
Nick Fisher
2e1f2cd56d
feat: SceneManager updates (setLayer, add grid, queueRelativePositionUpdateWorld
2024-08-24 16:02:54 +08:00
Nick Fisher
c08611b2c3
feat: expose set_layer_enabled, get_camera_fov and queue_relative_position_updateg_world_axis to ThermionDartApi.h
2024-08-24 16:02:06 +08:00
Nick Fisher
f87f89427d
feat: add getCameraFov to FilamentViewer
2024-08-24 16:01:03 +08:00
Nick Fisher
c3319ebbf3
feat: add new grid overlay files to web CmakeLists
2024-08-24 16:00:15 +08:00
Nick Fisher
f7b765c5d0
chore: rebuild materials
2024-08-24 15:59:55 +08:00
Nick Fisher
5a3517f953
add grid overlay
2024-08-24 15:59:04 +08:00
Nick Fisher
731c4981c9
use inactive/active color gizmo
2024-08-24 15:58:49 +08:00
Nick Fisher
8f20a8a859
chore: don't use shader to overlay gizmo
2024-08-24 15:21:36 +08:00
Nick Fisher
7693a0fe14
feat: re-implement (native) Gizmo class, expose preserveScaling parameter for setParent, add methods for getting viewport bounding box from renderable entity
2024-08-22 18:04:06 +08:00
Nick Fisher
98c3676fdf
fix: (web) add emscripten guards for flushAndWait call when swapchain destroyed
2024-08-21 17:18:37 +08:00
Nick Fisher
d868fd6970
feat: add capture() function and expose viewportDimensions on ThermionViewer (allows easier saving of captured images to PNG)
2024-08-21 14:33:48 +08:00
Nick Fisher
300396b97e
feat: (web) allow table growth in emscripten module for passing C-style callback function pointers
2024-08-21 14:30:17 +08:00
Nick Fisher
16c6203b97
feat: add startOffset parameter to gltf playAnimation
2024-07-29 16:13:45 +08:00
Nick Fisher
41bf9ededa
feat: add clearMorphAnimationData function
2024-07-23 09:38:26 +08:00
Nick Fisher
7418fb867d
feat: allow passing assetPathPrefix to ThermionViewerWasm to account for Flutter build asset paths
2024-07-23 09:38:25 +08:00
Nick Fisher
7b97b2e6c3
save fetched resources to IndexedDB on web
2024-07-04 14:19:37 +08:00
Nick Fisher
c7a0b2f5cc
fix: defer creating image entity/material/etc until actually requested
...
feat: expose shadow options
2024-07-02 16:17:36 +08:00
Nick Fisher
81be5e25f7
fix: revert to std::thread (pthreads not easily available on Windows)
2024-06-26 01:50:22 +10:00
Nick Fisher
fd19fc1c68
fix: use preserveDrawingBuffer=true on web
...
using createImageFromImageBitmap to import the canvas directly into a Flutter app results in flickering unless this is set to true (as the drawing buffer is otherwise cleared after each render, which may not line up with Flutter's ticker
2024-06-21 11:19:16 +08:00
Nick Fisher
0ec7e2af95
refactor: export ThermionViewerWasm for web and hide FFI/WASM version
2024-06-21 11:19:16 +08:00