|
![](/i/fill.gif) |
"SharkD" <nomail@nomail> wrote:
> I generated the following heightfield in some program or other. It uses all 24
> bits for elevation information. My question is, how are the colors/height data
> organized? I would like to create a pigment that produces similar maps.
>
> http://i421.photobucket.com/albums/pp292/SharkD2161/Support/Untitled1_hf.png
it's not very easy to tell, given the low resolution - but it is quite obvious
that the red channel is most significant. So I'd guess that the height is coded
as:
height = red + (green/256.0) + (blue/65536.0)
with red, green, blue and height all ranging from 0.0 to 1.0.
Post a reply to this message
|
![](/i/fill.gif) |