|
 |
Attached is a derivative of one of my recent testing animations for the
bump_map{} updates.
The set up is simple. It relies on one of two long undocumented features
shipped with POV-Ray in 'offset' (called 'ii_offset' in the yuqk fork).
With it one can start an image outside of the usual <0,0> to <1,1>
square image area variously mapped onto surfaces - and with 'ii_offset'
slowly move the image through the unit square based upon the frame_number.
The essential bit of code is:
...
#declare Nrml00 = normal {
bump_map {
"hmmI.png" gamma 1.0
ii_interpolate 2
ii_map_type 1
ii_once
#if (frame_number>0 & frame_number<=150)
ii_offset <-1.1+(2.2/300)*frame_number,0>
#elseif (frame_number>150 & frame_number<=300)
ii_offset <0,0>
#else
ii_offset <-1.1+(2.2/300)*(frame_number-150),0>
#end
}
}
...
union {
sphere { 0, 1
pigment { rgb 1 }
normal { Nrml00 bump_size +127 rotate +60*y}
}
sphere {
<1,1,0>/sqrt(2), 0.02
pigment {rgb <1,0,0> }
rotate +60*y
}
#if (frame_number>150 & frame_number<=300)
rotate <0,-(frame_number-150)/150*360,0>
#end
}
And when rendering add +kff450 to the command line.
Bill P.
Aside: The other long undocumented feature is 'repeat <2d vector>' or
'ii_repeat' in the yuqk fork. With 'ii_repeat' one can both scale and
repeat images within the 2D unit image space, but it's not used here.
Post a reply to this message
Attachments:
Download 'ii_offset.mp4.dat' (885 KB)
|
 |