-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add exposure controls to UsdGeomCamera
This PR adds exposure controls to UsdGeomCamera, allowing to specify brightness as with a physical camera. The calculated exposure value is fed to `HdCamera::GetLinearExposureScale()` via `UsdImagingCameraAdapter` and `UsdImagingDataSourceCamera`. Note that: 1. Existing scenes that use the existing `exposure` attribute continue to work as before, whether the render delegate calls `HdCamera::GetExposure()` or `HdCamera::GetLinearExposureScale()`. 2. Renderers need to switch to calling `HdCamera::GetLinearExposureScale()` to make use of the new attributes. Adds exposure:time, exposure:iso, exposure:fNumber, exposure:responsivity attributes and repurposes exposure attribute to be interpreted as exposure compensation. Adds UsdGeomCamera::ComputeLinearExposureScale() method which allows users to calculate the imaging ratio (i.e. given a certain luminance on the sensor, what is the photometric exposure output) from these attributes. Also adds a unit test to test the above. Adds tokens `exposureTime`, `exposureIso`, `exposureFNumber`, `exposureResponsivity`, `exposureCompensation` to `HdCamera`. Adds `HdCamera::GetLinearExposureScale()` for delegates to be able to use the new controls with a single function call. Closes #3085 (Internal change: 2353446) Co-authored-by: Tom <[email protected]> Co-authored-by: Paul Molodowitch <[email protected]>
- Loading branch information
Showing
18 changed files
with
977 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.