-
Notifications
You must be signed in to change notification settings - Fork 206
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
Handle invalid camera errors better #371
Labels
scene
Issues with GafferScene
Comments
In this specific case I think we need to do the following :
|
johnhaddon
added a commit
to johnhaddon/gaffer
that referenced
this issue
May 6, 2014
The Cortex camera specification is very RenderMan centric, and the camera defines the resolution and the screen window for the render. If the aspect ratios of these are different, then we get squashing or stretching of the viewed image - and when we're using the camera in the viewport we currently must set the resolution to match the resolution of the viewport. The GafferScene.Camera node deliberately doesn't specify screen window to avoid squash/stretch in this situation, but cameras from other sources may not. As a short-term solution we just remove the screen window. Longer term (but pretty soon I imagine) we may need to revise the Cortex/Gaffer camera representation so that we can deal with cameras in more physical terms, only performing the mapping to a screenwindow/resolution pair for the renderer. Tickets we could bundle into this chunk of work include GafferHQ#277 (main ticket requesting physical cameras), and GafferHQ#371, GafferHQ#276, GafferHQ#58 as related smaller tickets. We may want to consider adopting something like the Alembic camera representation because a great deal of discussion has gone into it, and it aims to balance the complexity of a million physical parameters with the fairly simple requirements of a renderer (a frustum). Fixes GafferHQ#826.
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some obfuscated errors can slip through to the user if an invalid camera path is specified. Better handling of these errors would be great.
For example:
The text was updated successfully, but these errors were encountered: