00debf509d
remove getBoundingBoxAsset and destroyBoundingBoxAsset from ThermionAsset
Nick Fisher
2025-06-23 12:17:38 +08:00
73b32f9c1e
start migrating from covariant (for FFIAsset) to getNativeHandle()
Nick Fisher
2025-06-23 11:58:51 +08:00
abd1a1fd55
move bounding box asset methods from ThermionAsset to ThermionViewer
Nick Fisher
2025-06-23 11:57:15 +08:00
e8721b6133
more key mappings
Nick Fisher
2025-06-23 10:33:50 +08:00
a01bf36576
use ENABLE_TRACING from user defines
Nick Fisher
2025-06-21 10:14:43 +08:00
5f92c7feab
expose addToScene argument in interface for loadGltfFromBuffer (this was already exposed in the implementation)
Nick Fisher
2025-06-21 09:25:44 +08:00
e1cb517417
allow creating more glTF instances than pre-allocated
Nick Fisher
2025-06-20 18:46:36 +08:00
37c35906d6
add propagateEvents arg to ThermionListenerWidget expose physical/logical key maps dont await InputHandler.handle - this no longer returns a future
Nick Fisher
2025-06-20 18:36:31 +08:00
355999562f
move Axis class to own file
Nick Fisher
2025-06-20 18:35:21 +08:00
c208972ed7
docstrings
Nick Fisher
2025-06-20 18:34:08 +08:00
6a7ca3cd42
add backtick key
Nick Fisher
2025-06-20 18:33:47 +08:00
3e04bf427f
allow passing reflection texture separately from irradiance when calling loadIblFromTexture
Nick Fisher
2025-06-17 14:13:19 +08:00
65ca59ff22
merge native setImage with setImageWithDepth
Nick Fisher
2025-06-17 13:25:53 +08:00
a91aaae131
formatting
Nick Fisher
2025-06-17 11:51:37 +08:00
71bae61015
add loadIblFromTexture method
Nick Fisher
2025-06-17 11:51:07 +08:00
288acb019e
add getBackgroundImage to ThermionViewerFFI
Nick Fisher
2025-06-17 11:49:16 +08:00
b9354531b2
add cubemap methods to BackgroundImage
Nick Fisher
2025-06-17 11:26:27 +08:00
388b8556e5
fix incorrect index when creating texture from Ktx1Bundle
Nick Fisher
2025-06-12 11:54:10 +08:00
59d9d87d2f
remove unused headers
Nick Fisher
2025-06-12 11:47:23 +08:00
d5824466f7
update generated bindings
Nick Fisher
2025-06-12 11:39:09 +08:00
3e11f09d63
update BUILDING.md
Nick Fisher
2025-06-12 11:38:25 +08:00
6bbab332be
rename assetId to asset-id in ffigen config
Nick Fisher
2025-06-12 11:38:08 +08:00
85b86c5f13
formatting
Nick Fisher
2025-06-12 11:37:45 +08:00
d8652e8709
formatting
Nick Fisher
2025-06-12 11:37:29 +08:00
fe5279f942
don't free Int32List for childEntities, stackRestore takes care of this
Nick Fisher
2025-06-12 11:37:18 +08:00
828354abe5
clean up
Nick Fisher
2025-06-12 11:36:23 +08:00
48d9d6751b
render() method on viewer now requires a SwapChain argument
Nick Fisher
2025-06-12 11:36:08 +08:00
4bde3d34cf
(test) add test to create indirect light from irradiance texture
Nick Fisher
2025-06-12 11:34:17 +08:00
7f2ad7c4e4
(test) rename background_tests.dart to image_tests.dart
Nick Fisher
2025-06-12 11:33:57 +08:00
47807d560f
separate native methods for creating IBL from irradiance texture and harmonics
Nick Fisher
2025-06-12 11:33:38 +08:00
ad26fc4563
add Dart IndirectLight and Ktx1Bundle classes, and separate KTX decoding from skybox/IBL creation
Nick Fisher
2025-06-12 11:31:44 +08:00
f252c86152
update image material to support cubemaps
Nick Fisher
2025-06-12 08:40:28 +08:00
e5bcde3ade
(web) update bindings
Nick Fisher
2025-06-11 11:13:43 +08:00
9436666d34
(example) update quickstart web to import canvas as widget
Nick Fisher
2025-06-11 11:08:31 +08:00
32fe54ac09
(web) on Emscripten builds, use static global wrapper function for texture upload complete callbacks (this is needed because all callbacks need to be proxied to the main thread
Nick Fisher
2025-06-11 11:08:13 +08:00
0461bb364a
use getPrimitiveCount method on FilamentApp, rather than direct FFI method
Nick Fisher
2025-06-11 09:52:57 +08:00
f78c6f258f
add test for getBoundingBox
Nick Fisher
2025-06-11 09:51:24 +08:00
b0796f493f
(test) move IBL tests to light_tests
Nick Fisher
2025-06-11 09:51:14 +08:00
8998f1f740
add RenderableManager_getBoundingBox
Nick Fisher
2025-06-11 09:50:48 +08:00
6362efcd61
add implementations for getPrimitiveCount/getBoundingBox on FFIFilamentApp
Nick Fisher
2025-06-11 09:50:35 +08:00
dc5c1161cc
add setMaterialInstanceAt to FilamentApp interface
Nick Fisher
2025-06-11 09:50:02 +08:00
3e6f95e0bf
add removeEntity method on Scene
Nick Fisher
2025-06-11 09:49:05 +08:00
f053c2f852
add removeEntity method on Scene
Nick Fisher
2025-06-11 09:48:44 +08:00
8f1da5e7bd
separate skybox/ibl creation from KTX decoding
Nick Fisher
2025-06-11 09:48:17 +08:00
641d92515e
move VoidCallback typedef to APIBoundaryTypes (now used outside the render thread header for texture upload callbacks)
Nick Fisher
2025-06-11 09:45:23 +08:00
d447fb8e2a
add RenderableManager_getBoundingBox
Nick Fisher
2025-06-11 09:44:46 +08:00
ac87420a87
add setPriority to FilamentApp interface
Nick Fisher
2025-06-10 11:49:17 +08:00
5669ac5c55
Dart wrappers for View/Scene are now stateful
Nick Fisher
2025-06-10 11:48:31 +08:00
ae9ce197c1
move setStencilHighlight/removeStencilHighlight to Scene
Nick Fisher
2025-06-10 10:27:03 +08:00
37c67c2da8
(macos) create render target texture with isStencil:false
Nick Fisher
2025-06-10 10:24:01 +08:00
66d3bf65fd
add view test for multiple views rendering into the same render target
Nick Fisher
2025-06-10 09:08:30 +08:00
dba40fb82b
update instancing tests
Nick Fisher
2025-06-09 18:28:58 +08:00
95db6d7ebb
update generated bindings
Nick Fisher
2025-06-09 18:28:43 +08:00
fef48940fc
add implementation methods for getPrimitiveCount, setMaterialInstancesFromMap, getMaterialInstancesAsMap and setMaterialInstanceForAll
Nick Fisher
2025-06-09 18:28:33 +08:00
4086c9bd01
add interface methods for getPrimitiveCount, setMaterialInstancesFromMap, getMaterialInstancesAsMap and setMaterialInstanceForAll
Nick Fisher
2025-06-09 18:26:36 +08:00
928517f80f
update gitignore with generated Swift dylib
Nick Fisher
2025-06-09 18:25:53 +08:00
4a9b91c411
(test) update helper to add createStencilBuffer flag
Nick Fisher
2025-06-09 18:25:39 +08:00
9054879722
update Swift bindings and remove dylib from repository (should be recompiled when running via CI/CD?)
Nick Fisher
2025-06-09 18:25:18 +08:00
4c95bc5b70
(macos) add isStencil argument for creating depth texture on macOS (if true, creates texture with .depth24Unorm_stencil8
Nick Fisher
2025-06-09 18:24:15 +08:00
8866ffe210
(test) update helper to add createStencilBuffer flag
Nick Fisher
2025-06-09 18:23:22 +08:00
c33eaef713
replace direct FFI View_ calls with calls to corresponding (Dart) methods on View
Nick Fisher
2025-06-09 18:18:58 +08:00
78e14574ef
split stencil/depth tests from unlit material tests
Nick Fisher
2025-06-09 18:15:17 +08:00
073976b40e
logging
Nick Fisher
2025-06-09 18:13:54 +08:00
6d0844f873
logging
Nick Fisher
2025-06-09 18:13:44 +08:00
983d1373ba
logging
Nick Fisher
2025-06-09 18:13:35 +08:00
0dd64a07bb
add helper method to convert between TStencilFace and MaterialInstance::StencilFace (not strictly necessary, but will help if something upstream changes in future
Nick Fisher
2025-06-09 18:12:17 +08:00
6055bd3fa7
fix FFIMaterial so it correctly translates between StencilFace (Dart) and TStencilFace (Dart FFI) enums
Nick Fisher
2025-06-09 18:10:07 +08:00
f3a576005a
expose setShadowsEnabled method on View/FFIView
Nick Fisher
2025-06-09 18:09:27 +08:00
ff559997dd
(web) regenerate JS bindings
Nick Fisher
2025-06-05 21:52:47 +08:00
79fea25d1b
manually edit JS bindings to remove internal (Dart) struct members and fix TFogOptions
Nick Fisher
2025-06-05 16:42:28 +08:00
9ae7c784df
pass TFogOptions by value, not pointer, and rearrange struct fields to minimize alignment issues
Nick Fisher
2025-06-05 16:41:08 +08:00
acf03ea0c7
pass TFogOptions by value, not pointer, and rearrange struct fields to minimize alignment issues
Nick Fisher
2025-06-05 16:40:53 +08:00
a9553da1d4
(build) remove libpng
Nick Fisher
2025-06-05 10:12:41 +08:00
fc4686b20f
add documentation for Scene
Nick Fisher
2025-06-04 17:44:24 +08:00
ab4743da90
pass keepData flag to instances of FFIAsset when creating geometry
Nick Fisher
2025-06-04 11:14:02 +08:00
7406662853
add nullptr check when loading gltf assets
Nick Fisher
2025-06-04 11:13:39 +08:00
aa2f19442b
surround frame request hooks with try/catch, and add a check to avoid concurrency exceptions when adding/removing hooks
Nick Fisher
2025-06-04 11:13:15 +08:00
cc99905eb8
pass through keepData flag when creating geometry via viewer
Nick Fisher
2025-06-04 11:11:42 +08:00
1d697037c0
gltf animation names are immutable, so cache these in a local copy in FFIAsset
Nick Fisher
2025-06-04 11:10:45 +08:00
c024efb8cd
store reference to keepData in each FFIAsset and throw exception if an instance is attempted to be created when keepData is false
Nick Fisher
2025-06-04 11:09:28 +08:00
150c0227c8
(test) remove group from asset_tests
Nick Fisher
2025-06-04 11:08:13 +08:00
e594a42496
add test for create/destroy geometry instances
Nick Fisher
2025-06-04 11:07:58 +08:00