MiloMindbender / UE4VirtualProduction

An example Unreal Engine Virtual Production Project
MIT License
167 stars 37 forks source link

LIV Calibrator Integration #17

Open TheTrueCoder opened 1 year ago

TheTrueCoder commented 1 year ago

I have written a blueprint variation of your Auto Camera Rig that supports using LIV to calibrate your camera and easily import the calibration by copy-pasting the calibration into the rig. I decided to do this because LIV has a very easy-to-use calibrator that gets decent calibrations with very little effort. A sample of what I used this on would include this music event.

I'm wondering if you'd be interested in me contributing it to this repo for everyone else to use.

TheTrueCoder commented 1 year ago

Would you have any interest in this @MiloMindbender?

MiloMindbender commented 1 year ago

Hi, sorry for not responding sooner. I have used LIV some time ago but haven't see any kind of camera calibration with it. Does this calibrate the nodal point and tracker offset from it?

As far as contributing to this repo, I've been going over all the changes since this was started, up to the release of unreal 5. It looks like with Unreal 5 a lot of the things in this repo have been made a lot simpler to do, in particular setting up the camera and virtual stage. So what I'm planning on doing is starting a whole new project for Unreal 5. This repo will stay around for reference.

TheTrueCoder commented 1 year ago

Liv does do the nodal point offset and lens FOV calibration. It's significantly less precise than the Unreal one, but it's easier to get started with and it has a nice interactive wizard for going through the calibration. It's probably better for beginners than the built-in one because it just requires one additional controller to set up (no checkerboard).

I could probably write an editor blueprint that would generate a Lens file from a LIV configuration if you think that would have a decent use case. Here is the thing I made for LIV if you would like to give it a go. It's just the project files, so you'll need to put it into another project, but it is based on your rig blueprint actor and you copy-paste the Unity (full) calibration into the text box as that's the only one that provides the nodal offset. LIV_Rig_Blueprints.zip

Exporting the calibration: image