Jump to content
  • Advertisement
Sign in to follow this  
technology

shadow problem while rendering quad

This topic is 4742 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 am rendering textured quad with render-to-texture method.it seems to work fine but got problems with the shadows. when rendering the quad the ground/plain seems to go dark,it looks like some transparent black object is being rendered on top of the ground/plain.at first i thought it may be z-fight,z-buff problem and tried various renderstates.the problem is gone only when the shadows are not rendered :(,any idea what could be the reason? btw the quad is rendered at the last.

Share this post


Link to post
Share on other sites
Advertisement
post screenshots, the only thing I can guess is that you're not checking if the angle to the position from the light source is within the field of view of the light's perspective matrix. Be sure to clear the z buffer each time you draw the geometry too.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!