Hi,
I made the following demo to explore the CubicEnvMapPBMaterial
material http://www.sylvaingodbert.net/away3d/ . I have come across
the following issues :
1 - The way the landscape reflects on the faces of the cube looks
kinda weird. I think this has to do with the way the object-space
normal map was mapped onto the cube. I am not sure, though.
2 - All the objects look a bit transparent, especially when
envMapAlpha is small. For the cylinder this issue is pretty obvious.
3 - The skybox is also transparent. If you look at the sky you will
see the triangles.
Any idea on these 3 problems ?
Note 1 : The material is created in the following way :
var NormalBitmapdata:BitmapData =
TangentToObjectMapper.transform(_NormalBitmap.bitmapData, _Cube,
true);
_CubicEnvMapPBMaterial = new
CubicEnvMapPBMaterial( NormalBitmapdata,NormalBitmapdata,_Faces,_Cube,
{smooth: false,envMapAlpha: _EnvMapAlpha});
_Cube.material = _CubicEnvMapPBMaterial;
Note 2: on all the objects the normal texture is also applied as
diffuse texture.
Sylvain