POV-Ray : Newsgroups : povray.general : No pointlight atmospheric media interaction? : Re: No pointlight atmospheric media interaction? Server Time
10 Aug 2024 23:28:41 EDT (-0400)
  Re: No pointlight atmospheric media interaction?  
From: Jerome M  BERGER
Date: 6 Oct 1999 20:42:35
Message: <37FBEC6B.357CE6B5@enst.fr>
"Greg M. Johnson" wrote:
> 
> I cannot get a pointlight to interact with atmospheric media. What's up?
> 
> When I put a spotlight here, it looks cool.  The pointlight, however,
> doesn't do a thing....
> 
> light_source{<0.005,0.00081,0.00081>  color White*14
> media_interaction on}
>   /*
>   light_source {  <0,0,0>
>     color White*14
>     spotlight
>     radius 90
>     falloff 89//28
>     tightness 1
>     point_at x
> 
>   }
>     */
> media {                         //media scattering
>   intervals 10
>   scattering { 2, red 0.05 blue 0.001 green 0.02}
>   samples 1, 10
>   confidence 0.9999
>   variance 1/1000
>   ratio 0.9
> }

	Is there anything else in the scene besides the media and the light? If
not, that's because when you use a spotlight, the samples get
concentrated in the lighted cone so the effect is visible, whereas for a
pointlight they are distributed along the whole ray and if there's
nothing to stop it, the ray goes to infinity... (in fact that's why
rather than using atmospheric media, I usually use object media in a
very large container: it's easier to tune)

		Jerome

-- 
*******************************

* they'll tell you what can't * mailto:ber### [at] inamecom
* be done and why...          * http://www.enst.fr/~jberger
* Then do it.                 *
*******************************


Post a reply to this message

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