Jump to content
  • Advertisement
Sign in to follow this  
Aragon

Strange RenderText Problem

This topic is 4524 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi i got a myterius thing in my engine since i use pbuffer my render text is changing something i didnt understand ... ... beginRenderText( reso_x, reso_y ); { sprintf( stri, "Test"); glColor3f( 1.0f, 1.0f, 0.0f ); renderText( 5, 15, BITMAP_FONT_TYPE_HELVETICA_12, stri ); } endRenderText(); ... SwapBuffers( g_hDC ); when adding the text render to engine all graphics seems to change cull mode and depth buffer,very strange,but when i use this render text inside the pbuffer rendering of scene everything works absolut fine in pbuffer rendering is nothing special inside..and when disable text rendering everything in graphics is perfect what could that be? glDepthFunc(GL_LEQUAL); glClearDepth(100.0); glCullFace(GL_FRONT); glEnable(GL_CULL_FACE); i play with that, but i dont know what else to try

Share this post


Link to post
Share on other sites
Advertisement
Are you sure you're not setting your OpenGL state to glCullFace(GL_BACK) anywhere in the code outside of the pbuffer? Run a content search on the project files (particularly the .cpp and possibly the header files) for "GL_BACK" to find out quickly.

Share this post


Link to post
Share on other sites
yes, i searched the whole code


and the strange is..
everything works fine
when i remove the text rendering
from code

or when i put render text into pbuffer renderings


i searched the whole project

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!