# Exposed camera projection matrix like in Unity?

**URL:** <https://forums.unrealengine.com/t/exposed-camera-projection-matrix-like-in-unity/416318>\
**Category:** Cinematics & Media\
**Tags:** matrix, projection, unreal-engine, question\
**Created:** [February 3, 2018, 4:45pm UTC](https://forums.unrealengine.com/t/exposed-camera-projection-matrix-like-in-unity/416318 "2018-02-03T16:45:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev100000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dev100000](https://forums.unrealengine.com/u/dev100000)\
**Post date:** [February 3, 2018, 4:45pm UTC](https://forums.unrealengine.com/t/exposed-camera-projection-matrix-like-in-unity/416318/1 "2018-02-03T16:45:45Z")

</div>

Hi!

Is it possible to have the camera projection matrix exposed so that we can use our own matrices to get the “special effects” of our dreams, or to forget gaming for a moment, let UE4 be any useful for applications like archviz and many more “adult” things? In your gaming head language: Can you imagine a zombie head flying off, gore everywhere, chainsaw roaring, and all this in Fisheye look that is NOT postprocessing but true camera projection so that we do not need oversampling like for the Panini projection that you already have?

> **[Unity - Scripting API: Camera.projectionMatrix](https://docs.unity3d.com/ScriptReference/Camera-projectionMatrix.html)**

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [February 3, 2018, 7:55pm UTC](https://forums.unrealengine.com/t/exposed-camera-projection-matrix-like-in-unity/416318/2 "2018-02-03T19:55:23Z")

</div>

There are many people that use ue4 for archvis to great effect. Im sure if you really wanted a fisheye look then you could make a post process material that would accomplish that pretty easily. also there is a depth of field slider if your using a perspective camera.

I personally dont like the fisheye look so i havent made one myself.

---

<div class="post-metadata">

**Author:** ![dev100000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dev100000](https://forums.unrealengine.com/u/dev100000)\
**Post date:** [February 3, 2018, 10:04pm UTC](https://forums.unrealengine.com/t/exposed-camera-projection-matrix-like-in-unity/416318/3 "2018-02-03T22:04:31Z")

</div>

Fisheye was only an example. It is about adding any camera lens you want, that’s why Unity exposed it. Doing it in post processing is out of question because you need to oversample, which is just nonsense if you can modify the projection matrix directly. And even with oversampling you will still notice that the stretched center pixel for example were simply magnified.

Here is postprocessing in case someone wants to do it. You really just take the Screen texture (the render results) and stretch it like in Photoshop&Co… By nature of the process, you get really ugly artifacts as soon as you push it.

> **[how to make lens distortion work?](https://forums.unrealengine.com/questions/160433/how-to-make-lens-distortion-work.html)**
>
> hi there! I’ve been following a Eat3d tutorial on how to create a lens distortion shader, but I can’t quite figure out how to assign it in the end. I’ve been looking at the content example for postprocess materials and tried to replicate the...
