Jump to content
  • Advertisement
Sign in to follow this  
DickieChen

Looking for lighting and shadow which used in DX games..

This topic is 2802 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 everyone,
free image hosting
I'm looking for a better method for computing lighting and shadow,I just used D3DLIGHT9 for the lighting,and ShadowVolume for computing shadow.Although the scene had a good effect,but it rendered very slowly,and it seems that it cannot be used to program games,and this makes me wonder.
free image hosting
In fact,I found those DX games have a very general lighting and shadow method,but it seems that it isn't D3DLIGHT9 and ShadowVolume..
and who can tell me how to create lighting and shadow in a DX game? I mean it's fast,and it has a good effect..just like the one in the picture...
thanks a lot.

Share this post


Link to post
Share on other sites
Advertisement
Well,the question is like this,I don't know what's the 'proper' method to create lighting and shadow in a DX game,and whether my D3DLIGHT9 and ShadowVolume is 'proper' in a game...

Share this post


Link to post
Share on other sites
Have a look into shadow mapping (there are verious algorithms, each with their pros and cons).
But yes, you really shouldn't be using the fixed function pipeline anymore (Which D3DLIGHT9 is an interface to.) and should be using a shading language (such as HLSL or Cg in your case).

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!