|
![](/i/fill.gif) |
It appears to me the problem is that the parser believes you
are defining a recursive compound texture..... butted
textures after a #declare are grouped.
So this may be a fundamental weakness in the syntax rather than
a bug in the implementation.
This should also "fail" :
sphere {
0, 1
#declare X = texture { pigment { color rgb 1 } }
texture { pigment { color rgb 0 } }
}
The solution to this is for ALL "#" directives be semicolon terminated,
or at least all #declares..... I wonder why this wasn't done?
Dan
Friedemann Schmidt wrote:
>
> Hi,
>
> With POV-Ray for Windows v3.0 and v3.1 this works:
>
> sphere {
> 0, 1
> texture {
> #declare X = texture { pigment { color rgb <1, 0, 0> } }
> #declare Dummy = 1234;
> X
> }
> }
>
> This doesn't work - it causes an error like "Missing pigment"
>
> sphere {
> 0, 1
> texture {
> #declare X = texture { pigment { color rgb <1, 0, 0> } }
> X
> }
> }
>
--
http://www.flash.net/~djconnel/
Post a reply to this message
|
![](/i/fill.gif) |