Commit Graph
100 Commits
Author SHA1 Message Date
Nick Fisher fc7f5d7b93 create material for texture baking
textures can now be created manually and are no longer tracked by SceneManager (and therefore require manual tracking/disposal)
2025-03-04 14:52:48 +08:00
Nick Fisher 5dca42c3c1 remove unused postprocess material 2025-03-04 14:38:05 +08:00
Nick Fisher 665c2fb39d update projection test 2025-03-04 14:37:13 +08:00
Nick Fisher 3ac79b2080 initial projection material 2025-03-03 16:11:12 +08:00
Nick Fisher 8d52690c97 fix texture/material methods 2025-03-03 15:52:03 +08:00
Nick Fisher 2a8931e1ac add TTexture bindings with TextureFormat, PixelDataType and PixelDataFormat enums 2025-03-03 14:43:20 +08:00
Nick Fisher 94d77ff21b move Engine_ FFI methods to own header/source 2025-03-03 11:32:45 +08:00
Nick Fisher 7a707cda67 move Engine_ FFI methods to own header/source 2025-03-03 11:32:34 +08:00
Nick Fisher 8993d888b1 docstring 2025-03-01 17:23:06 +08:00
Nick Fisher ffc256228a add fps counters and headroom 2025-03-01 13:02:05 +08:00
Nick Fisher 1b1de0b7c0 add Filament version to README 2025-03-01 12:29:38 +08:00
Nick Fisher 4c1480864e remove thermion_flutter_ffi from thermion_flutter pubspec 2025-03-01 12:29:15 +08:00
Nick Fisher 06cc114daa add geometry_combined lib to libs 2025-03-01 12:28:35 +08:00
Nick Fisher 1258751dda update bindings 2025-03-01 12:00:03 +08:00
Nick Fisher 67ca24a7d9 remove old ThermionDartRenderThreadApi.h 2025-03-01 11:59:52 +08:00
Nick Fisher 282ee6d103 cherry pick changes onto ThermionDartRenderThreadApi.h 2025-03-01 11:59:36 +08:00
Nick Fisher bb5a8f495d enable GPU validation mode for camera_manipulation iOS project 2025-03-01 11:56:35 +08:00
Nick Fisher c400ca3993 rename Android project and disable impeller for camera_manipulation 2025-03-01 11:56:35 +08:00
Nick Fisher d7d7fa7c0b use scale directly for DelegateInputHandler 2025-03-01 11:56:34 +08:00
Nick Fisher c1be084e3e update generated bindings 2025-03-01 11:56:14 +08:00
Nick Fisher 178e59a618 add enabled/strength params for bloom 2025-03-01 11:55:48 +08:00
Nick Fisher 7fe9c06a7f change setBloom docstring 2025-03-01 11:54:54 +08:00
Nick Fisher 0f4531d3d7 add enabled/strength params to setBloom, add setRenderQuality method 2025-03-01 11:54:29 +08:00
Nick Fisher c5228dff7e add enabled/strength params to setBloom, add setRenderQuality method 2025-03-01 11:54:12 +08:00
Nick Fisher 7131e7ab86 add enabled/strength params for bloom 2025-03-01 11:53:40 +08:00
Nick Fisher 16ff7ef008 fix: rename msPerFrame property 2025-03-01 11:52:31 +08:00
Nick Fisher a178035796 internal: set dynamicResolution enabled by default, set frameInterval properly, set bloom disabled by default 2025-03-01 11:52:19 +08:00
Nick Fisher 61abed2fb7 internal: use msPerFrame to control render timing 2025-03-01 11:50:43 +08:00
Nick Fisher 30060578ef chore(release): publish packages
- thermion_dart@0.2.1-dev.20.0
 - thermion_flutter@0.2.1-dev.20.0
 - thermion_flutter_platform_interface@0.2.1-dev.20.0
 - thermion_flutter_ffi@0.2.1-dev.20.0
 - thermion_flutter_web@0.2.0+11
