Barrel Distortion

More
6 years 9 months ago #1 by Insomnia
Barrel Distortion was created by Insomnia
Hey!
Im playing Elite Dangerous mostly now and one thing that bothers me is the shape of planets and stars when they are in or around the corners of the screen. They look like eggs! :sick:
I've tried to "mimic" barrel distortion with the lens distortion shaders that are already in the Framework, but the edges of the image are also distorted.

Is it possible to achieve some kind of barrel distortion without distorting the edges? Does anyone have good working settings to achieve something like barrel distortion? Or is it possible for you code geniuses to create a barrel distortion shader that works with the Framework? :)

Thanks!
Tobi

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #2 by Marty McFly
Replied by Marty McFly on topic Barrel Distortion
Game just had too high FoV apparently so it's technically correct. A bit difficult to unwarp this.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #3 by brussell
Replied by brussell on topic Barrel Distortion
If you change the following code in ReShade/McFX/FishEyeCA.h
float r2 = (texcoord.x-0.5) * (texcoord.x-0.5) + (texcoord.y-0.5) * (texcoord.y-0.5);
to
float r2 = (texcoord.x-0.5) * (texcoord.x-0.5);

you can at least remove the the vertical distortion.
Example:

Without Fisheye:

Standard Fisheye:

Modified FishEye:


However, you still have to zoom or crop to eliminate the remaining edges.
The following user(s) said Thank You: Wicked Sick, Insomnia

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #4 by Insomnia
Replied by Insomnia on topic Barrel Distortion
Thanks alot! Will test this weekend. :)

Please Log in or Create an account to join the conversation.