|
|
Hi all
Thanks to lots of help from you guys on here, I have now managed to write a
POVRAY file to read a greyscale tiff file and produce a height_field to
represent it in 3 dimensions.
I have written the following code:
#include "colors.inc"
camera {
location <1, 2, -1.5>
look_at <0.25, 0, 1>
angle 30}
background { color Gray } // to make the torus easy to see
light_source { <5, 8, -5> White}
height_field{
tiff
"map0001.tif"
smooth
texture{
pigment{
gradient y
color_map{
[0.0 rgb <0.2,0,0>]
[0.5 rgb <0.5,0.2,0>]
[1.0 rgb <1,1,1>]
}
}
finish{ambient .2 diffuse .8}
}
scale <0,0.025,0>
translate <0,0.5,0>
}
I now wish to get POVRAY to automatically read a list of 1000 map####.tif files
(each one with a consecutive file number: i.e. map0001.tif, map0002.tif,
map0003.tif, etc, etc) to then produce 1000 map####.bmp files (POVRAY rendered,
of course!).
Alain has kindly given me the following code for concat, but I am now not 100 %
sure how to apply this to my POVRAY code to get me exactly what I want:
concat("map", str(frame_number,-4,0)),".tif")
Please can somebody help me just to finish off this last bit of coding required?
Many thanks for all your help so far.
Colaroid
Post a reply to this message
|
|