Skip to content

Conversation

@Markil3
Copy link
Contributor

@Markil3 Markil3 commented Mar 25, 2021

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.

Markil3 added 2 commits March 25, 2021 09:37
What was I thinking? We already have the resize method!
Reversing the calculations is more accurate.
@Markil3
Copy link
Contributor Author

Markil3 commented Mar 25, 2021

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.

@stephengold
Copy link
Member

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:
https://github.com/jMonkeyEngine/jmonkeyengine/pull/1492/checks

@Markil3
Copy link
Contributor Author

Markil3 commented Mar 25, 2021

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.

@Markil3
Copy link
Contributor Author

Markil3 commented Mar 25, 2021

O.K., I guess the failed job was a fluke. It worked fine this time.

@Markil3 Markil3 requested a review from stephengold March 31, 2021 04:18
@stephengold stephengold changed the title Adds getter/setter fields for the field of view and for the perspective camera. Adds getters/setters for Camera field of view and aspect ratio Apr 3, 2021
@Markil3 Markil3 requested a review from stephengold April 5, 2021 14:41
Copy link
Member

@stephengold stephengold left a 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.

@stephengold stephengold merged commit e1e4ad4 into jMonkeyEngine:master Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Getter/Setter methods for attribute fieldOfView in the class Camera.java

2 participants