Hiya,

I'm trying to draw a simple poly line from a vertex array with the
GL_LINE_STRIP primitive. When I view the object using osgviewer, it
looks like everything is alright. Once I move the camera around with
the mouse however, the lines begin to jitter, like the polyline was
made of jello (honestly can't find better description). The effect is
especially visible at higher zooms.

I'm using large (values in the hundred-millions), high precision
numbers (doubles) for the vertices of the line strip, and I think
that's what's causing the problem (I couldn't recreate the issue using
smaller, more sane numbers from 1-500 for example, even though the
same double datatype is used to store both numbers).

I've posted my code here: http://pastie.org/3377862
The code only relies on STL and osg, so it should 'just compile' if
you have an osg environment setup. The relevant calls to osg are on
lines 121-141. I'm using OSG 3.0.1 on Arch Linux, kernel 3.2.x if it's
relevant. Does anyone have any ideas as to what's going on?


Regards,

Pris
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to