Re: [Plib-devel] ssg states followup
Brought to you by:
sjbaker
From: Curtis L. O. <cu...@me...> - 2000-03-01 15:14:51
|
"Curtis L. Olson" wrote: > > Ok, one more question. Is it legal to use ssgSimpleStates to control > > *all* the states that you can glEnable and glDisable? I'm thinking > > about things like GL_FOG, GL_DEPTH_TEST, GL_CULL_FACE, etc. Steve Baker writes: > No - I had great heartache over that. I decided to stick to those > states that you are likely to want to set and unset rapidly in a > 'typical' application. That keeps to a minimum the amount of state > *testing* for each leaf node as it's rendered. > > It would be a pretty weird application that needed to switch > Fog and Depth-test on a per-leaf-node basis. The place where I'm running into this is with drawing the skydome, stars, sun, moon, etc. I'm half modelling and half illusioning so I need to play some tricks. But, it's not a big deal. As long as I understand exactly what ssg does / doesn't, I can make things work. > Of course GL_CULL_FACE is set per ssgLeaf node - so you don't want > to mess with ssgState's for that. Ok, so the best I can tell from the documentation, here is the complete enumeration (internal names) of the states that ssg can control: SSG_GL_TEXTURE_EN SSG_GL_CULL_FACE_EN SSG_GL_COLOR_MATERIAL_EN SSG_GL_BLEND_EN SSG_GL_ALPHA_TEST_EN SSG_GL_LIGHTING_EN Is this the complete list of modes ssg can control? Thanks, Curt. -- Curtis Olson University of MN, ME Dept. Flight Gear Project Twin Cities cu...@me... cu...@fl... Minnesota http://www.menet.umn.edu/~curt http://www.flightgear.org |