Gamerz31w
(Gamerz31w)
September 16, 2020, 9:32am
16
Arkiras:
It’s not quite fisheye as it’s more cylindrical than spherical, but UE4 does now support Panini Projection out of the box thanks to the UT project (R.I.P.). Nothing is really required to enable it other than running the command on that page.
If you need something much more closer to a real fisheye, and you’re much smarter than I am, then someone has an opensource project on github called Blinky that adds a bunch of different projection methods to Quake. The author has also put together some very interesting visualizations about how projection works as well as done a presenation (part 1 , part 2 ) on it with ANOTHER developer who seems to have livestreamed much of his effort implementing the effect in Super Mario 64 . It’s also been partially implemented by someone in Godot.
Unfortunately it is very expensive, requiring rendering from anywhere from 3-6 different views depending on the projection mode you choose. (maybe 5 if you only want fisheye) and probably more unfortunately, there are noticeable seams between the projections due to certain effects, especially camera facing billboards and screenspace effects. Sadly I don’t know of any better way to accomplish this.
https://youtube.com/watch?v=f9v_XN7Wxh8
How did you do you do that? Also is lens disortion and fisheye lens the same thing? How to make Classic Sonic spindashing by holding Ctrl keyboard button because he just keep standing still,but he’s walking/running normally anyway.
Arkiras:
After my last post I got to thinking and came up with a really hacky way to do this, I basically just spherified a cube, chopped it up into 5 sides, and assigned a render target to each one. Then I attached it to the player camera (so the camera is basically just looking at a spherified cube with a bunch of render targets on it). Worked better than expected.
You can get away with as few as 3 render targets if you don’t need the distortion to be particularly intense.
https://youtube.com/watch?v=eA7EFJmkSJA
So what if you could make it more spherical? Anyway which fisheye lens Unreal Engine 4 tutorial should I follow in Google searchbar?