POV-Ray : Newsgroups : povray.general : fog without background Server Time
19 Nov 2024 01:32:22 EST (-0500)
  fog without background (Message 1 to 10 of 15)  
Goto Latest 10 Messages Next 5 Messages >>>
From: marabou
Subject: fog without background
Date: 30 Jun 2002 11:36:08
Message: <3d1f2568@news.povray.org>
hello,

when i want to include fog into a scene i get following problem:
fog needs the background word. it is okay. but if i add a plane on z-axis 
no fog will be rendered. it is bad, because i want to use ground fog in a 
room. is there a solution for it?

thanks in advance.


Post a reply to this message

From: Ben Chambers
Subject: Re: fog without background
Date: 30 Jun 2002 11:38:36
Message: <3d1f25fc@news.povray.org>
"marabou" <not### [at] availablenet> wrote in message
news:3d1f2568@news.povray.org...
>
> hello,
>
> when i want to include fog into a scene i get following problem:
> fog needs the background word. it is okay. but if i add a plane on z-axis
> no fog will be rendered. it is bad, because i want to use ground fog in a
> room. is there a solution for it?
>
> thanks in advance.


Add this to your scene:

sphere {
    0,10000 // Adjust radius for scale of scene
    pigment {color rgb 0}
    hollow
}

...Chambers


Post a reply to this message

From: marabou
Subject: Re: fog without background
Date: 30 Jun 2002 11:54:55
Message: <3d1f29cf@news.povray.org>
Ben Chambers wrote:

> 
> Add this to your scene:
> 
> sphere {
>     0,10000 // Adjust radius for scale of scene
>     pigment {color rgb 0}
>     hollow
> }
> 

this is my code framgment and every combination brings no soulution. what 
went wrong?


//----------------------------------------->>>code fragment
#declare Spere = 1;
#declare Spere = ?;
#declare Background = ?;

camera{ location <0.25,0.6,-1> look_at <0.25,0.2,0>}

light_source{
        <-1,5,-1> color <1,0.92,0.43>
}

light_source{
        <2,2,0.5> color White*0.5
}

plane{
        y,0
        pigment{
                color <1,1,1>
        }
        normal{
                wrinkles 0.8
        }
}


plane{
        z,-3
        pigment{
                color <0.16,0.63,1>
        }
}

#if (Plane)
plane{
        z,1
        pigment{
                color <1,0.80,0.42>
        }
}
#end

#if (Sphere)
sphere{
        0,10000
        pigment{color rgb 0}
        hollow
}
#end

#if (Background)
        background {color Blue}
#end

fog{
        distance 0.7
        fog_type 2
        fog_offset 0.15
        fog_alt 0.05
        color <1,1,1>
}
//-----------------------------------------<<<code fragment


Post a reply to this message

From: Slime
Subject: Re: fog without background
Date: 30 Jun 2002 12:22:31
Message: <3d1f3047@news.povray.org>
> when i want to include fog into a scene i get following problem:
> fog needs the background word. it is okay. but if i add a plane on z-axis
> no fog will be rendered. it is bad, because i want to use ground fog in a
> room. is there a solution for it?


You need to make the plane you mentioned hollow, so that it can contain fog.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

From: marabou
Subject: Re: fog without background
Date: 30 Jun 2002 12:38:07
Message: <3d1f33ee@news.povray.org>
Slime wrote:

> 
> You need to make the plane you mentioned hollow, so that it can contain
> fog.
> 

this works great! but question: which side of a plane becomes hollow; where 
camera is positionated or where point 0 is?


Post a reply to this message

From: Warp
Subject: Re: fog without background
Date: 30 Jun 2002 12:57:49
Message: <3d1f388d@news.povray.org>
marabou <not### [at] availablenet> wrote:
>> You need to make the plane you mentioned hollow, so that it can contain
>> fog.

> this works great!

  But it's a kind-of wrong solution. You are defining your plane so that
everything is inside the plane, that is, you are looking at the inner
surface of the plane. You probably want to look at the outher surface of
the plane, and everything should be outside the plane (including the fog).
  That is, you have to reverse the normal and negate the offset.

> but question: which side of a plane becomes hollow; where 
> camera is positionated or where point 0 is?

  The normal points outside the plane. The other side is inside.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Jan Walzer
Subject: Re: fog without background
Date: 30 Jun 2002 19:00:25
Message: <3d1f8d89@news.povray.org>
Warp wrote:
>   The normal points outside the plane. The other side is inside.

Just a question, to confim myself:
Is this described in this way in the doc ?

I found myself a alot of times in this situation ...


Post a reply to this message

From: Christopher James Huff
Subject: Re: fog without background
Date: 30 Jun 2002 22:13:36
Message: <pan.2002.06.30.21.10.41.866879.777@mac.com>
On Sun, 30 Jun 2002 19:00:10 -0500, Jan Walzer wrote:

> Just a question, to confim myself:
> Is this described in this way in the doc ?
> 
> I found myself a alot of times in this situation ...

"By definition the normal vector points to the outside of the plane..."


-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: <chr### [at] tagpovrayorg>
WWW: http://homepage.mac.com/chrishuff/


Post a reply to this message

From: Jan Walzer
Subject: Re: fog without background
Date: 1 Jul 2002 02:14:41
Message: <3d1ff351$1@news.povray.org>
shame on me

;)


Post a reply to this message

From: marabou
Subject: Re: fog without background
Date: 1 Jul 2002 05:09:33
Message: <3d201c4d@news.povray.org>
Slime wrote:

>> when i want to include fog into a scene i get following problem:
>> fog needs the background word. it is okay. but if i add a plane on z-axis
>> no fog will be rendered. it is bad, because i want to use ground fog in a
>> room. is there a solution for it?
> 
> 
> You need to make the plane you mentioned hollow, so that it can contain
> fog.
> 

i have tried it now with six planes and one plane made hollow. but then fog 
is gone. why that?


Post a reply to this message

Goto Latest 10 Messages Next 5 Messages >>>

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