I am getting wrong results when matching a 3D object with a real-life photo!

You take a photo, you know all the camera parameters such as: 

  • The sensor size (e.g. 36x24mm)
  • The FOV/focal distance (e.g. 17mm)
  • The distance at which the subject was captured (e.g. 10m)

You create a basic scene, set up your 3D camera, and copy all the parameters into it, but for some reason the 3D object is not matching the original photo at all. As the first step, consider the below information:

 

In Corona, we calculate the FOV based on the sensor width ("film width" in the Corona Camera) for photos captured horizontally (in "landscape" orientation), so if you captured your original photo vertically (in "portrait" orientation), you need to swap the sensor width with the sensor height. For example, if your camera sensor is 36x24mm, set 24mm as your Corona Camera sensor width. 

 

There may be other reasons why photo-matching is not working as expected, so you can also:

Was this article helpful?
0 out of 0 found this helpful