I want to draw lines and points on a mesh using primitive Point and Lines.
I also want that the drawn points and lines overlay the mesh upon which they are drawn. (Points have the coordinates of a vertex of the mesh, lines are made of a series of vertices from the mesh)
And finally I still want that the culling works, in this case, when the lines are hidden behind a part of the mesh.
I would like to make something that looks like this :
(This was made using spheres instead of simple points, which is not the solution I want because then the points have a fixed size in the environment and not in pixels)
I am using OSG
Any advice on what may work to create this effect?