Nick Fisher
c024efb8cd
store reference to keepData in each FFIAsset and throw exception if an instance is attempted to be created when keepData is false
2025-06-04 11:09:28 +08:00
Nick Fisher
c484eeb37f
when destroying an asset, remove/destroy instances before destroying the parent asset
2025-06-04 11:07:21 +08:00
Nick Fisher
6db82d00c2
don't call removeAnimationComponent in viewer (moved to FilamentApp.destroyAsset)
2025-06-03 16:40:50 +08:00
Nick Fisher
28aef7e5cc
when destroying assets, remove animation component in FilamentApp, not viewer
2025-06-02 14:58:52 +08:00
Nick Fisher
1c500fe925
require dispose() on InputHandlerDelegate and update sample implementations
2025-06-02 12:58:26 +08:00
Nick Fisher
2191f9d44b
require dispose() on InputHandlerDelegate and update sample implementations
2025-06-02 12:57:45 +08:00
Nick Fisher
87b63301f2
require dispose() on InputHandlerDelegate and update sample implementations
2025-06-02 12:57:22 +08:00
Nick Fisher
0d5b42c908
add Char to js_interop malloc
2025-06-02 12:15:35 +08:00
Nick Fisher
12e2dca873
change wireframe camera geometry
2025-06-02 12:14:55 +08:00
Nick Fisher
8eae6bf90c
add flags to pixelBufferToPng for alpha/float
2025-06-02 12:14:40 +08:00
Nick Fisher
873244879f
when batch is true in DelegateInputHandler, filter simultaneous keydown/keyup
2025-06-02 12:14:05 +08:00
Nick Fisher
2ab1732b6b
add synthesized property to KeyEvent and add additional keys
2025-06-02 12:12:51 +08:00
Nick Fisher
5eb83a80b3
formatting
2025-06-02 12:08:26 +08:00
Nick Fisher
7141a01101
use render thread method for resetting to rest pose
2025-06-02 11:52:41 +08:00
Nick Fisher
82aba605f9
add Texture_generateMipMapsRenderThread, AnimationManager_resetToRestPoseRenderThread
2025-06-02 11:51:43 +08:00
Nick Fisher
059926fe98
add generateMipmapsRenderThread
2025-06-02 10:44:45 +08:00
Nick Fisher
70e2933c4b
track geometry assets internally to ensure they are destroyed when destroyAssets is called
2025-06-02 10:09:58 +08:00
Nick Fisher
4fb85eb45a
don't throw exception on failure to remove animation component
2025-05-31 21:58:32 +08:00
Nick Fisher
afecacfcf0
getChildEntity in FFIAsset should invoke FilamentApp method, not direct binding method
2025-05-31 11:25:24 +08:00
Nick Fisher
2f7f363db9
pass shared NameComponentManager to gltfio AssetLoader
2025-05-31 11:21:57 +08:00
Nick Fisher
5f9a7bb959
remove errant comment
2025-05-29 22:30:00 +08:00
Nick Fisher
86894cf583
add alpha/requireAlpha argument when decoding images
...
remove size checks from setImage (we are assuming the caller knows the correct size)
This also adds some monkey-patch methods to js_interop to convert Float32List to a UInt8List (but use this with care, because it will only work for emscripten-allocated objects)
2025-05-29 22:26:42 +08:00
Nick Fisher
c789e75af5
(web) fix casing for generateMipMaps
2025-05-29 19:27:22 +08:00
Nick Fisher
94eacec27e
Texture improvements: generateMipmaps(), add levels to createTexture, tests to check auto mip level selection
2025-05-29 18:38:57 +08:00
Nick Fisher
b00f37ddaa
(web) remove asTypedList from generated JS bindings (replaced by equivalent in js_interop.dart
2025-05-28 11:21:48 +08:00
Nick Fisher
a98d7550ae
(web) add asTypedList extension for Pointer<Float>/Float32List
2025-05-28 10:49:44 +08:00
Nick Fisher
f7d6d4786a
remove asset from internal list before destroying
2025-05-28 10:48:10 +08:00
Nick Fisher
d298b0d091
add decodeToTexture static helper method to Texture
2025-05-28 10:47:21 +08:00
Nick Fisher
4a7a366fc6
add setTransform/getWorldTransform to FilamentApp
2025-05-28 10:47:00 +08:00
Nick Fisher
c6ceea4f8b
update generated bindings
2025-05-24 16:38:21 +08:00
Nick Fisher
1e812ebe93
allow directly creating an entity and setting transform
2025-05-24 16:33:58 +08:00
Nick Fisher
75a9950909
update generated bindings
2025-05-24 15:05:29 +08:00
Nick Fisher
81fb0fb583
add setFogOptions
2025-05-24 15:05:03 +08:00
Nick Fisher
4d6c008299
regenerate JS bindings
2025-05-24 10:54:49 +08:00
Nick Fisher
4505cbe325
add missing setExposure methods + reinstate camera tests
2025-05-24 10:51:56 +08:00
Nick Fisher
195a625738
when getMaterialInstance/setMaterialInstance are called, if entity is not renderable, return false
...
if no entity is passed, iterate through all entities and use the first renderable entity
2025-05-23 16:27:38 +08:00
Nick Fisher
96694be017
remove register/unregister swapchain/view in TextureProjection
...
since we are rendering each view separately, this is no longer necessary
2025-05-22 15:22:15 +08:00
Nick Fisher
a31f11151e
check for beginFrame returning false in project() and correctly calculate numChannels/channelSize
2025-05-22 15:19:03 +08:00
Nick Fisher
10136c8cde
use flush() instead of directly calling executeRenderThread (wasm) or flushAndWait (native)
2025-05-22 15:18:19 +08:00
Nick Fisher
c712804bb1
add createLight method to FilamentApp
2025-05-22 15:09:36 +08:00
Nick Fisher
1373ce5a32
use flush() instead of manually invoking different methods for wasm/native
2025-05-22 15:08:29 +08:00
Nick Fisher
1b3d46533c
remove unnecessary import
2025-05-22 15:08:02 +08:00
Nick Fisher
5733bc125b
add addEntity method to Scene
2025-05-22 15:07:43 +08:00
Nick Fisher
943de8f77b
add createCamera method to FilamentApp
2025-05-22 15:07:23 +08:00
Nick Fisher
9a4fd1141e
remove logging
2025-05-22 15:06:27 +08:00
Nick Fisher
3007dec127
TextureProjection now makes a separate render pass for each View.
...
This is needed because changing material properties between beginFrame/endFrame is unsupported
2025-05-22 15:03:06 +08:00
Nick Fisher
9a6bacc73f
pass both logical key & physical key to input handler on keyboard keypress
2025-05-21 12:01:50 +08:00
Nick Fisher
1fb68b20e9
separate Gltf/Morph/BoneAnimationComponentManager definitions
...
move gltf animation instantiation to GltfAnimationComponentManager (this helps ensure we are creating the component on the correct entity)
2025-05-20 14:57:26 +08:00
Nick Fisher
1afd5ff257
clean up FixedOrbitCameraDelegate
2025-05-18 15:11:52 +08:00
Nick Fisher
66f3e20489
copy input events before passing to delegate
2025-05-18 15:11:52 +08:00