GeodeticGraticule and grid line resolution when zooming in #2895
Replies: 2 comments 1 reply
-
|
I think this line may be causing my grief. In my case, the horizon distance will be used to construct the frustum even if the camera is at an altitude of 1000 meters and pointing directly at the surface. |
Beta Was this translation helpful? Give feedback.
-
|
I think what you are seeing is the height above ellipsoid fading happening where the graticule fades out and disappears once you get close to the ground. Try commenting out this line and replacing it with: The fragment shader does break down once you get so close to the ground so you'll see some rendering artifacts, but I'm curious to see if this is more like what you are expecting to see. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been attempting to make use of the
osgEarth::Util::GeodeticGraticuleand I'm having a bit of a hard time understanding how to configure the layer's resolutions. As far as I understand it from the source, the number of grid lines and the camera's extents of the map are used to determine the resolution of the grid lines.On
tests/graticule.earth(after fixing the last resolutions entry), this works well until I have zoomed in away from the poles, where I see fewer and fewer grid lines prior to hitting the limits of resolution. For instance, I can see lines for longitudes are separated by 1 degree by moving the camera over to the next longitude, but I cannot see both longitudes on screen at the same time (unless the camera is near a pole).Given the configuration in the file, I would expect to see a smaller resolution value chosen and the response in this discussion leans in that direction. Am I misunderstanding how the resolution is chosen, or is this an issue (and, if so, is there some reference material available for the implementation of
GeodeticGraticule::getViewExtent())?Edit:
Beta Was this translation helpful? Give feedback.
All reactions