https://github.com/SilentCLD/XenkoMCTerrain
Xenko Marching Cubes Terrain Example
https://github.com/SilentCLD/XenkoMCTerrain
csharp gamedev marching-cubes-terrain terrain-generation xenko xenko-game-engine
Last synced: 5 months ago
JSON representation
Xenko Marching Cubes Terrain Example
- Host: GitHub
- URL: https://github.com/SilentCLD/XenkoMCTerrain
- Owner: SilentCLD
- License: mit
- Archived: true
- Created: 2019-09-14T15:56:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-15T18:47:26.000Z (over 5 years ago)
- Last Synced: 2024-08-03T23:14:17.764Z (9 months ago)
- Topics: csharp, gamedev, marching-cubes-terrain, terrain-generation, xenko, xenko-game-engine
- Language: C#
- Size: 9.96 MB
- Stars: 10
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-Stride - Xenko/Stride marching cubes terrain
README
# **Xenko Marching Cubes Terrain**
This is an example project for Marching Cubes terrain in the [Xenko Engine](https://www.xenko.com) built on version 3.1.0.1-beta2-0674
The texturing method isn't the greatest (currently looping through 3 UV coordinates), a better method would be necessary for real world usage (triplanar mapping or something like that (PRs welcome!)).
The original implementation is written by Eldemarkki which is available [here](https://github.com/Eldemarkki/Marching-Cubes-Improved).
#### Usage
1) Download / Clone the repo
2) Open the .sln and runThere are a couple of different terrain generation types (found in [DensityGenerator.cs](MarchingCubesImproved/TerrainGen/DensityGenerator.cs)) which can be changed in [Chunk.cs](MarchingCubesImproved/Chunk.cs) on line 68.
You can increase / decrease the world size by changing the worldWidth, worldHeight or worldDepth in [World.cs](MarchingCubesImproved/World.cs) on lines 17-19 (the larger the world the more time it'll take it initially generate).
#### Controls
* `Ctrl + Shift + P` - Toggle Debug stats
* `F1` - Cycle Debug stats page
* `Right Click` - Rotate Camera
* `W A S D` - Move
* `Left Click` - Decrease Density (Remove Terrain)
* `Ctrl + Left Click` - Increase Density (Add Terrain)#### Screenshots

