Sandy Scott

How to calculate camera parameters to match a real photo

Discussion created by Sandy Scott on Aug 13, 2020
Latest reply on Aug 17, 2020 by Sandy Scott

I'd like to place a render into a real photo, replacing an existing version of our product.

 

So, I'd like to know if any of you have a reliable method for doing this accurately, or a way to calculate the parameters for the (Solidworks) camera. I realise I can position the camera manually, but it's a pretty tedious process to get it close enough that it looks OK.

 

I've got as far as setting the image as the scene background, then finding the spot on the model that's at the exact centre of the photo, and fixing that as the camera's target, but that's only the start. I'm hoping for something (software? pen & paper algorithm?) that can take into the co-ordinates of a few points, both in the 3D model and their corresponding point in the 2D photos, and crunch the numbers to work out what the camera position, rotation and perspective should be.

 

Any tips?

Outcomes