thanks guys for reply. i guess my problem is the same in that thread. I think I have to wait for that fix. thanks again for your replys
these are my codes I used. I cut some of the code becouse there were useless and just the same part in any project:
I have used these settings for light:
light1 = new DirectionalLight();
light1.x = -15000;
light1.z = 15000;
light1.y=125000
light1.color = 0xffddbb;
_view.scene.addChild(light1);
the camera is from “HoverDragController” which is in the away3d-examples-broomstick folder
and there is the ResourceComplete part:
private function onSceneResourceComplete(event : LoaderEvent) : void {
var containera : ObjectContainer3D = ObjectContainer3D(event.target);
_view.scene.addChild(containera);
var materia2 : BitmapMaterial = new BitmapMaterial(new tI_Bina().bitmapData);
materia2.normalMap = new tI_BinaN().bitmapData;
materia2.shadowMethod=new SoftShadowMapMethod(light1,0.00025);
materia2.lights = [light1];
var sceneMesh2 : Mesh = Mesh(containera.getChildAt(0));
sceneMesh2.geometry.scale(0.5);
sceneMesh2.material = materia2;
sceneMesh2.castsShadows=true;
var sceneShape2 : AWPBvhTriangleMeshShape = new AWPBvhTriangleMeshShape(sceneMesh2);
var sceneBody2 : AWPRigidBody = new AWPRigidBody(sceneShape2, sceneMesh2, 0);
physicsWorld.addRigidBody(sceneBody2);
}