Print at Dec 17, 2025, 3:18:25 PM View all posts in this thread on one page
Posted by pencilart at Dec 24, 2011, 8:57:28 PM
confused   imported glass not transparent
I have recently upgraded Art Of Illusion, which I use to make my models and I used to make glass and export it as an obj and the glass would be transparent (after having assigned a transparent texture to it). Using this new version of AOI (2.9) when I export a glass (tried it with a material and without a material) and import it into the latest version of SweetHome3D (3.4) the glass appears either gray or black, no transparency at all.

I don't know if the problem is with A.O.I. or SweetHome3D. How can I tell? And how do I fix this?

Posted by sclee at Dec 25, 2011, 6:29:09 AM
Re: imported glass not transparent
Modifying the furniture, you try to use color, instead of using the textures.
It needs to increase transparency in the next version of the floor, Transparency of separate wall and floor.

Posted by pencilart at Dec 25, 2011, 6:47:28 PM
Re: imported glass not transparent
After playing around with this all day, I found that I had to go back to using this (the old way) by opening the .obj in a text editor:

g sweethome3d_window_pane
usemtl flltgrey


Posted by pencilart at Dec 25, 2011, 11:01:02 PM
Re: imported glass not transparent
ok, never mind.

Posted by Puybaret at Dec 26, 2011, 5:40:25 PM
Re: imported glass not transparent
If OBJ models created with a previous version of AOI are still correctly imported, it means that AOI changed something (it looks like a possible regression since version 2.9 brought changes on textures and materials). You can change it the way you did, but you can also change the value following "d" in the MTL file, 0 being fully transparent and 1 fully opaque.
If you're sure it's a bug, it would be nice to report it to AOI developer.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by pencilart at Dec 26, 2011, 11:01:51 PM
Re: imported glass not transparent
There seems to be no simple "d" in the .mtl file.
This is the info that AOI puts into it:


#Produced by Art of Illusion 2.9, Mon Dec 26 16:19:27 EST 2011
newmtl Glass
Kd 0.0928 0.0928 0.0928
Ks 0.144 0.144 0.144
Ka 0 0 0
illum 2
Ns 127


I tried making the "Kd" line as 0.0 0.0 0.0 but that did not work. I also tried it as 0 0 0 but that too did not work. The vase imported into SH3D was still black.

So, I went with:


g sweethome3d_window_pane_vase
usemtl glasstransparent


in the .obj file.

Be expecting this vase ( http://www.storm-artists.net/view/117760 ) in the models contributions shortly. :D

Posted by Puybaret at Dec 27, 2011, 12:28:57 AM
Re: imported glass not transparent
You could add the "d" line yourself. For example:

d 0.5


Your vase is really nice. Thanks for your contribution. smile
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by pencilart at Dec 28, 2011, 5:45:52 PM
Re: imported glass not transparent
So, the
d 0.5
could be placed between
newmtl Glass
and

Kd 0.0928 0.0928 0.0928
?

Or should it be placed at the bottom of
Ns 127
?

Posted by Puybaret at Dec 28, 2011, 6:53:40 PM
Re: imported glass not transparent
You can place the d line anywhere between a newmtl line and the next newmtl line if there are more than one material defined in the MTL file.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by pencilart at Dec 28, 2011, 10:58:36 PM
Re: imported glass not transparent
that worked! The glass is rather dark though. So now I have 3 versions: A light one, (usemtl glasstransparent) a medium shaded one, (usemtlglass) and now this one (using the method you just taught me).