POV-Ray : Newsgroups : povray.newusers : fog-in-a-box? : Re: fog-in-a-box? Server Time
28 Jul 2024 22:17:56 EDT (-0400)
  Re: fog-in-a-box?  
From: Alain
Date: 1 Aug 2007 19:35:49
Message: <46b118d5@news.povray.org>
Samuel Benge nous apporta ses lumieres en ce 2007/08/01 17:52:
> Folkert van Heusden wrote:
>> Hi,
>>
>> Would it be possible to somehow create fog-in-a-box?
> 
> Yes, it is indeed possible, and you will get effects unlike those which 
>  media or attenuation produce. This code works:
> 
> //**********************
> fog{rgb 1 distance 4 }
> 
> box{<-5,-4,-5>,<5,4,5>
>  pigment{rgbt 1}
>  inverse
>  rotate y*25
> }
> //**********************
> 
> If you want fog in the rest of your scene, some complex csg operations 
> will be needed.
> 
> Hope it helps~
> 
> ~Sam
Only work if the camera is inside the box. If the camera is outside, you must 
use a difference with the box and another object around the camera. That object 
must have texture{color{rgbt 1}finish{ambient 0 diffuse 0}}.

-- 
Alain
-------------------------------------------------
I bet exercise equipment would be a lot more
expensive if we had evolved from starfish.


Post a reply to this message

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