Getting colour of a texture pixel (basically heightmaps)

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

chunky

Uni bum
Mar 10, 2001
72
0
0
40
Canberra, Australia
I need to get the colour components of pixels from a certain texture given X and Y values. The texture is basically a heightmap. Does anyone know how?

Thanks for your time.
 

inio

many fauceted scarlet emerald
Feb 8, 2002
105
0
0
CA, USA
www.inio.org
um... I don't think this is possible directly. If you have control of the map file you could use the following method to get ONE channel though:

Make a little room away from the rest of the map. Place a terrain in it with the image that you want to extract the pixels from as it's height map. Now, to get the value at a point do a Trace() in that room pointing downward at the correct location.