Jump to content
  • Advertisement
Sign in to follow this  
Lloydg

OpenGL Voxel Marching Cubes Questions

This topic is 2237 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey everyone, I have a few things I would like some advice on before I start this project.


I want to build a voxel based terrain engine that can be dynamically altered. I have experimented with marching cubes before and made some meshes and such in OpenGL and C++ but only basic stuff.

My aims for what I want to do is is have the terrain optimized (my old stuff would slow down real fast), The map / terrain data needs to small and at some point hopefully be able to be streamed to clients.

The terrain needs to be able to altered by the user.

I will be using XNA 4.0

Okay, So the first question is about storing the terrain data / volumetric data... I think I should be using chunks and or an Oct tree.
Normally when I have implemented an Oct tree I have used it for collision and such.. But for the voxels I would be using it to save memory for example for large areas of the same id type like air.

Would I use just chunks? or chunks that each are a Oct tree?

With XNA how is the best way of dynamically creating the meshes for each chunk? Is a content pipeline the wrong way to go because it cant be used dynamically? MeshBuilder class cant be used dynamically from what I have read?

How should I store the terrain data? With XNA? if i want to stream it later will should it be in a SQL database of some sort?

Any help would be greatly appreciated!

Thanks in advanced, Lloyd.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!