Re: contour lines disappeared when zoom in 3D earth coordinates
Posted by
Martin on
Dec 23, 2021; 12:03pm
URL: https://forum.jogamp.org/contour-lines-disappeared-when-zoom-in-3D-earth-coordinates-tp4041550p4041560.html
Hi,
I indeed use GL_POLYGON_OFFSET_FILL to draw polygon edges along a polygon face, but it was not working in the case of drawing contour on a flat surface.
Here is what I have with GL_POLYGON_OFFSET_FILL only

Now when using the stencil buffer trick

My two other motivation for using stencil were
- it also deals with text rendering
- polygon offset fill is available in JOGL, but not in jGL - the CPU renderer I use as fallback when native rendering is not possible