POV-Ray : Newsgroups : povray.newusers : fog-in-a-box? : Re: fog-in-a-box? Server Time
28 Jul 2024 22:28:28 EDT (-0400)
  Re: fog-in-a-box?  
From: Samuel Benge
Date: 1 Aug 2007 17:52:02
Message: <46b10082@news.povray.org>
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


Post a reply to this message

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