POV-Ray : Newsgroups : povray.general : Making Clouds Server Time
6 Aug 2024 16:58:44 EDT (-0400)
  Making Clouds (Message 1 to 10 of 18)  
Goto Latest 10 Messages Next 8 Messages >>>
From: Mitchell Waite
Subject: Making Clouds
Date: 28 Jan 2002 13:01:02
Message: <3c5591de@news.povray.org>
Can anyone point me in a direction for making clouds, not the kind that are
painted on a surface with a texture map but rather a three dimensional
floating cloud that has the characteristics of a real cloud. I want to float
one over my terrain sculpture.

thanks

Mitch


Post a reply to this message

From:
Subject: Re: Making Clouds
Date: 28 Jan 2002 13:14:07
Message: <0t4b5u8qghn3m9hr2ldeuc5124lshg7m1i@4ax.com>
On Mon, 28 Jan 2002 10:03:38 -0800, "Mitchell Waite" <mit### [at] dnaicom> wrote:
> Can anyone point me in a direction for making clouds, not the kind that are
> painted on a surface with a texture map but rather a three dimensional
> floating cloud that has the characteristics of a real cloud. I want to float
> one over my terrain sculpture.

http://news.povray.org/search/?s=cloud
http://www.povray.org/cgi-bin/htsearch?words=cloud
http://www.irtc.org/cgi-bin/htsearch?words=cloud
http://news.povray.org/3889782D.B530971F%40pacbell.net

ABX


Post a reply to this message

From: anto matkovic
Subject: Re: Making Clouds
Date: 28 Jan 2002 13:52:09
Message: <3c559dd9@news.povray.org>
There is a 'minipatch test.pov' file in MegaPOV demos, under 'media' folder.
This producing 3d clouds with shadows (to itself, also), and it's relative
fast.

Anto
ant### [at] matkoviccom
http://matkovic.com/anto


"Mitchell Waite" <mit### [at] dnaicom> wrote in message
news:3c5591de@news.povray.org...
> Can anyone point me in a direction for making clouds, not the kind that
are
> painted on a surface with a texture map but rather a three dimensional
> floating cloud that has the characteristics of a real cloud. I want to
float
> one over my terrain sculpture.
>
> thanks
>
> Mitch
>
>


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Making Clouds
Date: 28 Jan 2002 14:26:49
Message: <3c55a5f9$1@news.povray.org>
On my site (Tutorials->POV-Ray->Tips and Tricks) I explain how to make not too slow
but
good looking clouds.

cu!
--
camera{location-z*3}#macro G(b,e)b+(e-b)*(C/50)#end#macro L(b,e,k,l)#local C=0
;#while(C<50)sphere{G(b,e),.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1
;#end#end L(y-x,y,x,x+y)L(y,-x-y,x+y,y)L(-x-y,-y,y,y+z)L(-y,y,y+z,x+y)L(0,x+y,
<.5,1,.5>,x)L(0,x-y,<.5,1,.5>,x)               // ZK http://www.povplace.be.tf


Post a reply to this message

From: Mitchell Waite
Subject: Re: Making Clouds
Date: 28 Jan 2002 16:31:12
Message: <3c55c320$1@news.povray.org>
Thanks for the references, I spent some time looking through them, but I
could not find any simple cloud pov files. Most where really really
complicated. What I would like to find is something easy to work with.

Mitch


news:0t4b5u8qghn3m9hr2ldeuc5124lshg7m1i@4ax.com...
> On Mon, 28 Jan 2002 10:03:38 -0800, "Mitchell Waite" <mit### [at] dnaicom>
wrote:
> > Can anyone point me in a direction for making clouds, not the kind that
are
> > painted on a surface with a texture map but rather a three dimensional
> > floating cloud that has the characteristics of a real cloud. I want to
float
> > one over my terrain sculpture.
>
> http://news.povray.org/search/?s=cloud
> http://www.povray.org/cgi-bin/htsearch?words=cloud
> http://www.irtc.org/cgi-bin/htsearch?words=cloud
> http://news.povray.org/3889782D.B530971F%40pacbell.net
>
> ABX


Post a reply to this message

From: Mitchell Waite
Subject: Re: Making Clouds
Date: 28 Jan 2002 16:36:37
Message: <3c55c465$1@news.povray.org>
Thanks Zeger!

That looks like it may work but when I run the Cloud POV Ray file in 3.5 I
get a black background and no cloud. Is there something I might be doing
wrong. I see a reference to something called superpatch but don't know what
that is.

