webgl-fundamentals icon indicating copy to clipboard operation
webgl-fundamentals copied to clipboard

Why multiply camera radius by 1.5?

Open trusktr opened this issue 7 years ago • 1 comments

Why do you multiply the camera radius by 1.5?

cameraMatrix = m4.translate(cameraMatrix, 0, 0, radius * 1.5);

Instead of making the radius 200, you could just make it 300. So do we need the 1.5?

trusktr avatar May 21 '17 23:05 trusktr

The radius defines the radius of the circle of Fs. We want the camera to be outside that circle not on that circle.

camera-radius

Yes, you could just make it 300. As it is though it will always be outside the circle of Fs

greggman avatar May 22 '17 01:05 greggman