Realistic black windows

This topic has been viewed 2539 times and has 2 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
swave
Posts: 40
Joined: Tue Sep 15, 2015 6:05 pm

Realistic black windows

Post by swave »

Hi

I'm trying to render pictures with black windows. So in general black glass. I tried first with a simple wall in black color and shiny surface. That doesn't look bad but is not as smooth as I expected. Then I tried with a window in black color. However now it is transparent and I can see the things behind it which is not what I wanted.

How can I best create a surface with shiny but (almost) non transparent glass like these examples?

https://m.media-amazon.com/images/I/51W ... 0,500_.jpg
https://static1.squarespace.com/static/ ... D+2015.jpg

Thanks
User avatar
SeppoV12
Posts: 50
Joined: Thu Mar 28, 2019 2:40 pm
Country: Finland

Re: Realistic black windows

Post by SeppoV12 »

This thead is few months old, maybe you have found good solution already.
Any way, my solution is not as clear, shiny and detailed as in your two demo pictures behind links but here it is.

Image

This is what I have done:
- i took frameless mirror from SH3D furniture library (just one material, fine!)
- used 'Copy as new furniture'-plugin to copy it to SH3D workspace
- converted that copy to .OBJ-format with '3D view-Export to OBJ format...'
- results are filename.OBJ and filename.MTL
- replaced material definition lines in MTL-file with following lines:

newmtl sweethome3d_window_mirror_1
illum 3
Ka 0.0000 0.0000 0.0000
Kd 0.0000 0.0000 0.0000
Ks 0.0000 0.0000 0.0000
Ns 200
Ni 1.5
#d 0.9
d 0.7

- parameter d defines how this material dissolves into the background.
(1 is completely opaque, 0 completely transparent, # means comment line)
- after each modification I imported OBJ-file to SH3D ('Furniture - Import as furniture')
- left black window in my picture has d=0.7, right one has d=0.9
(other windows are not modified and used just to show in reflections)

Crude explanation:
- effect of parameter d in MTL file can be seen in redered picture
- in SH3D:s 3d-window also 'Modify furniture - Materials' Color and shininess affect what is seen AND in rendered picture

Inside 'black window.zip' are files black window.sh3d, black window.obj, black window.mtl and black window.jpg.
http://www.mediafire.com/file/54uk91ssn ... w.zip/file

I hope this help somebody.
(and also hope that I really could understand things in MTL-file.. [:-/] )
Seppo
swave
Posts: 40
Joined: Tue Sep 15, 2015 6:05 pm

Re: Realistic black windows

Post by swave »

I don't need it anymore, but this looks really good, thanks. I'll keep it in case I might need it again some time.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 3 guests