Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 10
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 5680 times and has 9 replies Next Thread
pencilart
Advanced Member
Member's Avatar


Joined: Oct 2, 2007
Post Count: 188
Status: Offline
Reply to this Post  Reply with Quote 
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?
[Dec 24, 2011, 7:57:28 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
sclee
Member




Joined: Jan 3, 2011
Post Count: 44
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Dec 25, 2011, 5:29:09 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
pencilart
Advanced Member
Member's Avatar


Joined: Oct 2, 2007
Post Count: 188
Status: Offline
Reply to this Post  Reply with Quote 
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

----------------------------------------
[Edit 1 times, last edit by pencilart at Dec 25, 2011, 10:01:24 PM]
[Dec 25, 2011, 5:47:28 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
pencilart
Advanced Member
Member's Avatar


Joined: Oct 2, 2007
Post Count: 188
Status: Offline
Reply to this Post  Reply with Quote 
Re: imported glass not transparent

ok, never mind.
[Dec 25, 2011, 10:01:02 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
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
[Dec 26, 2011, 4:40:25 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
pencilart
Advanced Member
Member's Avatar


Joined: Oct 2, 2007
Post Count: 188
Status: Offline
Reply to this Post  Reply with Quote 
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
[Dec 26, 2011, 10:01:51 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
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
[Dec 26, 2011, 11:28:57 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
pencilart
Advanced Member
Member's Avatar


Joined: Oct 2, 2007
Post Count: 188
Status: Offline
Reply to this Post  Reply with Quote 
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
?
[Dec 28, 2011, 4:45:52 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
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
[Dec 28, 2011, 5:53:40 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
pencilart
Advanced Member
Member's Avatar


Joined: Oct 2, 2007
Post Count: 188
Status: Offline
Reply to this Post  Reply with Quote 
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).
[Dec 28, 2011, 9:58:36 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved