Forum: Poser - OFFICIAL


Subject: Loop-making script

Cage opened this issue on Apr 03, 2010 · 610 posts


Cage posted Tue, 22 March 2011 at 2:35 PM

Thanks, EB.  :lol:

We've all encountered gimbal lock in Poser, surely...?  That's the demon in eulers showing.  :lol: 

The first link in a chain isn't rotating relative to a parent, but to UNIVERSE.  This means the angles being handled are likely to be more extreme, making that link more sensitive to the risk of a bad euler conversion which points it the wrong way.  A euler rotation apparently has an infinite number of equivalent rotations which can offer the same orientation.  Any euler conversion code works around this by making certain assumptions about how to get the right one.  Whenever an angle of 90 degrees or greater comes into play, there's a risk of a bad euler conversion.  The assumptions just can't be correct all the time, with so many possible solutions.  (Or such is my understanding.... :unsure:)

There may be no way to resolve this, in Poser.  In other software, you can set rotations using quaternions, which don't have the same problems.  Unfortunately Poser Python allows one to query an actor's quaternion rotation, but you have to set the dial values with euler angles.

===========================sigline======================================================

Cage can be an opinionated jerk who posts without thinking.  He apologizes for this.  He's honestly not trying to be a turkeyhead.

Cage had some freebies, compatible with Poser 11 and below.  His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.