"Zeger Knaepen" <zeg### [at] studentkuleuvenacbe> wrote in message
news:3c55a5f9$1@news.povray.org...
> On my site (Tutorials->POV-Ray->Tips and Tricks) I explain how to make not
too slow but
> good looking clouds.
>
> cu!
> --
> camera{location-z*3}#macro G(b,e)b+(e-b)*(C/50)#end#macro L(b,e,k,l)#local
C=0
> ;#while(C<50)sphere{G(b,e),.1pigment{rgb G(k,l)}finish{ambient 1}}#local
C=C+1
> ;#end#end
L(y-x,y,x,x+y)L(y,-x-y,x+y,y)L(-x-y,-y,y,y+z)L(-y,y,y+z,x+y)L(0,x+y,
> <.5,1,.5>,x)L(0,x-y,<.5,1,.5>,x)               // ZK
http://www.povplace.be.tf
>
>


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Making Clouds
Date: 28 Jan 2002 19:29:50
Message: <3c55ecfe@news.povray.org>
> That looks like it may work but when I run the Cloud POV Ray file in 3.5 I
> get a black background and no cloud. Is there something I might be doing
> wrong. I see a reference to something called superpatch but don't know what
> that is.
The Superpatch is more or less an old version of MegaPov.
If POV-Ray didn't halt on the double_illuminate keyword, the problem is probably the
max_trace_level.
Add this at the end of your POV-file:
//start code
global_settings {
    max_trac_level 50  //should be enough
}
//end code
The problem is that the code uses 10 layers of clouds and the default max_trace_level
is
less than 10, so you couldn't look through the last couple of layers.

Oh, and don't forget to add a light_source outside of the clouds (inside would work
also,
but the results will be less realistic).

cu!
--
camera{location-z*3}#macro G(b,e)b+(e-b)*(C/50)#end#macro L(b,e,k,l)#local C=0
;#while(C<50)sphere{G(b,e),.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1
;#end#end L(y-x,y,x,x+y)L(y,-x-y,x+y,y)L(-x-y,-y,y,y+z)L(-y,y,y+z,x+y)L(0,x+y,
<.5,1,.5>,x)L(0,x-y,<.5,1,.5>,x)               // ZK http://www.povplace.be.tf


Post a reply to this message

From: Mitchell Waite
Subject: Re: Making Clouds
Date: 28 Jan 2002 19:38:49
Message: <3c55ef19@news.povray.org>
Zeger:

Ah nothing like a little light source to make things visible :)
That definitly helped. I also did need the max_trace_level.
Now my next request...can you explain a) how this works and b) can I make it
work in Moray?

Mitch


"Zeger Knaepen" <zeg### [at] studentkuleuvenacbe> wrote in message
news:3c55ecfe@news.povray.org...
> > That looks like it may work but when I run the Cloud POV Ray file in 3.5
I
> > get a black background and no cloud. Is there something I might be doing
> > wrong. I see a reference to something called superpatch but don't know
what
> > that is.
> The Superpatch is more or less an old version of MegaPov.
> If POV-Ray didn't halt on the double_illuminate keyword, the problem is
probably the
> max_trace_level.
> Add this at the end of your POV-file:
> //start code
> global_settings {
>     max_trac_level 50  //should be enough
> }
> //end code
> The problem is that the code uses 10 layers of clouds and the default
max_trace_level is
> less than 10, so you couldn't look through the last couple of layers.
>
> Oh, and don't forget to add a light_source outside of the clouds (inside
would work also,
> but the results will be less realistic).
>
> cu!
> --
> camera{location-z*3}#macro G(b,e)b+(e-b)*(C/50)#end#macro L(b,e,k,l)#local
C=0
> ;#while(C<50)sphere{G(b,e),.1pigment{rgb G(k,l)}finish{ambient 1}}#local
C=C+1
> ;#end#end
L(y-x,y,x,x+y)L(y,-x-y,x+y,y)L(-x-y,-y,y,y+z)L(-y,y,y+z,x+y)L(0,x+y,
> <.5,1,.5>,x)L(0,x-y,<.5,1,.5>,x)               // ZK
http://www.povplace.be.tf
>
>


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Making Clouds
Date: 28 Jan 2002 20:06:30
Message: <3c55f596$1@news.povray.org>
> Ah nothing like a little light source to make things visible :)
> That definitly helped. I also did need the max_trace_level.
:)

> Now my next request...can you explain a) how this works and b) can I make it
> work in Moray?
a) I'll try to explain it, although I'm not really good at explaining things :)
Ok, let's start with 1 layer.  What you get is just a shaded, partially transparent
sphere, with a cloud-pattern on it.  Most of the light just falls through it, because
even
the least transparent parts of the layer still are transparent.  Now add a second
layer.
The light that passes through the first sphere (we see the shading of the sphere from
the
inside because of the double_illuminate modifier) now illuminates the second sphere.
But
the first layer casts a cloud-shaped shadow on the second layer (because of the used
pattern).
Now by adding more layers, we get a cloud-pattern with light edges and darker parts
where
the clouds are.  More or less.

