Evil Fonts of d00m
I''m using NeHe''s Latest Basecode, and no matter what I try, I can''t display fonts. I''ve followed Lesson 13 to the letter and even commented out all other rendering, but I can''t get it to work. Anyone ever have a problem like this?
---------------
Post a little of your rendering code, and other things you think matter...
Are you in ortho mode when rendering the fonts?
Are you in ortho mode when rendering the fonts?
I''m pretty much using tutorial #13, but here''s the applicable render code:
The glPrint itself is from tutorial 13 as I just said, and no, I haven''t called the glOrtho command.
(Start of the code renders the rest of my crap) glDisable(GL_TEXTURE_2D); glDisable(GL_BLEND); glEnable(GL_DEPTH_TEST); // Enable Depth Testing glLoadIdentity(); // Reset The View glTranslatef(0.0f,0.0f,-1.0f); // Move One Unit Into The Screen // Position The Text On The Screen glRasterPos2f(-0.45f+0.05f*float(cos(cnt1)), 0.35f*float(sin(cnt2))); glPrint("Active OpenGL Text With NeHe - %7.2f", cnt1); // Print GL Text To The Screen cnt1+=0.051f; // Increase The First Counter cnt2+=0.005f; // Increase The Second Counter glEnable(GL_TEXTURE_2D); glEnable(GL_BLEND); glFlush (); // Flush The GL Rendering Pipeline}
The glPrint itself is from tutorial 13 as I just said, and no, I haven''t called the glOrtho command.
---------------
Ok, I just unzipped the ''NeHe Latest Basecode'' again with a new project, followed the instructions, and it still doesn''t work.
Anybody else have any trouble with the basecode?
Anybody else have any trouble with the basecode?
---------------
Plus... just now I downloaded the ''Simple Basecode'' and the SAME font stuff worked perfectly. Anybody have similar experiences with the basecodes?
---------------
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement