Zoom and focus curves for Virtual Camera

Hey, I’m currently working on a project with a virtual studio connected to a real camera and I seem to have hit a wall when it comes to the zoom and focus calibration of my camera. I have a Live Link connected to my UE5 and I’m receiving data for both zoom and focus (0 to 1 data), now I want to work with the Camera Calibration part of unreal to make my virtual zoom and focus behave as close as possible to the real one. I’ve reached the zoom and focus curves from my lens file but I can’t get my head arround how this curves are supposed to work. I get that you basicaly place point to draw the curve to be similar to the real camera but I’m not getting how am i supposed to work diferent levels of focus for different levels of zoom.

The image looks like you have normalized focal length value of 0.264 You are showing a focus distance of “0” Not sure if that is correct number coming in. It may be easier if I explain in non normalized values the process and you can translate what you would be seeing with normalized values (if whatever you are using to send FIZ data can send in mm for focal length and cm for focus distance it may be easier to understand what you are looking at in the lens file.

Example: I have 20mm to 40mm zoom. I would start by setting the zoom at 20mm. Depending on the size of the checkerboard you are using to calibrate with would determine where I would set the the lens closest focus distance. For this example I will set the focus distance to 100cm. Collect enough overlapping images of the checkerboard at this focus distance and calibrate lens. This will place calibration points for focal length, focus distance and distortion values as well as Image center and Fx FY. Staying at same focal length of 20mm change focus distance on the lens to 200cm and collect images again and calibrate lens. Now change focus distance to 400cm and collect images and apply again. Now you have a close mid and far focus distance at 20mm focal length. Now change focal length to 30mm. Repeat calibration process at differing focus distances. Then change to 40mm and repeat calibration process again at different focus distances. It is up to you if you need to do more in between focal lengths and more focus distances than a close mid and far focus distance.

Here are links to documentation on lens calibration.

Let me know if this helps.