mrdoob/three.js — Issue #666: Problem with alpha channel in texture
Author: Egisto
Created: 2011-10-20 08:16:36+00:00
State: open

Hi,

I'm using a model exported from 3DSMax with the ThreeJSExporter script and I'm having a problem with a transparent PNG texture.

My JS material is defined as:

"DbgIndex" : 1,
"DbgName" : "Pelo02",
"colorDiffuse" : [0.5882, 0.5882, 0.5882],
"colorAmbient" : [0.5882, 0.5882, 0.5882],
"colorSpecular" : [0.9000, 0.9000, 0.9000],
"transparency" : 1.0,
"specularCoef" : 0.0,
"mapDiffuse" : "PeloTransparente.png",
"vertexColors" : false

and I load the model with mesh = new THREE.Mesh(geometry, new THREE.MeshFaceMaterial());

The problem is that Three.js is not showing the transparency (the texture loads and shows the transparent parts white).
What I am doing wrong?

Thanks