Apply shadowMethod to Imported Material

Software: Away3D 4.x

jth133, Newbie
Posted: 21 March 2013 02:21 PM   Total Posts: 5

This is my predicament: I’m importing an OBJ to my scene, which has an associated material that’s also imported. I can cast shadows from the object just fine, but what I’m trying to do is add a shadowMethod in order to cast shadows onto other objects in the scene. Here’s the associated code:

obj Mesh(loader.getChildAt(0));
obj.castsShadows true;
obj.material.bothSides false;
obj.material.lightPicker lightPicker

My light source is a directionalLight, if relevant. obj.material.shadowMethod throws an error, so is there another way of adding shadowMethod to an imported material? Any help is much appreciated. Thanks.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X