I'm following this answer to calculate the Size of my Sphere Geometry
in three.js. But I'm somehow missing something as the calculated result is just not correct, when I measure the size through a screenshot.
I generated the setting like this:
this.cubeGeometry = new THREE.SphereGeometry(210, 60, 60);
this.camera = new THREE.PerspectiveCamera(45, this.size.w / this.size.h, 1, 20000);
this.camera.position.z = 1000;
Then I calculate the size like this
var vFOV = THREE.Math.degToRad( this.camera.fov ); // => 0.7853981633974483
var height = 2 * Math.tan( vFOV / 2 ) * 1000; // => 828.4271247461901
var fraction = 210 / height; // => 0.253492424049175
var finalSize = this.size.h * fraction // => 242.33875739101128
The screenshoted size is about 500px. What am I missing?
Thanks!