1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【three.jsのヘルパー解説集】 ⑤CameraHelperの使い方

Posted at

CameraHelper

継承:THREE.Line
解説:カメラを可視化してくれるヘルパーです。画角、アスペクト比、ニアークリップ、ファークリップ、アップベクターがひと目で確認できます。オブジェクトがカメラの射程内にいるかを確認する際や、カメラのアニメーションをする際に活用できます。

デモ

Untitled.gif

実装例

javascript
var camera = new THREE.PerspectiveCamera(20, 16 / 9, 1, 3);
var cameraHelper = new THREE.CameraHelper(camera);
scene.add(cameraHelper);

CameraHelper(camera)

  • camera:ヘルパーを表示させたいカメラオブジェクト
1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?