Belgium
Joined: Feb 10, 2013
Post Count: 6
Status:
Offline
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 ?
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
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
Belgium
Joined: Feb 10, 2013
Post Count: 6
Status:
Offline
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.