Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have a top down 3D camera:

view = Matrix.CreateLookAt(new Vector3(0,0,20), Vector3.Zero, Vector3.Up);

Now I want to achieve the effect like when I zoom in the scene and only show a section at the middle of my actual scene. When I now move an object via CreateTranslation it looks more like moving an object in 2D.

What I have now is:

http://img828.imageshack.us/img828/8467/orign.png

What I want is more like this:

http://img194.imageshack.us/img194/2833/wantedt.png

share|improve this question

1 Answer 1

up vote 5 down vote accepted

What I think you want is an orthographic projection instead of a perspective one. Matrix.CreateOrthographic is what you should use.

You may have to do some additional rotation on the orthographic matrix to have it look down instead of forwards, but that's as easy as multiplying the view matrix by a 90 degree rotation matrix on the X axis.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.