hdpi revisited on Linux

This topic has been viewed 5271 times and has 5 replies
Thread status: Active
Questions about Sweet Home 3D installation [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
tk1138
Posts: 5
Joined: Sat May 20, 2017 3:25 am
Country: usa

hdpi revisited on Linux

Post by tk1138 »

hello,

I trying to get Sweet Home 3D to display better, larger text, in Linux running with a 4K monitor. I've downloaded the latest version, 5.7.

Java is locally installed, from webupd8 ppa.

Code: Select all

java version "9.0.4" 
Java(TM) SE Runtime Environment (build 9.0.4+11) 
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
but it looks like the distribution has its own local jre8?
I created this file "SweetHome3D.l4j.ini" and placed it in
the expanded installed directory and in ./lib from there.
the file has this single line :

Code: Select all

Dcom.eteks.sweethome3d.resolutionScale=2
I thought I had this displaying nicely in an older version of Sweet Home 3D, 5.2 release. but this doesn't seem to work in 5.7?

Is there something else I can do to make the text look larger in Linux? I'm use a pre-release of xubuntu Bionic 18-04.

thanks
tk1138
Posts: 5
Joined: Sat May 20, 2017 3:25 am
Country: usa

Re: hdpi revisited on Linux

Post by tk1138 »

typo. it was in 5.4 when I tried this last. It was a while ago, and I dont remember if I just worked around the problem and used a regular DPI monitor.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: hdpi revisited on Linux

Post by Puybaret »

The [font=courier new]SweetHome3D.l4j.ini[/font] file is only for windows and you forgot to add an hyphen if in front of [font=courier new]-D[/font] Java option.
Under Linux, you should edit the [font=courier new]SweetHome3D[/font] file and add all the options cited in the FAQ Texts in the furniture catalog are not displayed correctly or icons in the toolbar appear very small on my computer. How can I fix that?. If you add only the [font=courier new]-Dcom.eteks.sweethome3d.resolutionScale=2[/font] option, it won't work because it's possible to change font size only in Metal look and feel.

There's no need to install Java since the installer provided in Download page already comes with a copy of Java 8. Anyway, I'm not sure that Sweet Home 3D is able to work under Java 9.
Emmanuel Puybaret, Sweet Home 3D creator
tk1138
Posts: 5
Joined: Sat May 20, 2017 3:25 am
Country: usa

Re: hdpi revisited on Linux

Post by tk1138 »

Thanks. I tried this modification -

Code: Select all

 cat SweetHome3D
#!/bin/sh

# Retrieve Sweet Home 3D directory
PROGRAM=`readlink "$0"`
if [ "$PROGRAM" = "" ]; then
  PROGRAM=$0
fi
PROGRAM_DIR=`dirname "$PROGRAM"`

# Run Sweet Home 3D
exec "$PROGRAM_DIR"/jre8/bin/java -Xmx1024m -Dcom.eteks.sweethome3d.resolutionScale=2.5 -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel -Dswing.plaf.metal.controlFont=Dialog-11  -Dswing.plaf.metal.userFont=SansSerif-11  -Dswing.plaf.metal.systemFont=SansSerif-11 -classpath "$PROGRAM_DIR"/lib/SweetHome3D.jar:"$PROGRAM_DIR"/lib/Furniture.jar:"$PROGRAM_DIR"/lib/Textures.jar:"$PROGRAM_DIR"/lib/Examples.jar:"$PROGRAM_DIR"/lib/Help.jar:"$PROGRAM_DIR"/lib/iText-2.1.7.jar:"$PROGRAM_DIR"/lib/freehep-vectorgraphics-svg-2.1.1b.jar:"$PROGRAM_DIR"/lib/sunflow-0.07.3i.jar:"$PROGRAM_DIR"/lib/jmf.jar:"$PROGRAM_DIR"/lib/batik-svgpathparser-1.7.jar:"$PROGRAM_DIR"/lib/java3d-1.6/j3dcore.jar:"$PROGRAM_DIR"/lib/java3d-1.6/j3dutils.jar:"$PROGRAM_DIR"/lib/java3d-1.6/vecmath.jar:"$PROGRAM_DIR"/lib/java3d-1.6/gluegen-rt.jar:"$PROGRAM_DIR"/lib/java3d-1.6/jogl-java3d.jar:"$PROGRAM_DIR"/jre8/lib/javaws.jar -Djava.library.path="$PROGRAM_DIR"/lib/java3d-1.6 -Djogamp.gluegen.UseTempJarCache=false -Dcom.eteks.sweethome3d.applicationId=SweetHome3D#Installer com.eteks.sweethome3d.SweetHome3D -open "$1"
and when I start up, I get this ---

Code: Select all

$ ./SweetHome3D 
Exception in thread "main" java.lang.InternalError: XXX0 profile[1]: GL3bc -> profileImpl GL4bc !!! not mapped 
	at com.jogamp.opengl.GLProfile.computeProfileMap(GLProfile.java:2071)
	at com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1924)
	at com.jogamp.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1875)
	at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1843)
	at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80)
	at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216)
	at com.jogamp.opengl.GLProfile.getProfileMap(GLProfile.java:2297)
	at com.jogamp.opengl.GLProfile.get(GLProfile.java:1021)
	at com.jogamp.opengl.GLProfile.get(GLProfile.java:1050)
	at com.jogamp.opengl.GLProfile.getMaxFixedFunc(GLProfile.java:803)
	at javax.media.j3d.JoglPipeline.initialize(JoglPipeline.java:131)
	at javax.media.j3d.Pipeline.createPipeline(Pipeline.java:92)
	at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:858)
	at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:267)
	at javax.media.j3d.GraphicsConfigTemplate3D.getBestConfiguration(GraphicsConfigTemplate3D.java:317)
	at java.awt.GraphicsDevice.getBestConfiguration(GraphicsDevice.java:207)
	at com.eteks.sweethome3d.j3d.Component3DManager.<init>(Unknown Source)
	at com.eteks.sweethome3d.j3d.Component3DManager.getInstance(Unknown Source)
	at com.eteks.sweethome3d.SweetHome3D.addComponent3DRenderingErrorObserver(Unknown Source)
	at com.eteks.sweethome3d.SweetHome3D.init(Unknown Source)
	at com.eteks.sweethome3d.SweetHome3D.main(Unknown Source)
