How to make metal material.

This topic has been viewed 157 times and has 4 replies
Thread status: Active
Discuss anything here [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
User avatar
GudmHr
Newbie
Posts: 12
Joined: Wed Sep 11, 2024 3:17 pm
Country: Iceland

How to make metal material.

Post by GudmHr »

My longstanding battle with metal definitions in .mtl files has reached a milestone. The two last lines in the file <Ni and d> are the most important.
Enjoy!
Attachments
Cornell_Tester.png
Cornell_Tester.png (270.18 KiB) Viewed 157 times
User avatar
Keet
Moderator
Posts: 1846
Joined: Fri Apr 08, 2022 7:13 am
Country: Netherlands

Re: How to make metal material.

Post by Keet »

For metallic surfaces like chrome, gold, silver, etc add the prefix sweethome3d_window_mirror_ to the g group in the obj file that needs the metallic feature.
Metallic colors: https://madegooddesigns.com/tools/metallic-colors/

See this post for an example:
viewtopic.php?p=64782&hilit=new+year+clock#p64782
Dodecagon.nl
1300+ 3D models, manuals, and projects
User avatar
GudmHr
Newbie
Posts: 12
Joined: Wed Sep 11, 2024 3:17 pm
Country: Iceland

Re: How to make metal material.

Post by GudmHr »

Yes, you're right. There is also a flaw in my method: The lamp looks convincing when floating mid air, but when I place it against something <like a wooden panel> it comes clear that iti is quite transparent even if I set d 0.99. I'll try d 0.999, and call it a day if not successful. It seems SH3D doesn't handle d in a linear fashion.
Thanks for your reply, Keet.
User avatar
Keet
Moderator
Posts: 1846
Joined: Fri Apr 08, 2022 7:13 am
Country: Netherlands

Re: How to make metal material.

Post by Keet »

You can try to change the illum value. If you don't have a list with the possible values and what they represent you can find a manual on my site The MTL file explained where all values are listed and explained.
Dodecagon.nl
1300+ 3D models, manuals, and projects
User avatar
GudmHr
Newbie
Posts: 12
Joined: Wed Sep 11, 2024 3:17 pm
Country: Iceland

Re: How to make metal material.

Post by GudmHr »

Yes, if I remember correctly, I read somewhere on the forum in the past, that even though SH3D only supports illum 0,1 and 2, it might pass other values to the renderer who then again might support them. I'll experiment with it.
Thanks, Keet.

Edit 17:35:
Did a side by side comparison of illum 2, 3, 4 and 5. No apparent difference, it seems that SH3D falls back to illum 2.
Post Reply New Topic