Print at Dec 22, 2025, 6:25:22 PM

Posted by Keet at Jul 12, 2023, 5:32:09 PM
One way mirror window
For those who don't follow the French forum. There was a question about a privacy film stuck on window.
In other words: a one way window, from the inside it's glass but from the outside it works as a mirror.
That's actually very simple:

test.obj
mtllib test.mtl
g bottom_1
usemtl Border
v 767.1781 255.0 2795.346
v 817.1781 255.0 2795.346
v 817.1781 255.0 2796.346
v 767.1781 255.0 2796.346
vt 0.0 0.0 0
vt 1.0 0.0 0
vt 1.0 1.0 0
vt 0.0 1.0 0
vn 0.0 -1.0 0.0
f 1/1/1 2/2/1 3/3/1
f 1/1/1 3/3/1 4/4/1
g top_2
usemtl Border
v 767.1781 355.0 2795.346
v 767.1781 355.0 2796.346
v 817.1781 355.0 2796.346
v 817.1781 355.0 2795.346
vn 0.0 1.0 0.0
f 5/4/2 6/1/2 7/2/2
f 5/4/2 7/2/2 8/3/2
g left_3
usemtl Border
vn -1.0 0.0 0
f 1/1/3 4/2/3 6/3/3
f 1/1/3 6/3/3 5/4/3
g right_4
usemtl Border
vn 1.0 0.0 -0
f 2/2/4 8/3/4 7/4/4
f 2/2/4 7/4/4 3/1/4
g back_5
usemtl Glass
vn -0 0.0 -1.0
f 1/2/5 5/3/5 8/4/5
f 1/2/5 8/4/5 2/1/5
g sweethome3d_window_mirror_6
usemtl Mirror
vn 0 0.0 1.0
f 3/2/6 7/3/6 6/4/6
f 3/2/6 6/4/6 4/1/6



test.mtl
newmtl Border
illum 2
Ka 0.4 0.4 0.4
Kd 1.0 1.0 1.0
Ks 0.3 0.3 0.3
Ns 60.0

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.39999998

newmtl Mirror
illum 2
Ka 0.2 0.2 0.2
Kd 1.0 1.0 1.0
Ks 1.0 1.0 1.0
Ns 128.0
map_Kd Mirror.jpeg


This was created using a box and changing the back to glass and the front to a mirror. The image in the mtl file is just the image from the Sweethome3D textures but any color should work too.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects