Print at Dec 18, 2025, 4:37:45 PM

Posted by Keet at Oct 30, 2024, 8:05:08 AM
Re: (Semi)transparent Mirrors
It has nothing to do with the d value being a float. Understand that the mtl file holds the definitions of materials. Nothing more, nothing less. It is up to the applications that use the file if and how it uses the information.
For example Sweet Home 3D only uses the basic map_Kd for textures (both use and write). Other applications like Blender can and will use additional color and texture definitions that might be available in the mtl file. The same goes for the d value (transparency). By default Sweet Home 3D doesn't write the d value when exporting but when it's there it will use it for the 3D view. If you imported an object with a d value it will retain that value when exporting again.
Sweet Home 3D does write a 'd 0.5' value for materials on groups with the prefix 'sweethome3d_window_pane_'. It also writes the d value when transparency is set in the 3D view preferences before export. In the Generate 3D shape tool you can set a transparency that is also exported with the d value.

GaudiGalopin3324 did a great experiment with transparency: http://www.sweethome3d.com/support/forum/viewthread_thread,13493
Reproduce that experiment but now with the added sweethome3d_window_mirror_ prefix. It will show you exactly how Sweet Home 3D handles the different options, both in the 3D view and photo rendering. Show us the results!
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects