|
![](/i/fill.gif) |
Greg,
I'm not sure exactly which of John's macros you use.
If you use John's Axis_Rotate_Trans() macro, then please
note that it seems to fail with these input vectors:
<1, -1, 1> and <-1, 1, -1>
- and all vectors parallel to them.
I suggest that you use the transformation macros in the
"transforms.inc" file that comes with POV-Ray v3.5 instead.
(I.e. Axis_Rotate_Trans(), Reorient_Trans() etc.)
The thread "Bug in Knee macro?" may also be useful reading:
http://news.povray.org/povray.advanced-users/6074/
(In povray.advaced-users 4. Feb. 2001 by Rune)
I have not looked much at your code below. But if the above
information does not help, then I suspect that you need to
show more of your code.
Tor Olav
"Greg M. Johnson" wrote:
>
> Please see my swim cycle animation posted to p.b.a on 7/21/02.
> Note the rotation of the wrists.
>
> My forearms are transformed via:
> #declare rforearmtrans=transform{Oritransform(rwristpt-relbowpt,-y) rotate
> <0,rwristang.y,0> Oritransform(-y,rtempwristpt-rtempelbowpt) translate
> rtempelbowpt}
>
> #declare lforearmtrans=transform{Oritransform(lwristpt-lelbowpt,-y) rotate
> <0,lwristang.y,0> Oritransform(-y,ltempwristpt-ltempelbowpt) translate
> ltempelbowpt}
>
> For weeks I've tried to figure out what the bug is. But I'm wondering if
> this rotation is "built-in" to the orientation.
>
> The wristpt and elbowpt are constants based on measurements I made on a
> skeleton.
> The wristang is a constant vector (but i get the same results even when I
> comment this out).
> The tempelbowpt is calculated using FindKnee of Rune and/or JvS and an elbow
> orientation vector that is constant.
> The tempwristpt is a user-defined function of the clock.
> The Oritransform is by JvS.
>
> In other words, I:
> i) rotate from a position based on a skeleton (drawing in 3 dimensions) to
> downward,
> ii) rotate the wrists about the y axis,
> iii) then reorient to a new position based on the FindKnee's new elbow point
> and user-defined position for the wrist
> iv) translate to new elbow point.
Post a reply to this message
|
![](/i/fill.gif) |