US
Joined: Apr 26, 2020
Post Count: 5
Status:
Offline
Trying to get HiDPI working - SH3d 6.3, Ubuntu 18.04
Folks, I'm running an HP x360, Ubuntu 18.04. I'm trying to get SH3D running in HiDPI mode. I've tried the various suggestions I've seen, so far without any success - the program runs but it's all tiny. My most recent method was to edit the SweetHome3D shell script to run my local copy of java 13 (actually zulu-13). This runs fine AFAICT but is still not HiDPI.
The change I made was just to replace "$PROGRAM_DIR/jre8/bin/java" with /usr/bin/java, since my default java is now zulu-13.
I also tried adding -Dcom.eteks.sweethome3d.resolutionScale=2 to the script but that didn't make any difference. This is not my area of expertise, that was just shooting in the dark...
For completeness, here is the relevant part of my revised script:
US
Joined: Apr 26, 2020
Post Count: 5
Status:
Offline
Re: Trying to get HiDPI working - SH3d 6.3, Ubuntu 18.04
I did that first, and the app came up but it was not in hidpi mode, very tiny. That's why I tried modifying the script as shown above, after I tried all the things I found online. I'm open to suggestion :)
US
Joined: Apr 26, 2020
Post Count: 5
Status:
Offline
Re: Trying to get HiDPI working - SH3d 6.3, Ubuntu 18.04
Following up, I've tried the following - it seems to work exactly the same in all cases. - 6.3 download, stock - 6.3 modified as shown above - Ubuntu distribution version - 'Portable' all architecture version I also tried to get the Java Web Start version working with suggested parameter mod (" -Dcom.eteks.sweethome3d.resolutionScale=2") I don't recall if I got that working, but if I did it was just the same.
US
Joined: Apr 26, 2020
Post Count: 5
Status:
Offline
Re: Trying to get HiDPI working - SH3d 6.3, Ubuntu 18.04
I'd just like to add that I used SH3d a number of years ago on a different project with great success. I appreciate the effort all y'all have put into this, and I'm confident that we can make it work! :D
France
Joined: May 25, 2020
Post Count: 1
Status:
Offline
Re: Trying to get HiDPI working - SH3d 6.3, Ubuntu 18.04
Just solved it (not very clean). I'm running Arch and I just hacked the /usr/bin/sweethome3d script. I've just added the -Dcom.eteks.sweethome3d.resolutionScale=2 in the options of the launch command and it worked like a charm. I guess I'll have to redo the same after the next update ;-)) So I will document it right now. Hope this helps Jean-Pierre
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Trying to get HiDPI working - SH3d 6.3, Ubuntu 18.04
Thanks for your feedback. Setting the com.eteks.sweethome3d.resolutionScale property is not wrong
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator