PDA

View Full Version : Model / Material Woes



Tokage
09-11-2004, 03:59 PM
I just wrote a class for loading and displaying models. Everything works fine except for a problem with the materials. In every frame, I set up each material with glMaterialf() and glMaterialfv(), then I draw all the faces for that material. When I set the material, it ends up only drawing the faces that go with the last material. All faces are draw (but without materials) when I comment out the glMaterial*() lines. Any ideas?

09-12-2004, 10:48 AM
sorry, could you clarify your question a little? post some code?