-
Notifications
You must be signed in to change notification settings - Fork 33
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
update camera aspect ratio in Plan View and Cross Section #635
Comments
See my comments 3DStreet/3dstreet-editor#185 (comment) |
Thanks, I read the comments but didn't look in detail yet. Yes, the parameters of the Ortho camera are different from the Perspective camera. Perhaps this is causing the problem. I studied ortho and perspective cameras while working with 3dtiles-loader, I'll try to fix this |
Good luck. I spend about 2 hours trying without success. |
Oh I see that EditorControls is also messing around the left bottom right top property of the ortho camera 3dstreet/src/editor/lib/EditorControls.js Lines 120 to 134 in 5d6bacc
I missed that code when I tried to fix the issue. |
3dstreet/src/editor/lib/viewport.js Line 212 in 5d6bacc
probably just need to be executed on resize |
I made it work. I'll add a PR later. in window resize I first calculate
so I need to do this work in |
I fixed it with |
Added PR here in 3DStreet. I was unable to clone the aframe repository due to an error during the download, perhaps a problem with my unstable connection in a rural area |
I'll make changes to your PR. |
PR #694 fixes the issue. |
closed by #694 |
The text was updated successfully, but these errors were encountered: