Re: [JOGL] VBO's not updating
Posted by
gouessej on
Jun 03, 2015; 8:18am
URL: https://forum.jogamp.org/JOGL-VBO-s-not-updating-tp4034566p4034593.html
There is something wrong in your way of using animators but it won't fix the update. You create and run 2 animators, look at the constructor of TopLevelInterface, you create one inside it and another one in createJOGLInterface(). It's preferable to have a single GLEventListener and a single animator per canvas instead of over-complicating a simple case.
At first, a simple Animator with v-sync enabled (see GL.setSwapInterval()) would be more reliable than FPSAnimator.
Then, rather follow my dummy example, create the animator bound to the canvas, add a unique GLEventListener into this canvas, add the canvas into its parent, make all necessary Swing/AWT calls and start the animator:
https://gist.github.com/gouessej/3420e2b6f632efdddf98I wish you will succeed in displaying your voxels at least as good as ours ;)