Precision in Performer...

New Message Reply Date view Thread view Subject view Author view

Nils Thune (thune++at++cmr.no)
Thu, 16 Dec 1993 20:46:09 +0100


I have some problems with unstable objects/views when the object position becomes rather large.

As an example, if the position part of the object is P(556615.0013, 587501.1945, 10.0000),
and the orientation part is O(47.5678, 0.0000, 0.0000) and the heading of the orientation
part is incremented with a small delta angle each frame, then I get a very jerky image. The
view matrix is usually a simple translation matrix. The view and/or object jumps around and
does not seem to be fixed to each other. This is also true when the view matrix is the
identity.

for (;;)
{
   .........

   objPosDir.hpr[PF_H] += deltaAngle; // If the heading will never be > 360.0 !

   pfDCSCoord(dcs, &objPosDir); // Position object

   pfMakeCoordMat(m2, &objPosDir); // Get object position
   pfMultMat(m1, viewMatrix, m2); // and add view offset
   pfChanViewMat(channel, m1); // and set the view.

   ..........

}

Now, if I scale the x and y part of the object position with 1/1000.0f then the jerkyness is
gone.

Is there something wrong with my eyes, should I set the view matrix in a different way, or is
it Performer which can't handle such numbers?

- Nils

--------------------------------
Nils Thune
Advanced Computing
Christian Michelsen Research
Fantoftvegen 38
N-5036 Fantoft, Bergen, Norway
Email: thune++at++cmr.no
Phone: 55 574040
Phone: 55 574355 (Direct)
Fax : 55 574041
--------------------------------


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:07 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.