Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lights cast shadows crashes #9

Open
posxposy opened this issue Jul 16, 2014 · 2 comments
Open

Lights cast shadows crashes #9

posxposy opened this issue Jul 16, 2014 · 2 comments

Comments

@posxposy
Copy link

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
Copy link
Member

Greg209 commented Jul 16, 2014

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants