POV-Ray : Newsgroups : povray.general : 24 bit heightfields : Re: 24 bit heightfields Server Time
30 Jul 2024 14:18:14 EDT (-0400)
  Re: 24 bit heightfields  
From: SharkD
Date: 11 Dec 2008 16:55:01
Message: <web.49418c0e869f689f1c3f45200@news.povray.org>
"SharkD" <nomail@nomail> wrote:
> "clipka" <nomail@nomail> wrote:
> > 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.
>
> I don't quite understand your math. If red, green and blue all range from 0 to
> 1, then the maximum possible height is 3. The maximum height of heightfields is
> 1.
>
> -Mike

Errr... I meant, "the maximum possible height is greater than 1", not 3.

-Mike


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.