You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 testing
Closing as I am just seeing that this behaviour change was described in the Changelog for 24.08:
When calling HdSceneDelegate::SamplePrimvar() for a time-varying primvar when the time sampling interval's start or end time falls between authored sample times, the bracketing authored sample times are now included in the output. Previously, only authored sample times within the interval were included, along with interpolated values at the interval start and end, as needed. For example, if the primvar has authored values at T = [1, 2, 3], and the sampling interval is [1.5, 2.5], the new behavior provides the authored values at T = [1, 2, 3], whereas the old behavior would provide values at T = [1.5, 2, 2.5], with the values at 1.5 and 2.5 being linear interpolations between the adjacent authored values.
It might be a good idea to update the SamplePrimvar function documentation though.
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: