POV-Ray : Newsgroups : povray.advanced-users : Air disruption question : Re: Air disruption question Server Time
30 Jul 2024 08:28:44 EDT (-0400)
  Re: Air disruption question  
From: Bob Hughes
Date: 31 May 2000 20:05:43
Message: <3935a8d7@news.povray.org>
"Margus Ramst" <mar### [at] peakeduee> wrote in message
news:39357143.E4A3D7E7@peak.edu.ee...
| Jan Walzer wrote:
| >
| > I thought the media-code could be used for that, just instead of calculating
| > the color of the "current particle" change the direction-vector of the
| > traced ray ???
|
| Well, I am no coder. But if I understand correctly how media works, the problem
| is as follows:
| To calculate the color of media along a particular ray, first the points are
| found where the ray enters and exits the object. Between these points the ray is
| divided into a specified number of intervals, and a (variable) number of samples
| is taken within each interval.
| This method relies upon the ray traversing the volume in a straight line, from
| enter to exit. You can probably see why this wouldn't work if the ray were to
| curve in an (unpredictable) manner.

I was thinking the refractions were most probably done simply by angling the rays
according to surface geometry, so basically no curvatures of the rays themselves only
straight lines, albeit turned from original directions.  Where curvature comes in,
seems
to me, would be the implementation of this whole idea about variable ior where these
lines of rays would be continously rerouted through the interiors of objects.

Bob


Post a reply to this message

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