HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
skelData.h
Go to the documentation of this file.
1 //
2 // Copyright 2025 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_USD_IMAGING_USD_SKEL_IMAGING_SKEL_DATA_H
8 #define PXR_USD_IMAGING_USD_SKEL_IMAGING_SKEL_DATA_H
9 
11 
14 
17 
18 #include "pxr/usd/sdf/path.h"
21 
22 #include "pxr/base/vt/array.h"
23 
25 
27 
29 
30 /// Some of the data necessary to compute the skinning transforms of a skeleton.
31 /// These data come from the skeleton and the skelAnimation's joints.
33 {
34  /// Path of deformable prim. Used only for warnings/error messages.
36 
38 
39  /// From skeleton's joints.
41 
42  /// From skeleton.
45 
47  const UsdSkelImagingSkeletonSchema& schema);
48 };
49 
50 /// Compute data for prim in scene index.
54  HdSceneIndexBaseRefPtr const &sceneIndex,
55  const SdfPath &primPath);
56 
57 /// Compute skinning transforms for extComputation.
62  /// From skeleton (might not be needed).
63  HdMatrix4fArrayDataSourceHandle const &restTransforms,
64  const VtArray<UsdSkelImagingAnimationSchema>& animationSchemas,
65  const VtArray<SdfPath>& animationSources,
66  const HdSampledDataSource::Time& shutterOffset);
67 
69 
70 #endif
#define PXR_NAMESPACE_OPEN_SCOPE
Definition: pxr.h:73
GLsizei const GLchar *const * path
Definition: glcorearb.h:3341
PXR_NAMESPACE_OPEN_SCOPE TF_DECLARE_REF_PTRS(HdSceneIndexBase)
UsdSkelImagingSkeletonSchema skeletonSchema
Definition: skelData.h:37
HdMatrix4fArrayDataSource::Handle HdMatrix4fArrayDataSourceHandle
UsdSkelImagingSkelData(const SdfPath &path, const UsdSkelImagingSkeletonSchema &schema)
UsdSkelTopology topology
From skeleton's joints.
Definition: skelData.h:40
Definition: path.h:280
#define USDSKELIMAGING_API
Definition: api.h:23
VtArray< GfMatrix4f > inverseBindTransforms
Definition: skelData.h:44
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
VtArray< GfMatrix4f > bindTransforms
From skeleton.
Definition: skelData.h:43
USDSKELIMAGING_API VtArray< GfMatrix4f > UsdSkelImagingComputeSkinningTransforms(const UsdSkelImagingSkelData &data, HdMatrix4fArrayDataSourceHandle const &restTransforms, const VtArray< UsdSkelImagingAnimationSchema > &animationSchemas, const VtArray< SdfPath > &animationSources, const HdSampledDataSource::Time &shutterOffset)
Compute skinning transforms for extComputation.
USDSKELIMAGING_API UsdSkelImagingSkelData UsdSkelImagingComputeSkelData(HdSceneIndexBaseRefPtr const &sceneIndex, const SdfPath &primPath)
Compute data for prim in scene index.
Definition: format.h:1821
SdfPath primPath
Path of deformable prim. Used only for warnings/error messages.
Definition: skelData.h:35