POV-Ray : Newsgroups : povray.general : image sequence Server Time
7 Nov 2024 15:35:48 EST (-0500)
  image sequence (Message 1 to 5 of 5)  
From: Dennis Milller
Subject: image sequence
Date: 6 Feb 2002 14:50:09
Message: <3c6188f1$1@news.povray.org>
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

From: Christoph Hormann
Subject: Re: image sequence
Date: 6 Feb 2002 15:51:56
Message: <3C61976A.4ED3F048@gmx.de>
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

From: Warp
Subject: Re: image sequence
Date: 6 Feb 2002 16:01:29
Message: <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

From: Dennis Milller
Subject: Re: image sequence
Date: 6 Feb 2002 16:52:38
Message: <3c61a5a6$1@news.povray.org>
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

From: Warp
Subject: Re: image sequence
Date: 6 Feb 2002 17:37:41
Message: <3c61b035@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.