Login  Register

RE: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Posted by snmvaughan on Nov 22, 2010; 6:34pm
URL: https://forum.jogamp.org/JOGL-2-support-for-Ardor3D-JMonkeyEngine-3-jzy3d-and-NiftyGUI-tp1706747p1947837.html

We were targeting NEWT, and found it much easier to just let the windowing system manage resources.

  1. A GLEventListener which rendered an Ardor3D scene would work with anything from a simple NEWT window, to a GLJPanel.
  2. The GLEventListener is notified about changes in the GLWindow's life cycle.
    • init() doesn't get called until the resource is ready for initialization.
    • destroy() is called regardless of the manner in which the process is initiated.
  3. FrameHandler didn't seem to provide any benefit over simply using an Animator.
    • FrameHandler doesn't handle Updater and Canvas instances added after it is initialized, while GLWindow always ensures that init() and reshape() are called before the first display().  We wanted the ability to add and remove an Updater at any point.
    • The FrameHandler doesn't provide any structure.  If you want to ensure that updateGeometricState is called after all updates, then you have to provide some other mechanism (e.g. look at the examples provided in ardor3d-examples).
    • Since Ardor3D doesn't support updates while rendering is occurring, it really is just a loop over the serial phases of update and render.

 


From: gouessej [via jogamp] [mailto:[hidden email]]
Sent: Monday, November 22, 2010 9:57 AM
To: Vaughan, Steve
Subject: Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

 

Hi!

snmvaughan wrote:

I'm currently using Ardor3D with the last JOGL 2 code base. I had planned on submitting this back to Ardor, but we are currently using a GLEventListener based model instead of Ardor's Canvas and FrameHandler framework. It works well and uses an Animator to control the animation.

Why do you use GLEventListener instead of Ardor's Canvas and FrameHandler framework? Does your port use NEWT or AWT?

http://tuer.sourceforge.net
http://gouessej.wordpress.com

 


View message @ http://jogamp.762907.n3.nabble.com/JOGL-2-support-for-Ardor3D-JMonkeyEngine-3-jzy3d-and-NiftyGUI-tp1706747p1946196.html
To start a new topic under jogl, email [hidden email]
To unsubscribe from jogl, click here.