-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add storm support for camera exposure controls #3464
base: dev
Are you sure you want to change the base?
Add storm support for camera exposure controls #3464
Conversation
Filed as internal issue #USD-10512 (This is an automated message. See here for more information.) |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
adb7ebb
to
1a69581
Compare
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.
Left a few comments about the PR; not sure I can review this yet. I'm excited about it though!
pxr/imaging/hdx/colorChannelTask.h
Outdated
@@ -54,9 +54,6 @@ class HdxColorChannelTask : public HdxTask | |||
// Returns true if the values were updated. False if unchanged. | |||
bool _UpdateParameterBuffer(float screenSizeX, float screenSizeY); | |||
|
|||
/// Apply the color channel filtering. | |||
void _ApplyColorChannel(); |
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.
Can you revert the changes to colorChannelTask? They seem unrelated.
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.
Heh, you caught me... I tried to sneak in a few commits with some minor code cleanup. Moved them to a separate PR: #3521
pxr/usd/usdGeom/schema.usda
Outdated
@@ -2297,6 +2297,42 @@ class Camera "Camera" ( | |||
However, it follows that if even one property is authored in the correct | |||
scene units, then they all must be. | |||
|
|||
\\section UsdGeom_CameraExposure Camera Exposure Model |
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.
It would be great to rebase this CL on top of dev; now that the exposure schema has landed, it would make the PR much smaller.
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.
Done!
684f18d
to
a8793af
Compare
a8793af
to
77a2a03
Compare
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
} | ||
} | ||
|
||
// Currently, we're querying GetLinearExposureScale() every frame - not |
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.
When "linearExposureScale" is updated, the target camera will get an "HdCamera::DirtyParams" update. You could add a version counter to the HdCamera, and check if the task has the latest version, although that only seems worthwhile if _compositor->SetShaderConstants is expensive.
@@ -44,6 +44,7 @@ pxr_library(hdx | |||
colorCorrectionTask | |||
drawTargetTask | |||
effectsShader | |||
exposureScaleTask |
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.
The makefile/package/taskController updates all seem to be "exposureScale", but "linearExposureScale" is included as well. Note that camera ended up with "GetLinearExposureScale" but not "ExposureScale", so possibly we need to nix all of the plain old "exposureScale" stuff.
I couldn't find the pow(2, exposureScale) anywhere in exposureScaleTask, but if we're going with linearExposureScale that doesn't matter.
Description of Change(s)
This is a follow-up / add-on to the PR which adds camera exposure controls:
It adds
HdxExposureScaleTask
to allow visualization of the camera exposure controls in Storm.See here to just see the additional changes, vs #3085:
Checklist
[X] I have created this PR based on the dev branch
[X] I have followed the coding conventions
[ ] I have added unit tests that exercise this functionality (Reference:
testing guidelines)
[X] I have verified that all unit tests pass with the proposed changes
[X] I have submitted a signed Contributor License Agreement (Reference:
Contributor License Agreement instructions)