POV-Ray : Newsgroups : povray.general : Making Clouds : Re: Making Clouds Server Time
19 Nov 2024 18:05:16 EST (-0500)
  Re: Making Clouds  
From: Zeger Knaepen
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

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