POV-Ray : Newsgroups : povray.advanced-users : stacked planes method Server Time
29 Jul 2024 14:12:31 EDT (-0400)
  stacked planes method (Message 1 to 10 of 15)  
Goto Latest 10 Messages Next 5 Messages >>>
From: cinder
Subject: stacked planes method
Date: 9 Mar 2002 02:19:05
Message: <3c89b769@news.povray.org>
sorry for my lack of knowledge what is the stacked planes method 
ive just started on this newsgroup would anyone mind telling or showing me 
what is this method
-- 
%segmentation fault


Post a reply to this message

From: Tim Nikias
Subject: Re: stacked planes method
Date: 9 Mar 2002 08:58:56
Message: <3C8A153C.4035A023@gmx.de>
Stacked-Planes is a simple method to create clouds.

Imagine taking a cloud, and cutting it into slices. Each
such slice is represented by a plane (or disc, something
2D) and given a texture with some areas totally transparent,
and others just a little.

By putting at least 20 planes spaced evenly somewhere
(like beginning at 20 Units high, going to 40, and placing
a hollow plane every unit using the same texture, but
applying the texture AFTER the plane is positioned),
you get something looking 3D, as long as you don't look
too close.
Oh, and don't forget to put double_illuminate into the
plane, it's needed for correct shading (when switched on,
sort of ignores inside/outside of objects)

Here's some code:

#declare Loop_Value=0;
#while (Loop_Value<20)
 plane{y,20+Loop_Value hollow
 pigment{bozo color_map{[0 rgbt <0,0,0,1>][.4 rgbt <0,0,0,1>][.5 rgbt
<1,1,1,.6>][1 rgbt <1,1,1,.6>]}}
 double_illuminate
}
#declare Loop_Value=Loop_Value+1;
#end

camera{location <0,1,0> look_at <0,10,30>}
light_source{<100,200,-500> rgb 1}

You can also have a look at my homepage. The newest image in my standards
gallery is entitled "Worldbowl", you'll find a ZIP and explanation File (both
sent
to the IRTC for this round) there. There's some more advanced coding and
texturing for the technique...

cinder wrote:

> sorry for my lack of knowledge what is the stacked planes method
> ive just started on this newsgroup would anyone mind telling or showing me
> what is this method
> --
> %segmentation fault

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html


Post a reply to this message

From: Peter Popov
Subject: Re: stacked planes method
Date: 9 Mar 2002 09:56:06
Message: <ftkj8u0t8vta1l6mv1mka9e6ecfglise63@4ax.com>
On Sat, 09 Mar 2002 02:14:49 -0500, cinder <cin### [at] yahoocom>
wrote:

>sorry for my lack of knowledge what is the stacked planes method 
>ive just started on this newsgroup would anyone mind telling or showing me 
>what is this method

It is a method used for modeling clouds and such in the 3.1 times. It
is now rather obsolete as the new media sampling methods in 3.5
provide for better and faster results.

Anyway, the idea is to stack a few (5, 10, 20... 100?) planes on top
of each other with a very small distance between then, then give them
the texture of your clouds. If the texture has transparent parts, and
the max_trace_level is high enough (number of planes + 1, at least),
and the visible distance between the planes is smaller than one pixel,
then the result looks volumetric.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Jan Walzer
Subject: Re: stacked planes method
Date: 9 Mar 2002 18:08:07
Message: <3c8a95d7@news.povray.org>
wasn't there someone who did some "cheap grass" with this method ? ...

anyway .. this could also be done with media ...


Post a reply to this message

From: cinder
Subject: Re: stacked planes method
Date: 10 Mar 2002 02:38:49
Message: <3c8b0d89@news.povray.org>
Tim Nikias wrote:

