Transparent floor

This topic has been viewed 8450 times and has 9 replies
Thread status: Active
Looking for a particular 3D model or texture? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
stelvio.rosset
Posts: 6
Joined: Mon Mar 08, 2021 7:39 pm
Country: Finland

Transparent floor

Post by stelvio.rosset »

Very good day, anybody can suggest how to create a glass (transparent) floor, or better a piece of that? Thanks a lot for the help. Stelvio
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Transparent floor

Post by Puybaret »

Here's my suggestion:
- Create a new home
- Choose Plan > Add level menu item
- Select room creation tool and draw the shape you want
- Choose 3D view > Modify 3D view menu item and select the transparency level you want with Walls transparency slider
- Choose 3D view > Export to OBJ format and confirm the option Export selection when prompted
- Import in your main home the exported OBJ file with Furniture > Import furniture menu item
Emmanuel Puybaret, Sweet Home 3D creator
stelvio.rosset
Posts: 6
Joined: Mon Mar 08, 2021 7:39 pm
Country: Finland

Re: Transparent floor

Post by stelvio.rosset »

Hi, thanks for the hint, yes this solution works; there is any additional possibility just to assign to the floor the glass material similarly to the windows object? Thanks
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Transparent floor

Post by Puybaret »

If there was a simpler solution, I would have cited it first [;)]
Emmanuel Puybaret, Sweet Home 3D creator
stelvio.rosset
Posts: 6
Joined: Mon Mar 08, 2021 7:39 pm
Country: Finland

Re: Transparent floor

Post by stelvio.rosset »

Thanks for your help, I will proceed as you suggested. Stelvio
crackwood01
Posts: 68
Joined: Wed Oct 14, 2020 12:05 am
Country: Canada

Re: Transparent floor

Post by crackwood01 »

Thanks for this great trick!!

I now use it for tinted windows!!

black wall ->> opacity adjustment ->> export to obj
User avatar
Peppyy
Posts: 27
Joined: Sat Dec 30, 2023 4:08 pm
Country: USA

Re: Transparent floor

Post by Peppyy »

Excelent! Worked perfectly and saved me an hours trying to get it to work in blender.
Who said you can't do it.
I don't listen to Who anymore.
User avatar
Keet
Posts: 1807
Joined: Fri Apr 08, 2022 7:13 am
Country: Netherlands

Re: Transparent floor

Post by Keet »

Personally I find it easier to edit the exported object and add a d value (transparency) to the material I want to be transparent. In most cases you only want one part to have transparency and with the manual edit that's just as easy.

This is explained here and here .
Dodecagon.nl
1300+ 3D models, manuals, and projects
meehocz
Posts: 1
Joined: Mon May 06, 2024 10:54 pm
Country: Slovakia

Re: Transparent floor

Post by meehocz »

Maybe even simpler solution: Create a transparent png and use it as an imported texture in Modify 3D View / Ground.
User avatar
Keet
Posts: 1807
Joined: Fri Apr 08, 2022 7:13 am
Country: Netherlands

Re: Transparent floor

Post by Keet »

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:

Code: Select all

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:

Code: Select all

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
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest