Directional Light inconsistent lighting between objects

Software: Away3D 4.x

Stephen Hopkins, Sr. Member
Posted: 19 March 2012 01:59 AM   Total Posts: 110

I have a scene with 2 loaded low poly obj’s and a directional light added to the material of both

dirLight =  new DirectionalLight(0, 1, 0);

For some reason, the two objects have inverted lighting behavior. One object is lit from beneath, the other is lit from above, when they should clearly be having the same lighting. If I change the directional light yDir to -1, then it is the opposite.

Any help?

 Signature 

http://www-scf.usc.edu/~shopkins

   

Stephen Hopkins, Sr. Member
Posted: 25 March 2012 09:24 PM   Total Posts: 110   [ # 1 ]

Well, I opened my files in Maya again, inverted the z axis, reversed the normals, then exported, and this seems to have worked. I think the exported normals that maya created were backwards.

 Signature 

http://www-scf.usc.edu/~shopkins

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X