Hi OpenGL community, I need your advises.
I have a geometry mesh. At each vertice, I want to write the vertice index on the screen (I use a fontmap for font).
So I need to:
- Find the index position in screen space.
- Generate square at this position for each number (348 number will need 3 square, 10 will need 2 squares, etc...) and give then good uvs from the font map.
- Send this to the GPU.
The problem for me seems to be the first step...
I'm afraid matrices calculation on the CPU for each vertex to find on screen coordinate could be big...
Same to generate squares vertices for each number with different uvs. It could be long...
Any of you have a better Idea?
And if anyone have good infos/link to do this kind of stuff efficiently, don't hesitate!
Draw on screen vertex indices efficiently?
Thanks in advance!