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

Re-add direct setter and getter for camera type #793

Merged
merged 1 commit into from
Jun 16, 2016

Conversation

matteblair
Copy link
Member

We had this feature before, and removed it in favor of using a "scene update" to change the camera type. While technically sufficient and correct, the "scene update" approach is much more cumbersome than a direct setter! Of course we can't add direct setters for every part of the scene, but since we provide direct control over every other aspect of the view (zoom, position, tilt, etc.) it seems reasonable that the camera type should be just as easy to access and modify.

@tallytalwar
Copy link
Member

I agree.

The only concern I have is out of all the view calls we allow (zoom, position, tilt, cameraType change) this is the only one dependent on the scene file. If the scene file does not specify these camera types what should be the behavior?

@matteblair
Copy link
Member Author

The camera element in the scene file has parameters for position and zoom as well, so this doesn't seem that different. Can you clarify what you mean?

@tallytalwar
Copy link
Member

perspective and isometric camera types use different configurations specified in the scene file.
If one does not provide these configuration in the scene file and change the camera type, it will result in bad camera/renders.

Example if one only has isometric camera set in the scene file with apt parameter ('axis') set.. and then camera type is changed from isometric to perspective (with no information of perspective camera parameters (fov, focal_length, etc) available).

@matteblair
Copy link
Member Author

All of these parameters have documented default values, so I don't think
one could produce an "invalid" configuration.
On Jun 15, 2016 12:27 PM, "Varun" notifications@github.com wrote:

perspective and isometric camera types use different configurations
specified in the scene file.
If one does not provide these configuration in the scene file and change
the camera type, it will result in bad camera/renders.

Example if one only has isometric camera set in the scene file with apt
parameter ('axis') set.. and then camera type is changed from isometric
to perspective (with no information of perspective camera parameters (fov,
focal_length, etc) available).


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#793 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ADNzSjXkcZW43a9w9mb5Hg4tlazJeMTpks5qMCfVgaJpZM4I2hed
.

@tallytalwar
Copy link
Member

Note: Update documentation when this gets released with our next release.

@tallytalwar tallytalwar merged commit d767c8b into master Jun 16, 2016
@tallytalwar tallytalwar deleted the camera-type-setter branch June 16, 2016 14:58
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.

2 participants