[osg-users] Display lines far from the beginning of the SC...

Glenn Waldron gwaldron at gmail.com
Mon Nov 11 06:10:22 PST 2019


This is called "precision jitter." You are overflowing the 32-bit precision on the GPU.

Vertex coordinates are limited to 32-bit (on the hardware) so when you use large values you lose precision and geometry starts to flake out.

The solution is to select a local origin near your geometry (for example, the centroid) and make your coordinates relative to that local origin. Then place the geometry under a transform node (like MatrixTransform) that translates the geometry to that local origin. This will eliminate the jitter.

Glenn Waldron / osgEarth

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76898#76898







More information about the osg-users mailing list