0

I am trying to read a coloured heightmap specifically there one found here into a set of coordinates for use in a triangle mesh. The problem is I don't know how to exactly convert the Argb values to a height scale from 0-255. Thanks in advance!

1 Answers1

0

Dind't know you exactly implementation but... I think you can get an idea from this:

rgb = 65536 * r + 256 * g + b;

Hope it helps.

J. Lorenzo
  • 151
  • 1
  • 7