Skip to main content
gamedev.net
🔒 Locked

Dynamic texturing?

Started by JnZ Oct 24, 2001 at 5:03 AM 0 replies 700+ views
Original Post
JnZ
JnZ
How to change the terrains texture dynamicly by the heightmap. And changing the height in the game like in Populous?
fisher
fisher
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...


(f) Fisher

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.