My aim is to display a collada object and position it perfectly over an image with this object.
https://i.sstatic.net/LCKZh.jpg
Imagine that I have an image rendered by the v-ray renderer in 3ds max (green one)
and a collada object that I render using three.js with a perspective camera (red one).
The issue I am facing is that the rendered object has more perspective distortion than the image.
I noticed that the THREE.PerspectiveCamera
has a focus
property which seems like what I need. However, when I adjust it, nothing changes.
According to the THREEJS documentation:
.focus
Object distance used for stereoscopy and depth-of-field effects. This parameter does not influence the projection matrix unless a StereoCamera is being used.
But I couldn't find any information about StereoCamera in the three.js documentation.
Is there anyone who can assist me in resolving this?