|
![](/i/fill.gif) |
I want to actually use an animation as a height field, but the idea is
basically th same:
clock goes from 0 to 1
animation goes from fram 1 to 15
mapped_animation goes from frame 1 to 15
#declare current_frame=15*clock //should be an integer...
#declare file="D:\images\fram" + current_frame + ".tga"
height field { file <<height field stuff>> }
but, because current_frame is an integer, it can not be concatenated (added)
with the strings "D:\images\fram" and ".tga," so, I can not end up with
the string "d:\images\povray\fram15.tga"
The question is..... (drum roll please) how do I convert the integer
current_frame to a string so that I can concatenate it? I have tried the
system, but using current_frame="15" to see that strings do concatenate the
way I want, and it worked fine. But, in order to automate it as an
animation, I need 15*clock, and that returns a number, not a string!!!
can anybody help me with this? Is this stated explicitly in the manual?
Thank you for any help you can give me!!
Post a reply to this message
|
![](/i/fill.gif) |