Jump to content
  • Advertisement

Archived

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

gdpost778

Strange pb with DirectX 8 and 2D

This topic is 5768 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 everyone, I''m using an orthogonal matrix to display several texture surfaces in 2D. I need the texture to be fully displayed with no rounding artifacts or whatever. I''ve noticed strange behaviors during translations when a texture is going out of the window. It seems its position is not well translated. In fact its position is more or less 1 pixel before/after what it should be. It doesn''t happen to all the textures, only some are affected. It''s easy to see the effects since I have several 2D textures side by side so when one is not aligned, it is visually striking. Did anyone ever experience this problem and knows a fix? Thanks, gdpost778. Some technical precisions: - I''m using the D3DTADDRESS_CLAMP texture mode, i''ve also tried the D3DTADDRESS_BORDER one but no change. - the orth. matrix is set up this way: D3DXMatrixOrthoLH(&matrix, (splfloat)windowWidth,windowHeight, 0.0f, 1.0f); - the frames supporting textures are created as triangle strips

Share this post


Link to post
Share on other sites
Advertisement

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