Three.js: (editor) Unclear: how to select render/play camera

Created on 9 Jun 2019  路  2Comments  路  Source: mrdoob/three.js

In the three.js editor, there seems to be no way to choose which camera is rendering to the screen in "PLAY" mode.

This is especially inconvenient because the scene I'm using has an orthographic camera.
Am I missing something?

Editor Question

Most helpful comment

You can change the Player's camera by calling setCamera(camera).

Example

player.setCamera(scene.getObjectByName("OrthographicCamera"));

Add a script to your scene that will call this function.

All 2 comments

Play mode uses always the default (perspective) camera of the scene. You can preview it with different cameras (see screenshot) but this setting is not used when activating Play.

image

You can change the Player's camera by calling setCamera(camera).

Example

player.setCamera(scene.getObjectByName("OrthographicCamera"));

Add a script to your scene that will call this function.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

konijn picture konijn  路  3Comments

yqrashawn picture yqrashawn  路  3Comments

boyravikumar picture boyravikumar  路  3Comments

jack-jun picture jack-jun  路  3Comments

filharvey picture filharvey  路  3Comments