Jump to content
  • Advertisement
Sign in to follow this  
dachande

General Terrain texturing concepts

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

Good evening all! I'm looking (as the post title suggests) in to ways to texture a terrain... Specifically, overlaying textures over textuers (e.g. roads), and blending textures together (E.g. mud / grass overlapping). I've yet to discover any substantial resources on the topic! I've been checking the SDK docs of HL2 and similar to see how they achieve the effect. For the road style overlays, I can only guess that the texture is being drawn using new polygons that 'hover' above the original terrain (by a tiny margin to prevent rounding errors). I haven't made my mind up about the blending... more importantly, about how the textures fade in to one another on the edges - I.E. taking a river bank for my example, it is common to see mud closest to the river, which slowly fades in to grass further up the bank. May I have your thoughts (answers?) on the matter? :D Thanks, Dachande

Share this post


Link to post
Share on other sites
Advertisement
Real roads are actually several centimeters thick, so you might consider rendering the road above the ground and render additional quads to the sides to close the gap between the road and the ground.

Share this post


Link to post
Share on other sites
I'm not going to be much help, but its a topic I'm quite keen to listen into. I've thought about a couple of ways you could do this, never really got round to implementing any of them though.

My favourite idea is to have a tile system (grass tile, mud tile etc), and you can start by just having a single texture layed terrain using this tiling system. Then you could have a blending layer (or layers) for blending different tile types together. I guess this could be done using a clever algorithm, or in some kinda of tool, although I'm a big fan of the clever algorithm idea. Each tile would look around it to see if there are any tiles of a different type, if so then it would place another layer ontop of itself with varying alphas between the two tile types (so it goes from 0.5f to 0.0f, as the other tile will also blend the other way). This is prehaps a standard method, its the one that screams out sensible in my mind :-) Now all i gotta do is find the time to implement it ;-)



Cheers,
Richard.

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!