You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say you have a Maui project created by File > New > MAUI project in Visual Studio 2022.
If you want to add MonoGame 3D functions to this, is it possible? (Say you want to visualize a spinning cube within a Maui view to start.)
The steps I would imagine would be:
1) Add Monogame
Add MonoGame to existing Maui project by Package Manager. Codefoco.Monogame.Framework perhaps? Although this is still .NET 6? Is there a better one to cover Android/iOS/Windows?
2) Create & Run MonoGame Scene
Ideally, 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 MonoGame code in the background.
3) Map MonoGame Camera > Maui View
The 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.
QUESTION
Is this feasible? Is adding MonoGame to an existing Maui app (for iOS/Android/Windows support) as simple as adding the package above or another?
How could one programmatically start a simple proof of concept scene of a cube and Camera?
What output does a MonoGame camera provide? Can it be easily outputted to a Native view like SwapChainPanel in Windows, SurfaceView or TextureView in Android or UIView or NSView in iOS?
Thanks for any help or ideas. Or if MonoGame is not the best idea for this, what is? Evergine and Stride seem tied to their Editors which I don't want/need. UrhoSharp is abandoned and I couldn't get it to work. Any thoughts?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Let's say you have a Maui project created by File > New > MAUI project in Visual Studio 2022.
If you want to add MonoGame 3D functions to this, is it possible? (Say you want to visualize a spinning cube within a Maui view to start.)
The steps I would imagine would be:
1) Add Monogame
Add MonoGame to existing Maui project by Package Manager. Codefoco.Monogame.Framework perhaps? Although this is still .NET 6? Is there a better one to cover Android/iOS/Windows?
2) Create & Run MonoGame Scene
Ideally, 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 MonoGame code in the background.
3) Map MonoGame Camera > Maui View
The 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.
QUESTION
Is this feasible? Is adding MonoGame to an existing Maui app (for iOS/Android/Windows support) as simple as adding the package above or another?
How could one programmatically start a simple proof of concept scene of a cube and Camera?
What output does a MonoGame camera provide? Can it be easily outputted to a Native view like SwapChainPanel in Windows, SurfaceView or TextureView in Android or UIView or NSView in iOS?
Thanks for any help or ideas. Or if MonoGame is not the best idea for this, what is? Evergine and Stride seem tied to their Editors which I don't want/need. UrhoSharp is abandoned and I couldn't get it to work. Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions