Robert Webb (robertw++at++wormald.COM.AU)
Mon, 5 Jun 1995 14:10:22 +1000 (EST)
I want an object to stay stationary with respect to the viewer. Here is
what I tried:
- Put the object under a DCS.
- Each frame calculate the matrix for the new viewer
position/orientation.
- Call pfChanViewMat() with this matrix.
- Call pfDCSMat() with this matrix.
So the view and object both use the same matrix. This almost works. I can
see part of the object within my view, but it jiggles around. I printed out
the matrices used for the view and for the DCS each frame in a draw
call-back, and sure enough they are different! Surely both the view
transform and the DCS transform are passed down the Performer pipeline (ie
they should be frame accurate), but it seems one of them is not. If I run
in a single process then the matrices printed out are the same, but it still
appears to jiggle around!
Can anyone shed any light on what's going on? Or how to keep an object
completely still with respect to a viewer? I could just use a draw call-back
to load some constant matrix onto the stack, but I also want other viewers
to be able to see the object at the location of the first viewer.
Any ideas?
Rob.
------------------------------------------------------------------------------
Robert Webb. robertw++at++wormald.com.au
------------------------------------------------------------------------------
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:34 PDT