Dear Povray experts
For my application of POV-ray I need to extract the travelled distance for all
rays falling in the camera. I have tried to extract the distance by making use
of the attenuation equation given in the manual as
Attenuation = 1 / (1 + (distance/fade_distance)^fade_power)
My idea was to take a blue and a red light source, one without any fading and
the other with a fade_power and fade_distance
The ratio between Red and Blue intensity should give me the attenuation, from
which I can then derive the travelled distance of each ray.
This work wonderfully well in case the fade_distance is equal to the look_to
point of the camera. However, for all shorter and longer distances the trick
does not work and does not give good results.
My question is: is there an other way to get the distance from the travelled
rays? Can I extract the distance variable for instance ? It should be there
because the attenuation euqation makes use of it.
any hints appreciated.
Many thinks
Eelco
Post a reply to this message
|