Jump to content
  • Advertisement
Sign in to follow this  
richy19

OpenGL Procedural Terrain Progression and Queries

This topic is 2131 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

For a while now I have been trying to accomplish nice smooth and somewhat complex terrain generation, in the long run I would like to evolve this into a planet generator.

Started out with reimers tutorials in XNA
u75E3.jpg

Then moving onto pure OpenGL and trying to accomplish creating and displaying the map via shaders:
1A8ZP.png

Which takes me to my last attemp
TvXP0.png
CbSrM.png

I have recently been looking up quadtrees
[media]
[/media]

But im stuck as to what to do next.

My thoughts are:
Generate a large and detailed plane, say 10.000x10.000 units
Use some noise function to give it height
Create normals
Then create index list
Create a quadtree of max level 100(for example)
then using the current quadtree level, use it as a stride for the index list (so at level 0 I draw a single quad using each corner of the plane as a vertice, at level 1 its subdivided into 4 quads and so on untill the max level)

But I dont know if this is how it works, can anyone give me some advice?
Also If anyone has some resources on Procedural Terrain on Procedural Planets it would be much appreciated.
Thanks

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!