Menu

#722 Import funiture missing texture

v_5.x
wont-fix
None
3
2017-01-10
2017-01-10
Phil Wiggum
No

When importing a furniture from Wavefront .obj file the texture is missing.
This is due to utf-8 is not supported.
Exporting from blender with non asci the .mtl file is replace with a default file.
You can track this by watching the sweethome3d/work/ directory.

So exporting a model from blender with a file name including utf-8 letters is not working.
And probably using a directory with non asci could also cause problems....
Replacing all utf-8 characters with asci then every thing is works as expected.

This was very time consuming thing to find-out due to there is no log functionality.
Also it would be appropriated to show a message box saying there was a problem with the material file (.mtl) when importing a furniture

Beside this it a really nice software!

Linux 64 Bit
Sweet Home 3D ® Version 5.3 Java version 1.8.0_112 / 64 bit / 0.9 GB max Java 3D version 1.5.2 PDF print provided by iText SVG export provided by FreeHEP SVG path compilation provided by Batik Photo rendering provided by SunFlow
Start from ./SweetHome3D-Java3D-1_5_2
exec "$PROGRAM_DIR"/jre8/bin/java -Xmx1024m -classpath "$PROGRAM_DIR"/lib/SweetHome3D.jar:"$PROGRAM_DIR"/lib/Furniture.jar:"$PROGRAM_DIR"/lib/Textures.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"

Discussion

  • Emmanuel Puybaret

    • assigned_to: Emmanuel Puybaret
     
  • Emmanuel Puybaret

    OBJ format specs require ASCII encoding and Sweet Home 3D actually uses ISO-8859-1 encoding. I also tolerated spaces in file names but sorry, I don't think I'll go further. Directories are not a problem since all files must be in the same directory.

     

    Last edit: Emmanuel Puybaret 2017-01-10
  • Emmanuel Puybaret

    • status: open --> wont-fix
     

Log in to post a comment.

MongoDB Logo MongoDB