-
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
Change of behaviour of the SamplePrimvar function #3478
Comments
Closing as I am just seeing that this behaviour change was described in the Changelog for 24.08:
It might be a good idea to update the SamplePrimvar function documentation though. |
@cpichard Sorry about that! I'll get the documentation updated for the next release. |
Hi @tgvarik , thanks for updating the doc. |
Description of Issue
Hi,
We found a regression with the SamplePrimvar function which is affecting our render delegate.
The values returned by this function differ between USD 24.11 and 23.11 (or any version < 24.05)
With 23.11 the values are bounded by the camera shutter range and including the camera shutter times.
With 24.11 the values returned are the closest keyframes not including the camera shutter times if enclosing keyframes are found.
It is possible this change was introduced with this commit f3b28bc#diff-edff558696b6442b01aea0ec75bb8e1f8d59ce415739039040ec3be9bdc78242L483
The doc can be interpreted in different ways, with samples outside of the shutter range or not, but the camera shutter times should be included:
SamplePrimvar "Returns the union of the authored samples and the boundaries of the current camera shutter interval. If this number is greater than maxSampleCount, you might want to call this function again to get all the authored data."
Steps to Reproduce
I am adding a test which will pass with 24.05 and fail with 24.11, this function can be added to the
testImagingDelegate.cpp
file for testingThe corresponding test file : primvars.zip has to be added in the
pxr/usdImaging/usdImaging/testenv/testUsdImagingDelegate
folderSystem Information (OS, Hardware)
Tested on macos with USD 24.05 and 24.11
Thanks for the help.
The text was updated successfully, but these errors were encountered: