I'm having a little trouble getting an Orthographic Camera working.
I'm trying to create isometric terrain for a tile based 2.5D Game using quads for the height mapped terrain
I am drawing a bunch of textured quads, and can view them at an arbitrary angle using CreatePerspectiveFieldofView, but when trying ortographic view I can not see anything
For now the quads are just a 10x10 grid of quads are per the MSDN TexturedQuad tutorial.
This works (the CreateLookAt numbers mean nothing, just an example of what I can use to view something)
static public Matrix View = Matrix.CreateLookAt(new Vector3(5, -10, 16), new Vector3(5, 0, 5),Vector3.Up);
static public Matrix Projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, 4.0f / 3.0f, 1, 100);
This doesn't:
static public Matrix View = Matrix.CreateLookAt(new Vector3(5, -10, 16), new Vector3(5, 0, 5),Vector3.Up);
OR
static public Matrix View = Matrix.CreateLookAt(new Vector3(0.0f, 0.0f, 30.0f), Vector3.Zero, Vector3.Up);
static public Matrix Projection = Matrix.CreateOrthographicOffCenter(0, Camera.windowWidth, Camera.windowHeight, 0.0f, 100.0f, 1);
I'm pretty sure its my CreateLookAt thats mucking up.
Can someone steer me in the right direction to get something on screen?
Thanks!