away3d / away3d-core-openfl

Away3D engine for OpenFL
165 stars 41 forks source link

Lights cast shadows crashes #9

Open posxposy opened 10 years ago

posxposy commented 10 years ago

When I set: directionalLight.castsShadows = true; the game is crushed on cpp target without errors. And got a blank screen on the flash target.

Greg209 commented 10 years ago

Can you post more of the code demonstrating the crash and which platform. Several of the examples use shadow mapping. iOS doesn't currently work with shadow mapping.

posxposy commented 10 years ago

Here is: directionalLight = new DirectionalLight(); directionalLight.castsShadows = false; directionalLight.direction = new Vector3D(1, -1, 0.5); directionalLight.color = 0xFFFFFF; directionalLight.diffuse = .8; directionalLight.ambient = .5; directionalLight.ambientColor = 0xFFD8B5; view.scene.addChild(directionalLight);

And when I set castsShadows parameter to true it is going crash. I test it on windows target and flash target. On the flash I got blank white screen. On windows - crash