Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6822

Z-coordinate not making a difference in Matrix.CreatePerspectiveFieldOfView?

$
0
0

@NetherGranite wrote:

I'm attempting to perform a perspective projection of Vector3's onto a 2D plane via a Matrix created with

Matrix m = Matrix.CreatePerspectiveFieldOfView((float)Math.PI / 2, 1, 1, 100)

by calling

Vector3 v2 = Vector3.Transform(v1, m)

but v1.Z never has any bearing on v2.X or v2.Y; it's as though I'm just doing an orthographic projection.

Am I doing something wrong?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6822

Trending Articles