Commit Graph

177 Commits

Author SHA1 Message Date
Nick Fisher
357c585d44 add (very rough) gizmo, restructure Dart package into library, add EntityListWidget 2024-03-25 22:21:37 +08:00
Nick Fisher
13fa60e8de pass callback to native pick() and remove pick_ffi 2024-03-09 11:17:25 +08:00
Nick Fisher
adfb607eb7 make all FFI calls async with completers 2024-03-05 13:51:57 +08:00
Nick Fisher
39fa9387e6 expose removeCollisionComponent 2024-03-05 10:30:42 +08:00
Nick Fisher
06d8df0394 expose addAnimationComponent and dont add by default on loadGlb 2024-03-04 08:32:38 +08:00
Nick Fisher
40ec8accf7 expose addAnimationComponent and dont add by default on loadGlb 2024-03-04 08:32:22 +08:00
Nick Fisher
6c6bcfe7a4 work 2024-03-01 22:48:39 +08:00
Nick Fisher
9295059885 namespace changes, setCameraRotation accepts quat, getMainCamera 2024-03-01 22:47:35 +08:00
Nick Fisher
a3b67bef91 namespace changes 2024-03-01 22:46:53 +08:00
Nick Fisher
9b9a0b7ce5 split component managers 2024-03-01 22:46:23 +08:00
Nick Fisher
a10fe6584d add testCollisions method for manual collision checking 2024-02-18 21:48:03 +08:00
Nick Fisher
00803c35ab rename AssetManager to SceneManager, add camera FOV/antialiasing methods, do symmetric AABB checking for collisions 2024-02-18 15:22:47 +08:00
Nick Fisher
8107258a1e update image material 2024-02-16 20:37:07 +08:00
Nick Fisher
2ae3f8c466 rename (asset to entity) 2024-02-15 15:16:56 +08:00
Nick Fisher
935b876ce9 add flag for affectsCollidingTransform, add setParent method for transforms 2024-02-15 14:50:14 +08:00
Nick Fisher
73c039b413 differentiate between setPosition/queuePositionUpdate (+rotate), use EntityId in collision callback, fix collisions + add skiing effect 2024-02-15 13:45:09 +08:00
Nick Fisher
5d1eccacac add StandardComponents for collision 2024-02-14 10:49:12 +08:00
Nick Fisher
4913956b3e add createGeometry 2024-02-14 10:48:56 +08:00
Nick Fisher
1638599078 support collisions & restructure transforms to only update once per frame 2024-02-13 13:31:18 +08:00
Nick Fisher
48a1c6dc0b use decompose/composeMatrix for transforms and add mouse controls for rotation 2024-02-03 14:11:02 +08:00
Nick Fisher
63a52025dd support relative setPosition, add hardware keyboard listener + control, log FPS 2024-02-03 11:56:06 +08:00
Nick Fisher
17e4014b3e merge in changes from web/js branch by hand (bone animation updates) 2024-02-02 17:16:25 +08:00
Nick Fisher
3e368e1a31 expose getters for near/far culling distance and clean up example project for more readability on frustum 2023-12-17 15:17:17 +08:00
Nick Fisher
8dcad76acf Windows MSVC fixes 2023-12-16 11:34:33 +11:00
Nick Fisher
f5244975df fix incorrect/premature destruction of entities 2023-12-15 23:38:38 +08:00
Nick Fisher
660395a40e enable setting output directory for recording 2023-11-20 22:59:50 +08:00
Nick Fisher
5c1be3d047 add option to record to PNGs (inc background threadpool for encoding) 2023-11-20 15:28:55 +08:00
Nick Fisher
df63d1f270 documentation 2023-11-20 15:26:08 +08:00
Nick Fisher
a24f56b31a restructure render loop to correct timings and expose FFI methods for setBoneTransform/setMorphWeights 2023-11-20 11:35:50 +08:00
Nick Fisher
f0683b0b24 remove morph animation FFI-specific methods (regular methods are OK to use outside the engine thread) 2023-11-19 18:12:38 +08:00
Nick Fisher
28bbc42e14 use correct bone transform for animation + setter 2023-11-18 13:33:54 +08:00
Nick Fisher
0c698d16e3 use boneName instead of boneIndex for setBoneTransform 2023-11-18 00:28:31 +08:00
Nick Fisher
572a945025 add support for multiple bone animations using quaternions 2023-11-17 23:44:30 +08:00
Nick Fisher
f5d5a36f22 add setBoneTransform method 2023-11-17 16:40:17 +08:00
Nick Fisher
f2a458b9ca add setCameraCulling method to set near/far culling plane and return vector_math:Frustum from planes returned by get_camera_frustum 2023-11-09 15:08:34 +08:00
Nick Fisher
395de95d37 more methods for projection/culling projection matrices & frustum 2023-11-09 11:41:40 +08:00
Nick Fisher
2db353cc3b add getCameraFrustum() and getCameraProjectionMatrix() 2023-11-08 20:30:14 +08:00
Nick Fisher
0748323316 add free() method for stability on Windows 2023-11-07 17:54:57 +11:00
Nick Fisher
e42d5e6263 correctly initialize manipulatorMode to default 2023-11-07 17:49:21 +11:00
Nick Fisher
48be185bba start using menu for example project & add methods for getting camera model/view matrices 2023-11-03 22:17:39 +08:00
Nick Fisher
f5cc7a8174 update example project 2023-11-03 17:28:25 +08:00
Nick Fisher
58a9542121 add model/view matrix getters & manipulator options 2023-11-03 15:20:15 +08:00
Nick Fisher
5ba5d7d6ea add mutex for animation updates 2023-11-03 13:10:02 +08:00
Nick Fisher
8b9e6a2b3a rename plugin from PolyvoxFilament to FlutterFilament
rename plugin from PolyvoxFilament to FlutterFilament
2023-10-26 14:08:20 +11:00
Nick Fisher
1e6f9dcc9d initialize various FilamentViewer pointers to nullptr 2023-10-22 17:45:48 +11:00
Nick Fisher
91d3894c83 make ResourceBuffer rvalue ref constructor noexcept 2023-10-16 17:02:59 +11:00
Nick Fisher
4eebe02f29 add destroy_swap_chain_ffi and move setRendering into its own task 2023-10-13 11:22:42 +08:00
Nick Fisher
b7f50df2dc camera fixes for assets with large bounding boxes 2023-10-11 14:12:04 +08:00
Nick Fisher
98bcf5d7ad implement picker/getNameForEntity 2023-10-11 11:10:47 +08:00
Nick Fisher
79292914d2 fix type for nativeTextureId and add picker definition 2023-10-11 09:30:01 +08:00