Download

Tutorial for a Semi-Accurate Anamorphic Lens Flare -NO CODING NEEDED-

So, I did a lot of looking around on the internet today to see if I could find a way to make accurate anamorphic lens flares in UE4. Unfortunately, I didn’t find anything, until an idea dawned upon me. So, with the basic bokeh lens flares you can actually change the shape of them, and you can make it so only the closest part of the flare to the object giving off light can be visible.

So, the tutorial.

First, open up Photoshop (you can use gimp but for this I will use Photoshop, it should be just as straight forward in Gimp as it is in Photoshop) and make a new file with a size of 2048x2048 pixels.


Next, you will want to make your background black, fully black. There are multiple ways to do this but I just like to use the brush.

Next, make both of the colour boxes you made black, white, and in the brush drop down section, set the size that suits you, and set it so the edges of the brush are soft, there should be a preset.
Afterwards you should have something that looks like this (possibly, depends on the shape you wanted):
a37d748a31a7130c41fae3769c5f11ab06a677be.jpeg
After this, make sure to save the texture with whatever name you like, and make sure to save it as a png.
Now you can close Photoshop and open UE4.
Import your texture in, all you have to do is drap the texture from the folder and into the content browser into a folder of your choice.
Afterwards, you will need to set the texture to be the default texture for your lens flare in the post process area you have placed down. To do this, just drag and drop the texture onto the highlighted area shown here:

Afterwards, you should tweak the lens flare settings until you get something you like, if you’d like to copy my settings for the lens flare I like, feel free.
Now, with the tints all you have to do is tick the box beside them to enable them, then every single tint apart from the top one, should have settings like these:
1d99f97543dffd9b654e5f44adbe400db47e8ac1.jpeg
Now for Tint 0, you can choose whatever colour you like, I went with a GTA V look, a light blue.
Now jump right back in your game and you should have semi accurate anamorphic lens flares, here’s a couple pics showing the post process method in action.
b27b72c461fe87f9ec195f66a2aae46debd4ffa0.jpeg
068b108d8e772e78aec0424c4faee357fdb827dd.jpeg
a7abd707fc8a0660d00f1d1d4d90091f8f093a74.jpeg

I personally love this method as it’s easy to do and requires no coding whatsoever. If you would like to test this with the texture I used in this tutorial, here is a link to the dropbox download: Dropbox - Anamorphic_Lens.png - Simplify your life

I hope this all works for you, enjoy!

P.S: This doesn’t look great with the sun as it is offset slightly.

I’ve done exactly the same thing but doesn’t work me D:


There you go my lens.
https://mega.nz/#!UJUykIJB!z8nl3cIjdkW04Gsr26WE7GxVpaeDSpxzsQM9GcFSVbU