Re: [Plib-users] accessing the camera-/modelview-matrix
Brought to you by:
sjbaker
From: Volker P. <pop...@in...> - 2002-01-06 02:43:23
|
On Sunday 06 January 2002 03:06, you wrote: > Volker Poplawski wrote: > > I'm playing around with plib/ssg in combination with Qt. I wonder why > > there is no method to directly set the cameraMatrix in ssgContext. > > What's wrong with: > > ssgContext::setCamera ( sgMat4 mat ) > > ...or... > > ssgSetCamera ( sgMat4 mat ) ; well, these methods don't set the model-view-matrix directly, the transpose and negate the given matrix and exchange the y- and z-axis before applying to the cameraMatrix. Right now i'm using ssgSetCamera( myMatrix ) but i'have to do the transposeAndNegate and exc. y-z on myMatrix first to have the operations later reverted by ssgSetCamera(), somewhat sub-optimal... > > (which operates on the current context for backwards compatibility) > > > Is this a missing feature or is there a smarter way to do it? > > I think maybe it's not documented. > > ----------------------------- Steve Baker ------------------------------- > Mail : <sjb...@ai...> WorkMail: <sj...@li...> > URLs : http://www.sjbaker.org > http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net > http://prettypoly.sf.net http://freeglut.sf.net > http://toobular.sf.net http://lodestone.sf.net |