0
\$\begingroup\$

I've been trying to crack this problem for a while now and I'd like to know if there's a tutorial or two out there that can help me with this. I know how to do shadow mapping with a single light, and I know how to implement multiple lights. What I can't seem to do is put them together, despite my many attempts.

So yeah, does anyone know of any XNA tutorials that can baby-step me through this?

EDIT: This is for a 3D environment

\$\endgroup\$
1
\$\begingroup\$

I don't think there is, but here is one for DirectX.

But since your problem is that yours is not working, I would suggest writing as much information as you can to console, and building some tools to show what is going on, like a draw line function. Personally, I like to copy my entire project folder every couple hours when doing this sort of thing. Best of luck.

edit: I've added some links in the comments. Hopefully there is something you can use there.

\$\endgroup\$
7
0
\$\begingroup\$

This tutorial should explain to you how to accomplish this:

http://www.catalinzima.com/2010/07/my-technique-for-the-shader-based-dynamic-2d-shadows/

I've used this technique and it works quite well.

\$\endgroup\$
1
  • \$\begingroup\$ Sorry bro. Forgot to mention that this was in a 3D environment \$\endgroup\$ Mar 15 '13 at 13:35

Not the answer you're looking for? Browse other questions tagged .