2025-03-01 11:50:41 +08:00
Nick Fisher 2c2beb0e76 internal: add missing Mutex.h header 2025-01-09 09:50:03 +08:00
Nick Fisher 2b864f6f44 example: fix android release build for camera_manipulation 2025-01-08 17:18:27 +08:00
Nick Fisher 0b1da2a15d feat!: use raw pointer scale (>1 meaning zoom in, <1 meaning zoom out) rather than binary -1/1 for DelegateInputHandler 2025-01-08 11:39:40 +08:00
Nick Fisher ad70ef1461 fix: only use Windows-style ndkRoot when building on Windows 2025-01-08 11:39:34 +08:00
Nick Fisher 6f110a56dd internal: add Gizmo material to Makefile 2025-01-08 09:35:27 +08:00
Nick Fisher 0e5253f7b3 internal: store bounding box with SceneAsset rather than recalculating from renderables 2025-01-07 12:02:44 +08:00
Nick Fisher 124eed0264 fix: don't return entity from SceneManager_addLightRenderThread 2025-01-07 08:43:36 +08:00
Nick Fisher 9a055174e6 fix: return light entity from SceneManager 2025-01-07 08:43:06 +08:00
Nick Fisher 3a231697e5 test: add more tests 2025-01-07 08:42:24 +08:00
Nick Fisher 3e74c8faea internal: regenerate bindings 2025-01-07 08:40:51 +08:00
Nick Fisher 18b0bf19b9 internal: recompile materials 2025-01-07 08:40:51 +08:00
Nick Fisher 020bfbcbf6 feat: update Filament to v1.56.4 2025-01-07 08:40:51 +08:00
Nick Fisher b1c0d4b2e8 internal: expose more RenderableManager/LightManager bindings 2025-01-07 08:25:48 +08:00
Nick Fisher 6cefe44c64 fix: when creating geometry, normals/uvs are set to false by default. remove wirefame camera container (can now be replaced by bounding box methods 2025-01-07 08:25:48 +08:00
Nick Fisher 4aa8889834 internal: rename Viewer_getMainCamera and return null in Engine_getCameraComponent if camera entity is null 2025-01-07 08:25:48 +08:00
Nick Fisher aee9c767dd doc: camera improvements 2025-01-07 08:25:48 +08:00
Nick Fisher 916ecd5629 internal: rename Viewer_getMainCamera and return null in Engine_getCameraComponent if camera entity is null 2025-01-07 08:25:48 +08:00
Nick Fisher d3a6f6e22a fix: add destroyCamera to ThermionViewer interface 2025-01-07 08:25:48 +08:00
Nick Fisher 86ecd53de7 internal: use std::vector for geometry material instances 2025-01-07 08:25:48 +08:00
Nick Fisher 8653ca8398 doc: postprocessing 2025-01-07 08:25:48 +08:00
Nick Fisher 1d615e7568 fix: UV calculation for geometry 2025-01-07 08:25:48 +08:00
Nick Fisher 4cb118ad65 feat: use existing material instances when creating an instance of GeometrySceneAsset and no material instance is passed 2025-01-07 08:25:48 +08:00
Nick Fisher 4e64c4976f refactor!: rename removeAsset to destroyAsset
use render thread methods for lights
2025-01-07 08:25:48 +08:00
Nick Fisher 04adbc39e0 remove Scene class 2025-01-07 08:25:48 +08:00
Nick Fisher 744e39e8dd fix: move removeIbl to render thread 2025-01-07 08:25:48 +08:00
Nick Fisher baf86d1ade refactor!: move light methods from FilamentViewer to SceneManager/TLightManager and rename clearLights/clearAssets to destroyLights/destroyAssets 2025-01-07 08:25:48 +08:00
Nick Fisher 3e181b6aff fix: allow destroying instances independently of owner 2025-01-07 08:25:48 +08:00
Nick Fisher 8e0ba8ac4e fix: glTF instancing when loaded via buffer 2025-01-07 08:25:48 +08:00
Nick Fisher 3e39aa3630 feat: allow setting material instance directly on ThermionAsset 2025-01-07 08:25:48 +08:00
Nick Fisher cc1b55b6c9 internal: remove vertexScale from unlit material and multiply by alpha 2025-01-07 08:25:48 +08:00
Nick Fisher 242041c9f6 fix: increase grid material depth 2025-01-07 08:25:48 +08:00
Nick Fisher 7717387909 internal: remove bounding box asset when parent asset removed 2025-01-07 08:25:48 +08:00
Nick Fisher 31e453a4e6 refactor: dont require GizmoInputHandler to wrap an existing InputHandler (you can do this by creating your own InputHandler that wraps two children 2025-01-07 08:25:48 +08:00
Nick Fisher 9b988537e0 internal: allow InputHandler methods to return null 2025-01-07 08:25:48 +08:00
Nick Fisher d9338f4341 chore: test fixes 2025-01-07 08:25:48 +08:00
Nick Fisher b6397b5f73 fix!: rename removeEntity to removeAsset 2025-01-07 08:25:48 +08:00
Nick Fisher 584ace23b4 refactor: gizmo/input handler improvements 2025-01-07 08:25:48 +08:00
Nick Fisher 5e89dc43e8 feat: add FocusNode to ThermionListenerWidget 2025-01-07 08:25:48 +08:00
Nick Fisher 024643e3a1 internal: add check for renderable entity when returning bounding box 2025-01-07 08:25:48 +08:00
Nick Fisher 96fe2c89ea internal: add FFI method to check for valid renderable 2025-01-07 08:25:48 +08:00
Nick Fisher 8d8acef481 feat: remove bounding box from SceneAsset and create renderable wireframe bounding box in ThermionAsset 2025-01-07 08:25:48 +08:00
Nick Fisher 51bdca7158 feat!: remove Viewer setRenderTarget method (use the View method instead) 2025-01-07 08:25:48 +08:00
Nick Fisher 658984e784 internal: FFIView getRenderTarget 2025-01-07 08:25:48 +08:00
Nick Fisher f8ae90b631 internal: add destroyRenderTargetRenderThread 2025-01-07 08:25:48 +08:00
Nick Fisher b158062ce8 internal: expose View_getRenderTarget and set (Dart) FFIView.renderTarget property on construction 2025-01-07 08:25:48 +08:00
Nick Fisher dc690bb93a refactor: rename ThermionFlutterTexture->PlatformTextureDescriptor 2025-01-07 08:25:48 +08:00
Nick Fisher 342264eba9 chore: remove unnecessary null check 2025-01-07 08:25:48 +08:00
Nick Fisher 453ce9d1ea fix: fix highlights after first 2025-01-07 08:25:48 +08:00
Nick Fisher e9c14139c2 chore: disable grid center sphere and fix priority 2025-01-07 08:25:48 +08:00
Nick Fisher d92d47faa5 chore: logging 2025-01-07 08:25:48 +08:00
Nick Fisher b6bde0c9d9 fix: set overlay layer visibility when adding grid 2025-01-07 08:25:48 +08:00
Nick Fisher f873f7da66 feat: add setTransparencyMode to Dart Material class 2025-01-07 08:25:48 +08:00
Nick Fisher aabea985bd fix: transparency/depth fixes for grid.mat 2025-01-07 08:25:48 +08:00
Nick Fisher 9f9b34f662 feat: expose attached entity as Stream on GizmoInputHandler 2025-01-07 08:25:48 +08:00
Nick Fisher fc4842ed6d chore: remove colors from Gizmo 2025-01-07 08:25:48 +08:00
Nick Fisher eb4e70a7cf chore: remove colors from Gizmo 2025-01-07 08:25:48 +08:00
Nick Fisher 19ffa91164 chore: update stubbed viewer 2025-01-07 08:25:48 +08:00
Nick Fisher a519701510 chore: logging 2025-01-07 08:25:48 +08:00
Nick Fisher 5fb5e42b98 feat: allow custom material for grid overlay, and material creation from Uint8List 2025-01-07 08:25:48 +08:00
Nick Fisher ba3636a203 fix: use render thread methods for grid overlay creation and create ubershader instance 2025-01-07 08:25:48 +08:00
Nick Fisher e0b4ebc349 chore: regenerate bindings 2025-01-07 08:25:48 +08:00
Nick Fisher 1d1a3cbfe6 chore: rename to FFIMaterialInstance 2025-01-07 08:25:48 +08:00
Nick Fisher 7aa0367a3b internal: *Material_createInstance 2025-01-07 08:25:48 +08:00
Nick Fisher 0817efc33e internal: add Dart FFIMaterial type 2025-01-07 08:25:48 +08:00
Nick Fisher 0facb3f906 internal: add TMaterial type 2025-01-07 08:25:48 +08:00
Nick Fisher 355c28477b internal: add Material_createInstance 2025-01-07 08:25:48 +08:00
Nick Fisher c1a294315a internal: expose Engine getters (TransformManager, RenderableManager), and build/desotry material methods 2025-01-07 08:25:48 +08:00
Nick Fisher f27628e719 internal: add createGrid/destroyMaterial render thread methods 2025-01-07 08:25:48 +08:00
Nick Fisher fd1faa6023 feat: allow passing custom material for grid overlay 2025-01-07 08:25:48 +08:00
Nick Fisher 8fa43e5306 feat: allow passing custom material for grid overlay 2025-01-07 08:25:48 +08:00
Nick Fisher 94863134fc feat: allow passing custom material for grid overlay 2025-01-07 08:25:48 +08:00