Joined: Oct 2, 2007
Post Count: 188
Status:
Offline
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?
Joined: Jan 3, 2011
Post Count: 44
Status:
Offline
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.
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
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
Joined: Oct 2, 2007
Post Count: 188
Status:
Offline
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
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
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
Joined: Oct 2, 2007
Post Count: 188
Status:
Offline
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).