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: 20
Posts: 20   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 29586 times and has 19 replies Next Thread
Tic
Newbie
Member's Avatar


Joined: Sep 27, 2011
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
Lampshade transparency

Hi everybody,
I’m an enthusiastic recent SH3D user.
First of all let me congratulate the developers team on sharing this excellent tool. applause

I’m practicing with models and light and I’m trying to obtain a realistic rendering of a translucent lampshade.
I made some tests modifying Ni parameter in .mtl file, but I had no satisfying result.
Here an example of the effect I’d like to obtain.

Can anyone give suggestions?

Thanks
[Sep 28, 2011, 2:36:07 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: 9420
Status: Offline
Reply to this Post  Reply with Quote 
Re: Lampshade transparency

From the MTL specifications, the Ni value is for optical density or index of refraction and not transparency.
You should better play with the d value which is the transparency factor from 0 (fully transparent) to 1 (fully opaque and default value).

I'll be happy to see the results of your tests. smile
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Sep 28, 2011, 4:55:21 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Tic
Newbie
Member's Avatar


Joined: Sep 27, 2011
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
Re: Lampshade transparency

Emmanuel, thank you for your prompt reply!
Ok, I tried with d = 0.32 on a 20x20cm empty box (with 1mm thick walls) that I put in upside-down position on the floor of a dark room.

Inside the box I put a 10x10cm light source hanging at 10cm elevation.

Unfortuntely the resulting Q4 photo is still far from my targert: there are black shimmers on the box surfaces and some light escapes from the bottom of the box sad

I would have sent you an image, but sorry, I just cannot find the proper "attach file" or "upload image" option....
[Sep 28, 2011, 7:56:23 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: 9420
Status: Offline
Reply to this Post  Reply with Quote 
Re: Lampshade transparency

Here's an example I built from partially transparent round walls exported then reimported. I put this shade on on a small floor uplight to make it look like a small lamp.

----------------------------------------
Attachment Lampshade.sh3d (212510 bytes) (Download count: 688) (Round lampshade made from transparent walls)

----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Sep 28, 2011, 8:38:19 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Tic
Newbie
Member's Avatar


Joined: Sep 27, 2011
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
Re: Lampshade transparency

Wow, that's quite similar to what I mean... I'll let you know my further steps..
In the meantime you can have a look at my poor result...


Thank you!
----------------------------------------
Attachment up_dwn_cube.zip (697 bytes) (Download count: 1720)

[Sep 28, 2011, 9:29:13 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: 9420
Status: Offline
Reply to this Post  Reply with Quote 
Re: Lampshade transparency

Be sure to give the lampshade a color darker than white otherwise it will be rendered completely transparent. You can test also with textures but it might be buggy like here.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Sep 28, 2011, 10:36: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 
Tic
Newbie
Member's Avatar


Joined: Sep 27, 2011
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
Re: Lampshade transparency

Emmanuel, could you please post the mtl assignments of your cylindrical lampshade? I'd like to compare it to mine.
[Sep 29, 2011, 8:29:14 AM] 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: 9420
Status: Offline
Reply to this Post  Reply with Quote 
Re: Lampshade transparency

Tic if you want to know these values, just create an empty document in which you copy/paste only the lampshade and then export it to OBJ format.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Sep 29, 2011, 10:22:30 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Tic
Newbie
Member's Avatar


Joined: Sep 27, 2011
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
Re: Lampshade transparency

Great!
Thank you so much.. sorry..I'm sitll learning.. smile
[Sep 29, 2011, 10:49:47 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Tic
Newbie
Member's Avatar


Joined: Sep 27, 2011
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
Re: Lampshade transparency

Emmanuel,
I'm back after more tests: I think that the bad rendering is due to the Obj export method of the modelling software I use (Wings3D).

On the left you can see your original lampshade and on the right the same object imported in wings3d and then re-exported as .obj.
I manteined the same mtl file for both.

[Sep 30, 2011, 7:45:03 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 20   Pages: 2   [ 1 2 | Next Page ]
[ 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