We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

# Camera zoom increments

Home Forums Programming Camera zoom increments

Viewing 6 posts - 1 through 6 (of 6 total)
• Author
Posts
• #67055
David Duperron
Customer

Is there a way to control the zoom increments on a perspective camera? in other words to increase the number of divisions between the min and max zoom??

#67087
kdv
Participant

https://www.soft8soft.com/docs/api/en/controls/OrbitControls.html

``````app.controls.zoomSpeed = 2.0;
app.controls.zoomSpeedTouch = 1.0;
app.controls.zoomInertia = 0.15;
app.controls.zoomInertiaTouch = 0.05;``````

btw, in Firefox zooming works twice slower than in Chrome.

Puzzles and JS. Fast and expensive.

If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

#67537
David Duperron
Customer

Thanks for the info!
These parameters have an effect indeed, but that’s not really what I was looking for.
My issue is that it looks like there is a constant number of zoom steps, whatever the distance between MinZoom and MaxZoom is, meaning that for small distance, controlling the zoom level is easier than for big distances where one mouse wheel step equals to a much greater distance. My question was: is there a way to increase the number of zoom steps depending on the MinZoom/MaxZoom distance??
Thanks for the help!

David

#67538
kdv
Participant

No

Puzzles and JS. Fast and expensive.

If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

#67539
David Duperron
Customer

:). Simple.

#67540
kdv
Participant

there is a constant number of zoom steps

Such a parameter doesn’t exist. Dollying (zooming) delta per one wheel move is directly proportional to the distance from the scene’s camera to its orbit center. The farther, the more.

Puzzles and JS. Fast and expensive.

If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

Viewing 6 posts - 1 through 6 (of 6 total)
• You must be logged in to reply to this topic.