Image becoming off-centered when using render targets

Started by
1 comment, last by tb_king 13 years, 2 months ago
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.
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
Thank you so much!

This topic is closed to new replies.

Advertisement