Re: [Plib-users] camera orientation
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2001-12-31 02:26:46
|
Reed Hedges wrote: > Is there a way to get the camera orientation, or a position/orientation > matrix? Yes. If you are using an ssgContext (the "new" way to do things) then ssgContext::getModelviewMatrix ...(that's actually the inverse of the camera matrix). > Or, if not, what is the best way to turn the camera by some amount > around some axis? It's a very bad idea to incrementally update the camera matrix because roundoff error will accumulate in a way that will result in something that's no longer a simple rotate/translate matrix. OTOH, Eulers are Evil...so you probably should read this. http://www.sjbaker.org/steve/omniv/eulers_are_evil.html ----------------------------- 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 |