Re: Jogl and JavaFX
Posted by
DamagedTiberius on
Apr 02, 2020; 8:43pm
URL: https://forum.jogamp.org/Jogl-and-JavaFX-tp4040468p4040496.html
I overlooked a missing piece in your init method as well. You need to set the view port. Add something along the lines of this to the end of init():
final GL4 gl = arg0.getGL().getGL2();
gl.glViewport(0, 0, arg0.getWidth(), arg0.getHeight());
If that doesn't get you going:
- Take a look at the rest of my init method to see if any of the other differences are significant.
- Set some breakpoints in your display(), init(), dispose(), and reshape() methods
- Do all the values of your member variables make sense (i.e. does it look like everything was initialized as expected)?
- Are any of the methods called when you don't expect them to be?