Login  Register

Java3D HiDPI canvas in Java 9

Posted by runiter on Oct 03, 2017; 3:12pm
URL: https://forum.jogamp.org/Java3D-HiDPI-canvas-in-Java-9-tp4038213.html

I'm experimenting with running Java3D in Java 9.
It works fine except the canvas panel is shrunk to 1/4 of what it should be.

In ardor3d there was a similar problem but I could fix that by simply calling this:

canvas.setSurfaceScale(new float[] { ScalableSurface.IDENTITY_PIXELSCALE, ScalableSurface.IDENTITY_PIXELSCALE });

However I couldn't find any equivalent method to setSurfaceScale() in Java3D.

Any suggestions is appreciated.
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D