-
Notifications
You must be signed in to change notification settings - Fork 316
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
Camera Fov Y exported wrong. #2315
Labels
question
Further information is requested
Comments
Hello, Exporting / Importing camera yfov is not as simple as field of view conversion, as it require also aspect ratio (so render size) and sensor fit We can find the conversion used here:
At import, we currently don't fully manage aspect ratio / render size :
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Camera y-fov export is wrong. Instead of exporting it in radians it seems its exported as degrees/100. E.g a fov of 39.9 is exported as 0.3999 instead of 0.69. The erratic behavior is also apparent when re-importing the previously imported gltf file. If you re-import, the fovy that was exported as 39.9 becomes now 22.9 instead.
Changing lens units from/to fov or mm also does not change behavior.
To Reproduce
Steps to reproduce the behavior:
Create a camera, export gltf including cameras. Check json -> value will be wrong. To further confirm, re-import gltf, now the imported camera will also have a wrong fov.
Expected behavior
E.g 39.9 should export as 6.999 radians
Version
The text was updated successfully, but these errors were encountered: