Print at Dec 19, 2025, 1:11:17 PM

Posted by Puybaret at May 27, 2010, 10:50:56 AM
Re: How to make a mirror surface
In the current version of Sweet Home 3D, a part of a 3D model is treated as a mirror if the name of that part starts with sweethome3d_window_mirror. As the way to name a part differs from one format to the other, here's the steps to follow if you want to name mirror surfaces modeled with a texture image in a 3D model at any format:
- download the mirror model you want,
- import it in an empty document in Sweet Home 3D,
- export the document at OBJ format,
- edit the generated MTL file and find the line(s) starting by map_Kd and followed by the file name containing the mirror texture image found in the same folder as OBJ and MTL files,
- in the lines that precedes that map_Kd line, find the first line starting by newmtl and note down the material name that follows newmtl,
- now, edit the OBJ file and find the line(s) starting with usemtl and followed by the material name of the mirror you found in the MTL file,
- in the g line(s) that preceding the usemtl line(s), add the sweethome3d_window_mirror text in front of the piece name following the g letter, with no space between sweethome3d_window_mirror and the piece name,
- save the OBJ file,
- import the saved OBJ file in your home and check if it's treated as a mirror with the two best qualities in the Create photo dialog.

I hope you can make it. smile
The first time will be probably difficult, but once you understood the logic, it's quite easy.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator