I am beginner to UE4.
I’m currently trying to simulate my own fisheye camera within UE4. I’m thinking of creating my own fisheye camera model since it doesn’t seem to be officially supported.
I’m thinking that I can use the OpenCV LensDistortion plugin to create a fisheye camera by setting the camera parameters on my own.
I have the following settings in the camera actor, but what am I missing?
If you know, please advise me.
First I created a Render Target to store the output of the Undistort Displacement Map.
I then fed the return value from the Create Undistort UVDisplacement Map to the Draw Displacement Map to Render Target function where my Render Target is specified.
You can then assign the Render Target to Texture Sample node in a Material Blueprint as per below. Since the Distort to Undistort values are in the R and G channels, I’ve applied a mask to filter out the other values. Finally, I fed it to the UVs value of the Texture Sample you wish to Undistort.
I think I got it right, but I’m still trying to figure out how to use the Lens Calibrator to get my camera’s parameters.
@Roy
Thanks for the reply.
I have an additional question.
Is it correct that the BP in the first picture is an Actor?
I don’t know how to specify the Render Target.
@m.takeshi, that is correct, the first BP is an Actor.