Stormy |
Posted - Jul 15 2004 : 04:24:44 AM Hi there, i have a problem with surface in directx8. i want to move with the surface, but i dont know how. can anybody help me, please? Thx. |
Eric Coleman |
Posted - Jul 15 2004 : 12:58:08 PM You can't move a surface. You can render the surface on another surface (generally the backbuffer) in different locations. For this, you'll need some sort of geometry since directx 8 doesn't support a bitblt. You will need to create a "quad" that uses the surface as a texture. You then modify the World matrix by either creating a translation matrix as the world matrix or multiplying the current world matrix with a translation matrix. |
Stormy |
Posted - Jul 15 2004 : 12:02:54 PM quote: Originally posted by VBBR
Uh... I guess "surface" isn't the right term... you mean a quad? Then you just change the x,y coordinates of each vertex by the amount you want to move.
no, i really mean surface -- Direct3DSurface8 object |
VBBR |
Posted - Jul 15 2004 : 11:09:19 AM Uh... I guess "surface" isn't the right term... you mean a quad? Then you just change the x,y coordinates of each vertex by the amount you want to move. |
Stormy |
Posted - Jul 15 2004 : 06:39:23 AM quote: Originally posted by cjb0087
what do you mean by 'move with the surface'?
i mean changing xy position |
cjb0087 |
Posted - Jul 15 2004 : 05:59:38 AM what do you mean by 'move with the surface'? |