# \#projection-matrix

**URL:** https://forums.unrealengine.com/tag/projection-matrix/4960.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [How do I get the projection matrix?](https://forums.unrealengine.com/t/how-do-i-get-the-projection-matrix/457751)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0aa0a50c](https://forums.unrealengine.com/u/anonymous_user_0aa0a50c)\
**Replies:** 4\
**Last updated:** [September 7, 2025, 9:13pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-projection-matrix/457751 "2025-09-07T21:13:14Z")

</div>

For a shader I have I need to pass in the view projection matrix. I know how to calculate the view matrix, just the inverse of the camera’s transform. I cannot figure out where the get the projection matrix though. Does …

---

## [View Projection Matrix -\> How to use](https://forums.unrealengine.com/t/view-projection-matrix-how-to-use/1387433)

<div class="topic-metadata">

**Author:** [@Pholuup](https://forums.unrealengine.com/u/Pholuup)\
**Replies:** 1\
**Last updated:** [March 21, 2025, 12:17pm UTC](https://forums.unrealengine.com/t/view-projection-matrix-how-to-use/1387433 "2025-03-21T12:17:04Z")

</div>

Hello there, first of all, I’d like to remark that I am pretty much a total beginner with UE, however I have to use it for a project I am working on. Background: I have got a translating object in my UE world, that is…

---

## [How to modify projection matrix of UCameraComponent?](https://forums.unrealengine.com/t/how-to-modify-projection-matrix-of-ucameracomponent/2264153)

<div class="topic-metadata">

**Author:** [@OOOllieML](https://forums.unrealengine.com/u/OOOllieML)\
**Replies:** 1\
**Last updated:** [March 18, 2025, 2:08pm UTC](https://forums.unrealengine.com/t/how-to-modify-projection-matrix-of-ucameracomponent/2264153 "2025-03-18T14:08:11Z")

</div>

Hi all, I have a setup where I need an asymmetric view frustum. I’ve calculated the project matrix with a USceneCaptureComponent2D and get the right view. For other reasons, I’ve now got to use a UCameraComponent and n…

---

## [Hi, I want to make my scrollbox as a matrix, e.g. it can exhibit elements in 4\*4 or other panel, and how can I make it?](https://forums.unrealengine.com/t/hi-i-want-to-make-my-scrollbox-as-a-matrix-e-g-it-can-exhibit-elements-in-4-4-or-other-panel-and-how-can-i-make-it/375627)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_aab22278](https://forums.unrealengine.com/u/anonymous_user_aab22278)\
**Replies:** 2\
**Last updated:** [January 26, 2025, 5:20pm UTC](https://forums.unrealengine.com/t/hi-i-want-to-make-my-scrollbox-as-a-matrix-e-g-it-can-exhibit-elements-in-4-4-or-other-panel-and-how-can-i-make-it/375627 "2025-01-26T17:20:36Z")

</div>

Hi, I want to make my scrollbox as a matrix, e.g. it can exhibit elements in 4\*4 or other panel, and how can I make it? I only see two orientation in the detail column, vertical and horizontal, as follows.

---

## [Accessing View Projection Matrix from material](https://forums.unrealengine.com/t/accessing-view-projection-matrix-from-material/362104)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_3f4ca383](https://forums.unrealengine.com/u/anonymous_user_3f4ca383)\
**Replies:** 5\
**Last updated:** [November 10, 2024, 9:49am UTC](https://forums.unrealengine.com/t/accessing-view-projection-matrix-from-material/362104 "2024-11-10T09:49:11Z")

</div>

Hello, I need to access view projection matrix in my material, is it possible in any way? Thanks in advance.

---

## [Why does GetViewProjectionMatrix return a reverse perspective projection matrix?](https://forums.unrealengine.com/t/why-does-getviewprojectionmatrix-return-a-reverse-perspective-projection-matrix/1734847)

<div class="topic-metadata">

**Author:** [@jolyjalapeno](https://forums.unrealengine.com/u/jolyjalapeno)\
**Replies:** 0\
**Last updated:** [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")

</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 functi…

---

## [Turn off lights of traffic cars in City Sample](https://forums.unrealengine.com/t/turn-off-lights-of-traffic-cars-in-city-sample/791454)

<div class="topic-metadata">

**Author:** [@Ly\_921](https://forums.unrealengine.com/u/Ly_921)\
**Replies:** 0\
**Last updated:** [March 15, 2023, 4:25pm UTC](https://forums.unrealengine.com/t/turn-off-lights-of-traffic-cars-in-city-sample/791454 "2023-03-15T16:25:52Z")

</div>

Hi! does anyone know how to turn off the lights of the traffic cars in the city sample project? thanks!

---

## [Modifying Projection Matrix](https://forums.unrealengine.com/t/modifying-projection-matrix/483764)

<div class="topic-metadata">

**Author:** [@ateisseire\_1](https://forums.unrealengine.com/u/ateisseire_1)\
**Replies:** 1\
**Last updated:** [July 4, 2022, 4:31pm UTC](https://forums.unrealengine.com/t/modifying-projection-matrix/483764 "2022-07-04T16:31:03Z")

</div>

Hello, I am trying to have what is usually referred to as an asymmetrical camera frustum or off axis projection. There is not a lot of information around, and most of it is from at least 4 years ago. For reference, he…

---

## [Any way to get a custom projection matrix? (Specifically Beltrami-Klein projection)](https://forums.unrealengine.com/t/any-way-to-get-a-custom-projection-matrix-specifically-beltrami-klein-projection/487180)

<div class="topic-metadata">

**Author:** [@radsherwin](https://forums.unrealengine.com/u/radsherwin)\
**Replies:** 3\
**Last updated:** [April 28, 2022, 7:28pm UTC](https://forums.unrealengine.com/t/any-way-to-get-a-custom-projection-matrix-specifically-beltrami-klein-projection/487180 "2022-04-28T19:28:28Z")

</div>

I’m not opposed to modifying the code of the engine and recompiling if it needs to be done, just would like to know whether something like this is possible and how to go about it. For reference: Beltrami–Klein model - W…

---

## [Cylindrical Projection of Viewport](https://forums.unrealengine.com/t/cylindrical-projection-of-viewport/381480)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_08bdc5fd](https://forums.unrealengine.com/u/anonymous_user_08bdc5fd)\
**Replies:** 1\
**Last updated:** [May 9, 2021, 11:29am UTC](https://forums.unrealengine.com/t/cylindrical-projection-of-viewport/381480 "2021-05-09T11:29:18Z")

</div>

Hey guys, I was wondering if anyone knew of a good process for converting the viewport output into a cylindrical projection for a non-planar screen. The two option I could think of were directly modifying the projectio…

---

## [Projecting a POM mesh decal onto a surface](https://forums.unrealengine.com/t/projecting-a-pom-mesh-decal-onto-a-surface/477779)

<div class="topic-metadata">

**Author:** [@Visor90](https://forums.unrealengine.com/u/Visor90)\
**Replies:** 0\
**Last updated:** [January 25, 2021, 9:17pm UTC](https://forums.unrealengine.com/t/projecting-a-pom-mesh-decal-onto-a-surface/477779 "2021-01-25T21:17:31Z")

</div>

In my project, I’m using simple deferred decals for bullet impacts. However, they don’t work on translucent materials, e.g. glass. One workaround I came up with is to use POM mesh decals. This looks good, doesn’t kill p…

---

## [How do you get the 2D coordinate a SceneCaptureComponent2D is projecting to?](https://forums.unrealengine.com/t/how-do-you-get-the-2d-coordinate-a-scenecapturecomponent2d-is-projecting-to/409734)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d1f1f797](https://forums.unrealengine.com/u/anonymous_user_d1f1f797)\
**Replies:** 4\
**Last updated:** [October 1, 2020, 5:54pm UTC](https://forums.unrealengine.com/t/how-do-you-get-the-2d-coordinate-a-scenecapturecomponent2d-is-projecting-to/409734 "2020-10-01T17:54:39Z")

</div>

Okay, So I have a minimap which is being drawn from a Scene Capture Component 2D, and it captures the whole terrain. Problem is that capturing all the actors in terrain every tick causes the game to drop below 60 FPS, so…

---

## [SceneCapture Projection Matrix for Portal](https://forums.unrealengine.com/t/scenecapture-projection-matrix-for-portal/470042)

<div class="topic-metadata">

**Author:** [@Orion31](https://forums.unrealengine.com/u/Orion31)\
**Replies:** 0\
**Last updated:** [August 20, 2020, 1:47am UTC](https://forums.unrealengine.com/t/scenecapture-projection-matrix-for-portal/470042 "2020-08-20T01:47:44Z")

</div>

Hi, I am new to Unreal and GameDev in general, but I was playing around and trying to make portals for fun. I noticed that when objects were placed in front of the portal, they can get in the way of the projection captu…

---

## [Converting glsl to ComputeShader](https://forums.unrealengine.com/t/converting-glsl-to-computeshader/455242)

<div class="topic-metadata">

**Author:** [@HOUmmel](https://forums.unrealengine.com/u/HOUmmel)\
**Replies:** 1\
**Last updated:** [September 16, 2019, 12:31pm UTC](https://forums.unrealengine.com/t/converting-glsl-to-computeshader/455242 "2019-09-16T12:31:54Z")

</div>

I am trying to convert this snippet to work inside a ComputeShader: Tex3 = normalize(TriPos); //TriPos is the current Vertex Normal = normalize((model\*vec4(Tex3, 1.0f)).xyz); vec3 CalculateNormal(vec2 uv, sampler…

---

## [Bound Shader View Matrix](https://forums.unrealengine.com/t/bound-shader-view-matrix/451510)

<div class="topic-metadata">

**Author:** [@Wolflight](https://forums.unrealengine.com/u/Wolflight)\
**Replies:** 0\
**Last updated:** [June 30, 2019, 8:59pm UTC](https://forums.unrealengine.com/t/bound-shader-view-matrix/451510 "2019-06-30T20:59:52Z")

</div>

So just recently updated to the 4.22 for Unreal, and had watched this video, Refactoring the Mesh Drawing Pipeline for Unreal Engine 4.22 | GDC 2019 | Unreal Engine - YouTube and he mentioned about the view matrix pointe…

---

## [Docu for Projection Matrix](https://forums.unrealengine.com/t/docu-for-projection-matrix/439227)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ba51ce2e](https://forums.unrealengine.com/u/anonymous_user_ba51ce2e)\
**Replies:** 1\
**Last updated:** [April 29, 2019, 2:53pm UTC](https://forums.unrealengine.com/t/docu-for-projection-matrix/439227 "2019-04-29T14:53:05Z")

</div>

Hi, I’m trying to use USceneCaptureComponent2D with a custom Projection Matrix. But I can’t find much docu on it. For OpenGL there exist several tutorials, like song ho, george or simek. Thing is I can’t figure out how…

---

## [Mirror viewport along x axis](https://forums.unrealengine.com/t/mirror-viewport-along-x-axis/395355)

<div class="topic-metadata">

**Author:** [@Jagholin](https://forums.unrealengine.com/u/Jagholin)\
**Replies:** 1\
**Last updated:** [April 17, 2019, 6:34am UTC](https://forums.unrealengine.com/t/mirror-viewport-along-x-axis/395355 "2019-04-17T06:34:04Z")

</div>

Hi all, I want to implement a simple visual effect for my game: mirroring the rendered image on my viewport along the x axis (basically switching left and right side). Using lowlevel APIs this is as easy to do as flippi…

---

## [How to get the view-projection transformation matrix for the active level editor viewport?](https://forums.unrealengine.com/t/how-to-get-the-view-projection-transformation-matrix-for-the-active-level-editor-viewport/431552)

<div class="topic-metadata">

**Author:** [@AirKuma](https://forums.unrealengine.com/u/AirKuma)\
**Replies:** 2\
**Last updated:** [February 27, 2019, 2:21am UTC](https://forums.unrealengine.com/t/how-to-get-the-view-projection-transformation-matrix-for-the-active-level-editor-viewport/431552 "2019-02-27T02:21:13Z")

</div>

Sorry for my poor English. I found this code. It gets a FSceneViewProjectionData from the ULocalPlayer, and it uses the FSceneViewProjectionData to calculate a view-projection transformation matrix. However, I can no…

---

## [C++: Getting Camera matrix](https://forums.unrealengine.com/t/c-getting-camera-matrix/443400)

<div class="topic-metadata">

**Author:** [@SasMaster](https://forums.unrealengine.com/u/SasMaster)\
**Replies:** 0\
**Last updated:** [February 14, 2019, 3:27pm UTC](https://forums.unrealengine.com/t/c-getting-camera-matrix/443400 "2019-02-14T15:27:39Z")

</div>

I have seen several similar questions - all unanswered. I need an access to Camera matrices from inside APawn class. Specifically - View (inverse model) and projection matrices. I can’t find anything like that in docu…

---

## [Set Camera Projection Matrix](https://forums.unrealengine.com/t/set-camera-projection-matrix/410581)

<div class="topic-metadata">

**Author:** [@aaronsnoswell](https://forums.unrealengine.com/u/aaronsnoswell)\
**Replies:** 3\
**Last updated:** [October 26, 2018, 12:04am UTC](https://forums.unrealengine.com/t/set-camera-projection-matrix/410581 "2018-10-26T00:04:19Z")

</div>

What exactly you want to adjust? Because ue4 have various camera settings in different classes/objects. In general you can make some specific things in post process materials.

---

## [How to calculate stereoscopic view with custom projection matrix with only one camera](https://forums.unrealengine.com/t/how-to-calculate-stereoscopic-view-with-custom-projection-matrix-with-only-one-camera/417487)

<div class="topic-metadata">

**Author:** [@s0n4](https://forums.unrealengine.com/u/s0n4)\
**Replies:** 2\
**Last updated:** [September 5, 2018, 2:53am UTC](https://forums.unrealengine.com/t/how-to-calculate-stereoscopic-view-with-custom-projection-matrix-with-only-one-camera/417487 "2018-09-05T02:53:33Z")

</div>

Hi, I am trying to build a stereoscopic camera setup to use in a CAVE-Projection-System. But I noticed, that when calculating the Projection-Matrix per eye i can only set one camera position per frame. In the Screensho…

---

## [SceneCaptureComponent2D Custom Projection Matrix 4.17](https://forums.unrealengine.com/t/scenecapturecomponent2d-custom-projection-matrix-4-17/406364)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_10da89e9](https://forums.unrealengine.com/u/anonymous_user_10da89e9)\
**Replies:** 1\
**Last updated:** [August 7, 2018, 8:49am UTC](https://forums.unrealengine.com/t/scenecapturecomponent2d-custom-projection-matrix-4-17/406364 "2018-08-07T08:49:44Z")

</div>

Hi, SceneCaptureComponent2D.h contains the following /\*\* Whether a custom projection matrix will be used during rendering. \*/ UPROPERTY(BlueprintReadWrite, AdvancedDisplay, Category = Projection) bool bUseCustomP…

---

## [How to modify the camera matrix](https://forums.unrealengine.com/t/how-to-modify-the-camera-matrix/419192)

<div class="topic-metadata">

**Author:** [@Emixam](https://forums.unrealengine.com/u/Emixam)\
**Replies:** 0\
**Last updated:** [March 7, 2018, 2:44pm UTC](https://forums.unrealengine.com/t/how-to-modify-the-camera-matrix/419192 "2018-03-07T14:44:53Z")

</div>

Hello, does anybody know how to modify the camera projection matrix in Unreal? I think it must be near “View-\>ViewMatrices” in ULocalPlayer::CalcSceneView, but I still can’t get my finger on it

---

## [Get Image matrix from camera](https://forums.unrealengine.com/t/get-image-matrix-from-camera/415470)

<div class="topic-metadata">

**Author:** [@masternick95](https://forums.unrealengine.com/u/masternick95)\
**Replies:** 0\
**Last updated:** [January 24, 2018, 9:54pm UTC](https://forums.unrealengine.com/t/get-image-matrix-from-camera/415470 "2018-01-24T21:54:57Z")

</div>

Hi to all, I need to acquire the Image from a camera and send that as matrix throug an UDP socket. I’ve already built the UDP socket system, but I’m still wondering about how to get the Image from the camera and eventu…

---

## [Projecting Texture Onto Object ("Dynamic Mask")](https://forums.unrealengine.com/t/projecting-texture-onto-object-dynamic-mask/325839)

<div class="topic-metadata">

**Author:** [@DamirH](https://forums.unrealengine.com/u/DamirH)\
**Replies:** 1\
**Last updated:** [January 14, 2018, 11:38am UTC](https://forums.unrealengine.com/t/projecting-texture-onto-object-dynamic-mask/325839 "2018-01-14T11:38:17Z")

</div>

Heya, I am trying to use materials to dynamically project a texture onto a mesh via material. Unfortunately, I am not having as much luck as I am hoping, even though my calculations appear correct (hint: they’re not). A…

---

## [Getting the Camera's Projection Matrix](https://forums.unrealengine.com/t/getting-the-cameras-projection-matrix/335497)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_cb6f156b](https://forums.unrealengine.com/u/anonymous_user_cb6f156b)\
**Replies:** 1\
**Last updated:** [January 11, 2018, 5:32pm UTC](https://forums.unrealengine.com/t/getting-the-cameras-projection-matrix/335497 "2018-01-11T17:32:51Z")

</div>

I have a sphere mesh which acts as a cursor and handles some interaction and overlapping events on scene. I wanted another mesh or billboard whose position follows the sphere but will be closer to the camera, so that I c…

---

## [Transformation matrix](https://forums.unrealengine.com/t/transformation-matrix/412239)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_40078cc7](https://forums.unrealengine.com/u/anonymous_user_40078cc7)\
**Replies:** 1\
**Last updated:** [December 14, 2017, 12:58pm UTC](https://forums.unrealengine.com/t/transformation-matrix/412239 "2017-12-14T12:58:54Z")

</div>

Hi, I have a transform matrix (4x4 → composed from 3x3 Rotation matrix and a 3x1 Translation vector) received from TCP connection. How can apply this matrix to an actor?

---

## [\[Feature Request\] Modifying the projection matrix](https://forums.unrealengine.com/t/feature-request-modifying-the-projection-matrix/299724)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_cc062b33](https://forums.unrealengine.com/u/anonymous_user_cc062b33)\
**Replies:** 10\
**Last updated:** [September 25, 2017, 1:25pm UTC](https://forums.unrealengine.com/t/feature-request-modifying-the-projection-matrix/299724 "2017-09-25T13:25:31Z")

</div>

I’d very much appreciate a more convenient and reliable way to access and change the camera’s projection matrices to achieve effects like off axis projection, as suggested in this thread in the forums: Currently, eithe…

---

## [Interpolating orthograpfic and perspective projection matrices](https://forums.unrealengine.com/t/interpolating-orthograpfic-and-perspective-projection-matrices/405128)

<div class="topic-metadata">

**Author:** [@Totoro83](https://forums.unrealengine.com/u/Totoro83)\
**Replies:** 0\
**Last updated:** [September 21, 2017, 12:52pm UTC](https://forums.unrealengine.com/t/interpolating-orthograpfic-and-perspective-projection-matrices/405128 "2017-09-21T12:52:51Z")

</div>

I want to have a smooth transition between two different projection modes, orthographic and perspective. After some researching I discovered that it is possible to feed different projection matrices overriding ULocalPla…

---

## [Creating a grid](https://forums.unrealengine.com/t/creating-a-grid/386731)

<div class="topic-metadata">

**Author:** [@kn0bbulo](https://forums.unrealengine.com/u/kn0bbulo)\
**Replies:** 1\
**Last updated:** [July 25, 2017, 4:52pm UTC](https://forums.unrealengine.com/t/creating-a-grid/386731 "2017-07-25T16:52:40Z")

</div>

I need to create a simple square-block grid. Since I’m still a newbie, my first thought was to make a large square with a small Z scale and then add several smaller squares inside and somehow code those little squares s…

[Next page](https://forums.unrealengine.com/tag/projection-matrix/4960.md?match_all_tags=true&page=1&tags%5B%5D=projection-matrix)
