Hello my friends,
I am trying to print out text onto the screen and I have the problem of that parts of text will dissapear if an object moves to where(x and y coordinates) the text is. I am using rasterpos2 function to set the text coordinates, unfortunately it operates in world coordinates as you know so it's connected to the camera node at all times- although that itself is no problem. For your information I draw the text with bitmaps(windows fonts) and not textures but I can't see how textures would fix the problem. I read somewhere that I should disable GL_DEPTH_TEST, will it really work correct? The world is in 3d coordinates and I wonder how disabeling the depth test would affect the 3d world.
Best would be if I could write the text directly into the framebuffer with screen x and y coordinates but I have failed to find a way to do that in Open GL.
Thansk for reading.
I am trying to print out text onto the screen and I have the problem of that parts of text will dissapear if an object moves to where(x and y coordinates) the text is. I am using rasterpos2 function to set the text coordinates, unfortunately it operates in world coordinates as you know so it's connected to the camera node at all times- although that itself is no problem. For your information I draw the text with bitmaps(windows fonts) and not textures but I can't see how textures would fix the problem. I read somewhere that I should disable GL_DEPTH_TEST, will it really work correct? The world is in 3d coordinates and I wonder how disabeling the depth test would affect the 3d world.
Best would be if I could write the text directly into the framebuffer with screen x and y coordinates but I have failed to find a way to do that in Open GL.
Thansk for reading.