Print at Dec 17, 2025, 7:03:25 AM

Posted by Keet at May 7, 2024, 1:01:57 PM
Re: Transparent floor
Maybe even simpler solution: Create a transparent png and use it as an imported texture in Modify 3D View / Ground.
Simpler? For me setting the d parameter is just as simple.
With a texture image you are stuck with that image. Using the d property in the mtl file leaves you the option to change colors for semi-transparent objects like tinted windows.
Besides that, a texture increases the imported object size with the size of the texture. It also increases the rendering time for a photo.

For simple window glass (a pane WxHxD 100x100x0.5)
Glass.obj:
mtllib Glass.mtl
g glass_1
usemtl Glass
v -50.0 250.0 -0.250002
v 50.0 250.0 -0.250002
v 50.0 250.0 0.249998
v -50.0 250.0 0.249998
v -50.0 350.0 -0.24999799
v -50.0 350.0 0.250002
v 50.0 350.0 0.250002
v 50.0 350.0 -0.24999799
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
vn 0.0 1.0 0.0
vn -1.0 0.0 0.0
vn 1.0 0.0 0.0
vn 0.0 0.0 -1.0
vn 0.0 0.0 1.0
f 1/1/1 2/2/1 3/3/1
f 1/1/1 3/3/1 4/4/1
f 5/4/2 6/1/2 7/2/2
f 5/4/2 7/2/2 8/3/2
f 1/1/3 4/2/3 6/3/3
f 1/1/3 6/3/3 5/4/3
f 2/2/4 8/3/4 7/4/4
f 2/2/4 7/4/4 3/1/4
f 1/2/5 5/3/5 8/4/5
f 1/2/5 8/4/5 2/1/5
f 3/2/6 7/3/6 6/4/6
f 3/2/6 6/4/6 4/1/6

Glass.mtl:
newmtl Glass
illum 2
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.4

You can import the glass object and resize it to any format you need.

A nice trick: import the glass as a staircase and you can can insert a partial glass floor. Rotate the pane horizontal and make the depth the same as the floor thickness. Elevate the glass in the room below to the wall height. Done, a nice glass 'hole' in the floor.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects