Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Shadows on the ground

This topic is 5817 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 have a simple x model with flat ground and a house on top. I use directional light like this light.Type = D3DLIGHT_DIRECTIONAL; light.Direction = D3DXVECTOR3( 0.5f, -0.5f, 0.5f ); light.Diffuse.r = light.Diffuse.g = light.Diffuse.b = 1.0f; light.Ambient.r = light.Ambient.g = light.Ambient.b = 0.3f; m_pd3dDevice->SetLight( 1, &light ); now the house is darken on one side, but why isn''t there a house shadow on the ground?

Share this post

Link to post
Share on other sites
Is D3DXMatrixShadow a good sollution to create simple shadows?
I found one german example at google but I didn''t find it that good (maybe since I''m not german)
Can I create simple shadows without using a vertex shader?

Share this post

Link to post
Share on other sites

  • 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!