Joined: Mar 22, 2012
Post Count: 4
Status:
Offline
How to replace glass with non-transparent material?
How can I remove transparency from 'glass'?
I am working with the library furniture item 'Accordian fold doors'. I want to replace the transparent glass material with an opaque material (eg wood). I have tried various edits to; colour, texture and materials but the 'glass' sections always remain transparent, as if there is some inherent property that can't be edited through the UI.
Netherlands
Joined: Apr 8, 2022
Post Count: 1222
Status:
Offline
Re: How to replace glass with non-transparent material?
Do I need to edit the underlying model?
Yes. Export the model. This will produce two files an .obj, and a .mtl file. Edit the mtl file. Search for the block that starts with "newmtl" followed by the name of the glass as you saw it when you modified the model in Sweet Home 3D. This block will have a (last) line starting with "d" followed by a number < 0. Either remove the d line or set the value to 1.0 to remove the transparency. Save and import the model again by dragging the .obj file into your 2D pane. Remember to check "Door or window" in the import dialog if you want the model to act like a door that snaps into a wall.
---------------------------------------- Dodecagon.nl 950+ 3D models, manuals, and projects
Joined: Mar 22, 2012
Post Count: 4
Status:
Offline
Re: How to replace glass with non-transparent material?
Thanks. I have tried setting d=1.0 and also removed the line but transparency persistes. I have attempted various other things like delete the .mtl file before import and editing the .obj to remove references to the glass material but no luck. It seems to pickup some default 'glass' effect from somwhere.
Netherlands
Joined: Apr 8, 2022
Post Count: 1222
Status:
Offline
Re: How to replace glass with non-transparent material?
I exported the model and checked the obj/mtl files. The obj file has the "sweethome3d_window_" prefix for the glass which forces the transparency back to 0.5. In the .obj file remove the "sweethome3d_window_" part on the two glass lines in the .obj file and remove the d line in the .mtl file. Import and the transparency is gone.
---------------------------------------- Dodecagon.nl 950+ 3D models, manuals, and projects
Netherlands
Joined: Apr 8, 2022
Post Count: 1222
Status:
Offline
Re: How to replace glass with non-transparent material?
Now that you have edited your first .obj file you should read the manual How to create BiFold doors on the Dodecagon Manuals page. The doors created in the manual come very close to the accordion door but these will open and close.
---------------------------------------- Dodecagon.nl 950+ 3D models, manuals, and projects