Original Post
I have a couple of different sprites, each different obe represented by a class. Each one basically uses the same code to initialize a vertex and index buffer, transform, and draw. I am using pixel corrdinates in a 800x700 window. If I were to create one of each different sprite at the same x and y coordinates, all but one of the sprites will appear at the expected location. The other one will appear at a more exagerated x coordinate. I''ve tested this by directly putting the x coordinate in the vertex buffer so it is not a number problem.
Any Ideas?
Here''s the only possibility I can think of -
For drawing each sprite, I declare a new D3DXMATRIX, use D3DXMatrixTranlation and then SetTransform transforming the tranlated matrix to the world matrix. Do all the sprites need to somehow share the D3DXMATRIX for the world matrix or can it be independent like I am doing?