Menu

#886 3d view rendering problem with java 12 on hidpi screens

v_6.x
closed
1
2019-04-24
2019-04-23
Philippe
No

Hi all,

as I'm using a hidpi resolution (4k) w/linux I'm – so to say – forced to use Java 12 to be able to recognise text and icons in SweetHome3D.

Therefore I export

GDK_SCALE=2

and run the SweetHome3D-Java3D-1_5_2 (I run into an error [com.jogamp.opengl.GLException] if I try to use the regular SweetHome3D script) with Java 12.

Unfortunately, the 3d view only takes a quarter (the lower left, fwiw) of the window, no matter whether the 3d view is attached to the main window or held separately. Without having GDK_SCALE set, the 3d view renders correctly, but the text and icons are way too small.

Is this a bug or an incompatibility? Is there any workaround I could try?

Thanks!

Discussion

  • Emmanuel Puybaret

    • assigned_to: Emmanuel Puybaret
     
  • Emmanuel Puybaret

    You'll have to find the problem in your graphics driver to make SweetHome3D script work, because SweetHome3D-Java3D-1_5_2 script uses Java 3D 1.5.2 which doesn't support HiDPI scaling.

     
  • Philippe

    Philippe - 2019-04-24

    Thanks!

    -Dcom.eteks.sweethome3d.j3d.useOffScreen3DView=true
    

    did the trick, it's working fine now with Java3d 1.6.

     
  • Emmanuel Puybaret

    Great! Thanks for your feedback :-)

     
  • Emmanuel Puybaret

    • status: open --> closed
     

Log in to post a comment.