Print at Dec 16, 2025, 5:08:39 PM

Posted by Keet at Jul 1, 2023, 4:49:24 PM
Re: Roof with dormers and many corners and pitches // Dach mit Gauben und vielen Ecken und Neigungen
How/where do you find invisible objects?
Invisibility is a result of the transparency property "d" in the mtl file. This is often used to create glass by adding a property line "d 0.4" to the material you want to make transparent.

There are two ways to make part of an object invisible:

-1-
In the Modify furniture dialog select the part you want to make invisible and check the invisible checkbox for that material. When you export the object the invisible part will be excluded so when you import the object again that part will be gone.
You like the handle on a specific door? Make everything invisible except the handle and export/import. Now you have only the handle which you can use for another door.

-2-
The second way is to edit the mtl file and add the d property if it's not already there. "d 1.0" is the default and means fully opaque, "d 0.0" is 100% transparent, i.e. invisible. The advantage of doing it this way is that the material remains available in the object definition where with export/import the invisible part is lost.

I use the second method to add invisible boxes to extend the bounding box of objects without the boxes showing. Very useful if you create multiple objects of different sizes that must be stacked. By using the invisible boxes each bounding box can be made the same and thus allows aligning stacked objects by their sides.

MTL for glass:
newmtl Glass
illum 1
Ka 1.0 1.0 1.0
Kd 1.0 1.0 1.0
Ks 0.0 0.0 0.0
Ns 1.0
Ni 1.45
d 0.4


MTL for an invisible box:
newmtl Invisible
illum 2
Ka 1.0 1.0 1.0
Kd 1.0 1.0 1.0
Ks 0.0 0.0 0.0
d 0
(In the obj file change every "usemtl ..." with "usemtl Invisible" to make that part invisible but still a part of the object)

You can download a ready made invisible box: https://www.sweethome3d.com/models/contributions/invisibleBox.zip .

Remark concerning the gap you want for your roof: Unless that specific part is a separate part of the roof, you will not be able to use one of these methods, simply because there's no part to make invisible. You can't do this in Sweethome3D but you can import and export obj files in Blender to create a hole.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects