Jump to content
  • Advertisement
Sign in to follow this  
durmieu

FBO dirty shadow map problem

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

I'm trying to add shadow mapping to my game. To get a higher resolution shadow map, I started using a frame buffer object. But since I did that, I get strange results; the shadows projected to the floor, stays there even when the car goes away and clears only every 1 or 2 seconds. This doesn't happen if the car is on top of a ramp, for example. Its very weird... any ideas why this happens? Here a sceenshot (without textures)
  //---------blablabla
  glBindFramebufferEXT (GL_FRAMEBUFFER_EXT, shadow_map_fb);
		
  glViewport(0, 0, shadowMapSize, shadowMapSize);
		
  glClear (GL_DEPTH_BUFFER_BIT);
	
  draw_cocheworld();  //draw the shadow map
		
  glBindFramebufferEXT (GL_FRAMEBUFFER_EXT, 0);
  //---------blablabla


Share this post


Link to post
Share on other sites
Advertisement
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!