PDA

View Full Version : Getting the colour of a texture pixel (basically heightmaps)?



legacy-Chunky
09-30-2003, 02:51 AM
I need to get the colour components of pixels from a certain texture given X and Y values (one component would be sufficient). The texture is basically a heightmap. Does anyone know how?

Someone has suggested making a small terrain from a heihtmap and reading the height values but its not very practical.


(Yes this is cross-posted from the other forum, but i wasn't having any luck over there...)

legacy-[HJ]-RedRaven
10-07-2003, 03:05 AM
Need more information:

Are you jusrt creating terrain? Or triggering an effect / event off a range of values in the heightmap? ie damaging a player who walks above a certain 'altitude'?

legacy-Chunky
10-08-2003, 06:41 AM
B) triggering an effect / event off a range of values in the heightmap.

It needs to be independent of the map though.

I've managed to do what i was trying to do without heightmaps, but its not very accurate (basically checking if the actor is in the radius of certain points). So I can get by without an answer, although it would be useful i'm sure.