Strange pb with DirectX 8 and 2D
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement