Login  Register

Re: reshape not called in 2nd GLCanvas

Posted by scott+jogamp@vorthmann.org on Jan 29, 2023; 1:49am
URL: https://forum.jogamp.org/reshape-not-called-in-2nd-GLCanvas-tp4042121p4042131.html

Right, I create an animator, but apparently don't use it.  Is its normal function just to report frames-per-second?

This issue has come and gone in vZome over the years, and I can see it when I run old versions.  In late 2019, vZome 6.0 still used Java3d, and it had this problem.  When I ported to pure JOGL (removing Java3d) for vZome 7.0, the problem disappeared.  Late 2022 I updated from Java 8 to Java 17 for vZome 7.1, and the problem reappeared.  Each of those transitions would have picked up a newer JOGL RC, though I'm not sure there was a new release last year.

By the way, since I have a Swing app, I've tried replacing the GLCanvas with GLJPanel, but I get black canvases, nothing rendered at all.  Is there an extra step with GLJPanel?