3ds loader - transparency issue

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Pianist
Posts: 14
Joined: Wed Apr 22, 2009 12:47 pm
Location: Czech Republic

3ds loader - transparency issue

Post by Pianist »

Internal 3ds file loader do not work well for models with transparent components covered by texture. Attached 3d model of gentlemen should have dark hair, but texture is not rendered properly and hair looks as white with observable transparency. You can verify situation via Meshviewer application.

Picture should look like this screenshot:
https://docs.google.com/leaf?id=0B3novL ... ZGNm&hl=cs

After import into Irrlicht it looks like this:
https://docs.google.com/leaf?id=0B3novL ... Mzc1&hl=cs

3ds model link:
https://docs.google.com/viewer?a=v&pid= ... OWQ3&hl=cs

Debug output log:
xxxxxxxxxxxxxx Irrlicht Driver Settings xxxxxxxxxxxxxxx
tested on Irrlicht version: 1.7, 1.7.1, 1.7.2
x Color format: 2
x m_irrdriver Name: OpenGL 2.1.2
x Vendor Name: NVIDIA Corporation
x Render to target: YES
x Hardware transform lightning: YES
x Multiple textures per material: YES
x Bilinear filter: YES
x Mipmaping: YES
x Auto mipmaping: YES
x Stencil buffers: NO
x Vertex shader 1.1: YES
x Vertex shader 2.0: YES
x Vertex shader 3.0: NO
x Pixel shader 1.1: YES
x Pixel shader 1.2: YES
x Pixel shader 1.3: NO
x Pixel shader 1.4: NO
x Pixel shader 2.0: YES
x Pixel shader 3.0: NO
x ARB vertex programs: YES
x ARB fragment programs: YES
x GLSL: YES
x HLSL: NO
x Non square textures: YES
x Non power two textures: YES
x Frame buffer objects: YES
x Vertex buffer objects: YES
x Alpha to Coverage: YES
x Color masks: YES
x Multiple render targets: YES
x Separate blend settings for multiple render targets: YES
x Separate color masks for multiple render targets: YES
x Separate blend functions for multiple render targets: : NO
x Geometry shaders: YES
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

inserting object into scene log:
--- added to the structure ---
--- OK ---
Added node with bounding box MinEdge[-248.11,0.00,-70.98], MaxEdge[-55.39,70.11,-16.41]
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Re: 3ds loader - transparency issue

Post by Radikalizm »

I believe it's a known issue that the 3DS loader works sub-optimal, I don't know to which degree though
Have you tried converting your mesh to other formats?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: 3ds loader - transparency issue

Post by hybrid »

Well, I'll check the model. Hopefully it's just a misinterpreted setting. In some cases, though, the mapping is not exact and we need to use the mostly used material setting.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: 3ds loader - transparency issue

Post by hybrid »

the problem here is that you're using an alpha map which is not included in the main texture. Irrlicht supports only alpha layers in the diffuse maps. I guess that the hair is here rendered with just the alpha map, used both for diffuse and alpha channel.
Post Reply