|
|
"Kenneth" <kdw### [at] gmailcom> wrote:
> "pkoning" <nomail@nomail> wrote:
>
> >
> > Just now I tried to reproduce it but I'm seeing a different baffling issue:
> > when I take out the "cells" pattern and replace it by a reference to a plain
> > texture, the parser complains that the "warp" modifier is not expected. See
> > attached.
> >
> > Possible Parse Error: Unmatched {
> >
> > line 100
> > Parse Error: No matching }, warp found instead
>
> Apparently, a warp{...} cannot be added to a previously-#declared texture. I
> sometimes run into similar problems; some things can be added, some can't.
>
> Your syntax is like this:
>
> #declare tmoon = texture
> {
> pbfr // [previously-#declared]
> scale <rfeature, rfeature * 2, 1>
> no_bump_scale
> warp {spherical}
> }
>
> Interestingly, the no_bump_scale *is* OK there. I was surprised at that.
Yes, that's documented to affect the texture it is applied to and all its
offspring.
It's strange that warp works the way you mentioned, it makes it very hard to
use. The fact that it's an undocumented behavior doesn't help. (I suppose it
makes sense if it's considered a bug -- I think it should be.)
Post a reply to this message
|
|