Commit Graph

1017 Commits

Author SHA1 Message Date
Nick Fisher
ccc0a53abc rename numInstances to initialInstances in loadGltf methods.
when initialInstances > 0, don't wait for createInstance to be called to create corresponding GltfSceneAsset
2025-06-26 10:11:29 +08:00
Nick Fisher
ced0667a21 (test) add python script to compare goldens 2025-06-26 08:48:20 +08:00
Nick Fisher
f4b473b9ae disable physics test in instancing 2025-06-26 08:47:22 +08:00
Nick Fisher
fac0c727e4 don't track/remove assets when addToScene/removeFromScene is called 2025-06-25 16:51:21 +08:00
Nick Fisher
e92e59fab4 don't link mikktspace on Linux 2025-06-25 15:47:20 +08:00
Nick Fisher
3657428025 (test) write PNGs, not BMP 2025-06-25 13:31:57 +08:00
Nick Fisher
e9f0d5b745 use OpenGL backend on Linux tests 2025-06-25 11:13:07 +08:00
Nick Fisher
3e2405aa76 merge linux CI runner 2025-06-25 11:06:47 +08:00
Nick Fisher
af9c2a93dc (Linux) remove OS check for mikktspace & geometry 2025-06-25 11:05:07 +08:00
Nick Fisher
ed21eec66e pass through instance owner to FFIAsset so instances can be created on instances 2025-06-24 21:31:10 +08:00
Nick Fisher
05c62d5fa0 fix for macOS support 2025-06-24 15:39:41 +08:00
Nick Fisher
bec34e5b0b (test) update image path 2025-06-24 15:34:12 +08:00
Nick Fisher
b47e7f206c update BUILDING.md for Linux 2025-06-24 15:33:24 +08:00
Nick Fisher
1fe1889fa2 remove STB_IMAGE_IMPLEMENTATION (this is already linked) 2025-06-24 15:30:39 +08:00
Nick Fisher
4a43c6169a update build.dart for Linux support 2025-06-24 15:27:27 +08:00
Nick Fisher
8a1f320bb7 remove objective_c from dev_dependencies & change test_helper to create render target without importing textures 2025-06-24 13:37:09 +08:00
Nick Fisher
21ccb52ab9 fix missing includes for Linux compatibility 2025-06-24 12:30:33 +08:00
Nick Fisher
ff48ce94a3 update build.dart to prepare for Linux support 2025-06-24 10:46:33 +08:00
Nick Fisher
d20ff0a6f1 don't require SwapChain to be passed to viewer.render - this will just render into all registered swapchains 2025-06-24 10:36:10 +08:00
Nick Fisher
c7d4d9cb33 add NativeHandle interface and refactor SwapChain to use getNativeHandle 2025-06-24 10:35:33 +08:00
Nick Fisher
9aec83fd70 throw Exception if createInstance is called on an instance and pass through isInstance/keepData flags 2025-06-24 10:22:40 +08:00
Nick Fisher
d41f29c06d (web) after capture is called on emscripten builds, request the render thread to exit/resume to yield to the browser so the frame is committed 2025-06-23 12:43:40 +08:00
Nick Fisher
e27be37378 add mRestart flag to immediately request the thread exits to force a commit frame 2025-06-23 12:43:03 +08:00
Nick Fisher
a8a7f11d44 add mRestart flag to immediately request the thread exits to force a commit frame 2025-06-23 12:42:53 +08:00
Nick Fisher
c81f2f225c (test) add simple capture test 2025-06-23 12:41:56 +08:00
Nick Fisher
57999bec3c clean up TextureProjection 2025-06-23 12:38:35 +08:00
Nick Fisher
69400f8b68 update TextureProjection to accept material instances and render multiple target entities 2025-06-23 12:38:06 +08:00
Nick Fisher
18b6b2e5f0 (web) in capture, add extra call to render a frame to flush frame callbacks 2025-06-23 12:27:05 +08:00
Nick Fisher
7e802f7b23 formatting 2025-06-23 12:25:30 +08:00
Nick Fisher
ce23b9f3cd (doc) add documentation for destroyAsset instances 2025-06-23 12:25:18 +08:00
Nick Fisher
7a484ee794 update light tests for IBL from manually-created texture 2025-06-23 12:23:12 +08:00
Nick Fisher
832319ee1b (test) add bounding box test to asset_tests 2025-06-23 12:22:13 +08:00
Nick Fisher
668c001b49 add inUse flag to assist with recycling gltf instances 2025-06-23 12:21:52 +08:00
Nick Fisher
e503dd2e8b docstrings for GltfSceneAsset destroyInstance 2025-06-23 12:21:21 +08:00
Nick Fisher
e1c34cc4d9 formatting 2025-06-23 12:21:04 +08:00
Nick Fisher
75d34f0afb log user defines in build.dart 2025-06-23 12:20:14 +08:00
Nick Fisher
d053bfd6da move showBoundingBox/hideBoundingBox implementation to ThermionViewerFFI 2025-06-23 12:19:41 +08:00
Nick Fisher
920f81c514 add flipY argument to pixelBufferToPng 2025-06-23 12:18:08 +08:00
Nick Fisher
b64a505ffc formatting 2025-06-23 12:17:52 +08:00
Nick Fisher
00debf509d remove getBoundingBoxAsset and destroyBoundingBoxAsset from ThermionAsset 2025-06-23 12:17:38 +08:00
Nick Fisher
73b32f9c1e start migrating from covariant (for FFIAsset) to getNativeHandle() 2025-06-23 11:58:51 +08:00
Nick Fisher
abd1a1fd55 move bounding box asset methods from ThermionAsset to ThermionViewer 2025-06-23 11:57:15 +08:00
Nick Fisher
e8721b6133 more key mappings 2025-06-23 10:33:50 +08:00
Nick Fisher
a01bf36576 use ENABLE_TRACING from user defines 2025-06-21 10:14:43 +08:00
Nick Fisher
5f92c7feab expose addToScene argument in interface for loadGltfFromBuffer (this was already exposed in the implementation) 2025-06-21 09:25:44 +08:00
Nick Fisher
e1cb517417 allow creating more glTF instances than pre-allocated 2025-06-20 18:46:36 +08:00
Nick Fisher
355999562f move Axis class to own file 2025-06-20 18:35:21 +08:00
Nick Fisher
c208972ed7 docstrings 2025-06-20 18:34:08 +08:00
Nick Fisher
6a7ca3cd42 add backtick key 2025-06-20 18:33:47 +08:00
Nick Fisher
b6d869275a InputHandler shouldn't return Future
add mousePanSensitivity
2025-06-20 18:33:35 +08:00