AOI - colored objects?

This topic has been viewed 69356 times and has 28 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
okh
Posts: 1545
Joined: Sun May 12, 2013 9:43 pm

Re: AOI - colored objects?

Post by okh »

...much more transparent than the SH3D's library windows... why ? Did I use an incorrect color ? Must my glass be thicker in order to have another colour aspect ?

Congratulations on your trapeze window. You did not mention your transparency setting. SH3D windowpanes have a transparency of 50% (I think). If this is not possible from within your modelling software, this thread has hints on changing transparency in the .mtl file. Below values I've found in a SH3D window.

Code: Select all

newmtl flltgrey
illum 1
Ka 0.5224 0.5224 0.5224
Kd 0.8245 0.8245 0.8245
Ks 0.0 0.0 0.0
Ns 1.0
d 0.5
ok
User avatar
Theduck38
Posts: 13
Joined: Tue Dec 03, 2013 9:43 am

Re: AOI - colored objects?

Post by Theduck38 »

Hi,

In fact I followed the tutorial on this site to make a 3D object with Art Of Illusion, and modified the glass object of the exported .obj file with these lines :

Code: Select all

g sweethome3d_window_pane
usemtl flltgrey
I took the colour 'flltgrey' from another SH3D window object. But mine is not rendering the same.
The tutorial does not give way to change the transparency of the object and the window I choose seems to have no more info than coordinates and 'unsemtl' values...

I found on some other models that you can specify a mtl library file inside the .obj file, but it seems not to be the case of most windows used in SH3D, like the example I took (called 'doublewindow 126x163').

...but I don't understand what I need to do with my .obj file to get the same material as the library provided windows...
User avatar
Theduck38
Posts: 13
Joined: Tue Dec 03, 2013 9:43 am

Re: AOI - colored objects?

Post by Theduck38 »

OK, I finally solved this... thanks to your hints !!!
I created a .mtl file with your data inside, and added 'mtllib filename' at beginning of my .obj file.

But the final trick is that the 50% transparent effect is visible on render only if when I position the window, I orient the 'black part' at the outside of the wall... I try to say it better : when you add a window, there's a thicker black line that can be either side of the wall. In my case, if this thicker black line is positioned inside the house, I get a totally transparent glass (seen from outside). If the black line is outside, I get the correct 50% transparency.

Is it expected behaviour ?
okh
Posts: 1545
Joined: Sun May 12, 2013 9:43 pm

Re: AOI - colored objects?

Post by okh »

Oops, sorry, I forgot to mention mtllib reference in the .obj file (I assumed you had both files already).

No, not expected behaviour. Are you sure that BOTH sides of the glass (windowpane) have been assigned the same, transparent colour name? If you share a simple wall sh3d file with your model, it is probably easier to figure out what happened.

ok
User avatar
Theduck38
Posts: 13
Joined: Tue Dec 03, 2013 9:43 am

Re: AOI - colored objects?

Post by Theduck38 »

Hello,

Here is an example... it seems you are right, and the glass hasn't a 50% transparent property on both sides...

Wall with Trapeze window

How can I correct this ?
User avatar
hansmex
Posts: 4027
Joined: Sat Sep 26, 2009 11:36 am
Country: Netherlands

Re: AOI - colored objects?

Post by hansmex »

When I open the file, the window is transparent from both sides.

H
Hans

new website - under constuction
hansdirkse.info
User avatar
Theduck38
Posts: 13
Joined: Tue Dec 03, 2013 9:43 am

Re: AOI - colored objects?

Post by Theduck38 »

Ho ho... I imported a zip file containing a .obj and a .mtl in my sh3D wall test. My renderer showed it different if seen on different sides.

If I download it again from my server, change the ground to display a green texture, I still have the transparency difference...

What did I miss when exporting ? Could there be a local file that enables my 'selective side transparent view'
okh
Posts: 1545
Joined: Sun May 12, 2013 9:43 pm

Re: AOI - colored objects?

Post by okh »

It looks to me as if you have a one sided object (window pane): transparent glass (verre) on one side and nothing on the other side. If you can define and add material to the other (invisible) side of the glass, it should be ok.

ok
User avatar
Theduck38
Posts: 13
Joined: Tue Dec 03, 2013 9:43 am

Re: AOI - colored objects?

Post by Theduck38 »

Hello,

You were right... I used for the glass a polygon instead of a cube as a primitive... my noobish fault !

Problem is now solved with a 3D object as window glass.

Thanks for your help, okh and hansmex !
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests