Graphics3DSample is a cross-platform 3D graphics demo built with MonoGame, showcasing animated models, lighting, textures, and interactive UI elements. The project is based on the Microsoft XNA Community Game Platform and demonstrates modern game development techniques using MonoGame.
- 3D spaceship model rendering
- Animation system driven by XML definitions
- Per-pixel lighting and multiple light sources
- Interactive UI buttons (checkboxes) for toggling features
- Touch and gesture support (pinch to zoom, drag to rotate)
- Mouse support for camera rotation, zoom, and UI interaction
- Background textures and effects
- Left Mouse Drag: Rotate camera (spaceship view)
- Mouse Wheel: Zoom in/out (change camera FOV)
- Right Mouse Drag: Pinch-like zoom (alternative to wheel)
- Click UI Buttons: Toggle lighting, animation, and background texture
- Free Drag Gesture: Rotate camera
- Pinch Gesture: Zoom in/out (change camera FOV)
- Tap UI Buttons: Toggle lighting, animation, and background texture
Core/— Shared game logic, models, animation, and UI componentsPlatforms/Windows/— Windows-specific project filesPlatforms/Desktop/— DesktopGL (cross-platform desktop) project filesPlatforms/Android/— Android project filesPlatforms/iOS/— iOS project filesContent/— Game assets (textures, models, animations)
- .NET 8 SDK
- MonoGame
- Platform-specific tools (Android SDK, Xcode for iOS, etc.)
- Restore dependencies:
dotnet restore
- Build:
dotnet build Platforms/Windows/Graphics3DSample.Windows.csproj
- Run:
dotnet run --project Platforms/Windows/Graphics3DSample.Windows.csproj
- Restore dependencies:
dotnet restore
- Build:
dotnet build Platforms/Desktop/Graphics3DSample.DesktopGL.csproj
- Run:
dotnet run --project Platforms/Desktop/Graphics3DSample.DesktopGL.csproj
- Restore dependencies:
dotnet restore
- Build:
dotnet build Platforms/Android/Graphics3DSample.Android.csproj
- Deploy/run using your preferred Android deployment method (e.g., Visual Studio, device/emulator).
- Restore dependencies:
dotnet restore
- Build:
dotnet build Platforms/iOS/Graphics3DSample.iOS.csproj
- Deploy/run using Xcode or your preferred iOS deployment method.
To clean all build outputs:
dotnet clean- All platform projects share the core game logic in
Core/. - Content assets are located in
Core/Content/and referenced by each platform project. - For mobile platforms, ensure you have the necessary SDKs and emulators installed.
This project is based on the Microsoft XNA Community Game Platform sample code.