I need help resolving an issue with the alpha property of ColorMaterial. My object is only visible with a alpha value.
Specs: Galaxy Tab 2, Android 4.0.3, Air 3.3, Away 3d 4.0.0 Beta swc, render mode=direct
If I use the code below, then the object is invisible:
var colorMat:ColorMaterial= new ColorMaterial(0xffffff);
var mesh:Mesh = Mesh(myLoader.getChildAt(0));
mesh.material = colorMat;
mesh.material.lightPicker=myLightPicker;
The line that doesn’t work is:
var colorMat:ColorMaterial= new ColorMaterial(0xffffff);
It does not work with:(Object completely invisible)
var colorMat:ColorMaterial= new ColorMaterial(0xffffff, 1);
or
var colorMat:ColorMaterial= new ColorMaterial(0xffffff, 0);
or
var colorMat:ColorMaterial= new ColorMaterial(0xffffff, 1.0);
What does work is:(Any decimal)
var colorMat:ColorMaterial= new ColorMaterial(0xffffff, .9);
var colorMat:ColorMaterial= new ColorMaterial(0xffffff, .3);
var colorMat:ColorMaterial= new ColorMaterial(0xffffff, .1);
The same goes for other materials. I do not want any transparency on my models.
Is there something I can do to fix this? I was using away3d 4.0.110915 Alpha but had the same issue there.
Thanks,
Joe