|
![](/i/fill.gif) |
Felix Wiemann wrote:
> marabou wrote:
>
>> i have tried it now with six planes and one plane made hollow. but then
>> fog is gone. why that?
>
> Could you post an example scene? Where are those six planes?
here they are.
//------------------------------code starts
#include "colors.inc"
// POV3.1
global_settings{
ambient_light 2
radiosity{
gray_threshold 0.3
}
}
//--wish arealights? jitter? diffuse? turn it on!
#declare AreaOn = 1;
#declare Foggy = 1;
#declare goSpot = 0; //spotlight?
//------------------------------------------------------------------------->>>macros
//-------------------------------------------------------------------------<<<macros
camera{ location <0,1.7,-2.8> look_at <0,1.5,0>}
#if (!goSpot)
light_source{
<-1,2,-1> color <1,0.92,0.43>
#if (AreaOn)
area_light <-2,0,-2>,<2,0,2>,4,4
adaptive 1
jitter
#end
}
#end
plane{
y,0
pigment{
color <50,80,108>/255
}
}
plane{
y,3
pigment{
color White
}
}
plane{
z,2
pigment{
color White*2
}
}
plane{
z,-4
pigment{
color White
}
}
plane{
x,-2
pigment{
color <255,204,109>/255
}
}
plane{
x,2
pigment{
color <109,179,255>/255
}
}
#if (Foggy)
fog{
distance 3
color <255,246,186>/255
fog_type 2
fog_offset 1
fog_alt 0.2
turbulence 0.6
turb_depth 0.2
}
#end
//------------------------------code ends
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
marabou wrote:
> [...]
>
> camera{ location <0,1.7,-2.8> look_at <0,1.5,0>}
>
> [...]
>
> plane{
> y,3
> pigment{
> color White
> }
> }
The camera is inside this plane!
If you have a look at the messages (which is actually always a good idea)
you'll see something like this:
Warning: Camera is inside a non-hollow object. Media and fog may not work
as expected.
Btw, please post the shortest example that is neccesary to show the problem
next time. This also often helps to find the mistake oneself.
--
Felix Wiemann
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
Felix Wiemann wrote:
>
> Btw, please post the shortest example that is neccesary to show the
> problem next time. This also often helps to find the mistake oneself.
Felix Wiemann wrote:
>
>Could you post an example scene? Where are those six planes?
you wanted six planes. you got six planes, a camera and fog. i am not
member of the shortest code contest ;)
if you look at p.b.images, headline: fog and light, you can see i have
solved it yet.
but do not know since then and now why the top, bottom, back and right
plane have to be hollowed. and not the left and front plane. this is not
logical to me. is there a better way to solve it? maybe a shorter code?
suggestions welcome.
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
marabou wrote:
> but do not know since then and now why the top, bottom, back and right
> plane have to be hollowed. and not the left and front plane. this is not
> logical to me. is there a better way to solve it? maybe a shorter code?
> suggestions welcome.
Just change the normals so that the camera is not "inside" the plane. You
really have to get familiar with this inside-outside concept.
--
Felix Wiemann
Post a reply to this message
|
![](/i/fill.gif) |