RealTimeEnvMap is black

Software: Away3D 4.x

Avatar
TrueSign, Member
Posted: 26 November 2012 05:25 PM   Total Posts: 57

Hi,

I’m working on RealTimeEnvMap from dev gitHub examples right now. I basically copied all materials properties from example but my materials are 100% black instead of reflective.

var reflectionTexture:CubeReflectionTexture = new CubeReflectionTexture(256);
reflectionTexture.farPlaneDistance 3000;
reflectionTexture.nearPlaneDistance 500;
   
var 
fresnelMethod FresnelEnvMapMethod = new FresnelEnvMapMethod(reflectionTexture);
fresnelMethod.normalReflectance .6;
fresnelMethod.fresnelPower 2;

//setup the reflective material
_handlerMaterial = new ColorMaterial(0x000000);
_handlerMaterial.addMethod(fresnelMethod); 

is there something that I missed?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X