POV-Ray : Newsgroups : povray.newusers : Using different image maps with different clock values : Re: Using different image maps with different clock values Server Time
4 Nov 2024 13:59:36 EST (-0500)
  Re: Using different image maps with different clock values  
From: Dennis Miller
Date: 22 Aug 2002 21:43:03
Message: <3d659327$1@news.povray.org>
This code looks for a sequence of images labeled "red001.tga" through
"red390.tga" while the clock ticks. You can then use Pigmap in any pigment
statement (or as a function in an isosurface if you want to build an object
with it; sorry, forget that):

 #declare Pigmap = pigment {
  image_map {tga concat("e:\\red\\red", str(clock*390,-3,0), ".tga")
    map_type  2  interpolate  2 } }

So maybe number the images sequentially? How many are there and how often do
you want the image to change?

d.

"Warp" <war### [at] tagpovrayorg> wrote in message
news:3d651bde@news.povray.org...
> Tom Melly <tom### [at] tomandlucouk> wrote:
> > 1. Use a case statement
> > 2. Use filenames that can be referenced from the clock value, e.g.
1.bmp, 2.bmp
>
>   Another solution, when you have file names without consecutive numbers,
> is to put all the file names in an array and the index this array with
> something like int((dimensions_size(Images,1)-1)*clock+.5)
>
> --
> #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.