POV-Ray : Newsgroups : povray.newusers : Calling pre-defined textures with a concat generated string. : Re: Calling pre-defined textures with a concat generated string. Server Time
5 Nov 2024 13:24:25 EST (-0500)
  Re: Calling pre-defined textures with a concat generated string.  
From: Peter Popov
Date: 16 Jul 1999 16:35:24
Message: <378f95e1.7233577@204.213.191.228>
On Fri, 16 Jul 1999 21:10:16 +0100, "Alan Holding" <spe### [at] hotbotcom>
wrote:

Hi Alan.

What you're trying to do is use a string constant where a texture
identifier should be used. This doesn't work. Recently I asked a
similar question and the general opinion was that it could be achieved
by adequate use of file input/output. Try this:

#declare vasetex = concat ( "T_Gold_", str(counter,1,0), "A")

#fopen F "tempfile.tmp" write
  #write (F, vasetex)
#fclose F

object { Vase texture { include "tempfile.tmp" } }

POV is currently heavily rendering so I haven't tried this, but I'm
pretty certain it should work.


Peter Popov
ICQ: 15002700


Post a reply to this message

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