MAXBonesConverter

The class converts a hierarchy of 3D Studio MAX§ bones to IFXAuthorBones format.

Interface Method

Description

MAXBonesConverter

Class constructor

~MAXBonesConverter

Class destructor

Initialize

Initializes the object for use

GetBones

Returns a populated AuthorBones object

ConvertMotion

Transfers boned animation data from MAX into an IFXMotionResource

GetBoneId

Maps a MAX bone node (normal or Biped) to an internal bone ID.

Term

Cleans up all the memory allocated

GetBoneIdx

Searches for the ID of the bone associated with a Max node

GetBoneIdxFromParent

Searches for the ID of the bone with a Max node specified as a parent

CollectAnimData

Samples the bone animation data

PopulateMotionResource

Populates an IFXMotionResource with the motion tracks of a skeletal animation

IsInit

Returns object initialization state


MAXBonesConverter::MAXBonesConverter()

Class constructor.

Parameters:

None

Return Values:

None


MAXBonesConverter::~MAXBonesConverter()

Class destructor.

Parameters:

None

Return Values:

None


MAXBonesConverter::Initialize (S3DSceneGraphUtils * in_pSGUtils, ExpInterface * pMAXExportInterface, Interface * pMAXCoreInterface, MAXNodeList * in_pMAXNodeList, MAXExporter* in_pMAXExporter, S3DProgressDlg * in_pProgressDlg, U32 uSampleInterval, U32 uAnimationStart, U32 uAnimationEnd)

This method initializes the object for use.

Parameters:

in_pSGUtils

The SceneGraphUtility object

pMAXExportInterface

The MAX exporter interface

pMAXCoreInterface

The MAX Core function interface

in_pMAXNodeList

The list of nodes whose bones are converted

in_pMAXExporter

The master exporter object

in_pProgressDlg

The progress dialog object

uSampleInterval

Animation sampling interval

uAnimationStart

Animation start time

uAnimationEnd

Animation end time

Return Values


MAXBonesConverter::GetBones (IFXAuthorBones ** out_pAuthorBones)

This method returns a populated AuthorBones object.

Parameters:

out_pAuthorBones

The populated AuthorBones object

Return Values


MAXBonesConverter::ConvertMotion (IFXNode* in_pSGNode, IFXModelResource* in_pMR, S3DProgressDlg* in_pProgressDlg)

This method transfers boned animation data from MAX into an IFXMotionResource.

Parameters:

in_pSGNode

The scenegraph node for the motion

in_pMR

The model resource containing the skeleton to be bound to the motion

in_pProgressDlg

Pointer to the progress dialog object

Return Values


MAXBonesConverter::GetBoneId (INode* in_Bone, U32* out_BoneId)

This method maps a MAX bone node (normal or Biped) to one of the internal bone IDs

Parameters:

in_Bone

The MAX node of the bone

out_BoneId

The returned internal bone ID

Return Values


MAXBonesConverter::Term ()

This method cleans up all the memory allocated in the structure.

Parameters:

None

Return Values:

None


MAXBonesConverter::GetBoneIdx (INode* bone_node)

This method searches for the ID of the bone associated with an Max node.

Parameters:

bone_node

MAX node referring to the bone for which the ID is searched

Return Values:

U32


MAXBonesConverter::GetBoneIdxFromParent (INode* bone_node)

This method searches for the ID of the bone with a Max node specified as a parent.

Parameters:

bone_node

MAX node referring to the bone for which the ID is searched

Return Values:

U32


MAXBonesConverter::CollectAnimData (S3DProgressDlg* in_pProgressDlg)

This method samples the bone animation data.

Parameters:

in_pProgressDlg

Pointer to the progress dialog object

Return Values


MAXBonesConverter::PopulateMotionResource (IFXMotionResource*)

This method fills in an IFXMotionResource with the motion tracks that make up a skeletal animation.

Parameters:

in_pMotion

The IFXMotionResource to populate

Return Values


MAXBonesConverter::IsInit ()

This method returns object initialization state.

Parameters:

None

Return Values

§See asterisked (*) statement at Legal Information © 2001 Intel Corporation.