Commit Graph

350 Commits

Author SHA1 Message Date
Nick Fisher
8c78e8e629 update JS interop to accept requestId for VoidCallback 2025-05-18 15:09:03 +08:00
Nick Fisher
dc5cdcb7e1 update all void callbacks to accept an integer requestId 2025-05-18 15:08:47 +08:00
Nick Fisher
460000308a remove custom camera delegate 2025-05-18 15:08:47 +08:00
Nick Fisher
826a22f348 wip 2025-05-18 15:08:45 +08:00
Nick Fisher
b710e0ace3 regenerate JS bindings 2025-05-18 14:46:48 +08:00
Nick Fisher
4b2342979f update tests + bindings 2025-05-17 21:52:21 +08:00
Nick Fisher
ee306549d8 rename relativeResourcePath to resourceUri
move resource loader from viewer to FilamentApp
2025-05-17 21:51:51 +08:00
Nick Fisher
d3ec825688 rename relativeResourcePath to resourceUri
move resource loader from viewer to FilamentApp
2025-05-17 21:50:58 +08:00
Nick Fisher
fe11479b08 remove relativeResourcePath from gltf resource loading;
all external resources should be added on the Dart side, Filament should never attempt to load these directly from the filesystem.
relativeResourcePath (called gltfPath on the Filament side) is only used for desktop loading, so this is now irrelevant.
Note that Filament must be compiled with GLTFIO_USE_FILESYSTEM=0
2025-05-17 21:48:18 +08:00
Nick Fisher
c98e604e76 split animation components into GltfAnimation/MorphAnimation/BoneAnimation 2025-05-17 10:11:55 +08:00
Nick Fisher
27eb117466 remove old WASM viewer 2025-05-17 10:04:49 +08:00
Nick Fisher
6d95180870 remove old JS shim/bridge classes 2025-05-17 10:04:19 +08:00
Nick Fisher
170fb4bf6d removing processing check in DelegateInputHandler 2025-05-13 16:41:58 +08:00
Nick Fisher
8bbe2f0dfb remove manual stack allocation/copy for struct args 2025-05-12 10:14:41 +08:00
Nick Fisher
0794e0ad84 comments 2025-05-12 09:36:12 +08:00
Nick Fisher
3f0f15b441 add _ready check to FixedOrbitCameraDelegate 2025-05-10 12:16:49 +08:00
Nick Fisher
8311c95100 update delegates to accept a List<InputEvent>, not Set 2025-05-10 09:08:59 +08:00
Nick Fisher
12a96cceee InputHandler now accepts a List of events, not a Set
add batch argument to DelegateInputHandler
2025-05-10 09:07:28 +08:00
Nick Fisher
fac7e9a894 transformToUnitCube returns bool (false when transform instance can't be found) 2025-05-10 09:06:53 +08:00
Nick Fisher
671949a5cd transformToUnitCube returns bool (false when transform instance can't be found) 2025-05-10 09:03:46 +08:00
Nick Fisher
abde201bda update bindings 2025-05-09 11:18:33 +08:00
Nick Fisher
1ddeac2d31 refactor InputHandler interface/DelegateInputHandler implementation 2025-05-09 11:18:07 +08:00
Nick Fisher
cedcb45484 feat!: change default near/far to 0.1/100.0 2025-05-08 17:27:49 +08:00
Nick Fisher
2f16908992 feat! js_interop improvements 2025-05-07 17:06:38 +08:00
Nick Fisher
63e2dcd0ca add getter for Aabb3 directly (getBoundingBox) on ThermionAsset 2025-05-07 16:53:16 +08:00
Nick Fisher
2a5a149e83 update bindings 2025-04-19 09:49:35 +08:00
Nick Fisher
4cb725d47e add Engine_destroyCamera 2025-04-19 09:49:19 +08:00
Nick Fisher
8228486ef3 remove asset from internal list when destroyAsset is called 2025-04-19 09:48:17 +08:00
Nick Fisher
c66dc40bab separate getter/create method for boundingBoxAsset 2025-04-19 09:47:18 +08:00
Nick Fisher
4f1a9fb0d5 update stub + generated bindings 2025-04-17 13:36:16 +08:00
Nick Fisher
454ec14b40 allow relativeResourcePath to be null for loadGltfFromBuffer 2025-04-17 13:36:02 +08:00
Nick Fisher
b4f3d865b4 call updateRenderOrder when setRenderable is called on View 2025-04-17 13:35:41 +08:00
Nick Fisher
86779cb629 reinstate GizmoInputHandler 2025-04-17 13:35:22 +08:00
Nick Fisher
e1d5d14ff7 add RenderTarget_destroyRenderThread 2025-04-17 13:35:07 +08:00
Nick Fisher
1be1979c05 rename requestAnimationFrame to requestFrame 2025-04-17 13:34:18 +08:00
Nick Fisher
2b6693a826 change default PixelDataType to FLOAT for capture() 2025-04-17 13:32:35 +08:00
Nick Fisher
7d369ad813 change setBoundingBoxVisibility to getBoundingBoxAsset 2025-04-17 13:32:16 +08:00
Nick Fisher
81a28a2f2e change setBoundingBoxVisibility to getBoundingBoxAsset 2025-04-17 13:31:59 +08:00
Nick Fisher
6b008bd433 change setBoundingBoxVisibility to getBoundingBoxAsset 2025-04-17 13:31:47 +08:00
Nick Fisher
12b6a8c8a5 use render thread methods for all async gltf loading 2025-04-16 19:08:34 +08:00
Nick Fisher
4002425c0d add withFloatCallback handler 2025-04-16 19:07:47 +08:00
Nick Fisher
2b00d374e0 update generated bindings 2025-04-16 18:01:47 +08:00
Nick Fisher
e7092c416b call render thread method for asyncBeginLoad 2025-04-16 18:00:06 +08:00
Nick Fisher
f272410803 update ffigen/objective_c dependencies 2025-04-16 17:59:46 +08:00
Nick Fisher
aeb644cf16 make swapChain an optional parameter when calling capture() (if not specified, first swapchain will be used) 2025-04-16 17:23:55 +08:00
Nick Fisher
c3e583ac5a make swapChain an optional parameter when calling capture() (if not specified, first swapchain will be used) 2025-04-16 17:23:55 +08:00
Nick Fisher
48654f0e8f documentation 2025-04-16 17:23:55 +08:00
Nick Fisher
a772b86f09 export light options and layers 2025-04-16 17:23:53 +08:00
Nick Fisher
2d4342607d add async gltf resource loading 2025-04-16 17:06:51 +08:00
Nick Fisher
dfda0eb476 update DefaultPickDelegate to use pick() on view 2025-04-16 14:00:47 +08:00