# Why does GetViewProjectionMatrix return a reverse perspective projection matrix?

**URL:** <https://forums.unrealengine.com/t/why-does-getviewprojectionmatrix-return-a-reverse-perspective-projection-matrix/1734847>\
**Category:** C++\
**Tags:** projection, projection-matrix, unreal-engine, CPP, question\
**Created:** [March 6, 2024, 10:46pm UTC](https://forums.unrealengine.com/t/why-does-getviewprojectionmatrix-return-a-reverse-perspective-projection-matrix/1734847 "2024-03-06T22:46:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jolyjalapeno](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jolyjalapeno](https://forums.unrealengine.com/u/jolyjalapeno)\
**Post date:** [March 6, 2024, 10:46pm UTC](https://forums.unrealengine.com/t/why-does-getviewprojectionmatrix-return-a-reverse-perspective-projection-matrix/1734847/1 "2024-03-06T22:46:08Z")

</div>

Why does the UGameplayStatics::GetViewProjectionMatrix function return a reverse perspective projection instead of a non-reverse perspective projection when provided ECameraProjectionMode::Perspective?

Within the function, the projection matrix is created by calling FMinimalViewInfo::CalculateProjectionMatrix which initializes a projection matrix by calling TReversedZPerspectiveMatrix::TReversedZPerspectiveMatrix. Isn’t this incorrect? Shouldn’t TPerspectiveMatrix::TPerspectiveMatrix be used instead? Isn’t the camera using a non-reversed perspective projection and not a reverse-perspective projection?
