POV-Ray : Newsgroups : povray.advanced-users : Air disruption question : Re: Air disruption question Server Time
30 Jul 2024 08:22:10 EDT (-0400)
  Re: Air disruption question  
From: Jan Walzer
Date: 1 Jun 2000 04:48:47
Message: <3936236f@news.povray.org>
> > 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.
Yes ... I think this is the way it's working, but
<experiment>
Lets have N intervals
If we say the ray is in the 1st interval on his way. Then we find a new
opt_density value in the media. Now lets bend the ray to the new direction.
By using the new directionvector we could determine two other points, where
(our new) ray intersects. The line between these both could be split again
in N intervals and we only look on the 2nd Point there on. Now we find a new
value and so on ...
Yes, I think this could be way it could be working, but the result will
hardly depend on N. For low N and a very small scaled or high turbulenced
Media it may create rather very obscure things... Sure, the best way would
be, to integrate about the ray, but I think the idea is there, (maybe in
POV4 *g*)
</experiment>

I'll try to find the old discussion about this in my newsreader and think
about it ...
Currently I've not a real Idea of Coding in C so I can't try it on myself,
but maybe someday ...

--

 ,',    Jan Walzer      \V/  http://wa.lzer.net     ,',
',','   student of      >|<  mailto:jan### [at] lzernet ',','
  '   ComputerScience   /A\  +49-177-7403863         '


Post a reply to this message

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