-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Adds getters/setters for Camera field of view and aspect ratio #1492
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
Conversation
…the perspective camera.
What was I thinking? We already have the resize method!
Reversing the calculations is more accurate.
|
I honestly have no idea why the Linux javadoc task failed. Is there a way to rerun it? Perhaps it was just a hiccup, especially since everything else (including Linux on JDK11) worked. |
|
The only way I know to rerun a check/job is to rerun them all. Note the "Re-run jobs" button on the right side: |
|
I'm not seeing the button. I'm guessing that I don't have the appropriate permissions to so. Its not a big deal. We can rerun them after we finish the last of the issues for this. |
|
O.K., I guess the failed job was a fluke. It worked fine this time. |
jme3-examples/src/main/java/jme3test/renderer/TestAspectFov.java
Outdated
Show resolved
Hide resolved
jme3-examples/src/main/java/jme3test/renderer/TestAspectFov.java
Outdated
Show resolved
Hide resolved
stephengold
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes. Looks fine now.
As discussed in https://hub.jmonkeyengine.org/t/getter-setter-methods-for-attribute-fieldofview-in-the-class-camera-java-in-jme-3-4/44426/9 and mentioned in #1491, I added getter and setter methods for the field of view for perspective cameras (calling these methods on an orthogonal camera has no effect). These can be easily tested on any example that uses the FlyByCamera (i.e., 90% of them), but I added a new test for it just the same that actually displays the current FOV.