POV-Ray : Newsgroups : povray.general : Transform to a spline without loop-de-loops : Re: Transform to a spline without loop-de-loops Server Time
29 Jul 2024 14:23:11 EDT (-0400)
  Re: Transform to a spline without loop-de-loops  
From: gregjohn
Date: 10 Mar 2011 07:25:01
Message: <web.4d78c28148e6ef7e34d207310@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 09.03.2011 13:36, schrieb gregjohn:
>
> >> Also, beware of z+0.0001 ... it's<0.0001, 0.0001, 1.0001>  !
> >>
> >
> > This I found to be necessary for any use of Reorient. If you transform from z to
> > z, it bombs out with singular matrix in inverse thing.  Not helpful.
>
> I guess if you leave it like that, tansforming may still bomb in case
> the new vector happens to be z+0.0001.
>

Thanks for the elegant fixes suggested.  Your code however bombed out after
about 80 frames to to the singular matrix inverse problem.  I had to fix the
Shear_Trans macro to be that below.  For some reason, I end up with guys facing
forward (+Z) in my work.


#macro Shear_Trans(A, B, C)
   transform {
      matrix < A.x, A.y, A.z,
             B.x, B.y, B.z,
             C.x, C.y, C.z+.000001,
             0.00001, -0.000002, 0>
   }
#end


Post a reply to this message

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