Barrel Distortion

  • Insomnia
  • Topic Author
More
8 years 5 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.

  • Marty McFly
More
8 years 5 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.

  • brussell
More
8 years 5 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.

  • Insomnia
  • Topic Author
More
8 years 5 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.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.