Archived

This topic is now archived and is closed to further replies.

Joe-Bob

Evil Fonts of d00m

Recommended Posts

Joe-Bob    122
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?

Share this post


Link to post
Share on other sites
Joe-Bob    122
I''m pretty much using tutorial #13, but here''s the applicable render code:


  
(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.

Share this post


Link to post
Share on other sites
Joe-Bob    122
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?

Share this post


Link to post
Share on other sites
Joe-Bob    122
Plus... just now I downloaded the ''Simple Basecode'' and the SAME font stuff worked perfectly. Anybody have similar experiences with the basecodes?

Share this post


Link to post
Share on other sites