This class is used to quick setup Ptex Painting for meshes.
First you need to create a UVGeneratorNode for each of your mesh and set face dimensions properly, then call PtexPainting::Setup() to get Ptex Painting ready meshes.
UVGeneratorNode* pUVGen = myMesh->ChildByClass<UVGeneratorNode>(true);
Optional: Set the texture resolution of face 1 to 32 x 32. pUVGen->SetFaceSize( 1, 32, 32 );
QVector<mudbox::Mesh *> aMeshes; aMeshes.push_back( myMesh ); PtexPainting::Setup( aMeshes );
Definition at line 124 of file UVGeneratorInterface.h.
#include <UVGeneratorInterface.h>

Public Member Functions |
|
| Q_DECLARE_TR_FUNCTIONS (PtexPainting) | |
Static Public Member Functions |
|
| static void | Setup (QVector< mudbox::Mesh * > pMeshes, bool bTransferPaintLayers=true) |
| Setup meshes for Ptex painting. |
|
Public Attributes |
|
| DECLARE_CLASS | |
| Q_DECLARE_TR_FUNCTIONS | ( | PtexPainting | ) |
| static void Setup | ( | QVector< mudbox::Mesh * > | pMeshes, |
| bool | bTransferPaintLayers =
true |
||
| ) | [static] |
Setup meshes for Ptex painting.
Reimplemented from TreeNode.
Definition at line 128 of file UVGeneratorInterface.h.