|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |