2.10.2 GeodeticGraticule disappears at certain zoom
I am using osg 3.6.4 ubuntu 20 and osgearth 2.10.2 At this version the GeodeticGraticule always disappears at a certain zoom level no matter how precise i set the resolutions option. Is there a way to at least make it not disappear? Or maybe force the wanted resolutions?
Re: 2.10.2 GeodeticGraticule disappears at certain zoom
Well.. good question. If memory serves, the shader (GeodeticGraticule.glsl) uses an obscure fragment quantization technique to render the lines. This technique starts to fail (due to precision problems) and produce artifacts when you get too close to the ground. For this reason we put in a maximum height in the shader. A lazy solution :)
Anyway, you can see for yourself my going into GeodeticGraticule.glsl and changing the maxHAE (maximum height above ellipsoid) value to something smaller, or by removing it from the alpha calculation altogether. (The precision issue is very likely due to the use of osg_ViewMatrixInverse.xyz.)