I have finally finished a working, functioning marching cubes algorithm. I have my character, and I can dig holes into the "terrain" of the marching cubes mesh. (simaler to minecraft). The problem is, each time I click the mouse to "dig", the game lags for up to 2 seconds. I went online and found other peoples videos using marching cubes, and they are adjusting the mesh rapidly without any lag.
For example:
http://www.youtube.com/watch?v=qIGgUFP33fc
Does anyone who is experienced with meshes or marching cubes know any of reasons why adjusting a mesh causes so much lag? How did they do it in the video so quickly? My ultimate goal is to be able to edit the "terrain" in real time just like the video.
↧