"question" about textures... (Message 1 to 3 of 3)
From: gemelli david
Subject: "question" about textures...
Date: 29 Jan 2002 03:42:06
Message: <3C56617F.5020707@xlstudio.com>
Not really a question but...
I did an object with a texture that uses a loop to generate random
values for a color_map. It was working well. Then I took my texture
definition out of the object and "#declare" it to reuse it. It was not
working anymore (parsing error on the first '#' symbol).
I think (didn't tried it yet) that I will have to put my texture in a
macro in order to use it with the loop in it. Am I right ?
When does the interpretation of the texture definition takes place ?
When parsing the #declare ? Or each time it is included in an object ?
thanks for the details.
David Gemelli.
From: Tom Melly
Subject: Re: "question" about textures...
Date: 29 Jan 2002 04:55:59
Message: <3c5671af$1@news.povray.org>
"gemelli david" <d.g### [at] xlstudiocom> wrote in message
news:3C5### [at] xlstudiocom...
<snip>
Nothing to stop you putting it in a macro, but you shouldn't need to. The
following code works....
#local Count = 0;
#declare Tex1 =
texture{
pigment{
bozo scale 0.1
pigment_map{
#while(Count < 10)
[Count/10 rgb Count/10]
#local Count = Count + 1;
#end
}
}
}
If you post the source , we could do a better job of finding the problem
;)
--
signature{
"Grey Knight" contact{ email "gre### [at] yahoocom" }
site_of_week{ url "http://digilander.iol.it/jrgpov" }
}