The NNSG3dAnmObj structure collects the data needed to fetch animation data from the animation resource. The structure stores the following data:
The NNSG3dAnmObj structure can be used for the playback of animation by registering it in the NNSG3dRenderObj structure with the NNS_G3dRenderObjAddAnmObj function. The following processes are necessary to use NNSG3dAnmObj for animation playback:
NNS_G3dAllocAnmObj function. Note that the size of the structure will differ, depending on the number of material IDs and joint IDs for the model.
NNSG3dAnmObj structure using the NNS_G3dAnmObjInit function.
NNSG3dRenderObj using the NNS_G3dRenderObjAddAnmObj function.
NNS_G3dAnmObjSetBlendRatio function to set the blend ratio for the number of frames that will be played by the NNS_G3dAnmObjSetFrame function. (This is usually only done when multiple joint animations have been registered).
NNS_G3dDraw function.
NNS_G3dRenderObjRemoveAnmObj function to remove the animation object from NNSG3dRenderObj.
NNSG3dAnmObj is no longer being used, release the structure's region using the NNS_G3dFreeAnmObj function.
NNSG3dAnmObj cannot be used for animation playback if drawing is performed with the NNS_G3dDraw1Mat1Shp function.
10/12/2004 Initial version.
CONFIDENTIAL