ssgContext bug and remedy (was Re: [Plib-devel] Simple SSG examples)
Brought to you by:
sjbaker
From: Sam S. <sa...@sp...> - 2000-08-06 10:31:01
|
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). 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. Sam |