Sign in to follow this  

[XNA] Need shadows - shadow mapping

This topic is 2793 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been trying to add shadows to my game but i'm having a hard time to do so. I found a few examples on shadow mapping. But they all use a .FBX file as a terrain. What they do is they pass Model as an argument to a method: //used for creating the shadow map RemapModel(Model model) Which is OK if you load a FBX file as a terrain. But the problem i have is that i create a terrain with indicies/vertices, like they learn you in most tutorials. So now i'm stuck at the point, how to pass my terrain to that function? But if you know any other good example on shadow mapping (and please NOT riemers tutorial) then please post a link.

Share this post


Link to post
Share on other sites

I think this RemapModel function is part of Riemer's code, so I can't tell you how you can pass your terrain to it. I'm also not sure what the function is doing anyway, but if it's doing something with the vertices of the Model object, it might be an option to rewrite it so it does the same to the vertices of your terrain. Perhaps the shadow mapping sample from the Creators site may be of use?

Share this post


Link to post
Share on other sites

This topic is 2793 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this