POV-Ray : Newsgroups : povray.general : Sun, atmosphere, haze etc. : Re: Sun, atmosphere, haze etc. Server Time
30 Jul 2024 06:24:41 EDT (-0400)
  Re: Sun, atmosphere, haze etc.  
From: SharkD
Date: 26 Aug 2009 06:17:12
Message: <4a950ba8$1@news.povray.org>
I'm trying to scale the volumetric clouds (in particular the flat "cloud 
bank") found on this page:

http://www.geocities.com/evilsnack/tut01.htm

The Povray docs only briefly mention what you need to do in order to 
scale interior media. The example in the docs is for an emission media 
with no explicitly defined density map. The clouds script however is a 
scattering media with a density map (see below). Have I done things 
correctly?




#local Inc_Scale_Amount = Width;
#local Dec_Scale_Amount = sqrt(3) / vlength(Inc_Scale_Amount);

#local pigCloudBank = pigment
{
	average
	pigment_map {[1 planar][1 granite scale 50]}
}

box
{
	<-200,-2,-200>,<200,2,200>
	hollow
	texture {pigment {rgbt 1}}
	interior
	{
		media
		{
			scattering {1, 0.5 * Dec_Scale_Amount}
			method 3
//				samples 30, 100
			intervals 1
			density
			{
				pigment_pattern {pigCloudBank}
				density_map {[.6 rgb 0][.61 rgb 1]}
			}
		}
	}
	scale Inc_Scale_Amount
	translate y * Width * 8
}


Post a reply to this message

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