Re: [Plib-users] Trouble making simple colored triangle
Brought to you by:
sjbaker
From: Ben D. <be...@wa...> - 2000-10-17 21:06:18
|
> > 1. Using enable-disable of GL_COLOR_MATERIAL does not properly disable the > > state... I also found a workaround, which consists of calling > > glColorMaterial(GL_FRONT, GL_DIFFUSE) *before* calling > > glEnable(GL_COLOR_MATERIAL ) for the first time. > > Make that the first line of your code after ssgInit() and you are done then! That's the first line *before*, not after. ssgInit enables the state, so the glColorMaterial call is required before that in order for subsequent disables to work (with NVidia cards/drivers). > > 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've spent a lot of time trying, even tried fixing the SSG code, read ever word of the documentation, then wrote the mailing list found that nobody here has known either. > I'm still pretty confused as to your precise problem When you get some time to run that test program, and if the triangle is white, you can see them problem clearly on your own machine: SSG apparently doesn't let you give objects a non-white material without using per-vertex color. I've used a lot of 3D APIs over the years, and this is first time i've ever seen a limitation like this. -Ben |