-
Let's say you have a Maui project created by File > New > MAUI project in Visual Studio 2022. If you want to add Stride 3D scene to this, is it possible? The steps I would imagine would be: 1) Add Stride PackageAdd Stride to existing Maui project by Package Manager. According to this and this Stride can do well with code only in .NET by just adding the Community Toolkit to an existing Visual Studio project. Is this true? If you don't need the Editor, can the Community Toolkit alone handle basic tasks like camera, simple FBX models, animations? 2) Create & Run Stride SceneIdeally, perhaps, we can then add FBX's, textures, or other assets to our Resources folder, and then instantiate a 3D scene programmatically somehow from these using the Stride code in the background, with a function run from inside the Maui project to start/stop the Stride scene. 3) Map Stride Camera > Maui ViewThe output of a camera could then be somehow transferred into a Native view element (TextureView or SurfaceView in Android, SwapChainPanel in WIndows, UIView or NSView in iOS). This could then be mapped into Maui as a View, for example following this guide. QUESTIONIs this feasible? Is adding Stride to an existing Maui app (for iOS/Android/Windows support) remotely possible? Thanks for any help or ideas. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
1Yes! One of the main reasons I love Stride is that its all Nuget packages! even the game studio editor which for some reason surprised me. 2This is definitely possible, the only caveat being that the current asset importers from Stride are Windows specific so you may have to use a third party library to import them at runtime on another platform if that is an issue. this is an example of loading GLTF files at runtime so you could use most of the same code but instead use an FBX compatible library. 3Some examples here may help: You should be able to use the handle of the GameWindow to render to another UI if you want to see where to look in source you should check this folder out. Since it is not only Directx I dont think it gives you direct access to the swap chain. |
Beta Was this translation helpful? Give feedback.
-
Well, you don't need to use the Skybox Nuget. It is optional, If you would like, you can fork also Stride.CommunityToolkit and Stride.CommunityToolkit.Skyboxes and see if you can fix it, maybe But if you remove |
Beta Was this translation helpful? Give feedback.
1
Yes! One of the main reasons I love Stride is that its all Nuget packages! even the game studio editor which for some reason surprised me.
2
This is definitely possible, the only caveat being that the current asset importers from Stride are Windows specific so you may have to use a third party library to import them at runtime on another platform if that is an issue. this is an example of loading GLTF files at runtime so you could use most of the same code but instead use an FBX compatible library.
3
Some examples here may help:
WPF - https://gist.github.com/EricEzaM/5797be1f4b28f15e9be53287a02d3d67
Winforms - https://github.com/windperson/-StrideGameNet5WinFormsDemo
You should be able …