Archived

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

Dynamic texturing?

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

How to change the terrains texture dynamicly by the heightmap. And changing the height in the game like in Populous?

Share this post


Link to post
Share on other sites
multipass or multitexture with different textures with alpha. Different value of alpha defines visibility of texture.
For example: We need to draw a terrain with grass and mountain.
Steps (for example):
1. Draw terrain with grass texture (no alpha)
2. Draw the same with mountain texture (with alpha). Mountain texture in alpha channel contains information about visibility of texture (such 0% level is fully visible and 100% is fully unvisible). Where you need grass to be placed write 0% in mountain alpha and if you want mountain, so place 100%. 50% will give you half visibility of two textures.
And so on...


Share this post


Link to post
Share on other sites