I\'ve seen lots of questions on how to zoom the camera so an object fills the screen, but I\'m trying to move the object to fill the screen.
I\'ve been trying something
This works, not sure why..
var vFOV = camera.fov * Math.PI / 180; var ratio = 2 * Math.tan( vFOV / 2 ); var screen = ratio * (window.innerWidth / window.innerHeight) ; var size = getCompoundBoundingBox( object ).max.y; var dist = (size/screen) / 4;