EnvMapAmbientMethod not working

Software: Away3D 4.x

rom, Newbie
Posted: 05 August 2012 02:01 PM   Total Posts: 12
material.addMethod (new EnvMapAmbientMethod (cube_map)); 

previously worked, now there is no

material.ambientMethod = new EnvMapAmbientMethod (cube_map); 

Now does not give the desired results

   

Richard Olsson, Administrator
Posted: 06 August 2012 07:19 AM   Total Posts: 1192   [ # 1 ]

I’m not entirely sure what your question is, but you should not be using EnvMapAmbientMethod with addMethod(). It’s an “ambient” method, and should thus be assigned to the ambientMethod property that you’re suggesting in your second option.

However, if you do want to use environment mapping after all lighting, you can do so by using the EnvMapMethod (not ambient) which should be added using the addMethod() property.

   

rom, Newbie
Posted: 06 August 2012 07:54 AM   Total Posts: 12   [ # 2 ]

I meant that before the upgrade, the method can be added through the addMethod ().
After the upgrade, had to use a ambientMethod, but the present result is different from the old, so it seemed to me that it does work not correctly.

Now understood, thanks.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X