|
|
In article <3915e2d3$1@news.povray.org> , "Simen Kvaal"
<sim### [at] studentmatnatuiono> wrote:
> #declare MyGoodFriend = <Color.red, Color.green, Color.blue>
Use
#declare MyGoodFriend = <(Color.red), (Color.green), (Color.blue)>;
instead.
The current parser is not perfect, and with complicated expressions
involving dot access to components of vectors and colors it sometimes acts
strange. We are aware of the various problems, especially when using dot
operations for color vectors, but this may not be fixed before the parser is
rewritten (i.e. in POV-Ray 4.0).
For now, usually placing braces around such operations works around most
problems (due the the recursive decent parsing used).
Thorsten
____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg
I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|