Login  Register

Re: Java3D stereo

Posted by bjoern on Sep 01, 2015; 9:14am
URL: https://forum.jogamp.org/Java3D-stereo-tp4029914p4035219.html

Looking for something completely different, I just came across this info from Andrew Davison:

Starting with Java 7, you have a redraw problem caused by the heavyweight/lightweight conflict. Sometime, you see only the background - this is very annoying and my example above had the same problem in case the OrbitBehavior was not added. Just add this line to the code:

System.setProperty("sun.awt.noerasebackground", "true");

Thanks, Andrew!

His book Killer Game Programming you certainly all know, at this website I found also this valuable info (look for the Java 3D section):

http://fivedots.coe.psu.ac.th/~ad/jg/

This hint might also solve problems with Mac OS X. I experienced that sometime popup elements are not shown on the Canvas3D. Okay, but I did not test it by now, maybe not ...