POV-Ray : Newsgroups : povray.general : Color Passing in #macro : Re: more data Server Time
10 Aug 2024 15:20:38 EDT (-0400)
  Re: more data  
From: mr art
Date: 26 Nov 1999 14:22:52
Message: <383EDDEB.174731B4@gci.net>
Try this for simplest code :
// #declare CapColor= <1,0,0,0,0>;
   #declare CapColor= color <1,0,0,0,0>;
#warning "Vector <" 	#warning str(CapColor.red     ,0,4)
#warning ", "		#warning str(CapColor.green   ,0,4)
#warning ", "		#warning str(CapColor.blue    ,0,4)
#warning ", "		#warning str(CapColor.filter  ,0,4)
#warning ", "		#warning str(CapColor.transmit,0,4)
#warning "> "
sphere{0,0 pigment{color 0}}// keeps the error messages away

uncomment one or the other of the #declare statements.
#declare CapColor= color <1,0,0,0,0>; gives correct results
#declare CapColor= <1,0,0,0,0>; doesn't

So the problem seems to be not in the #macro stuff at all
but in the assignment process.

"mr.art" wrote:
> 
> Here is more data to ponder:
> #declare CapColor=<1,1,0,0>; outside the macro becomes <1,1,0,0> inside
> But
> #declare CapColor=<1,1,0,0,0>; becomes <0,1.875,0,1.875,0> inside


Post a reply to this message

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