POV-Ray : Newsgroups : povray.advanced-users : Travelled distance rays : Travelled distance rays Server Time
16 May 2024 09:44:01 EDT (-0400)
  Travelled distance rays  
From: eelcovv
Date: 20 Feb 2015 10:20:00
Message: <web.54e7500efb0988fd4c84688d0@news.povray.org>
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

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