Sign in to follow this  

multi-channel height map for multi level terrain.

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

I am looking to make terrain with caves and tunnels and possibly other similar situations.

I have an idea of using a complete texture using each channel to represent a level of a surface.

abstractly. a standard RGBA would be able to handle 4 levels of a surface per pixel, and possibly more if i could be clever about optimization.

has anyone done this before?

Share this post


Link to post
Share on other sites
I did something similar once, with 3 layers of terrain where the middle one was visible from below to build caves and overhangs. It worked OK but got a bit restrictive, and it was generally easier to just make the cave as a separate model. I also found it difficult to make a good editor to handle that type of data.

Share this post


Link to post
Share on other sites
Interesting.

the reason for doing this is to have destructible terrain like the game Scorched Earth. If it was heightmapped based i could write shaders for rendering in explosions and such that leave craters. It is definitely non-trivial to do this, but it seems like the only way short of doing voxel terrain.

Share this post


Link to post
Share on other sites
Quote:
Original post by Erik Rufelt
I did something similar once, with 3 layers of terrain where the middle one was visible from below to build caves and overhangs. It worked OK but got a bit restrictive, and it was generally easier to just make the cave as a separate model. I also found it difficult to make a good editor to handle that type of data
Same here. I used shaders to cut "holes" in the "original" terrain (very similar to how L4D2 does body damage!) but in the end I weren't able to research more on the problem and I had to drop the experiment.

Share this post


Link to post
Share on other sites

This topic is 2543 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.

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