Sign in to follow this  
SixeliA

landscape

Recommended Posts

SixeliA    100
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
JTippetts    12950
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
deftware    1778
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this