POV-Ray : Newsgroups : povray.general : Image_map front & back : Re: MegaPov 0.7 bug Server Time
6 Aug 2024 08:12:50 EDT (-0400)
  Re: MegaPov 0.7 bug  
From: Mike Williams
Date: 23 Jun 2002 01:07:22
Message: <RXm$YEAJcVF9Ew2h@econym.demon.co.uk>
Wasn't it Greg M. Johnson who wrote:
>The following code is accepted:
>
>#declare pigobj=box{-1,1}
>#declare clothtexti=texture{pigment{object{pigobj color Blue, color Red}} }
>
>The following code is rejected:
>
>#declare pigobj=box{-1,1}
>#declare clothtexti=texture{pigment{object{pigobj shirtpig, objectpig}} }
>
>where shirtpig and object pig are called out earlier.
>
>The error is:
>"No matching } in pigment, pigment identifier found instead."

The correct syntax is

#declare clothtexti=texture{pigment{object{pigobj pigment{shirtpig},
pigment {objectpig}}} }


-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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