|
![](/i/fill.gif) |
The water is contained within an object called Tank; I'm simply trying to
create motion surface for a more realistic fish tank animation. Right now
the tank is the size of a 10 gallon, (20, 12, 10) with a glass thickness of
0.25 (Thus the Inner and Outer Width, Depth, and Height) Here's the SDL:
// Water motion
#declare f_mwaves = function {
pattern {
waves
phase clock
}
}
#declare Water = intersection {
#declare Min_factor = 0.6;
isosurface {
function { y - f_mwaves(x, 0, z) }
contained_by { box { -.5 * TankInnerWidth, .5 *
TankInnerWidth } }
//evaluate 1.939*Min_factor,
sqrt(1.939/(1.939*Min_factor)), 0.7
translate y * (TankInnerHeight - 1)
}
box {
<-(.5 * TankInnerWidth), TankThickness, -(.5 *
TankInnerDepth)>
<(.5 * TankInnerWidth), (TankOuterHeight + .1), (.5 *
TankInnerDepth)>
}
texture {
pigment{ rgbf 1 }
finish {
reflection {0.3, 1 fresnel}
conserve_energy
ambient 0
diffuse 0
}
}
interior {
ior 1.33
media { absorption <.3, .4, .7> }
}
hollow off
}
I was playing with evaluate for the max_gradient problem, but it didn't fix
it so I commented it out.
"Florian Brucker" <tor### [at] torfbold com> wrote in message
news:413ae501$1@news.povray.org...
> Did you make sure your max_gradient is set high enough (check for
> warning messages in the message window) and that your waves do not get
> bigger than the container (so that they are cut)?
>
> HTH,
> Florian
> --
> Give a man a fish; you have fed him for today.
> Teach a man to fish; and you have fed him for a lifetime.
> Teach a man to sell fish and he eats steak. (Author unknown)
> [------------ http://www.torfbold.com - POV-Ray gallery ------------]
Post a reply to this message
|
![](/i/fill.gif) |