POV-Ray : Newsgroups : povray.general : Is this a bug? : Re: Is this a bug? Server Time
18 Nov 2024 23:15:39 EST (-0500)
  Re: Is this a bug?  
From: Christopher James Huff
Date: 18 Jun 2002 20:19:40
Message: <pan.2002.06.18.19.18.51.676611.544@mac.com>
On Tue, 18 Jun 2002 17:26:10 -0500, Scott Wasson wrote:

> Any idea what causes this problem?  I know about the note in section
> 6.7.6, "Layered Textures", but that has to do with macros inside layered
> textures.  This is the other way around, layered textures inside a
> macro.  I don't see any syntax ambiguities.

This is strange, I've never encountered it before...maybe it is just a
result of the layered texture definition being in a macro, so the parser
doesn't expect that construction.

It might work if you declared the layered texture as a local variable:

#macro()
    #local localTex =
    texture {}
    texture {}

But I don't know how you would return the texture..."texture {localTex}"
would get picked up as a third layer, I think you would have to return
"localTex" and wrap the macro call in a texture {} block. Assuming this
trick actually helps...

Hopefully, a future version of POV-Ray will have an improved syntax for
defining layered textures...


-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: <chr### [at] tagpovrayorg>
WWW: http://homepage.mac.com/chrishuff/


Post a reply to this message

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