Camera arguments in Three.js

前端 未结 4 1353
说谎
说谎 2021-01-31 05:37

This is how a camera is instantiated:

var camera = new THREE.PerspectiveCamera(
    VIEW_ANGLE,
    ASPECT,
    NEAR,
    FAR
);

What do these

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-31 05:51

    fov: Camera frustum vertical field of view.

    aspect: Camera frustum aspect ratio.

    near: Camera frustum near plane.

    far: Camera frustum far plane.

    On these pages there some image for the FOV, NEAR plane, anmd FAR plane.

    https://threejsfundamentals.org/threejs/lessons/resources/frustum-3d.svg

    https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/ViewFrustum.svg/440px-ViewFrustum.svg.png

    https://threejsfundamentals.org/threejs/lessons/threejs-cameras.html https://en.wikipedia.org/wiki/Viewing_frustum

    This is the aspect ratio.

    https://en.wikipedia.org/wiki/Aspect_ratio_(image)

    This is the official docs.

    https://threejs.org/docs/#api/en/cameras/PerspectiveCamera

提交回复
热议问题