Re: [Plib-users] Trouble making simple colored triangle
Brought to you by:
sjbaker
From: Ben D. <be...@wa...> - 2000-10-17 01:28:23
|
From: "Steve Baker" <sjb...@ai...> > > > I'm really tearing my hair out here over making simple coloured geometry. > > Steve, i beg of you to please help me with my previous email, the one with > > the stuff about ssgSimpleState/ssgVertexColourArray. > > You said that you could get this to happen with simple GL-level commands - shouldn't > you just take out all of the PLIB code and mail your example to one of the OpenGL > mailing lists (and possibly to the nVidia developers) ?? There is more than one problem. Here are two of them: 1. Using enable-disable of GL_COLOR_MATERIAL does not properly disable the state. I confirmed this using just OpenGL calls, on multiple NVidia cards and drivers. I also found a workaround, which consists of calling glColorMaterial(GL_FRONT, GL_DIFFUSE) *before* calling glEnable(GL_COLOR_MATERIAL ) for the first time. No logical reason why this should make it work, but it does. 2. I haven't found a way to use ssgSimpleState/ssgVtxTable to make simple colored geometry. That's the current killer, if there's no solution then i'll have to abandon PLIB/SSG. Thanks, Ben |