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: 3
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3243 times and has 2 replies Next Thread
lmerckx
Newbie



Belgium
Joined: Feb 10, 2013
Post Count: 6
Status: Offline
Reply to this Post  Reply with Quote 
Problem when multiple transparency objects

Hello all,

Second post for a second problem ...

I've just created custom windows (double and single) with Blender and imported them in SW3D, from OBJ files.
The result seems good when displaying them isolated.

But when they "collide" (when one window is behind another), I have a strange display problem: some opaque parts become transparent.

You can see the problem with the following picture.

Another strange behaviour: it depends on the creation order.
In my example, there is no problem with the left and behind windows (which have been created BEFORE the front one), but there is a problem with the right window (created after) !?!

I checked the normals, textures, alpha, ... and all seem right !

Have you some ideas ?
Could it be a bug of Java3d or my graphic card or SW3D ?

A big thank you in advance.

Laurent.


[Feb 14, 2013, 2:48: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 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Problem when multiple transparency objects

I already experienced that kind of transparency problem but doesn't know if it's the fault of Java 3D or graphics card. But maybe in your case, there's a solution: does the dark part of the window come from a color or a texture? If it's a texture, you should use a PNG image with no transparency flag or a JPEG image.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Feb 15, 2013, 8:29:26 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
lmerckx
Newbie



Belgium
Joined: Feb 10, 2013
Post Count: 6
Status: Offline
Reply to this Post  Reply with Quote 
Re: Problem when multiple transparency objects

Thank you for your answer, Emmanuel.

You are right :
The problem was due to the mixing of the alpha parameter in MTL file (d) and the texture PNG file which had transparency.
Removing transparency in PNG solves the problem.

Thank you again,

Laurent.
[Feb 15, 2013, 3:32:08 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