Commit Graph

418 Commits

Author SHA1 Message Date
Nick Fisher
3c1b26af2c reverse orientation of camera volume 'lens' 2025-07-07 17:21:43 +08:00
Nick Fisher
b4ea80a84c don't allow creating instances for GridOverlay asset and only expose a single entity 2025-07-07 17:21:43 +08:00
Nick Fisher
db44bc6f74 formatting 2025-07-07 17:19:47 +08:00
Nick Fisher
c668549fb0 fix: add flush() to skybox/IBL destroy methods to ensure that textre upload callbacks are completed to avoid stalling 2025-07-07 17:19:36 +08:00
Nick Fisher
cb8943ff72 formatting 2025-07-07 17:18:43 +08:00
Nick Fisher
9f59577f90 fix: duplicate setting for _grid 2025-07-07 16:40:15 +08:00
Nick Fisher
b86145d4c6 refactor: remove covariant keyword from createInstance args 2025-07-04 22:37:15 +08:00
Nick Fisher
322e77d2b7 add additional camera geometry object 2025-07-03 15:00:02 +08:00
Nick Fisher
37f8558794 add stub method for resizeWebCanvas to make pub.dev happy 2025-07-03 13:04:24 +08:00
Nick Fisher
b22a82e181 delete swift bindings from thermion_dart package 2025-07-03 12:59:28 +08:00
Nick Fisher
8e88252337 attach highlight to all entities, not the ultimate owning asset entity 2025-07-03 11:51:42 +08:00
Nick Fisher
23e34e6da4 expose isRenderable 2025-07-03 11:50:18 +08:00
Nick Fisher
5aa14ff5f6 update bindings 2025-07-01 17:00:34 +08:00
Nick Fisher
73e6597301 replace overlay render target when viewport resizes 2025-07-01 16:58:46 +08:00
Nick Fisher
e731556e6f add scale parameter to outline material 2025-07-01 14:28:19 +08:00
Nick Fisher
f9a7ac49a1 expose View methods for transparent picking 2025-07-01 14:20:02 +08:00
Nick Fisher
ce2dc9b1cb update FFI/JS bindings 2025-07-01 13:11:24 +08:00
Nick Fisher
a5eab305da add bool render argument to capture() 2025-07-01 13:09:42 +08:00
Nick Fisher
e984d8cf71 don't pass View to readPixels (only width/height, x/y offsets needed, and optionally rendertarget) 2025-07-01 13:03:06 +08:00
Nick Fisher
4379313932 move grid material instantiation to GridOverlay 2025-07-01 11:07:44 +08:00
Nick Fisher
8a997d533a remove stencil highlight on remove from scene or destroyAsset 2025-07-01 11:07:17 +08:00
Nick Fisher
9a5b737391 move outline material to embedded binary 2025-07-01 11:06:51 +08:00
Nick Fisher
215515a4fc use RenderTarget nativeHandle and don't cast to FFIMaterialInstance 2025-07-01 10:52:04 +08:00
Nick Fisher
2022fa97cc use DEPTH24_STENCIL8 as depth attachment for render target.
I'm not sure this is even used; the backend always allocate its own internal depth/stencil buffer. There may be a final blit from the internal buffer to the render target buffer, but I haven't actually confirmed this yet
2025-07-01 10:28:36 +08:00
Nick Fisher
809f84e1fa logging 2025-07-01 10:27:00 +08:00
Nick Fisher
932971c872 use generic parameter in FilamentApp for renderableManager/transformManager/etc, and only expose as getters in the interface 2025-07-01 10:26:30 +08:00
Nick Fisher
7ed120e854 call removeSwapChain when swapChain is destroyed 2025-07-01 10:25:36 +08:00
Nick Fisher
45c4cea6aa add setBackgroundImageFromTexture method to ThermionViewer 2025-07-01 10:23:25 +08:00
Nick Fisher
0f9d2492e6 move set/remove stencilHighlight to View and implement via OverlayManager 2025-07-01 10:13:47 +08:00
Nick Fisher
0b18caf4ff expose Engine->getSupportedFeatureLevel() 2025-07-01 10:07:10 +08:00
Nick Fisher
b3b0e2bae1 Material now implements NativeHandle 2025-07-01 10:06:05 +08:00
Nick Fisher
35369b890f Camera now implements NativeHandle 2025-07-01 10:05:47 +08:00
Nick Fisher
53a2a116aa RenderTarget now implements NativeHandle 2025-07-01 10:04:33 +08:00
Nick Fisher
80ceb5988e RenderTarget now implements NativeHandle 2025-07-01 10:04:13 +08:00
Nick Fisher
feeb757a10 use render thread method for creating grid overlay & reinstate overlay tests 2025-06-27 13:34:01 +08:00
Nick Fisher
40e206fc94 expose setScene on View 2025-06-27 11:34:01 +08:00
Nick Fisher
48b631b0a8 add generic parameter to NativeHandle, rather than getNativeHandle() 2025-06-27 11:33:50 +08:00
Nick Fisher
bc392bd933 use getNativeHandle for MaterialInstance 2025-06-27 09:36:20 +08:00
Nick Fisher
72cc9b932a add containsChild method to ThermionAsset 2025-06-26 22:11:36 +08:00
Nick Fisher
2c7425fbdb (CI) add overlay_tests.dart 2025-06-26 22:11:13 +08:00
Nick Fisher
a7b0ed6f21 don't share a single material instance for all highlighted objects
destroy highlight material instances on highlight asset destroyed
expose highlight instances on Scene via getAssetForHighlight
2025-06-26 15:32:05 +08:00
Nick Fisher
fab3240ecf clamp pixel values in image conversion 2025-06-26 10:30:32 +08:00
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
fac0c727e4 don't track/remove assets when addToScene/removeFromScene is called 2025-06-25 16:51:21 +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
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
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