Re: How to Draw a Smooth Curve through a Set of 2D Points
Posted by
Xerxes Rånby on
Mar 01, 2017; 8:38am
URL: https://forum.jogamp.org/How-to-Draw-a-Smooth-Curve-through-a-Set-of-2D-Points-tp4037677p4037698.html
I have updated my example to include correct System.setProperty lines to enable debugging
System.setProperty( "jogl.debug.GLSLCode", "");
System.setProperty( "jogl.debug.DebugGL", "");
And I have updated the example to be more correct by
enable the RegionRenderer on the OpenGL context before draw and disable it on the OpenGL context after draw. Before I only enabled it once during init.
// Draw the static shape using RegionRenderer and GLRegion
regionRenderer.enable(gl, true);
glRegion.draw(gl, regionRenderer, sampleCount);
regionRenderer.enable(gl, false);
I also updated the example to actually stop the Animator thread on window close.
Please try the updated example and see if it work better on your Intel OpenGL driver:
http://forum.jogamp.org/How-to-Draw-a-Smooth-Curve-through-a-Set-of-2D-Points-tp4037677p4037685.html