Sign in to follow this  
DickieChen

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

Recommended Posts

DickieChen    100
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
DickieChen    100
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
diablos_blade    257
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

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