Jump to content
  • Advertisement
Sign in to follow this  
SixeliA

landscape

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

Hi ,

I have a landscape generated with a heightmap. I would like to know if it's possible to create some "cave" and how .

Thanks,
Alexis

Share this post


Link to post
Share on other sites
Advertisement
If your landscape is solely based on a heightmap, then no, not really. It takes modification of the way the level data is stored and handled above and beyond a simple heightmap based system, and once you've altered the basis of your landscape, then a heightmap is no longer sufficient.

Of course, there are ways you can hack the system, too. You could cut a hole in the heightmap, for example, and stitch a geometry-modeled cave in place. This does probably require slight changes to the way the heightmap is handled in order to cut the hole.

Share this post


Link to post
Share on other sites
Use the stencil buffer to 'cut out' holes in the terrain, then make some sort of cylinder-generating algorithm to create the cave itself with a progressively narrowing radius and perhaps some tweaks and customization to make it more cave-like and less like a round tube. Where there's a will there's a way.

Share this post


Link to post
Share on other sites
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!