Print at Jan 30, 2026, 11:59:20 PM
Posts: 29   Pages: 3   [ Previous Page | 1 2 3 ]
View all posts in this thread on one page
Posted by okh at Dec 14, 2013, 9:47:14 AM
Re: AOI - colored objects?
...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.
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

Posted by Theduck38 at Dec 15, 2013, 11:26:32 PM
Re: AOI - colored objects?
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 :
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...

Posted by Theduck38 at Dec 15, 2013, 11:53:55 PM
Re: AOI - colored objects?
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 ?

Posted by okh at Dec 16, 2013, 8:35:52 AM
Re: AOI - colored objects?
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

Posted by Theduck38 at Dec 16, 2013, 11:29:09 PM
Re: AOI - colored objects?
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 ?

Posted by hansmex at Dec 17, 2013, 12:06:49 AM
Re: AOI - colored objects?
When I open the file, the window is transparent from both sides.

H
----------------------------------------
Hans

new website - under constuction
hansdirkse.info

Posted by Theduck38 at Dec 17, 2013, 12:29:19 AM
Re: AOI - colored objects?
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'

Posted by okh at Dec 17, 2013, 11:58:50 AM
Re: AOI - colored objects?
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

Posted by Theduck38 at Dec 17, 2013, 6:53:29 PM
Re: AOI - colored objects?
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 !

Posts: 29   Pages: 3   [ Previous Page | 1 2 3 ]