|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I'd like to read in a different targa file for every frame of an animation
and use it in a height field. Can someone tell me the syntax for reading a
sequence starting with, say, fig001.tga?
The code would be used here:
height_field {
tga "d:\fig001.tga"
smooth
scale <1,-1,1>
translate y
}
Thanks very much.
Dennis
--
dhm### [at] mediaonenet
www.casdn.neu.edu/~dmiller
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Dennis Milller wrote:
>
> I'd like to read in a different targa file for every frame of an animation
> and use it in a height field. Can someone tell me the syntax for reading a
> sequence starting with, say, fig001.tga?
try something like:
concat("fig", str(clock*100,-2,0), ".tga")
in POV 3.5 you can also use 'frame_number'.
Christoph
--
POV-Ray tutorials, IsoWood include,
TransSkin and more: http://www.tu-bs.de/~y0013390/
Last updated 06 Feb. 2002 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Dennis Milller <dhm### [at] mediaonenet> wrote:
: I'd like to read in a different targa file for every frame of an animation
: and use it in a height field. Can someone tell me the syntax for reading a
: sequence starting with, say, fig001.tga?
You should read the documentation about string functions, specially
concat() and str().
What you want is something like
concat("fig", str(frame_number,-3,0), ".tga")
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Yes, I'm sorry, I just don't know quite how to apply it to the HF:
This doesn't work:
height_field {
tga concat("fig", str(clock*100,-2,0), ".tga")
smooth
scale <1,-1,1>
translate y
}
nor does this:
height_field {
concat("fig", str(clock*100,-2,0), ".tga")
smooth
scale <1,-1,1>
translate y
}
Could you show me the line in this context?
thanks again,
Dennis
"Warp" <war### [at] tagpovrayorg> wrote in message
news:3c6199a8@news.povray.org...
> Dennis Milller <dhm### [at] mediaonenet> wrote:
> : I'd like to read in a different targa file for every frame of an
animation
> : and use it in a height field. Can someone tell me the syntax for reading
a
> : sequence starting with, say, fig001.tga?
>
> You should read the documentation about string functions, specially
> concat() and str().
>
> What you want is something like
> concat("fig", str(frame_number,-3,0), ".tga")
>
> --
> #macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb
M()}}
> N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
> N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// -
Warp -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I'm sorry to sound *sarcastic*, but did you try to understand how does
it work?
Hint: You probably need to add the path to the location of the tga files,
as you have in your original example.
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|