Jump to content
  • Advertisement
Sign in to follow this  
Pikebu007

Shadows HowTo?

This topic is 4237 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

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
Advertisement
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
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
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
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!