|
![](/i/fill.gif) |
clipka <ano### [at] anonymous org> 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
|
![](/i/fill.gif) |