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

[BUG] Shadows bug, at x and z position > 35000 DEV branch #412

Closed
Shegl opened this issue Sep 11, 2012 · 6 comments
Closed

[BUG] Shadows bug, at x and z position > 35000 DEV branch #412

Shegl opened this issue Sep 11, 2012 · 6 comments
Assignees
Labels

Comments

@Shegl
Copy link

Shegl commented Sep 11, 2012

When object x and z cross 35000 value shadow makes broken.
You can reach this bug with shadow in any example move objects and camera to > 35000 xz position.

Example:

mesh.x = mesh.z = 36000;
camera.x = camera.z = 36000;
camera.lookAt(mesh);

(with light and shadows ofc)

http://away3d.com/forum/viewthread/3181/ Away3d Forum Discussion

@Shegl
Copy link
Author

Shegl commented Sep 12, 2012

1 day left on git hub.
http://away3d.com/forum/viewthread/3181/ 5 days left

no one can confirm ?

@richardolsson
Copy link
Member

Please stop bumping threads. We will deal with issue reports when we have time.

@ghost ghost assigned DerSchmale Sep 12, 2012
@richardolsson
Copy link
Member

@DerSchmale Do you know what this could be about?

@JohnBrookes
Copy link
Member

You have to adjust the light Offset in your shadowmapper (NearDirectionalShadowMapper DirectionalShadowMapper)
NearDirectionalShadowMapper has a default lightOffset of 10000.

It would also fail with camera + light at shallow angles and objects near the origin.

Shadows fail when the shadow is at higher distances from origin than light offset.
Tested.

@ghost ghost assigned ringodotnl Mar 25, 2013
@ringodotnl
Copy link
Member

Tested and confirmed, adjust the lightOffset and you should be fine. Thanks John.

ringodotnl pushed a commit that referenced this issue Mar 25, 2013
@ringodotnl
Copy link
Member

Extra fix in dev branch, see commit 5162e21 , now it's should work for DirectionalShadowMapper without changing the lightOffset.

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

No branches or pull requests

5 participants