|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |