urgent font and md3 problem....

Started by
8 comments, last by Cherub 21 years, 6 months ago
Hi, I''m having this problem: I load a md3 model in my app, but when I load fonts the model turns the color of my font and the font disappears.... what could be wrong? Thanks
Advertisement
You need to pop the push a new matrix onto the stack for use. Otherwise when you change the colour it will affect all the objects drawn.

To push and pop, you do

    glPushMatrix();   //..draw the objectglPopMatrix();glPushMatrix();  //..draw fontglPopMatrix();    


This should do it.

Hope this helps

Broni


[edited by - Broni on October 20, 2002 3:10:07 PM]
Yeah, forgot it.... stooopid
but..... the model is still of my font color...
So change the freakin color with glColorxx...

[twitter]warrenm[/twitter]

Sorry, I didn''t explain myself very well... so... what''s better than a picture to explain it?

Click Here For The Picture!
why is your problem urgent again?
Sorry I didn''t explain myself well.

PUT THIS
glColor4f(1.0f, 1.0f, 1.0f, 1.0f);

BEFORE YOU DRAW YOUR MODEL.

[twitter]warrenm[/twitter]

Or how about drawing the model BEFORE you render the font.
APE
Are you setting the texture before_each_render?

This topic is closed to new replies.

Advertisement