POV-Ray : Newsgroups : povray.beta-test : NEW FEATURE: Suggesting "aka" (Textures) : Re: NEW FEATURE: Suggesting "aka" (Textures) Server Time
26 Apr 2024 11:52:29 EDT (-0400)
  Re: NEW FEATURE: Suggesting "aka" (Textures)  
From: Thomas de Groot
Date: 20 Dec 2015 04:01:31
Message: <56766e6b$1@news.povray.org>
On 20-12-2015 8:57, Thomas de Groot wrote:
> On 20-12-2015 7:17, Sven Littkowski wrote:
>> The new feature I am describing here might not be of much use for
>> regular scenes, but I think, it comes handy for testing purposes.
>>
>
> I think there is no need for this as it can be probably be achieved with
> a macro using parse_string() and concat() within a #for loop. I hope to
> give an example after I try this out.
>

OK. My idea was a bit too complicated and didn't work. However, you can 
use arrays instead:

#declare T_array = array[10]

#for (I,0,9,1)
   #declare T_array[I] = texture {pigment {rgb < 0.50, 0.50, 0.50 >}}
#end

You have now 10 identical textures named T_array[0] to T_array[9].

Adapt this to your needs.

-- 
Thomas


Post a reply to this message

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