Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualdestructivArts

Posted 04 December 2012 - 03:59 PM

Changing the order worked but it still is skewed.

My view matrix is:
view = Matrix.CreateLookAt(pos, target, up);
and the Projection matrix is
view = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, (float)Game.Window.ClientBounds.Width / (float)Game.Window.ClientBounds.Height, 1, 100);

Edit:
Ok, well changing the order worked but that wasn't why it was skewed.
I was defining the vertices in an array of VertexPositionColor and I was overwriting the Object at index 1.
ie.
vert[0] = new VertexPositionColor(variables);
vert[1] = new VertexPositionColor(variables); 
vert[1] = new VertexPositionColor(variables); 

So thank you for your help, worked perfectly

#1destructivArts

Posted 04 December 2012 - 03:54 PM

Changing the order worked but it still is skewed.

My view matrix is:
view = Matrix.CreateLookAt(pos, target, up);
and the Projection matrix is
view = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, (float)Game.Window.ClientBounds.Width / (float)Game.Window.ClientBounds.Height, 1, 100);

PARTNERS