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 Sep 2024 20:13:48 EDT (-0400)
  Re: Using different image maps with different clock values  
From: Warp
Date: 22 Aug 2002 13:14:06
Message: <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.