Commit Graph

27 Commits

Author SHA1 Message Date
Nick Fisher
60a09a1cd9 chore: rename thermion_flutter_ffi in example projects 2025-01-07 08:25:48 +08:00
Nick Fisher
ed444b0615 feature!:
This is a breaking change needed to fully implement instancing and stencil highlighting.

Previously, users would work directly with entities (on the Dart side, ThermionEntity), e.g.

final entity = await viewer.loadGlb("some.glb");

However, Filament "entities" are a lower-level abstraction.

Loading a glTF file, for example, inserts multiple entities into the scene.

For example, each mesh, light, and camera within a glTF asset will be assigned an entity. A top-level (non-renderable) entity will also be created for the glTF asset, which can be used to transform the entire hierarchy.

"Asset" is a better representation for loading/inserting objects into the scene; think of this as a bundle of entities.

Unless you need to work directly with transforms, instancing, materials and renderables, you can work directly with ThermionAsset.
2024-11-27 15:02:37 +11:00
Nick Fisher
436873a455 successfully creating D3D texture with D3D11_RESOURCE_MISC_SHARED_NTHANDLE;
successfully allocating with VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT

working copying vulkan texture

successfully passing D3D texture back to Flutter

chore: Dart/Windows sample project: remove unnnecessary InvalidateRect from update()

chore: Dart/Windows sample project: add generated bindings

successfully blitting from Vulkan swapchain to D3D texture

working Vulkan texture integration with Flutter

refactor to allow disposal of resources in destructors

handle destroyTexture correctly

correctly implement surface resizing/destruction

move Windows engine to Vulkan backend and flush after creating swapchain

add vulkan + vkshaders to Windows libs

update materials with Vulkan

move Vulkan implementation to thermion_Dart

remove extras folder

thermion_flutter plugin updates

update build hook to copy .lib file to output directory and use -vulkan lib zip file

thermion_flutter cleanup

reinstate stereoscopic on Windows

add dxgi and d3d11.lib to windows header pragma

update cli_windows sample project

copy filament/vulkan headers to output directory. This was originally added to facilitate linking on Windows (where thermion_flutter_plugin.cpp needs the Vulkan-related headers), but this doesn't actually solve the problem because there's no way that I've found to get the directory structure correct in the Dart native_assets build directory unless you explicitly address each inidivual file. The current approach is therefore to just keep a permanent copy of the headers in the thermion_filament directory (meaning these will need to be updated manually if the Filament version changes). However, I decided to keep the changes to build.dart because it doesn't have much negative impact and may be helpful in future.

disable stereoscopic on Windows and disable handle use after free checks

use filament headers for thermion_flutter

throw Exception for MSAA on Windows (note that passing msaa:true for setAntiAliasing doesn't actually set MSAA on other platforms, but at least it won't cause the engine to crash)

change header include path for Windows/Vulkan

change header include path for Windows/Vulkan

add filament/vulkan headers for flutter (Windows)

ensure destroyTexture platform methods accept an integer rather than a list

handle Android/Windows swapchain creation separately
2024-11-11 12:49:40 +08:00
Nick Fisher
9c6b2a92ac fix: replace assets symlink for quickstart project 2024-10-30 12:03:48 +08:00
Nick Fisher
1d6cb9cad2 fix: replace symlinks for camera_manipulation project 2024-10-30 15:01:15 +11:00
Nick Fisher
cf1a50c2e5 chore: use dependency_overrides for camera_manipulation project 2024-10-30 14:28:06 +11:00
Nick Fisher
7be2b43c35 chore: remove sandbox from macos quickstart project 2024-10-30 10:47:39 +08:00
Nick Fisher
85013743fe chore: (flutter) (example) use dependency overrides for local thermion packages. We want to build this application for CI before releasing, so we need to be testing the packages that will be built 2024-10-25 16:45:44 +11:00
Nick Fisher
6f6ee807cf chore: update published dependency for sample project 2024-10-23 14:59:31 +08:00
Nick Fisher
02c3876131 doc: update camera_manipulation example project and docs 2024-10-23 14:45:48 +08:00
Nick Fisher
641ed45b59 doc: add camera_manipulation example project 2024-10-23 14:45:48 +08:00
Nick Fisher
3ba16e019c chore: add quickstart .metadata 2024-10-23 14:45:47 +08:00
Nick Fisher
2bbaff5f15 chore: cleanup quickstart pubspec.yaml 2024-10-23 14:45:46 +08:00
Nick Fisher
f080720712 chore: update quickstart for Windows 2024-10-23 14:45:23 +08:00
Nick Fisher
39762c8132 chore: update quickstart 2024-10-23 14:45:23 +08:00
Nick Fisher
53ee466fb6 chore: update quickstart android project files 2024-10-23 14:45:23 +08:00
Nick Fisher
33acc73ab7 chore: add flutter quickstart example, assets and update README 2024-10-23 14:45:23 +08:00
Nick Fisher
b117a4a19c chore: move examples to separate repository 2024-06-26 12:46:56 +08:00
Nick Fisher
81ffbdd824 fix: update Flutter example project to use new API
fix: don't keep example project Podfile.lock in repo
2024-06-21 11:46:25 +08:00
Nick Fisher
cc3020c268 remove dependency_overrides 2024-06-21 11:19:16 +08:00
Nick Fisher
e823083e86 update quickstart to use new API 2024-06-19 13:32:40 +08:00
Nick Fisher
ae15f2114e update quickstart iOS project 2024-06-19 13:32:16 +08:00
Nick Fisher
7ecf097861 reduce quickstart Dart SDK min version 2024-06-18 16:29:53 +08:00
Nick Fisher
49122cd6ce clean up quickstart project 2024-06-17 10:39:55 +08:00
Nick Fisher
24866ed381 remove pubspec.lock 2024-06-16 15:09:37 +08:00
Nick Fisher
dc0c855135 documentation & further renaming 2024-06-16 13:22:27 +08:00
Nick Fisher
fe62a70e29 renaming to Thermion 2024-06-16 13:22:22 +08:00