I'm trying to create a thick line class, and I have it working to the point where the line is always facing the camera and the line width is a fixed hard coded unit width, e.g. 0.1f
What I'm struggling with at the moment is to
- have the line width fixed regardless of zoom level, e.g. I would like to have it 5 pixels wide, whether I have zoomed in or out.
- To have the fixed width at both ends of the thick line in perspective view.
For #2 I thought it was as simple as using the inverse projection matrix, but ...
Any suggestions of how to attack this is much appreciated.