Jump to content
  • Advertisement
Sign in to follow this  
tb_king

Image becoming off-centered when using render targets

This topic is 2661 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 implement a blur effect, using shaders. I've never used render targets before, so right now I just have a program that copies from one render target to another (no blurring...just copy). I'm noticing that each time I do this copy my image is becoming more and more off-center. I've attached images, the first has run through the copy process 5 times, the second has run through the process 50 times.

I can give a more detailed explanation if someone is willing to help me, or this may just be an obvious beginner mistake. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
You're not accounting for the fact that the way in which D3D9 addresses a screen's pixels and texture's texels is not the same.
See: http://msdn.microsoft.com/en-us/library/bb219690%28v=vs.85%29.aspx

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!