Shadows Shadows Shadows

I’ve been having problems for a while getting shadows to work as I expect. As part of the new version of MM I’ve produced the following simple scene:

http://www.cokeandcode.com/xith/testme.gif

Its a simple “room” for the new game, its simply built out of a set of quad arrays. Now, I’ve turned shadows on for everything but I’m getting these odd results.

Is there some specific winding order I should be using? Or maybe something that I’ve not noticed before? Its not really a “simple” test case since its embedded in my code but if there is no obvious “ah I’ve done that before” answer I can produced a simple case (at least I think so).

Cheers for any help guys,

Kev

Make sure that at whatever level you have turned on the occluder that all the geometry below that level form closed sealed objects. Not doing that can result in unspecified behavior.

Ok, maybe I’m stupid, but what exactly do you mean by closed sealed objects? I use QuadArray to create 6 sides for each block. Does this could as closed and sealed?

Kev

Bump!

Kev

Yes that does sound sealed. The picture looks like its not though, so I am at a loss to explain it. I can’t tell from the picture, but is the camera within a shadow? That doesn’t currently work.

Na, the cameras not in the shadow… I’ll do something about a simple test version shouldn’t take too long… maybe that’ll help.

Kev