Most appropriate sub-area of p5.js?
p5.js version
main branch
Web browser and version
N/A
Operating System
N/A
Steps to reproduce this
In the reference for perspective(), we say:
If no parameters are given, the following default is used: perspective(PI/3, width/height, eyeZ/10, eyeZ*10), where eyeZ is equal to ((height/2) / tan(PI/6)).
This is no longer the case: now, the default eyeZ camera field of view is this:
|
this.defaultEyeZ = 800; |
|
this.defaultCameraFOV = |
|
2 * Math.atan(this._renderer.height / 2 / this.defaultEyeZ); |
We should mention that we use a fixed location and variable field of view. The default values currently documented shouldn't be fully removed though: if one wants a fixed field of view, we can suggest using those defaults instead.
Most appropriate sub-area of p5.js?
p5.js version
main branch
Web browser and version
N/A
Operating System
N/A
Steps to reproduce this
In the reference for
perspective(), we say:This is no longer the case: now, the default
eyeZcamera field of view is this:p5.js/src/webgl/p5.Camera.js
Lines 1952 to 1954 in 6b7c511
We should mention that we use a fixed location and variable field of view. The default values currently documented shouldn't be fully removed though: if one wants a fixed field of view, we can suggest using those defaults instead.