POV-Ray : Newsgroups : povray.newusers : Changing parameters across runs : Re: Changing parameters across runs Server Time
28 Jul 2024 18:25:11 EDT (-0400)
  Re: Changing parameters across runs  
From: kurtz le pirate
Date: 11 Nov 2007 11:17:09
Message: <kurtzlepirate-81B91B.17170411112007@news.povray.org>
In article <web.47329d00a9b2848111481b6d0@news.povray.org>,
 "Numsgil" <Num### [at] yahoocom> wrote:

> What I'm trying to do now is change the texture being used so I can create a
> batch file.  Ideally, I'd like something like this to work:
> 
> povray MyIni.ini TextureA.png
> povray MyIni.ini TextureB.png
> povray MyIni.ini TextureC.png
> povray MyIni.ini TextureD.png
> povray MyIni.ini TextureE.png
> 
> So I could pass parameters in to my ini, and have it change parameters in the
> ..pov file.  However, if there's a way to do this, I don't see it.  Can anyone
> point me in the right direction?


just use an array of png files :
  #declare textureArry[5] {"TextureA.png","TextureB.png",... }

then : 

texture {
  pigment {
    image_map {
      png textureArry[frame_number]
      ...



-- 
klp


Post a reply to this message

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