MAXBoneConversionInfo

This class converts a 3D Studio MAX§ bones hierarchy to IFXAuthorBones format. It does this by holding information on each bone being converted, including its conversion functions.

Interface Method

Description

MAXBoneAnimTrack

Class constructor

AxisAlign

Computes the tranform needed to bring the bone into alignment with its parent

CalcLengthDisp

Calculates the length and displacement of the bone at a given time

CollectBoneAnimData

Collects the animation data for this bone

ComputeBoneInfo

Calculates the axis alignment, length, and displacement

ComputeInitialTransform

Computes the initial transformation of the bone

ComputeJoints

Computes the joints of the bone

GetIFXBoneInfo

Populates an IFXBoneInfo structure with this bone's data

GetInitialTransforms

Gets the transformation for the bone in its starting position

GetNode

Gets the 3D Studio MAX node associated with the bone

GetParentNode

Gets the 3D Studio MAX node of the bone's parent

HasAnimation

Returns the bone's animation data

Init

Initializes the object for use

IsInit

Indicates if the object has been initialized

KeyFrameCount

Returns the number of keyframes

KeyFrameData

Returns an array of keyframe data

SetParent

Sets the information about the parent bone


MAXBoneAnimTrack::MAXBoneAnimTrack ()

This is the constructor method.

Parameters:

None

Return Values


MAXBoneConversionInfo::AxisAlign ()

This method computes the tranform needed to bring the bone into alignment with its parent.

Parameters:

None

Return Values


MAXBoneConversionInfo::CalcLengthDisp (TimeValue in_Time, IFXVector3 * out_Disp, F32 * out_Length)

This method calculates the length and displacement of the bone at a given time.

Parameters:

in_Time

Time during which the change occurs

out_Disp

Displacement of the bone

out_Length

Length of the bone

Return Values


MAXBoneConversionInfo::CollectBoneAnimData (U32 uSampleInterval, U32 uAnimationStart, U32 uAnimationEnd)

This method collects the animation data for this bone.

Parameters:

uSampleInterval

The interval between samples

uAnimationStart

The first frame to sample

uAnimationEnd

The last frame to sample

Return Values


MAXBoneConversionInfo::ComputeBoneInfo ()

This method calculates the axis alignment, length, and displacement.

Parameters:

None

Return Values


MAXBoneConversionInfo::ComputeInitialTransform ()

This method computes the initial transformation of the bone.

Parameters:

None

Return Values


MAXBoneConversionInfo::ComputeJoints ()

This method computes the joints of the bone.

Parameters:

None

Return Values

Comments:

This data is not used by Shockwave 3D§.


MAXBoneConversionInfo::GetIFXBoneInfo (IFXBoneInfo * out_pBoneInfo)

This method populates an IFXBoneInfo structure with this bone's data.

Parameters:

out_pBoneInfo

Pointer to an IFXBoneInfo structure to populate with this bone's information

Return Values


MAXBoneConversionInfo::GetInitialTransforms ()

This method gets the transformation for the bone in its starting position.

Parameters:

None

Return Values


MAXBoneConversionInfo::GetNode ()

This method gets the 3D Studio MAX node associated with this bone.

Parameters:

None

Return Values


MAXBoneConversionInfo::GetParentNode ()

This method returns the 3D Studio MAX node of this bone's parent.

Parameters:

None

Return Values


MAXBoneConversionInfo::HasAnimation ()

This method returns the bone's animation data.

Parameters:

None

Return Values


MAXBoneConversionInfo::Init (U32 in_Idx, INode * in_Bone, INode * in_GroupNode, MAXNodeUtils * pMAXNodeUtils)

This method initializes the object for use.

Parameters:

in_Idx

The ID of the bone

in_Bone

The bone to be converted

in_GroupNode

The group head of the bone

pMAXNodeUtils

The node utilities to use

Return Values


MAXBoneConversionInfo::IsInit ()

This method indicates if this object been initialized.

Parameters:

None

Return Values


MAXBoneConversionInfo::KeyFrameCount ()

This method returns the number of keyframes.

Parameters:

None

Return Values


MAXBoneConversionInfo::KeyFrameData ()

This method returns an array of keyframe data.

Parameters:

None

Return Values


MAXBoneConversionInfo::SetParent (U32 in_PIdx, MAXBoneConversionInfo * in_PInfo)

This method sets the information about the parent bone.

Parameters:

in_PIdx

Array index of the parent bone

in_PInfo

MAXBoneConversionInfo object associated with the bone's parent

Return Values

 

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