I had the idea to use an osg::LOD for drawing a co-ordinate system in a
geometry program.

The closer you get, the more fine-grained lines you see.

This works fine as long as you zoom in to (0,0,0). If you zoom to a
different point, it doesnĀ“t work, as the distance from eye to center is
still too big.

I tried to use PIXEL_SIZE_ON_SCREEN, but then I see nothing all the time
(probably because I use glLines for the coordinate-system which are very

I could solve this by breaking the coordinate-system into several nodes,
thus the center would be more accurate.

But before doing that: Is there an easier way?

Thanks for your comments,


PS: Is it allowed to post pictures here, small ones of course?

osg-users mailing list

Reply via email to