|
|
I always thought that the PHASE keyword for pigment patterns caused the pattern
to shift or move in a 'particular' direction-- for gradient x, to the right; for
gradient y, toward the top; for radial (on a cylinder), rotating clockwise (or
'to the left'.) But in v3.7.1 beta 9, it looks like it's shifting the patterns
in the opposite direction.
In the docs concerning 'phase', it says this (about the radial pattern--
applied to a tall cylinder, I assume):
"...In the example above if you render successive frames at phase 0 then phase
0.1, phase 0.2, etc. you could create an animation that rotates the stripes. The
same effect can be easily achieved by rotating the radial pigment using rotate
y*Angle..."
But PHASE actually rotates it in -y.
Try this code-- animate it for, say, 20 frames...
//------------
#version 3.71;
global_settings {assumed_gamma 1.0}
// perspective
camera {
perspective
location <.5, .5, -3>
look_at <.5, .5, 0>
right x*image_width/image_height // aspect
angle 67
}
box{0, <1,1,0>
texture{
pigment{
gradient x // or gradient y
frequency 2
phase 0 + clock
}
finish{ambient 0 emission 1 diffuse 0}
}
translate -1*x
}
cylinder{0,1*y .4
texture{
pigment{
radial
frequency 10
phase 0 + clock
// OR...
//rotate 90*clock*y
color_map{
[0.5 rgb <1,0,0>]
[0.5 rgb 1]
}
}
finish{ambient 0 emission 1 diffuse 0}
}
translate 1*x
}
Post a reply to this message
|
|