Jump to content
  • Advertisement
Sign in to follow this  
RyxiaN

[SlimDX] Terrain-patches

This topic is 2548 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 ya'll! I've come to the point in my world editor where I need to split up my terrain in patches and I'm a little curious on how the patches are best stored. In the game (not the editor) that I plan to develop the camera will be in a fixed angle (like Warcraft and Starcraft) so I will always need max 4 patches to be rendered (if they are slightly bigger than the camera's view area) and I will always know what patches that needs rendering without doing any culling stuff, I assume.

These are the ways I have in mind but if there's more and/or better ways, let me know!

First way:
Lots of static vertex buffers (one for each patch)
One index buffer (all patches can use the same)

Second way:
One big static vertex buffer
One dynamic index buffer that changes whenever a new patch is visible

Third way:
One dynamic vertex buffer that changes whenever a new patch is visible
One static index buffer that always contains indices for 4 patches

I hope you understand what I mean! Thanks in advance!

// Anton

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!