b) I don't know, I haven't used Moray for 2 years. But it will work if you can set
double_illuminate from within Moray.  But it's not easy to switch between the number
of
layers with Moray.  I would make an inc-file with the clouds and include it in your
Moray-scene.

cu!
--
camera{location-z*3}#macro G(b,e)b+(e-b)*(C/50)#end#macro L(b,e,k,l)#local C=0
;#while(C<50)sphere{G(b,e),.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1
;#end#end L(y-x,y,x,x+y)L(y,-x-y,x+y,y)L(-x-y,-y,y,y+z)L(-y,y,y+z,x+y)L(0,x+y,
<.5,1,.5>,x)L(0,x-y,<.5,1,.5>,x)               // ZK http://www.povplace.be.tf


Post a reply to this message

From: Mitchell Waite
Subject: Re: Making Clouds
Date: 28 Jan 2002 21:41:52
Message: <3c560bf0$1@news.povray.org>
Zeger your explaining is fine. Only thing is what the heck is double
illuminate flag mean. There is no explaination of it in the povray 3.5 docs.
So the sphere are successively smaller and smaller and in a union. In the
code below the while statment leads to 10 spheres right? I am not really
using animation am I as I just see one frame get rendered. So the first
sphere is scale 125 + 0, the second is 125 + 1/10, the third is 124 "+ /10
and so on so they are really close together. Seems that I could put 10
spheres inside eachother in Moray but not sure how to get the double
illuminate part to work. The pigment could be a material couldn't it, since
there is nothing changing in the while loop? Excuse me if I seem slow
figuring this out.

thanks

Mitch

            #declare c=clock;
            #declare mc=1;

            #declare Min_fil=.6;
            #declare Diffuse=1.5;
            union {
                #declare Layers=10;
                #declare Count=0;
                #while (Count<Layers)
                    #declare T=Count/Layers;
                    sphere {
                        0,1
                        scale 125+T*5
                        double_illuminate
                    }
                    #declare Count=Count+1;
                #end
                hollow
                pigment {
                    average
                    pigment_map {
                        [mc-c
                         bozo
                         color_map {
                             [.6 rgbt 1]
                             [1 rgbt <1,1,1,Min_fil>]
                         }
                         turbulence 1  octaves 4 lambda 3
                         translate c*.1
                         scale 30
                        ]
                        [c
                         bozo
                         color_map {
                             [.6 rgbt 1]
                             [1 rgbt <1,1,1,Min_fil>]
                         }
                         turbulence 1  octaves 4 lambda 3
                         translate (c-mc)*.1
                         scale 30
                        ]
                    }
                }
                finish {ambient .1 diffuse Diffuse}
                translate -y*100
            }
            background {rgb <.5,.6,.8>}

            // create a regular point light source
              light_source {
             0*x                  // light's position (translated below)
             color rgb <1,1,1>    // light's color
             translate <-20, 40, -20>
             }


            global_settings {
            max_trace_level 50  //should be enough
            }

"Zeger Knaepen" <zeg### [at] studentkuleuvenacbe> wrote in message
news:3c55f596$1@news.povray.org...
> > Ah nothing like a little light source to make things visible :)
> > That definitly helped. I also did need the max_trace_level.
> :)
>
> > Now my next request...can you explain a) how this works and b) can I
make it
> > work in Moray?
> a) I'll try to explain it, although I'm not really good at explaining
things :)
> Ok, let's start with 1 layer.  What you get is just a shaded, partially
transparent
> sphere, with a cloud-pattern on it.  Most of the light just falls through
it, because even
> the least transparent parts of the layer still are transparent.  Now add a
second layer.
> The light that passes through the first sphere (we see the shading of the
sphere from the
> inside because of the double_illuminate modifier) now illuminates the
second sphere. But
> the first layer casts a cloud-shaped shadow on the second layer (because
of the used
> pattern).
> Now by adding more layers, we get a cloud-pattern with light edges and
darker parts where
> the clouds are.  More or less.
>
> b) I don't know, I haven't used Moray for 2 years. But it will work if you
can set
> double_illuminate from within Moray.  But it's not easy to switch between
the number of
> layers with Moray.  I would make an inc-file with the clouds and include
it in your
> Moray-scene.
>
> cu!
> --
> camera{location-z*3}#macro G(b,e)b+(e-b)*(C/50)#end#macro L(b,e,k,l)#local
C=0
> ;#while(C<50)sphere{G(b,e),.1pigment{rgb G(k,l)}finish{ambient 1}}#local
C=C+1
> ;#end#end
L(y-x,y,x,x+y)L(y,-x-y,x+y,y)L(-x-y,-y,y,y+z)L(-y,y,y+z,x+y)L(0,x+y,
> <.5,1,.5>,x)L(0,x-y,<.5,1,.5>,x)               // ZK
http://www.povplace.be.tf
>
>


Post a reply to this message

Goto Latest 10 Messages Next 8 Messages >>>

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