Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 7
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 769 times and has 6 replies Next Thread
peng1
Newbie




Joined: Mar 22, 2012
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
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.

Do I need to edit the underlying model?
[Sep 14, 2024, 8:50:04 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 1222
Status: Offline
Reply to this Post  Reply with Quote 
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
[Sep 14, 2024, 9:00:14 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
peng1
Newbie




Joined: Mar 22, 2012
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Sep 15, 2024, 8:25:55 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 1222
Status: Offline
Reply to this Post  Reply with Quote 
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
[Sep 15, 2024, 9:35:03 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
captaincook
Advanced Member
Member's Avatar

France
Joined: Oct 20, 2017
Post Count: 262
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to replace glass with non-transparent material?

Bonjour.

Autre solution possible par exemple.



A gauche, une porte accordéon vitrée.

A droite, j'ai rendu les vitres invisibles et les ai remplacé par deux panneaux de bois (ceux plus clairs).

L'ensemble est exporté au format .obj puis ré importé dans la section "Portes et fenêtres".
[Sep 15, 2024, 1:20:31 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
peng1
Newbie




Joined: Mar 22, 2012
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to replace glass with non-transparent material?

Now solved. Thanks for your help!
After 10 years in SH3D I finally edited an obj file :-)
[Sep 15, 2024, 1:32:37 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 1222
Status: Offline
Reply to this Post  Reply with Quote 
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
[Sep 15, 2024, 2:51:25 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved