Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It would be nice to have setFov method with smooth transition #504

Open
vinkovsky opened this issue Apr 22, 2024 · 2 comments
Open

It would be nice to have setFov method with smooth transition #504

vinkovsky opened this issue Apr 22, 2024 · 2 comments

Comments

@vinkovsky
Copy link

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

@richfwebb
Copy link

Is this different than setZoom?

@yomotsu
Copy link
Owner

yomotsu commented Jun 7, 2024

Exactly.
The functionality of zoom and FOV are closely related.
zoom affect its fov in a perspective camera.
see https://github.com/mrdoob/three.js/blob/7a62164566e030611c0e4c92e9747bc005cdab26/src/cameras/PerspectiveCamera.js#L217

Use zoom instead, which works in both perspective and orthographic.

If you wish to compute the final FOV, please check below.
https://github.com/mrdoob/three.js/blob/7a62164566e030611c0e4c92e9747bc005cdab26/src/cameras/PerspectiveCamera.js#L88-L93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants