Welcome, Guest.
Username: Password: Remember me

TOPIC: Barrel Distortion

Barrel Distortion 1 year 1 month ago #1

  • Insomnia
  • Insomnia's Avatar
  • Online
  • Posts: 45
  • Thank you received: 11
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
The administrator has disabled public write access.

Barrel Distortion 1 year 1 month ago #2

  • Marty McFly
  • Marty McFly's Avatar
  • Offline
  • We've tried nothing and we're all out of ideas!
  • Posts: 609
  • Thank you received: 719
Game just had too high FoV apparently so it's technically correct. A bit difficult to unwarp this.
The administrator has disabled public write access.

Barrel Distortion 1 year 1 month ago #3

  • brussell
  • brussell's Avatar
  • Offline
  • Posts: 139
  • Thank you received: 113
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 administrator has disabled public write access.
The following user(s) said Thank You: Wicked Sick, Insomnia

Barrel Distortion 1 year 1 month ago #4

  • Insomnia
  • Insomnia's Avatar
  • Online
  • Posts: 45
  • Thank you received: 11
Thanks alot! Will test this weekend. :)
The administrator has disabled public write access.