|
|
Christoph Hormann wrote:
>
>Abe wrote:
>>
>> [...]
>>
>> I busted my head over this one too for a while. I ended up using TGA's of
>> the 16-bit-for-height_field flavor and extracting the MSB and LSB by
>>
>> function{pigment_foo(x,y,z).red+pigment_foo(x,y,z).green/256}
>>
>> which is probably where you are almost at anyway.
>
>Note this is probably an extremely bad idea since it does not work with
>interpolation and using not interpolated image maps will result in
>infinite gradients in the function.
>
>Christoph
>
>POV-Ray tutorials, include files, Sim-POV,
>HCR-Edit and more: http://www.tu-bs.de/~y0013390/
>Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______
>
Ouch! I missed the implications of interpolating before extracting MSB and
LSB. But then I was doing landscapes and the extra wrinkles were not that
apparent. (I would call it "a bad idea" instead of "an extemely bad" one,
since it
sort-of-sometimes-under-certain-circumstances-when-the-moon-is-in-the-righ-phase
works ;))
Is the correct answer then to build a 16 bit function_image from a non
interpolated image_map and interpolate that?
--
Abe
============
http://www2.taconic.net/bullfrog/sky
============
Post a reply to this message
|
|