POV-Ray : Newsgroups : povray.general : Image clips with POV Server Time
16 Nov 2024 17:25:03 EST (-0500)
  Image clips with POV (Message 1 to 4 of 4)  
From: Anto Matkovic
Subject: Image clips with POV
Date: 4 Oct 2003 16:20:57
Message: <3f7f2ba9@news.povray.org>
Is it possible to use image clips with POV?
Actually, I have a sequence of bitmaps, called 'my-file-01.tga',
'my-file-02.tga' etc.
I like to use bitmaps for animated heightfield, every frame of animation
with a new bitmap, for animated footprints on the sand, etc.
Rest of the scene and material for heightfield needs to be the same.

Any suggestions, experience?

Thanks


Post a reply to this message

From: Dave Vogt
Subject: Re: Image clips with POV
Date: 4 Oct 2003 17:12:35
Message: <ag2551-dl5.ln1@control-alt-del.ch>
Anto Matkovic wrote:

> Is it possible to use image clips with POV?
> Actually, I have a sequence of bitmaps, called 'my-file-01.tga',
> 'my-file-02.tga' etc.
> I like to use bitmaps for animated heightfield, every frame of
> animation with a new bitmap, for animated footprints on the
> sand, etc. Rest of the scene and material for heightfield needs
> to be the same.


My idea looks as follows (not tested):
  tga concat("my-file-",str(clock,2,0), ".tga")


Greets & HTH

Dave


-- 
Dave "tPassive" Vogt| ruby -e "n=gets.to_i;a=(2..n).to_a;a.each{
Linux  user  #225040| |x|puts x;(x*2).step(n,x){|j|a.delete j}}"
____________________|_____________________________             |
PGP Key: http://control-alt-del.ch/public_key.asc \____________/


Post a reply to this message

From: Gilles Tran
Subject: Re: Image clips with POV
Date: 4 Oct 2003 17:19:53
Message: <3f7f3979$1@news.povray.org>

news:3f7f2ba9@news.povray.org...
> Is it possible to use image clips with POV?
> Actually, I have a sequence of bitmaps, called 'my-file-01.tga',
> 'my-file-02.tga' etc.

Just tie the frame_number built-in identifier to your file name:
#declare Myfilename=concat("my-file-",str(frame_number,-1,0));
height_field{tga Myfilename}

G.

-- 
**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Warp
Subject: Re: Image clips with POV
Date: 5 Oct 2003 08:32:36
Message: <3f800f63@news.povray.org>
Dave Vogt <dav### [at] control-alt-delch> wrote:
>   tga concat("my-file-",str(clock,2,0), ".tga")

  You probably want to use frame_number instead of clock.

-- 
#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

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