Login  Register

Re: Issue with Java 3D under OpenJDK 7 / Mac OS X

Posted by Traksewt on Jan 26, 2013; 1:41am
URL: https://forum.jogamp.org/Issue-with-Java-3D-under-OpenJDK-7-Mac-OS-X-tp4025259p4028023.html

I believe your x,y issue and my x,y issue were different. Your issue sounds like x,y, scaling/positioning isn't working at all and is returning 0, hence it being in the bottom left corner.

My issue was scaling was overscaling, so if you resize the window 100 px larger in the x, then the canvas would resize the graphic ~200px, making the image drift off the right of the screen. Likewise same issue for y scaling pushing the image past the top of the window. By quickly scanning your changes, I'm guessing that 'JoglPipeline.resizeOffscreenLayerSurface' was the fix I needed.

My app has multiple Canvas3D's laid out in multiple JSplitPanes (though some of them are just using 2D rendering):
http://odonoghuelab.org/tmp/aquariatest.png

I just tested out the applet too and it works.

This is a 11 year old app that I am getting working again with improvements. I believe my workmate Christian met Sven and mentioned about our project at last year's Siggraph 2012.