Re: JCanvas3D on OSX Java 7
Posted by
InteractiveMesh on
Apr 21, 2013; 4:11pm
URL: https://forum.jogamp.org/JCanvas3D-on-OSX-Java-7-tp4028980p4028993.html
JCanvas3DOB provides another lightweight 3D canvas which is similar to JCanvas3D, see:
http://www.interactivemesh.org/testspace/j3dmeetsswing.html#leightweightPlease, give it a try and check if it behaves as JCanvas3D does.
The alpha value of the framebuffer's clearing color is set per frame to 1.0 (default) or to 0.0 if the Java 3D system property "transparentOffScreen" is set to true (-Dj3d.transparentOffScreen=true). But, whenever a not transparent Shape3D is rendered it should be seen on the screen in both scenarios.
Yes, JCanvas3D and JCanvas3DOB are "significantly" slower than Canvas3D. Reading the pixels from the GPU into the CPU is the most critical bottleneck beside the time needed to write them back.
With my latest Java 3D improvements the frame rate will increase from 50 fps to 80 fps or 120 fps for a lightweight 3D canvas of size 1920x1200 pixels in Swing and JavaFX2. Even with 500 TransformInterpolators, 3,000 Shape3Ds and 7,000,000 triangles the frame rate remains above 60 fps in the faster mode on Win 7-64, JKD 7, i5-2500K, GeForce GTX 560 Ti. These performance features should also run in Harvey's fork, most likely this summer (not tested yet).
August