[osg-users] LOD for drawing lines of a co-ordinate system

Andreas Goebel a-goebel at gmx.de
Thu Oct 13 07:26:31 PDT 2016


Hi,

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
fine).

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,

Andreas

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




More information about the osg-users mailing list