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

updates for building with latest post-21.02 dev branch commit of core USD #1199

Merged
merged 4 commits into from
Feb 20, 2021

Conversation

mattyjams
Copy link
Contributor

A few small changes to go along with commits pushed to the dev branch of core USD today.

All supported releases of USD should continue to work with these changes.

…butes in testUsdImportRfMLight

UsdLuxShapingAPI and UsdLuxShadowAPI are now connectable, so all attributes on
these APIs have been given the "inputs:" prefix.

This change corresponds to core USD commit
PixarAnimationStudios/OpenUSD@3738719

(Internal change: 2148852)
@mattyjams mattyjams added the build Related to building maya-usd repository label Feb 19, 2021
Comment on lines -158 to -159
taskParams.camera = _cameraId;
taskParams.viewport = _viewport;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These parameters were not used by the task at least as far back as USD 20.02 and most likely were never used.

Comment on lines +84 to +88
std::vector<GfMatrix4d>
Compute(const CameraUtilFraming& framing, CameraUtilConformWindowPolicy policy) override
{
return _shadowMatrices;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both overloads of Compute() will exist for a while during a transition period until the old one that takes a GfVec4f is eventually removed.

Comment on lines -97 to +102
float shaping:cone:angle = 92
float shaping:cone:softness = 0.2
float shaping:focus = 0.2
color3f shaping:focusTint = (0.2, 0.2, 0.2)
float shaping:ies:angleScale = 1.2
asset shaping:ies:file = @./DiskLight_profile.ies@
float inputs:shaping:cone:angle = 92
float inputs:shaping:cone:softness = 0.2
float inputs:shaping:focus = 0.2
color3f inputs:shaping:focusTint = (0.2, 0.2, 0.2)
float inputs:shaping:ies:angleScale = 1.2
asset inputs:shaping:ies:file = @./DiskLight_profile.ies@
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, this might actually break the test if you tried to run it in older versions of USD, but we do not actually run the RenderMan for Maya tests in this repo:

# testUsdImportRfMLight.py

…es CameraUtilFraming

This new version of Compute() will ultimately replace the original one that
takes a GfVec4f viewport, and the original will be removed.

This change corresponds to core USD commit
PixarAnimationStudios/OpenUSD@0eac446

(Internal changes: 2149169, 2149173)
The framing is computed in HdxSimpleLightTask per shadow-casting light, so the
camera and viewport params have not been used in the HdxShadowTask since at
least core USD 20.02.

This change corresponds to core USD commit
PixarAnimationStudios/OpenUSD@8bd9d50

(Internal change: 2149197)
This identifies core USD commit 09ff5b7 (post 21.02 release) as the most recent
supported version of USD:

PixarAnimationStudios/OpenUSD@09ff5b7
@mattyjams mattyjams force-pushed the pr/update_to_current_core_USD_dev branch from 53f50e7 to c1b6753 Compare February 19, 2021 19:31
@mattyjams
Copy link
Contributor Author

Forgot to clang-format, just addressed that with a rebase.

@kxl-adsk kxl-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Feb 20, 2021
@kxl-adsk kxl-adsk merged commit 49ec9d0 into Autodesk:dev Feb 20, 2021
@mattyjams mattyjams deleted the pr/update_to_current_core_USD_dev branch February 20, 2021 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to building maya-usd repository ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants