Login  Register

Re: Java3D stereo

Posted by babor on Mar 06, 2014; 1:58pm
URL: https://forum.jogamp.org/Java3D-stereo-tp4029914p4031788.html

Xerxes Rånby wrote
Is it possibly for you to set the stereo GC on the parent component before
you add the Canvas3D to it?
First of all, even if you could do that it seems highly impractical - every time you wish to add Canvas3D to any container you'd have to set GC to the whole hierarchy up to the JFrame or Window.

Secondly, the GC you have with stereo enabled is javax.media.j3d.JoglGraphicsConfiguration and as it cannot be cast to sun.awt.X11GraphicsConfig you can't use it in JFrame constructor (as setGraphicsConfiguration is private in Component).

Finally, I am aware of this change in setGraphicsConfiguration in Java 7, but it should not influence stereo on Canvas3D as it does not influence stereo on GLCanvas in JOGL (and they both extend java.awt.Canvas).