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 
13 
14 #include "pxr/usd/sdf/path.h"
17 
18 #include "pxr/base/vt/array.h"
19 
21 
23 
25 
26 /// Some of the data necessary to compute the skinning transforms of a skeleton.
27 /// These data come from the skeleton and the skelAnimation's joints.
29 {
30  /// Path of deformable prim. Used only for warnings/error messages.
32 
33  /// Path of animation prim.
35 
36  /// From skeleton's joints.
38 
39  /// Remapping of skelAnimation's data to skeleton's hierarchy.
41 
42  /// From skeleton.
45 };
46 
47 /// Compute data for prim in scene index.
51  HdSceneIndexBaseRefPtr const &sceneIndex,
52  const SdfPath &primPath);
53 
54 /// Compute skinning transforms for extComputation.
59  /// From skeleton (might not be needed).
60  HdMatrix4fArrayDataSourceHandle const &restTransforms,
61  /// From skelAnimation.
62  const VtArray<GfVec3f> &translations,
63  const VtArray<GfQuatf> &rotations,
64  const VtArray<GfVec3h> &scales);
65 
67 
68 #endif
SdfPath animationSource
Path of animation prim.
Definition: skelData.h:34
PXR_NAMESPACE_OPEN_SCOPE TF_DECLARE_REF_PTRS(HdSceneIndexBase)
HdMatrix4fArrayDataSource::Handle HdMatrix4fArrayDataSourceHandle
UsdSkelTopology topology
From skeleton's joints.
Definition: skelData.h:37
UsdSkelAnimMapper animMapper
Remapping of skelAnimation's data to skeleton's hierarchy.
Definition: skelData.h:40
Definition: path.h:273
#define USDSKELIMAGING_API
Definition: api.h:23
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
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< GfVec3f > &translations, const VtArray< GfQuatf > &rotations, const VtArray< GfVec3h > &scales)
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:31