Sign in to follow this  
mrbreakit

Modifiying 2D Vertices with a World Matrix

Recommended Posts

mrbreakit    154
I am setting the world matrix and it just doesnt have any effect on the vertices that I am rendering. I am using 2D vertices with the following format: struct Vertex { float x, y, z, rhw; unsigned long diffuse; float tu, tv; }; My matrices work fine because I can manually multiply the vertices before I call DrawPrimitive() and everything is drawn correctly. Do world matrices work for 2D vertices?

Share this post


Link to post
Share on other sites
DrunkenHyena    805
Since you have a rhw member, those are Transformed vertices and as such bypass the transformation phase.

You can either do the transformation yourself (Locking and Unlocking your VB) or switch to an Orthographic view.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this