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

ability to change the camera field of view? #19

Closed
akosmaroy opened this issue Dec 14, 2013 · 2 comments
Closed

ability to change the camera field of view? #19

akosmaroy opened this issue Dec 14, 2013 · 2 comments

Comments

@akosmaroy
Copy link
Contributor

I wonder how would one change the camera field of view, so that a wider angle camera view is made possible?

I'm looking at Camera::calculateFrustumData(), and it seems the _tanHalfFieldOfView value would specify this angle, which is a burned-in constant. if I change this I seem to get expected results.

can you please confirm that indeed this is the way of changing the field of view

would you be open to change the API so that this value can be changed from outside of the library, through a public method?

@DiegoGomezDeck
Copy link
Member

In the current implementation, the FOV is hardcoded to something like 42 degrees and it's not posible to change it.

@akosmaroy
Copy link
Contributor Author

since then, a function has been added to allow setting FOV

g3mbot added a commit that referenced this issue Nov 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants