-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hdPrman] Consolidate and improve motion blur handling
Rewrites the velocity motion blur scene index plugin to handle all types of motion blur processing for hdPrman. The plugin is renamed to HdPrman_MotionBlurSceneIndexPlugin, and redundant motion blur processing code previously scattered throughout hdPrman is removed. The revised motion blur scene index plugin is exclusively responsible for reshaping data sources for motion blur in hdPrman. No other part of hdPrman needs to concern itself with questions of whether and how to apply motion blur. Downstream consumers need only sample data sources to receive the correct number of samples. Tests are added to explicitly test transform blur (and blurScale, which was not previously applied to transform blur) on geometry and cameras. The velocity blur handling portions of the plugin have been expanded to support velocity blur on point instancers. However, since hdPrman currently does not support constant primvars on point instancers, the plugin is unable to see authored velocities or angularVelocities and so cannot apply velocity blur to point instancers yet. Accordingly, no test of this functionality has been added. This will be rectified in follow-up work. Note that in 2294852, we introduced a change that affected all non-points primvars with authored time samples. With that change, such primvars were sampled once at the midpoint of the requested interval. That behavior has been reverted. Non-blurable primvars are sampled at offset 0 regardless of interval to conform to the USDMotionAPI specification. Support for USD versions < 22.05 and Prman versions < 25.0 is removed from the affected files. Likewise, gating on the presence of the motion blur scene index plugin is also removed, since it is always loaded for USD versions >= 22.05. (Internal change: 2305710) (Internal change: 2305831)
- Loading branch information
Showing
15 changed files
with
1,540 additions
and
1,604 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
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.