POV-Ray : Newsgroups : povray.advanced-users : Pov giving error when I use a matrix. I can't figure out why. : Re: Pov giving error when I use a matrix. I can't figure out why. Server Time
29 Jul 2024 18:21:18 EDT (-0400)
  Re: Pov giving error when I use a matrix. I can't figure out why.  
From: Ron Parker
Date: 6 Jun 2001 09:10:38
Message: <slrn9hsauf.4q8.ron.parker@fwi.com>
On Thu, 07 Jun 2001 03:59:13 -0700, Dan Johnson wrote:
>> >          2(Q1*Q2-Q0*Q3),QT+2*pow(Q2,2),2(Q2*Q3+Q0*Q1),

vs.

>> >          2*(Q1*Q2-Q0*Q3),QT+2*pow(Q2,2),2*(Q2*Q3+Q0*Q1),
>
>I didn't think that would make a difference, it does.  Problem solved,
>thanks.

The reason is that commas are optional in POV.  When it sees 2(blah) it parses
that as two separate terms, in the same way that it parses the (z+a z) on the
first line of my .signature as two terms.

-- 
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbf 1}hollow interior{media{emission 3-T}}}#end 
Z(-x-x.2x)camera{location z*-10rotate x*90normal{bumps.02scale.05}}


Post a reply to this message

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