> Stacked-Planes is a simple method to create clouds.
> 
> Imagine taking a cloud, and cutting it into slices. Each
> such slice is represented by a plane (or disc, something
> 2D) and given a texture with some areas totally transparent,
> and others just a little.
> 
> By putting at least 20 planes spaced evenly somewhere
> (like beginning at 20 Units high, going to 40, and placing
> a hollow plane every unit using the same texture, but
> applying the texture AFTER the plane is positioned),
> you get something looking 3D, as long as you don't look
> too close.
> Oh, and don't forget to put double_illuminate into the
> plane, it's needed for correct shading (when switched on,
> sort of ignores inside/outside of objects)
> 
> Here's some code:
> 
> #declare Loop_Value=0;
> #while (Loop_Value<20)
>  plane{y,20+Loop_Value hollow
>  pigment{bozo color_map{[0 rgbt <0,0,0,1>][.4 rgbt <0,0,0,1>][.5 rgbt
> <1,1,1,.6>][1 rgbt <1,1,1,.6>]}}
>  double_illuminate
> }
> #declare Loop_Value=Loop_Value+1;
> #end
> 
> camera{location <0,1,0> look_at <0,10,30>}
> light_source{<100,200,-500> rgb 1}
> 
> You can also have a look at my homepage. The newest image in my standards
> gallery is entitled "Worldbowl", you'll find a ZIP and explanation File
> (both sent
> to the IRTC for this round) there. There's some more advanced coding and
> texturing for the technique...
> 
> cinder wrote:
> 
>> sorry for my lack of knowledge what is the stacked planes method
>> ive just started on this newsgroup would anyone mind telling or showing
>> me what is this method
>> --
>> %segmentation fault
> 
> --
> Tim Nikias
> Homepage: http://www.digitaltwilight.de/no_lights/index.html
awesome method gotta start using that

-- 
%segmentation fault


Post a reply to this message

From: cinder
Subject: Re: stacked planes method
Date: 10 Mar 2002 02:39:13
Message: <3c8b0da1@news.povray.org>
Jan Walzer wrote:

> wasn't there someone who did some "cheap grass" with this method ? ...
> 
> anyway .. this could also be done with media ...
how could this be done with media in 3.5

-- 
%segmentation fault


Post a reply to this message

From: cinder
Subject: Re: stacked planes method
Date: 10 Mar 2002 02:39:52
Message: <3c8b0dc8@news.povray.org>
Jan Walzer wrote:

> wasn't there someone who did some "cheap grass" with this method ? ...
> 
> anyway .. this could also be done with media ...
ive been more of a 3.1 person until recently
-- 
%segmentation fault


Post a reply to this message

From: Jan Walzer
Subject: Re: stacked planes method
Date: 10 Mar 2002 04:59:26
Message: <3c8b2e7e@news.povray.org>
http://news.povray.org/3bad3206%241%40news.povray.org


Post a reply to this message

From: Peter Popov
Subject: Re: stacked planes method
Date: 10 Mar 2002 05:43:12
Message: <rpdm8ugvcokjh05p8ljo9e97fopn3nuve2@4ax.com>
On Sun, 10 Mar 2002 02:35:32 -0500, cinder <cin### [at] yahoocom>
wrote:

>ive been more of a 3.1 person until recently

You could use media in 3.1 as well, however the only sampling method
available in 3.1 requires a lot of samples for smooth results. That's
why the stacked plane algorithm was invented (I think it was Jaime
Vives Piqueres who first used it, but I might be wrong). The new
sampling methods in 3.5 use an even distribution of samples, that is,
somewhat like stacked planes (if you could somehow make them always
perpendicular to the incoming ray :) ).


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Rune
Subject: Re: stacked planes method
Date: 10 Mar 2002 06:38:03
Message: <3c8b459b@news.povray.org>
"Jan Walzer" wrote:
> wasn't there someone who did some
> "cheap grass" with this method ? ...

Yes.

Image:
http://rsj.mobilixnet.dk/3d/include/fgrass.jpg

Include file:
http://rsj.mobilixnet.dk/3d/include/include.html

> anyway .. this could also be done with media ...

I have yet to see an image with media grass that even come close. Do you
have one?

Rune
--
3D images and anims, include files, tutorials and more:
Rune's World:    http://rsj.mobilixnet.dk (updated Feb 16)
POV-Ray Users:   http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Webring: http://webring.povray.co.uk


Post a reply to this message

Goto Latest 10 Messages Next 5 Messages >>>

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