Richard Rabbitz (rrabbitz++at++motown.lmco.com)
Fri, 29 Aug 1997 10:28:45 -0400
We have an application where we need to customize channel drawing to include
some OpenGL calls. When we enter the draw callback we draw the scene graph
(which renders correctly), but then we try to set the material using
the calls:
GLfloat shininess[] = {110.0F};
GLfloat specular[] = {0.5F, 0.5F, 0.5F, 1.0F}; /* Highlights */
GLfloat mat_diffuse[] = {0.0F, 1.0F, 0.0F, 1.0F}; /* Material color */
glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
glMaterialfv(GL_FRONT, GL_SPECULAR, specular);
glMaterialfv(GL_FRONT, GL_SHININESS, shininess);
These calls do not seem to change the material state. My question is
what is the best way to set the material state in OpenGL during a
drawing callback?
=================================/|==========================
| _____________/_|__ |
| L O C K H E E D M A R T I N / | / G E S |
| / |/ |
| Rich Rabbitz Phone: (609) 722-4559 |
| Mail Stop 137-124 Fax : (609) 273-5185 |
| Moorestown, NJ 08057 rrabbitz++at++motown.lmco.com |
=============================================================
=======================================================================
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:55:48 PDT