Simple 2D text on top of OpenGL
in
Core Library Questions
•
1 year ago
Hi there,
I am displaying some 3D models in a openGL sketch. Now I just want to show the number of vertices and faces as plain text in the window. When I use:
text("vertices: "+ numVerts, 0, 0);
it does show up, but it looks ugly (compressed badly) when near and also it is placed inside the 3d scene, which is not what I want. I want it to be simple 2d text in the lower left corner of my sketch, and stay there put no matter what the 3d scene is rotated or what not.
How would I do that?
Cheers
I am displaying some 3D models in a openGL sketch. Now I just want to show the number of vertices and faces as plain text in the window. When I use:
text("vertices: "+ numVerts, 0, 0);
it does show up, but it looks ugly (compressed badly) when near and also it is placed inside the 3d scene, which is not what I want. I want it to be simple 2d text in the lower left corner of my sketch, and stay there put no matter what the 3d scene is rotated or what not.
How would I do that?
Cheers
1