Shadow-mapping xna

Posted by Kurt Ricci on Game Development See other posts from Game Development or by Kurt Ricci
Published on 2012-03-20T15:23:01Z Indexed on 2012/03/20 17:39 UTC
Read the original article Hit count: 488

Filed under:
|
|
|

I've been trying to implement shadows in my game and I've been following quite a few tutorials online, mainly Riemers, but I'm always getting the same 2 errors when I'm drawing my models and setting the parameters from the effect file. The errors are:

This method does not accept null for this parameter. Parameter name: value

and

Object reference not set to an instance of an object.

So I've then downloaded a sample and just replaced my model with the one found in the sample and the same errors occur. I this find very strange as it works with his model. I'm wondering if the problem is with my models (I made them myself). Here's the code where the errors occur (they start to occur after the second foreach loop).

Any help would be greatly appreciated, thanks.

© Game Development or respective owner

Related posts about XNA

Related posts about shaders