Commit Graph
100 Commits
Author SHA1 Message Date
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 023900bb99 use Timer in EntityControllerMouseWidget for pointer hover 2024-02-15 13:47:59 +08:00
Nick Fisher aba9d8e6a6 update example project 2024-02-15 13:47:31 +08:00
Nick Fisher da123d6274 update example project 2024-02-15 13:47:22 +08:00
Nick Fisher 0b315f3dfe bump Dart SDK version for NativeCallable 2024-02-15 13:45:51 +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 5ab257cd15 merge macos debug libs 2024-02-13 16:25:12 +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 6561af6825 change transform order for relative setPosition to SRT 2024-02-05 08:43:54 +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 0d9cf8a9ff merge in work on controller from webjs branch 2024-02-02 18:17:40 +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 d2fc342bea update pubspec.lock 2023-12-18 12:11:18 +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 8c3d113ab4 Merge branch 'develop' of github.com:nmfisher/polyvox_filament into develop 2023-12-17 13:11:40 +08:00
Nick Fisher b899ce544e don't invalidate iterator before changing non-deleted asset indices 2023-12-17 13:11:16 +08:00
Nick Fisher 8dcad76acf Windows MSVC fixes 2023-12-16 11:34:33 +11:00
Nick Fisher de3cc00059 update example project 2023-12-15 23:39:56 +08:00
Nick Fisher f5244975df fix incorrect/premature destruction of entities 2023-12-15 23:38:38 +08:00
Nick Fisher 59d0e64d04 add timer to FFI render loop 2023-12-15 22:30:24 +08:00
Nick Fisher b2d7cfc4df add explicit bone animation to sample project 2023-12-15 22:30:06 +08:00
Nick Fisher 8fb7b9aa16 clean up macos warnings 2023-11-20 23:00:46 +08:00
Nick Fisher 0474e0305e clean up unused variables 2023-11-20 23:00:14 +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 a96309bd77 remove sandbox from example macOS runner 2023-11-20 15:26:27 +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 ad9e4689b1 update example project 2023-11-18 13:35:10 +08:00
Nick Fisher 5638eca20c allow setting animations for multiple targets 2023-11-18 13:34:50 +08:00
Nick Fisher fff6eae2f8 allow setting animations for multiple targets 2023-11-18 13:34:25 +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 daf319bf2c FilamentWidget resizing fixes 2023-11-16 12:17:55 +08:00
Nick Fisher e67d4d7e1f fix incorrect pixelDeviceRatio 2023-11-16 12:09:50 +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 76f723c497 Makefile/README updates 2023-11-09 12:24:22 +08:00
Nick Fisher a1f2b245ff move Makefile to macos folder and update instructions 2023-11-09 12:12:04 +08:00
Nick Fisher 395de95d37 more methods for projection/culling projection matrices & frustum 2023-11-09 11:41:40 +08:00
Nick Fisher e1141098d0 example project fixes 2023-11-09 11:22:56 +08:00
Nick Fisher 2db353cc3b add getCameraFrustum() and getCameraProjectionMatrix() 2023-11-08 20:30:14 +08:00
Nick Fisher 962d53442f update macOS 2023-11-08 17:47:21 +08:00
Nick Fisher af543f46b2 add onLoad/onUnload streams 2023-11-08 17:47:11 +08:00
Nick Fisher 7b0dcf2c1c update integration test 2023-11-08 17:46:23 +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 a2543aa69d fix hasViewer check in example ControllerMenu 2023-11-07 17:26:15 +11:00
Nick Fisher 921f654978 update generated_bindings with consistent assetId flutter_filament_plugin 2023-11-07 17:25:36 +11:00
Nick Fisher 914b2fad94 remove old web build folder 2023-11-07 16:58:20 +11:00
Nick Fisher 2882f9739d Merge pull request #13 from odd-io/feature-code-quality
Refactored /lib code to reduce analyze warnings
2023-11-07 08:42:49 +08:00
Nick Fisher 59936c6220 Merge pull request #12 from odd-io/feature-add-github-actions
Add GitHub Actions workflows
2023-11-07 08:41:11 +08:00
Nick Fisher 42c0d96e56 add buster to example project 2023-10-27 00:19:17 +11: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 b42d31a773 fix window minimization issue on Windows 2023-10-26 12:49:24 +11:00
Nick Fisher 53c908dd0d use short timeout on front-end for resizing on Windows 2023-10-26 12:38:52 +11:00
Nick Fisher 6399ca41ed use pixelRatio properly 2023-10-26 11:33:44 +11:00
Nick Fisher a56943fb86 use pixelRatio properly 2023-10-26 11:27:42 +11:00
Nick Fisher 38b58b6d8f set pixel ratio in FilamentWidget 2023-10-26 11:19:35 +11:00
Nick Fisher 0fdbf0b5be don't hide backing window when resizing 2023-10-26 02:14:55 +11:00
Nick Fisher 2fd6f44785 fixes for window resizing on Windows 2023-10-26 02:10:22 +11:00
Nick Fisher 0928d9d273 rendering correctly with backing window but some issues re pixel density, scroll & foregrounding on start 2023-10-25 17:52:37 +11:00
Nick Fisher 8cea106b30 refactor Windows classes to separate EGL/WGL/Backing Window 2023-10-25 13:11:58 +11:00
Nick Fisher c4245b0dd3 remove duplicate EGL_ALPHA_SIZE on Windows 2023-10-24 13:23:41 +11:00
Nick Fisher 2107a17219 update pubspec.lock 2023-10-24 12:29:00 +11:00
Nick Fisher e39d75824e update Windows example project 2023-10-24 12:29:00 +11:00
Nick Fisher 3f988a119c FlutterAngleTexture invoke resize callback on size change, cleanup on destruction and call glFinish in RenderCallback
FlutterAngleTexture invoke resize callback on size change, cleanup on destruction and call glFinish in RenderCallback
move OpenGlTextureBuffer cleanup to destructor
2023-10-24 12:28:57 +11:00
Nick Fisher 435ed7bee6 don't use resize callback on Windows and use ListenableBuilder for texture ID changes
don't use resize callback on Windows and use ListenableBuilder for texture ID changes
2023-10-24 12:28:54 +11:00
Nick Fisher 537f0e1c8e change TextureDetails to ValueNotifier and add MethodChannel listener on Dart side for resize (Windows only) 2023-10-24 12:23:20 +11:00
Nick Fisher 65426aa075 update README 2023-10-24 12:21:33 +11:00
Nick Fisher 7c554e871f update Windows ANGLE libs 2023-10-24 12:21:11 +11:00
Nick Fisher 72c1cbdeb3 remove custom platform creation from FlutterAngleTexture 2023-10-23 01:36:20 +11:00
Nick Fisher 69a7a07ec7 remove custom platform creation from FlutterAngleTexture 2023-10-23 01:36:03 +11:00
Nick Fisher 0a612555b8 remove custom platform creation from FlutterAngleTexture 2023-10-23 01:35:45 +11:00
Nick Fisher 600905f7f2 remove custom platform creation 2023-10-23 01:35:21 +11:00
Nick Fisher 73db953564 don't show placeholder while resizing 2023-10-23 01:34:48 +11:00
Nick Fisher 8130319801 don't null out controller textureDetails while resizing 2023-10-23 01:34:20 +11:00
Nick Fisher 34542a29ca add flushAndWait call to destroySwapChain 2023-10-23 01:33:47 +11:00
Nick Fisher d15aa66f78 remove unnecessary bluegl from Windows/ANGLE build 2023-10-22 17:46:09 +11:00
Nick Fisher 1e6f9dcc9d initialize various FilamentViewer pointers to nullptr 2023-10-22 17:45:48 +11:00
Nick Fisher 74cfe8d9a1 store driver when creating texture 2023-10-22 17:45:26 +11:00
Nick Fisher 2b9ddef5e7 use shared EGLContext for ANGLE on Windows 2023-10-22 17:45:09 +11:00
Nick Fisher 7718885781 update README 2023-10-17 00:55:51 +11:00
Nick Fisher 5bf21ceaf9 update README 2023-10-17 00:54:19 +11:00
Nick Fisher 4fe79e3b92 remove golden_toolkit from test dependency 2023-10-17 00:29:21 +11:00
Nick Fisher 2a5c863506 remove golden_toolkit from test dependency 2023-10-17 00:26:11 +11:00
Nick Fisher 837a2cebc7 different timeouts for resize in debug/release 2023-10-17 00:25:30 +11:00
Nick Fisher 6ab814114e rewrite resize handler for better support on Windows 2023-10-17 00:13:44 +11:00
Nick Fisher 818d75b493 specify minimum Flutter version in README 2023-10-16 18:24:45 +11:00
Nick Fisher 91d3894c83 make ResourceBuffer rvalue ref constructor noexcept 2023-10-16 17:02:59 +11:00
Nick Fisher 6cf8e58bed refactor resizing to address race condition on Windows 2023-10-16 17:02:24 +11:00
Nick Fisher 025bdf662e update windows libs 2023-10-16 17:00:06 +11:00
Nick Fisher 4ebd5a6645 wip 2023-10-13 17:22:31 +11:00
Nick Fisher df4f647333 add DestroyTexture for pixelBuffer implementation 2023-10-13 16:53:39 +11:00