Advertisement Jump to content
Sign in to follow this  
Ksingh30

Shadows/Reflextions

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

Advertisement
Hi there Ksingh30,
How are you doing?

[The Problem]
Shadows and Reflections

[The Solution]
You could follow 2 of my tutorials.

They are in C# and Managed DirectX but the theory is the same and you should pick up what needs to be done.
for Reflection : Render to Texture
for Shadowing : Simple Shadows


I hope this helps a bit. I am busy revising my tutorials so if you have any questions or need clarity please do not hestitate to contact me or ask here.

I hope this helps.

Share this post


Link to post
Share on other sites
Stencil buffer is a good way to produce sharp shadows, but it is quite expensive when we're talking about performance. There is also other technique, shadow mapping, which is texture based and produces softer and smoother shadows. There are many articles discussing of both of these techniques, just google it.

If you use shaders, there is no difference, you are still using one of the two techniques, but with slightly increased performance from GPU processing power.

Share this post


Link to post
Share on other sites
first of all. I would like to thank everyone here at gamedev for taking the time to answer my newbie questions(some which are stupid), so Thank You very much for that guys.

2. can someone point me to a tuorial about Shadow mapping with DX9 or a demo
I googled buy it was all in OGL.
thanks

Share this post


Link to post
Share on other sites
There's a sample in DirectX 9.0 SDK Update August 2005. Here's also a link to MSDN about the sample:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/TutorialsAndSamples/Samples/ShadowMap.asp

Hope this helps :)

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!