PDA

View Full Version : How to make a bitmap as the data of texture



mast
09-01-2001, 01:08 AM
I want to make such a scene :the sky is above,and terrain is below, a plane fly in the middle,when the plane is moving,the terrain change accordingly.
Now I want to know how can I make a bitmap become the texture of terrain .
Any helps will be cordially appreciated.

Rob The Bloke
09-01-2001, 07:37 AM
You need to load the texture file up, there is a fair amount of code available to see how this is done (nehe website is just one)

Once you have the texture you need to be able to apply the texture to the terrain. This involves specifying the texturing co-ords and binding the texture.

You could do stuff like use multitexturing and use the height of the terrain to apply things like snowy peaks etc.... However I may have missed the point of your post, so just ask some more specific questions if I have.....

[This message has been edited by Rob The Bloke (edited 09-01-2001).]