|
A task for visualizing non-color AOVs such as depth, normals, primId. More...
#include <visualizeAovTask.h>
Public Member Functions | |
HDX_API | HdxVisualizeAovTask (HdSceneDelegate *delegate, SdfPath const &id) |
HDX_API void | Prepare (HdTaskContext *ctx, HdRenderIndex *renderIndex) override |
HDX_API void | Execute (HdTaskContext *ctx) override |
Public Member Functions inherited from HdxTask | |
HDX_API | HdxTask (SdfPath const &id) |
virtual HDX_API bool | IsConverged () const |
This function returns true when a (progressive) task considers its execution results converged. | |
HDX_API void | Sync (HdSceneDelegate *delegate, HdTaskContext *ctx, HdDirtyBits *dirtyBits) override final |
We override HdTask::Sync, but make it 'final' to make sure derived classes can't override it and instead override _Sync. | |
Protected Member Functions | |
HDX_API void | _Sync (HdSceneDelegate *delegate, HdTaskContext *ctx, HdDirtyBits *dirtyBits) override |
Protected Member Functions inherited from HdxTask | |
virtual void | _Sync (HdSceneDelegate *delegate, HdTaskContext *ctx, HdDirtyBits *dirtyBits)=0 |
HDX_API void | _ToggleRenderTarget (HdTaskContext *ctx) |
HDX_API void | _ToggleDepthTarget (HdTaskContext *ctx) |
HDX_API void | _SwapTextures (HdTaskContext *ctx, const TfToken &textureToken, const TfToken &textureIntermediateToken) |
HDX_API Hgi * | _GetHgi () const |
A task for visualizing non-color AOVs such as depth, normals, primId.
Different kernels are used depending on the AOV: Depth: Renormalized from the range [0.0, 1.0] to [min, max] depth to provide better contrast. Normals: Transform each component from [-1.0, 1.0] tp [0.0, 1.0] so that negative components don't appear black. Ids: Integer ids are colorized by multiplying by a large prime and shuffling resulting bits so that neighboring ids are easily distinguishable. Other Aovs: A fallback kernel that transfers the AOV contents into a float texture is used.
This task updates the 'color' entry of the task context with the colorized texture contents.
Definition at line 60 of file visualizeAovTask.h.
|
overrideprotectedvirtual |
Implements HdxTask.