Re: Java3d Nothing is Rendered
Posted by philjord on Jun 08, 2019; 10:46am
URL: https://forum.jogamp.org/Java3d-Nothing-is-Rendered-tp4039834p4039842.html
Yes, the doClear call seems needless, however in the entire code base there are only 3 calls to Canvas3d.createNewContext().
Two of them are in the Renderer class loop in the retained mode section (after the immediate mode if case) called whenever retained mode is doing anything and it checks for a context and lazily creates if needed. The other one is in the immediate mode doClear call. I would like to take the immediate mode create call out into the Renderer and have it run as a lazy init before any of the immediate mode calls, just like the retianed is doing now. But that's a fairly major code change that may have unknown impacts.