Print at Dec 16, 2025, 10:53:10 PM

Posted by Puybaret at Mar 7, 2024, 7:09:57 PM
Re: Using textures from default catalog after export import
All texture images are unique in memory and when two files contain the same image, only one instance of the image is kept. It's easy to experience: apply a texture on an object, export it to OBJ format and quit the program. Then relaunch Sweet Home 3D, apply the same texture on an object in a new home, import the previously exported OBJ file, select the two objects, export them to OBJ format and you'll see that the exported files contain only one image.

It would be also nice to avoid multiple files containing the same image, but if it happens one day, it will probably only whithin a SH3F library file if multiple models it contains reference the same texture. It won't happen in a SH3D file which shall not depend on a given catalog for better portability, even if the model, icon and image attributes of its Home.xml entry may cite URLs instead of files within the SH3D file.
This is how 3D models and images are referenced in home data managed by the Online version to reduce the space on the server. But I prefer not to use this behavior in files saved by Sweet Home 3D installer version, again for portability reasons which shouldn't be an option.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator