Z
Z
Zakharov Alexander2020-01-23 00:07:36
three.js
Zakharov Alexander, 2020-01-23 00:07:36

Is it possible to programmatically remove the OrbitControl camera in THREE.js to show all scene objects?

Hello.
Is it possible to programmatically "push" the camera (on a button) along the camera's axis of view to show all objects on the scene so that they fall into the camera's field of view? (Show All)
Didn't find a method for camera or for orbitControl. Experimented with frustum bindingSphere, but also to no avail.
I read questions on SO, but there are all some half-measures.
Or maybe there is an explanation why it can't be done? For some reason, this task did not seem difficult to me initially, but now I have been solving it for a day and cannot understand it. (

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zakharov Alexander, 2020-01-29
@AlexZaharow

I found a good control to replace OrbitControl:
https://github.com/yomotsu/camera-controls
There are additional fitto, zoomto and other useful functions that are not in OrbitControl.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question