Lionel Maiaux (maiaux++at++platine.corys.fr)
Tue, 23 Jul 1996 10:09:19 -0600
I work on an iR with Performer 2.1 and I have a problem with gouraud shading.
I have several coplanar quads (each on a diferent geoset with OVERALL normal)
and a local light above them but lighting is not interpolated on the quads.
I read the pfGeoSet/pfShadeModel man pages and I tried several things ...
- verify the PFGS_FLATSHADE of my geosets (0),
- attach a NULL geostate to my geosets and call pfShadeModel(PFSM_GOURAUD) just
before drawing my geosets (pfDrawGSet),
- attach a geostate which inherit the global state and call
pfShadeModel(PFSM_GOURAUD) to affect it (but I suppose it's the default),
... without results !!!
With ogldebug, I always see a glShadeModel(GL_FLAT) openGL call, when I draw my
geosets but I don't know why.
When I modify the normal binding OVERALL to PER_VERTEX, I obtain gouraud
shading but I suppose I should do it only for non-equal normals, right ?
Thanks for your help !
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:12 PDT