• Advertisement
Sign in to follow this  

[SlimDX] Terrain-patches

This topic is 2432 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
Sign in to follow this  

  • Advertisement