|
 |
On 02/12/2018 07:12, Stephen wrote:
> box { <0.00, 0.00, 0.00>,< 1.00, 1.00, 1.000>
> texture {
> pigment{
> #declare thisfilename =
magik_cube[X][Y][Z][F]
> paint_tile(thisfilename)
> }
> } // end of texture
> scale <0.9 0.9,0.001> rotate<0,0,0> translate
> <-0.45,-0.45,-0.501> rotate
> x*0
> } // end of box --------------------------------------
> #end
I have been thinking about this as I did something similar a while ago.
Not knowing what you have in magik_cube[X][Y][Z][F] or
paint_tile(thisfilename). I did a test with a series of files 0001 ...
0120 in the directory C:\tmp
This works using concat and frame_number.
Note that the BITMAP_TYPE should not be included in the concat function
#declare Non_Patterned_Texture =
texture {
pigment {
image_map{
png concat ("C:\\tmp\\", str(frame_number, -4, 0), ".png")
map_type 0
once
}
translate <-0.500,-0.500,-0.500>
}
finish {
ambient rgb <0.100,0.100,0.100>*5.000
brilliance 1.000
crand 0.000
diffuse 0.600
metallic 0.000
phong 0.000
phong_size 40.000
specular 0.000
roughness 0.050
}
}
--
Regards
Stephen
Post a reply to this message
|
 |