Re: [Plib-users] Trouble making simple colored triangle
Brought to you by:
sjbaker
|
From: Steve B. <sjb...@ai...> - 2000-10-17 03:55:51
|
Ben Discoe wrote:
> 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.
Make that the first line of your code after ssgInit() and you are done then!
> 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.
Well, it can certainly be done - I'm still pretty confused as to your
precise problem - but SSG doesn't really do anything different than
the underlying OpenGL calls.
--
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
|