- Home /
Question by
Thromshall · Aug 21, 2014 at 05:00 AM ·
c#terrainprocedural
How do I deform a Marching Cube/Voxel Terrain?
My terrain data is stored in a voxel format and originally I was generating it in cubes and it was simple to remove a block of the terrain (just subtracted half of the normal from the hit of a raycast). My problem is although I have the same data structure, I'm not rendering my chunks with the marching cubes algorithm. Although it looks nice, I am having a lot of difficulty figuring out how to accurately remove the terrain block that the player expects based on the raycast hit method.
Comment
Answer by Cherno · Aug 21, 2014 at 08:01 AM
The solution is proably hidden somewhere in this thread :)
http://forum.unity3d.com/threads/after-playing-minecraft.63149/