Sign in to follow this  

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

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

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