# Writing Script for Camera Lens Distortion

**URL:** <https://forums.unrealengine.com/t/writing-script-for-camera-lens-distortion/334691>\
**Category:** Cinematics & Media\
**Tags:** unreal-engine, Shaders, question, distortion\
**Created:** [October 8, 2015, 6:56pm UTC](https://forums.unrealengine.com/t/writing-script-for-camera-lens-distortion/334691 "2015-10-08T18:56:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vickicup](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vickicup](https://forums.unrealengine.com/u/Vickicup)\
**Post date:** [October 8, 2015, 6:56pm UTC](https://forums.unrealengine.com/t/writing-script-for-camera-lens-distortion/334691/1 "2015-10-08T18:56:20Z")

</div>

Just wondering if there is a possibility of writing lens shaders to add distortion onto a camera, instead of on a material in the Materials Editor. I noticed that most of the information out there is mainly about applying distortion values to materials and I’m just curious if anyone out there has tried or knows that it is possible to write a script for the camera instead?

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2efecab5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2efecab5](https://forums.unrealengine.com/u/anonymous_user_2efecab5)\
**Post date:** [March 3, 2016, 2:51am UTC](https://forums.unrealengine.com/t/writing-script-for-camera-lens-distortion/334691/2 "2016-03-03T02:51:38Z")

</div>

Hoping to get an answer to this too

---

<div class="post-metadata">

**Author:** ![Raubocop](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raubocop](https://forums.unrealengine.com/u/Raubocop)\
**Post date:** [July 5, 2016, 1:08pm UTC](https://forums.unrealengine.com/t/writing-script-for-camera-lens-distortion/334691/3 "2016-07-05T13:08:10Z")

</div>

me too!!! It would be so ■■■■ awesome to have a real lens distortion, that makes the picture more realistic!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b7baefa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b7baefa](https://forums.unrealengine.com/u/anonymous_user_4b7baefa)\
**Post date:** [November 7, 2017, 12:14pm UTC](https://forums.unrealengine.com/t/writing-script-for-camera-lens-distortion/334691/4 "2017-11-07T12:14:36Z")

</div>

have you already found the solution?

---

<div class="post-metadata">

**Author:** ![petkovic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@petkovic](https://forums.unrealengine.com/u/petkovic)\
**Post date:** [May 28, 2020, 6:42am UTC](https://forums.unrealengine.com/t/writing-script-for-camera-lens-distortion/334691/5 "2020-05-28T06:42:21Z")

</div>

im facing the same problem i hope someone from UE can at least reply to us, and just say its not possible or we dont know when we are going to implement it, anything… To me this looks like a one way street ☹ i cant say im satisfied with support…

Here are some examples so they could understand how disp lens works

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/f/9ef19f953daa4d2445c553fdcc4fe7fa7e4ffc42.jpeg)

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/e/b7e9e32922a0b445078945859890620ee5224970.jpeg)

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/9/d99031c8e03c8506594b7b5d66282f7e11359594.jpeg)

---

<div class="post-metadata">

**Author:** ![petkovic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@petkovic](https://forums.unrealengine.com/u/petkovic)\
**Post date:** [May 31, 2020, 12:54am UTC](https://forums.unrealengine.com/t/writing-script-for-camera-lens-distortion/334691/6 "2020-05-31T00:54:41Z")

</div>

im facing the same problem i hope someone from UE can at least reply to us, and just say its not possible or we dont know when we are going to implement it, anything… To me this looks like a one way street ☹ i cant say im satisfied with support…

Here are some examples so they could understand how disp lens works

[![](https://i.postimg.cc/Z0LZ7B4S/Lens-Distort.jpg)](https://postimg.cc/Z0LZ7B4S)

[![](https://i.postimg.cc/56NJZ42F/No-Lens-Distort.jpg)](https://postimg.cc/56NJZ42F)

[![](https://i.postimg.cc/CzP003Rr/scene.jpg)](https://postimg.cc/CzP003Rr)
