Camera position removes shadows

Software: Away3D 4.x

Richard, Newbie
Posted: 19 July 2011 02:33 PM   Total Posts: 7

I have some shadows projected using a SoftShadowMapMethod which disapear when I rotate the camera so that the casting object is no longer on screen. 

Is there a way I can change this behaviour so that the shadow is always cast?

   

Avatar
David Lenaerts, Administrator
Posted: 20 July 2011 02:32 PM   Total Posts: 80   [ # 1 ]

I can’t seem to replicate the issue. Do you have a small code example that you can post?

 

   

John Brookes, Moderator
Posted: 20 July 2011 04:01 PM   Total Posts: 732   [ # 2 ]

I’ve noticed it when the near plane starts clipping the object.

Shadow should be full (it looks like the window in the pic but its not:)
http://dl.dropbox.com/u/20426629/shadow.jpg

 

   

cyberix3d, Jr. Member
Posted: 29 August 2011 07:39 PM   Total Posts: 34   [ # 3 ]

I also have the same problem

This is the example:
http://www.appspouch.com/away3d_shadow_problem

And this is the source code:
http://www.appspouch.com/away3d_shadow_problem/BvhTriangleMeshCarTest.as

Please advice

Thanks,
Guy

 

   

Avatar
theMightyAtom, Sr. Member
Posted: 30 August 2011 03:49 PM   Total Posts: 669   [ # 4 ]

I concur. Faces not within the camera frustum don’t appear to cast a shadow.
The easy fix would be to tessellate the faces, i.e. split large faces into small pieces. In the above example the shadow cast by the pile of boxes (if you don’t smash through them!) disappears gradually as you drive away from it, showing nicely the effect/bug.

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X