Re: ssgContext bug and remedy (was Re: [Plib-devel] Simple SSG examples)
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-08-06 18:31:55
|
Sam Stickland wrote: > > RE: [Plib-devel] Simple SSG examplesThere were a couple of problems with > it - one was my fault (polygon winding issues - should had realised back > face culling was on by default, doh! ), and the other is a bug in ssg. > > The ssgContext class initialises the camera matrix to the identity > matrix and not _ssgOpenGLAxisSwapMatrix. So if you do nothing with the > camera you end up with opengl's coordinate covention (y is up), rather > than ssg's (z is up). Hmmm - yes - you are exactly right. I have never written a program where the camera wasn't initialised explicitly. I'll fix it right now. > Anyway it works now, so by tomorrow I should have some real simple ssg > examples to contribute. I've got a simple textured spinning cube, an > explosion, and a simple scene you can fly round (using the quaternion > routines). Nothing hot, but I always find I learn a damn site quicker > from examples than documentation so I imagine these will be of use to > people. Great! Sample programs are always a horrible chore for experts in the API to write (we want to build big, complicated programs)...so ironically, the best source for example programs may well be in people who have just picked up the package and are experimenting with it. Do you want CVS write-access to contribute these examples? If so, I need to know your Sourceforge user ID. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |