S
S
SheldonCoop2016-04-08 23:02:56
JavaScript
SheldonCoop, 2016-04-08 23:02:56

How to change scene to another in three.js?

There is a scene with a planet, how to make it so that when you click on the planet, the scene and objects on it completely change?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lertmind, 2016-04-09
@Lertmind

Here's a little scene manager bkcore.com/blog/3d/webgl-three-js-extension-render... .
The demo there seems to be outdated and did not start for me, but if you download and replace Three.js with a new one, it works.
How to handle clicks, see for example here threejs.org/examples/#webgl_interactive_draggablecubes , where the mousedown event is used.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question