I see an initial splash screen.. and it just hangs.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: hdpi revisited on Linux

Post by Puybaret »

Then try with [font=courier new]SweetHome3D-Java3D-1_5_2[/font] script.
Emmanuel Puybaret, Sweet Home 3D creator
tk1138
Posts: 5
Joined: Sat May 20, 2017 3:25 am
Country: usa

Re: hdpi revisited on Linux

Post by tk1138 »

yes, that worked, thank you.

Code: Select all

$ cat SweetHome3D-Java3D-1_5_2
#!/bin/sh

# Retrieve Sweet Home 3D directory
PROGRAM=`readlink "$0"`
if [ "$PROGRAM" = "" ]; then
  PROGRAM=$0
fi
PROGRAM_DIR=`dirname "$PROGRAM"`

# Run Sweet Home 3D
exec "$PROGRAM_DIR"/jre8/bin/java -Xmx1024m -Dcom.eteks.sweethome3d.resolutionScale=2.5 -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel -Dswing.plaf.metal.controlFont=Dialog-11  -Dswing.plaf.metal.userFont=SansSerif-11  -Dswing.plaf.metal.systemFont=SansSerif-11  -classpath "$PROGRAM_DIR"/lib/SweetHome3D.jar:"$PROGRAM_DIR"/lib/Furniture.jar:"$PROGRAM_DIR"/lib/Textures.jar:"$PROGRAM_DIR"/lib/Examples.jar:"$PROGRAM_DIR"/lib/Help.jar:"$PROGRAM_DIR"/lib/iText-2.1.7.jar:"$PROGRAM_DIR"/lib/freehep-vectorgraphics-svg-2.1.1b.jar:"$PROGRAM_DIR"/lib/sunflow-0.07.3i.jar:"$PROGRAM_DIR"/lib/jmf.jar:"$PROGRAM_DIR"/lib/batik-svgpathparser-1.7.jar:"$PROGRAM_DIR"/lib/j3dcore.jar:"$PROGRAM_DIR"/lib/j3dutils.jar:"$PROGRAM_DIR"/lib/vecmath.jar:"$PROGRAM_DIR"/jre8/lib/javaws.jar -Djava.library.path="$PROGRAM_DIR"/lib -Dcom.eteks.sweethome3d.applicationId=SweetHome3D#Installer com.eteks.sweethome3d.SweetHome3D -open "$1"
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest