Login  Register

Re: Resize problem

Posted by runiter on Jun 15, 2015; 4:05pm
URL: https://forum.jogamp.org/Resize-problem-tp4034612p4034700.html

gouessej wrote
Are you sure that you want to use 4 samples?
What sample number do you recommend? I can't put zero because I enabled anti-aliasing.

gouessej wrote
Please try to run a rudimentary example based on JoglAwtCanvas available in ardor3d-examples under OS X, JoglAwtExample.
I ran the ardor3d example and to my surprise they all ran fine. It's strange that JOGL Gear demo doesn't work, but Ardor3D code that used same JOGL version worked.

Despite the fact that the examples worked I couldn't get my own project to work reliably with NEWT. It works fine 50% of times, and it doesn't render anything at all 50% of times. I have to keep restarting the application to get it to work. Once it works, it will keep working properly until I shut down the program. So the problem seem to be at initialization somewhere.

BUT I finally found a solution for my project. The solution is to use JoglSwingCanvas instead of JoglAwtCanvas or JoglNewtAwtCanvas. Somehow JoglSwingCanvas works reliably in my project.
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D