Archived

This topic is now archived and is closed to further replies.

jerry2

How to texture a terrain with natural transition?

Recommended Posts

now,the terrain programs r not the ones some time ago.we can c natural and abundant color covering on the terrain,from dark-green,grass-green to clay-yellow.i believe u guys have seen these beautiful pics and enjoyed them.but i''m a bit puzzled.how can i make the natual transition texture for terrain? i have two thought.first,we can make a fixed border for each sections;the other,we can make use of the heightmap,make the limit of the height,and give every block a different texture,e.g.0m-100m,we can texture a clay-yellow soil;100m-200m,we texture a grass-green one.etc. i don''t know exactly.could any one help me? jerry2 Programming,make a whole new world.

Share this post


Link to post
Share on other sites
Yes and between 99 - 101 you just blend the two textures on each other using the height values for alpha channel..

Additionally you could add another texture layer to the polys close to your camera, with just one channel, that display the structure of the ground like in Tribes2 ...

So when the blending by the height values work you could think about adding other blending values to your terrain data, e.g. you want to have brown dirty ground and grass on the same height level. Then add a char to every vertex, which will tell you how solid the grass or dirty ground should be...

Share this post


Link to post
Share on other sites
quote:
Original post by TheMummy

So when the blending by the height values work you could think about adding other blending values to your terrain data, e.g. you want to have brown dirty ground and grass on the same height level. Then add a char to every vertex, which will tell you how solid the grass or dirty ground should be...


sorry,but i don''t understand these.could u explain it for me?



jerry2
Programming,make a whole new world.

Share this post


Link to post
Share on other sites
Well you have two different textures on your height level which you want to apply. The unsigned character has values from 0-255. 0 means green grass, and 255 means dirty brown ground. When you have for example the value 128 you take 50% percent of grass texture and 50% of the ground ... That could look ugly when the surface with 50% grass and brown is to large ... But when you use just for transitions between grass and ground it should work ...
try it .. want to see the result


Edited by - TheMummy on November 17, 2001 3:24:29 PM

Share this post


Link to post
Share on other sites