Print at Feb 1, 2026, 9:26:07 AM

Posted by npi at Jun 12, 2013, 1:18:03 PM
Re: Missing texture coordinates in MTL file lead to blurry textures?
Hi Emmanuel,

first, thanks for the quick reply!

Regarding your questions and hints:

Is your OBJ/MTL model correctly rendered when you reimport it in Sweet Home 3D or in another 3D software like Blender?

I was not able to find a menu option to import an obj-file into SH3D. Do I miss something or do you refer to programmatically loading a file using the libraries of SH3d? I also tried Blender but my notebook has not enough performance to load my current model in the program - actually, I wanted to create a simpler model to try the import but didn't do it yet.

id you try to load it with com.eteks.sweethome3d.j3d.OBJLoader class, the OBJ loader I developed for Sweet Home 3D?

No, I was not aware of this class but just tried it. The model loads and I assume it may look better regarding the textures. However, the viewpoint is zoomed to maximum into an object and I am not able to zoom out enough to see the whole model. The problem may be, that I use the RESIZE flag and the radiens param of the class com.sun.j3d.loaders.objectfile.ObjectFile when loading the obj using pure Java3D. I could not find those params in your class. Could you provide a hint how to change the viewport or resize the model?

Thanks in advance, seem to be close to a solution!