Barrel Distortion

  • Posts: 142
4 years 7 months ago #1 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.

  • Posts: 1221
4 years 7 months ago #2 by Marty McFly
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.

  • Posts: 273
4 years 7 months ago #3 by brussell
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.

  • Posts: 142
4 years 7 months ago #4 by Insomnia
Thanks alot! Will test this weekend. :)

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