RE: [Plib-devel] Simple SSG examples
Brought to you by:
sjbaker
From: Dave M. <Dav...@dy...> - 2000-08-03 19:21:51
|
Without debugging it, I noticed that // Create a simple state - no lighting, no texuring etc. ssgSimpleState *state = new ssgSimpleState(); state->disable(SSG_GL_LIGHTING_EN); might be causing problems. Try this instead: ssgSimpleState *state = new ssgSimpleState () ; state -> disable ( GL_LIGHTING ) ; and maybe add: state -> disable ( GL_ALPHA_TEST ) ; state -> disable ( GL_BLEND ) ; state -> setOpaque () ; --Dave > I've only been using sg in my game so far, so I figured it > was about time I got to grips with ssg. As there's a bit of a lack of > ssg examples I figured I write some and kill two birds with one stone. > > So, how much more simple can you get than a white rectangle > on the screen. Which is why I feel a bit lame when I can't get it to > work :) > > Source code is attached - it's v.simple so I can't imagine > what's up with it. > > If anyone get's some time maybe they could take a look. > > Sam > > Hmm..Sudden thought - is the SSG co-ordinate system different > from the OpenGL convention? > > |