The SimpleUniverse seems to ignore the ScreenScaling. I have worked my way through all the "HelloUniverse" examples and I could not figure out how to modify the screen scaling.
I am using my Windows 10 machine with a screen scaling of 250%. Any graphic is shown on the JFrame in the lower/left corner with a factor of 2.5 smaller than the size of the JFrame.
Following the API specification I tried (this is Kotlin code):
universe.viewingPlatform.viewPlatform.viewAttachPolicy = NOMINAL_SCREEN
But it does not work and I have run out of ideas.
Does anybody have a suggestion (or better: a working example)?
I have uploaded the little "HelloUniverse" program in case you want to look at the code.
And there is the screenshot of the window. The graph is showing in the lower left corner of the window. The window is larger by exactly a factor 2.5, which is precisely the 250% screen scaling set in Windows. I can modify that value and the result changes accordingly. So, it is clear, that the screen scaling that I set in the program is being ignored.
Hi. I got version 1.6.2 (Jars j3dcore, j3dutils and vecmath) OK. But it seems I do not have the proper matching native library for Windows. I am using j3dcore-ogl.dll that works OK with 1.5.2. Do I have to get a newer version of the DLL?
The error I receive now:
Exception in thread "main" java.lang.NoClassDefFoundError: com/jogamp/opengl/GLException
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.security.AccessController.doPrivileged(Native Method)
Now I have this "An illegal reflective access operation has occurred" warning.
After some searching I ended up with using JDK 12 and Java3D 1.7.0 but the warning was still there:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jogamp.java3d.JoglPipeline$1 (file:/C:/tools/Java3D/java3D_170/j3dcore.jar) to method sun.awt.Win32GraphicsDevice.getScreen()
WARNING: Please consider reporting this to the maintainers of org.jogamp.java3d.JoglPipeline$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release