Lostkiwi
2007-02-23 17:49:05 UTC
Hi all
I'm new to DirectX and have hit a problem that has me stumped. I am using C#
in VS2005.
I have created a textured quad (ie: a texture overlaid on 4 vertices) and
have it successfully displayed on the screen.
The trouble comes when I try to negatively scale the quad in either the x OR
y axis to produce a reverse image - the image doesn't appear on the screen.
Scaling the quad using positive values works as expected. Interestingly if I
negatively scale the quad in both the x AND y axis the image is displayed
correctly (ie: reversed in both the x and y axes).
A similar effect happens when I try to rotate the quad. Rotating in the Z
axis works fine however if I rotate the quad around either the x or y axes
the image disappears as soon as it is any angle other than 0 radians.
I suspect it is a fairly easy problem to solve but I'm not sure where to
start looking. Any help would be greatly appreciated.
Ben
I'm new to DirectX and have hit a problem that has me stumped. I am using C#
in VS2005.
I have created a textured quad (ie: a texture overlaid on 4 vertices) and
have it successfully displayed on the screen.
The trouble comes when I try to negatively scale the quad in either the x OR
y axis to produce a reverse image - the image doesn't appear on the screen.
Scaling the quad using positive values works as expected. Interestingly if I
negatively scale the quad in both the x AND y axis the image is displayed
correctly (ie: reversed in both the x and y axes).
A similar effect happens when I try to rotate the quad. Rotating in the Z
axis works fine however if I rotate the quad around either the x or y axes
the image disappears as soon as it is any angle other than 0 radians.
I suspect it is a fairly easy problem to solve but I'm not sure where to
start looking. Any help would be greatly appreciated.
Ben