POV-Ray : Newsgroups : povray.beta-test : #macros doesn't work in layered textures : Re: #macros doesn't work in layered textures Server Time
29 Jul 2024 14:20:44 EDT (-0400)
  Re: #macros doesn't work in layered textures  
From: Warp
Date: 25 Apr 2002 09:21:24
Message: <3cc802d4@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
> It works as designed.  No macros in layered textures.  The problem is that if
> a macro would contain a declare the parser could no longer guess that two or
> more texture identifiers are supposed to belong to the layered texture and not
> some other declare.

  I propose a change in syntax for pov4. Layered textures should be inside
a clearly defined block, thus making it completely unambiguous to both the
parser and the user.
  It could be something as simple as:

texture
{ layered texture_map
  { (textures here)
  }
}

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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