Sign in to follow this  
Pikebu007

Shadows HowTo?

Recommended Posts

Pikebu007    122
Hi, I'm tryting to get some shadows on my little 3d scene and don't know how to start. I have rendered a small box with some textures and some point lights. So far so good. Now I want to render some shadows on the floor where the box is located. As a newbie in directx I have seen lots of math explanations and example parts about shadowing - but no simple tutorial where shadowing is explained from scratch. I think there must be some ready to use directx functions which help me to generate my shadows. I don't want to render every shadow pixel by calculating hard math stuff. So - are there any directx functions which help me to get my shadows. And of course: a good explanation or tutorial about how to use these functions? Best regards and thanks for any help Pikebu

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
3d programming is all about hard maths, better get used to it.

search google for tutorials on shadow mapping / stencil shadows using directx.

Share this post


Link to post
Share on other sites
Xrystal    320
You might be able to glean something from these tutorials and convert into use into your own code.

http://www.mdxinfo.com/resources.php?view=Intermediate%20samples

Share this post


Link to post
Share on other sites
Pikebu007    122
Quote:
Original post by Anonymous Poster
3d programming is all about hard maths, better get used to it.

search google for tutorials on shadow mapping / stencil shadows using directx.



Thanks for the messages. Ok - I'm fine to do some maths, but I'm sure there must be some shadows possible without creating them from zero. Does anyone know a tutorial (C# would be preferred) where the creation of smooth shadows is well explained? I think lots of people search for something like this.

Thanks for any suggestions

Pikebu

Share this post


Link to post
Share on other sites
Lemonaid    118
shadows are an advanced subject(except with raytracing) with many ways to render them. most use a variation of shadow mapping and a blur shader, or manipulation of a precalculated lightmap. if you expect robust smooth shadows then you better start getting savy in shaders and the stencil buffers plus get ready for a hit in fps.

Share this post


Link to post
Share on other sites

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