MAXModelConverter |
This class provides methods to convert a list of 3D Studio MAX§ model nodes to IFXModelResource structures.
|
Interface Methods |
Description |
|
Class constructor |
|
|
Class destructor |
|
|
Get the normals associated with a mesh |
|
|
Initializes instance of this class |
|
|
Converts MAX nodes to IFXModelResouce |
|
|
Wraps all conversion of the geometry and materials used by one or more meshes into a single call |
|
|
Converts MAX geometry node into an IFXAuthorMesh |
|
|
Traverses the input meshes and finds the mesh format that will hold all of the mesh components |
|
|
Calculates the base vertices to let the MRM engine preserve them |
|
|
Gets the bone IDs and weight pairs associated with each vertex of the mesh |
|
|
Does simple weighting |
|
|
Transforms vertices and normals of IFXAuthorMesh by tMatrix |
Class Constructor.
Parameters:
None
Return Values:
None
Class Destructor.
Parameters:
None
Return Values:
None
This method gets the normals associated with a mesh.
Parameters:
|
in_MaxMesh |
The mesh from which to gather normals |
|
in_AuthMesh |
The IFXAuthorMesh to stuff the results into |
This method Initializes instance of this class.
Parameters:
|
in_pSGUtils |
Scenegraph utilities object |
|
pMAXExportInterface |
MAX general exporter interface |
|
pMAXCoreInterface |
MAX core interface |
|
pMAXExporter |
Main exporter object |
|
in_pBonesConverter |
Bones converter |
|
in_pProgressDlg |
Progress dialog |
Converts a list of MAX Nodes to IFXModelResource.
Parameters:
|
pMAXNodeList |
List of MAX nodes to convert |
|
out_pNumMaterials |
Number of materials to be created in the conversion |
|
out_ppMaterials |
List of materials that were converted |
|
out_ppModelResource |
The IFXModelResouce to be created |
This method wraps all conversion of the geometry and materials used by one or more meshes in a single call.
Parameters:
|
pMAXNodeList |
List of MAX nodes to convert |
|
pNumMaterials |
Number of materials to be created in the conversion |
|
ppMaterials |
List of materials that were converted |
|
out_ppModelResource |
The IFXModelResouce to be created |
This method converts a MAX geometry node into an IFXAuthorMesh
Parameters:
|
in_pMAXNode |
The node containing the mesh to convert |
|
in_tm |
The transformation to apply to the mesh vertices to make them line up with the bones and the IFXNode |
|
in_isGroupMember |
Reserved for future use |
|
in_MeshMtlMap |
Mapping of MAX material IDs to IFXMaterials |
|
in_bHasBones |
Determines whether bones are associated with this mesh |
|
in_bHasNegScaling |
Determines whether the mesh is negatively scaled |
|
out_ppAuthMesh |
The resulting IFXAuthorMesh |
This method traverses the input meshes and finds the mesh format that will hold all of the mesh components.
Parameters:
|
in_pMAXMesh |
The MAX mesh |
|
out_AuthAllocDesc |
The descriptor to hold the data extracted from the MAX mesh |
|
in_bHasBones |
Determines whether the mesh has vertex weights from the bones on it |
This method calculates the base vertices to let the MRM engine preserve them.
Parameters:
|
vertSel |
Description from MAX of the vertices selected |
|
in_AuthorMesh |
The mesh on which to flag the vertices |
This method gets the bone IDs and weight pairs associated with each vertex of the mesh.
Parameters:
|
in_pMaxNode |
The MAX node list from which to get the vertex weights |
|
in_pMAXMesh |
The specific MAX mesh to be sampled |
|
out_AuthMesh |
The IFXAuthorMesh to hold the weights |
This method does simple weighting for use when a mesh is trivially linked to a bone and no multiweighting is involved.
Parameters:
|
in_pMaxNode |
The node this mesh is for |
|
in_pMAXMesh |
The mesh associated with the node |
|
out_AuthMesh |
The IFXAuthorMesh into which the weighting is placed |
This method transforms vertices and normals of IFXAuthorMesh by tMatrix.
Parameters:
|
tMatrix |
The matrix to multiply into all points |
|
out_pAuthMesh |
The IFXAuthorMesh to be modified |
§See asterisked (*) statement at Legal Information © 2001 Intel Corporation.