Animations

Functions

int SO3AnimTrackGetObject (mmachine m)
 SO3AnimTrackGetObject : Return the object associated with the current animation track.
int SO3AnimTrackCreateKey (mmachine m)
 SO3AnimTrackCreateKey : Return the list of bones for a given node.
int SO3AnimTrackSetKeyTransform (mmachine m)
 SO3AnimTrackSetKeyTransform : Set a transform key for a given keyframe.
int SO3AnimTrackGetKeyTransform (mmachine m)
 SO3AnimTrackGetKeyTransform : Return a key transform.
int SO3AnimTrackGetNumKeys (mmachine m)
 SO3AnimTrackGetNumKeys : Return number of keys for this animation track.
int SO3AnimTrackGetKeyTime (mmachine m)
 SO3AnimTrackGetKeyTime : Return the time for this key frame.
int SO3AnimTrackRemoveKey (mmachine m)
 SO3AnimTrackGetObject : Remove a key frame frm an animation track.
int SO3AnimTrackOptimise (mmachine m)
 SO3AnimTrackOptimise : Optimise the animation track.
int SO3AnimTrackRemoveAllKeys (mmachine m)
 SO3AnimTrackRemoveAllKeys : Remove all keys from an animation track.
int SO3AnimationGetName (mmachine m)
 SO3AnimationGetName : Return the name of an animation.
int SO3AnimationSetLenght (mmachine m)
 SO3AnimationSetLenght : defines length of an animation.
int SO3AnimationSetTimePosition (mmachine m)
 SO3AnimationSetTimePosition :defines time position for an animation.
int SO3AnimationSetWeight (mmachine m)
 SO3AnimationSetWeight : defines weight of a given animation.
int SO3AnimationSetInterpMode (mmachine m)
 SO3AnimationSetInterpMode : defines interpolation mode for animation mix.
int SO3AnimationSetRotInterpMode (mmachine m)
 SO3AnimationSetRotInterpMode : defines rotation interpolation mode for animation mix.
int SO3AnimationGetInterpMode (mmachine m)
 SO3AnimationGetInterpMode : Return the current interpolation mode for this animation.
int SO3AnimationGetType (mmachine m)
 SO3AnimationGetType : Return the current type for this animation.
int SO3AnimTrackDestroy (mmachine m)
 SO3AnimTrackDestroy : Destroy an animation Track.
int SO3AnimationGetRotInterpMode (mmachine m)
 SO3AnimationGetRotInterpMode : Return the current rotation interpolation mode for this animation.
int SO3AnimationSetEnable (mmachine m)
 SO3AnimationSetEnable : Enable/Disable a current animation.
int SO3AnimationSetPause (mmachine m)
 SO3AnimationSetPause : Play/Pause on a given animation.
int SO3AnimationSetLoop (mmachine m)
 SO3AnimationSetLoop : defines loop state for this animation.
int SO3AnimationOptimise (mmachine m)
 SO3AnimationOptimise : Optimize a given animation.
int SO3AnimationGetEnable (mmachine m)
 SO3AnimationGetEnable : Get the enable state for an animation.
int SO3AnimationGetPause (mmachine m)
 SO3AnimationGetEnable : Get the pause state for an animation.
int SO3AnimationGetLoop (mmachine m)
 SO3AnimationGetLoop : Get the loop state for an animation.
int SO3AnimationGetLenght (mmachine m)
 SO3AnimationGetLenght : Return the length of an animation.
int SO3AnimationGetTimePosition (mmachine m)
 SO3AnimationGetTimePosition : Return the time position of an animation.
int SO3AnimationGetWeight (mmachine m)
 SO3AnimationGetTimePosition : Return the weight of an animation.
int SO3AnimationSetSpeed (mmachine m)
 SO3AnimationGetTimePosition : defines speed of an animation.
int SO3AnimationGetSpeed (mmachine m)
 SO3AnimationGetSpeed : Return the speed of an animation.
int SO3AnimationHasEnded (mmachine m)
 SO3AnimationHasEnded : Return the ended state for an animation.
int SO3AnimationNumOfAnimationTrack (mmachine m)
 SO3AnimationNumOfAnimationTrack : Return the number of animation track for an animation.
int SO3ObjectSkeletonNumOfAnimations (mmachine m)
 SO3ObjectSkeletonNumOfAnimations : Return the number of animations for a skeleton.
int SO3ObjectGetVertexAnimations (mmachine m)
 SO3ObjectGetVertexAnimations : Return the list of vertex animations on an object.
int SO3AnimationListAnimTrack (mmachine m)
 SO3AnimationListAnimTrack : Return the list of animation tracks for an animation.
int SO3ObjectGetDisplaySkeleton (mmachine m)
 SO3ObjectGetDisplaySkeleton : Return the display state for a skeleton.
int SO3ObjectHasSkeleton (mmachine m)
 SO3ObjectHasSkeleton : Return true if an object has a skeleton otherwiser false.
int SO3ObjectIsHardwareSkinningEnabled (mmachine m)
 SO3ObjectIsHardwareSkinningEnabled : Return the hardware skinning enable state for an object.
int SO3ObjectSkeletonSetBindPose (mmachine m)
 SO3ObjectSkeletonSetBindPose : defines bind pose on a skeleton.
int SO3ObjectSkeletonGetBlendMode (mmachine m)
 SO3ObjectSkeletonGetBlendMode : Get the blending mode for a skeleton.
int SO3ObjectSkeletonSetBlendMode (mmachine m)
 SO3ObjectSkeletonGetBlendMode : defines blending mode for a skeleton.
int SO3ObjectSetDisplaySkeleton (mmachine m)
 SO3ObjectSetDisplaySkeleton : defines display skeleton mode for an object.
int SO3AnimationAddTime (mmachine m)
 SO3AnimationAddTime : Add time to an animation.
int SO3AnimationDestroy (mmachine m)
 SO3AnimationDestroy : Destroy an animation.
int SO3AnimationGetAnimTrack (mmachine m)
 SO3AnimationGetAnimTrack : Return an animation track from an animation.
int SO3AnimationCreateAnimTrack (mmachine m)
 SO3AnimationCreateAnimTrack : Create a SO3_ANIMTRACK in Scene on a given SO3_ANIM.
int SO3AnimationSetSkipFrame (mmachine m)
 SO3AnimationSetSkipFrame : Set the animation skip frame, this manage if the animation update is based on frame rate or not.
int SO3AnimationGetSkipFrame (mmachine m)
 SO3AnimationGetSkipFrame : Get the animation skip frame state.
int SO3AnimTrackCreateSequenceKey (mmachine m)
 SO3AnimTrackCreateSequenceKey : Add an animation to an animation sequence.
int SO3AnimTrackGetSequenceKey (mmachine m)
 SO3AnimTrackGetSequenceKey : Add an animation to an animation sequence.
int SO3AnimTrackSetSequenceKey (mmachine m)
 SO3AnimTrackSetSequenceKey : Add an animation to an animation sequence.
int SO3AnimTrackMoveSequenceKey (mmachine m)
 SO3AnimTrackMoveSequenceKey : Add an animation to an animation sequence.
int SO3CbAnimationEnded (mmachine m)
 SO3CbAnimationEnded : Define the callback scol had to be called when an animation ended event is called.
int SO3ObjectFeedBAPBuffer (mmachine m)
 SO3ObjectFeedBAPBuffer : Feed FAP buffer on an entity.
int SO3ObjectInitBAPDictionnary (mmachine m)
 SO3ObjectInitBAPDictionnary : Init the BAP dictionary according to H-Anim.
int SO3ObjectSkeletonLoadBAPFile (mmachine m)
 SO3ObjectSkeletonLoadBAPFile : Load a BAP file as animation.
int SO3ObjectFeedFAPBuffer (mmachine m)
 SO3ObjectFeedFAPBuffer : Feed a fap buffer.
int SO3ObjectPlayFAPFile (mmachine m)
 SO3ObjectPlayFAPFile : Load a fap file as vertex animations.
int SO3ObjectSetAnimFAPSpeed (mmachine m)
 SO3ObjectSetAnimFAPSpeed : Set the speed of an animation FAP.
int SO3ObjectFAPCreate (mmachine m)
 SO3ObjectFAPCreate : Create FAP pose according to MPEG4.
int SO3ObjectOpenBAPBuffer (mmachine m)
 SO3ObjectOpenBAPBuffer : Create and Init a BAP buffer.
int SO3ObjectCloseBAPBuffer (mmachine m)
 SO3ObjectCloseBAPBuffer : Close a BAP buffer.
int SO3ObjectOpenFAPBuffer (mmachine m)
 SO3ObjectOpenFAPBuffer : Create and Init a FAP buffer.
int SO3ObjectFAPDestroy (mmachine m)
 SO3ObjectFAPDestroy : Close a FAP buffer.
int SO3ObjectGetBAPAnimation (mmachine m)
 SO3ObjectGetBAPAnimation : Return the BAP animation.
int SO3ObjectGetFAPAnimation (mmachine m)
 SO3ObjectGetBAPAnimation : Return the FAP animation.
int SO3ObjectCreateNodesAnimation (mmachine m)
 SO3ObjectCreateNodesAnimation : Create a Scene Node Animation.
int SO3SceneCreateAnimationSequence (mmachine m)
 SO3SceneCreateAnimationSequence : Create a Scene Animation sequence.

Detailed Description

Scol functions definition


Function Documentation

int SO3AnimationAddTime ( mmachine  m  ) 

SO3AnimationAddTime : Add time to an animation.

Prototype: fun [SO3_ANIM F] I

Parameters:
SO3_ANIM : current animation
F : Time to add
Returns:
I : 1 if success , NIL otherwise

Definition at line 2053 of file SCOLAnim.cpp.

int SO3AnimationCreateAnimTrack ( mmachine  m  ) 

SO3AnimationCreateAnimTrack : Create a SO3_ANIMTRACK in Scene on a given SO3_ANIM.

Prototype: fun [SO3_ANIM SO3_OBJECT I] SO3_ANIMTRACK

Parameters:
SO3_ANIM : Associated animation
SO3_OBJECT : Deprecated use nil
I : Deprecated use nil
Returns:
SO3_ANIMTRACK : The animation track created if success, NIL otherwise

Definition at line 2190 of file SCOLAnim.cpp.

int SO3AnimationDestroy ( mmachine  m  ) 

SO3AnimationDestroy : Destroy an animation.

Prototype: fun [SO3_ANIM] I

Parameters:
SO3_ANIM : current animation
Returns:
I : 1 if success , NIL otherwise

Definition at line 2097 of file SCOLAnim.cpp.

int SO3AnimationGetAnimTrack ( mmachine  m  ) 

SO3AnimationGetAnimTrack : Return an animation track from an animation.

Prototype: fun [SO3_ANIM I] SO3_ANIMTRACK

Parameters:
SO3_ANIM : current animation
I : animation track index
Returns:
SO3_ANIMTRACK : The animation track if success , NIL otherwise

Definition at line 2132 of file SCOLAnim.cpp.

int SO3AnimationGetEnable ( mmachine  m  ) 

SO3AnimationGetEnable : Get the enable state for an animation.

Prototype: fun [SO3_ANIM] I

Parameters:
SO3_ANIM : current animation
Returns:
I : Enable state (1 enable, 0 disable) if success , NIL otherwise

Definition at line 1101 of file SCOLAnim.cpp.

int SO3AnimationGetInterpMode ( mmachine  m  ) 

SO3AnimationGetInterpMode : Return the current interpolation mode for this animation.

Prototype: fun [SO3_ANIM] I

Parameters:
SO3_ANIM : current animation
Returns:
I : Interpolation mode if success , NIL otherwise

For Interpolation mode, values are :

  • SO3_IM_LINEAR
  • SO3_IM_SPLINE

Definition at line 794 of file SCOLAnim.cpp.

int SO3AnimationGetLenght ( mmachine  m  ) 

SO3AnimationGetLenght : Return the length of an animation.

Prototype: fun [SO3_ANIM] F

Parameters:
SO3_ANIM : current animation
Returns:
F : Length if success , NIL otherwise

Definition at line 1212 of file SCOLAnim.cpp.

int SO3AnimationGetLoop ( mmachine  m  ) 

SO3AnimationGetLoop : Get the loop state for an animation.

Prototype: fun [SO3_ANIM] I

Parameters:
SO3_ANIM : current animation
Returns:
I : Loop state (1 enable, 0 disable) if success , NIL otherwise

Definition at line 1175 of file SCOLAnim.cpp.

int SO3AnimationGetName ( mmachine  m  ) 

SO3AnimationGetName : Return the name of an animation.

Prototype: fun [SO3_ANIM] S

Parameters:
SO3_ANIM : current animation
Returns:
S : Name of the animation if success , NIL otherwise

Definition at line 569 of file SCOLAnim.cpp.

int SO3AnimationGetPause ( mmachine  m  ) 

SO3AnimationGetEnable : Get the pause state for an animation.

Prototype: fun [SO3_ANIM] I

Parameters:
SO3_ANIM : current animation
Returns:
I : Pause state (1 enable, 0 disable) if success , NIL otherwise

Definition at line 1138 of file SCOLAnim.cpp.

int SO3AnimationGetRotInterpMode ( mmachine  m  ) 

SO3AnimationGetRotInterpMode : Return the current rotation interpolation mode for this animation.

Prototype: fun [SO3_ANIM] I

Parameters:
SO3_ANIM : current animation
Returns:
I : Rotation interpolation mode if success , NIL otherwise

For Rotation interpolation mode, values are :

  • SO3_RIM_LINEAR
  • SO3_RIM_SPHERICAL

Definition at line 916 of file SCOLAnim.cpp.

int SO3AnimationGetSkipFrame ( mmachine  m  ) 

SO3AnimationGetSkipFrame : Get the animation skip frame state.

Prototype: fun [SO3_ANIM] I

Parameters:
SO3_ANIM : Animation
Returns:
I : 1 if enable, 0 if disable, NIL otherwise

Definition at line 2276 of file SCOLAnim.cpp.

int SO3AnimationGetSpeed ( mmachine  m  ) 

SO3AnimationGetSpeed : Return the speed of an animation.

Prototype: fun [SO3_ANIM] F

Parameters:
SO3_ANIM : current animation
Returns:
F : Speed if success , NIL otherwise

Definition at line 1349 of file SCOLAnim.cpp.

int SO3AnimationGetTimePosition ( mmachine  m  ) 

SO3AnimationGetTimePosition : Return the time position of an animation.

Prototype: fun [SO3_ANIM] F

Parameters:
SO3_ANIM : current animation
Returns:
F : Time position if success , NIL otherwise

Definition at line 1247 of file SCOLAnim.cpp.

int SO3AnimationGetType ( mmachine  m  ) 

SO3AnimationGetType : Return the current type for this animation.

Prototype: fun [SO3_ANIM] I

Parameters:
SO3_ANIM : current animation
Returns:
I : Animation's type if success , NIL otherwise

For Animation Type, values are :

  • SO3_SCENENODE_ANIM
  • SO3_SKELETAL_ANIM
  • SO3_VERTEX_ANIM
  • SO3_POSE_ANIM
  • SO3_SEQUENCE_ANIM

Definition at line 836 of file SCOLAnim.cpp.

int SO3AnimationGetWeight ( mmachine  m  ) 

SO3AnimationGetTimePosition : Return the weight of an animation.

Prototype: fun [SO3_ANIM] F

Parameters:
SO3_ANIM : current animation
Returns:
F : Weight if success , NIL otherwise

Definition at line 1280 of file SCOLAnim.cpp.

int SO3AnimationHasEnded ( mmachine  m  ) 

SO3AnimationHasEnded : Return the ended state for an animation.

Prototype: fun [SO3_ANIM] I

Parameters:
SO3_ANIM : current animation
Returns:
I : Ended state (1 true, 0 false)if success , NIL otherwise

Definition at line 1382 of file SCOLAnim.cpp.

int SO3AnimationListAnimTrack ( mmachine  m  ) 

SO3AnimationListAnimTrack : Return the list of animation tracks for an animation.

Prototype: fun [SO3_ANIM] [SO3_ANIMTRACK r1]

Parameters:
SO3_ANIM : current animation
Returns:
[SO3_ANIMTRACK r1] : list of animation tracks if success , NIL otherwise

Definition at line 1619 of file SCOLAnim.cpp.

int SO3AnimationNumOfAnimationTrack ( mmachine  m  ) 

SO3AnimationNumOfAnimationTrack : Return the number of animation track for an animation.

Prototype: fun [SO3_ANIM] I

Parameters:
SO3_ANIM : current animation
Returns:
I : Number of animation track if success , NIL otherwise

Definition at line 1419 of file SCOLAnim.cpp.

int SO3AnimationOptimise ( mmachine  m  ) 

SO3AnimationOptimise : Optimize a given animation.

Prototype: fun [SO3_ANIM] I

Parameters:
SO3_ANIM : current animation
Returns:
I : 1 if success , NIL otherwise

Definition at line 1062 of file SCOLAnim.cpp.

int SO3AnimationSetEnable ( mmachine  m  ) 

SO3AnimationSetEnable : Enable/Disable a current animation.

Prototype: fun [SO3_ANIM I] I

Parameters:
SO3_ANIM : current animation
I : boolean for enable state(1 enable, 0 disable)
Returns:
I : 1 if success , NIL otherwise

Definition at line 952 of file SCOLAnim.cpp.

int SO3AnimationSetInterpMode ( mmachine  m  ) 

SO3AnimationSetInterpMode : defines interpolation mode for animation mix.

Prototype: fun [SO3_ANIM I] I

Parameters:
SO3_ANIM : current animation
I : Interpolation mode

For Interpolation mode, values are :

  • SO3_IM_LINEAR
  • SO3_IM_SPLINE
Returns:
I : 1 if success , NIL otherwise

Definition at line 715 of file SCOLAnim.cpp.

int SO3AnimationSetLenght ( mmachine  m  ) 

SO3AnimationSetLenght : defines length of an animation.

Prototype: fun [SO3_ANIM F] I

Parameters:
SO3_ANIM : current animation
F : the new length
Returns:
I : 1 if success , NIL otherwise

Definition at line 603 of file SCOLAnim.cpp.

int SO3AnimationSetLoop ( mmachine  m  ) 

SO3AnimationSetLoop : defines loop state for this animation.

Prototype: fun [SO3_ANIM I] I

Parameters:
SO3_ANIM : current animation
I : boolean for loop state(1 enable, 0 disable)
Returns:
I : 1 if success , NIL otherwise

Definition at line 1026 of file SCOLAnim.cpp.

int SO3AnimationSetPause ( mmachine  m  ) 

SO3AnimationSetPause : Play/Pause on a given animation.

Prototype: fun [SO3_ANIM I] I

Parameters:
SO3_ANIM : current animation
I : boolean for play/pause state(1 pause, 0 play)
Returns:
I : 1 if success , NIL otherwise

Definition at line 989 of file SCOLAnim.cpp.

int SO3AnimationSetRotInterpMode ( mmachine  m  ) 

SO3AnimationSetRotInterpMode : defines rotation interpolation mode for animation mix.

Prototype: fun [SO3_ANIM I] I

Parameters:
SO3_ANIM : current animation
I : Rotation interpolation mode

For Rotation interpolation mode, values are :

  • SO3_RIM_LINEAR
  • SO3_RIM_SPHERICAL
Returns:
I : 1 if success , NIL otherwise

Definition at line 755 of file SCOLAnim.cpp.

int SO3AnimationSetSkipFrame ( mmachine  m  ) 

SO3AnimationSetSkipFrame : Set the animation skip frame, this manage if the animation update is based on frame rate or not.

Prototype: fun [SO3_ANIM I] I

Parameters:
SO3_ANIM : Animation
I : status, 1 for enable (default), 0 to disable
Returns:
I : 0 if success, NIL otherwise

Definition at line 2236 of file SCOLAnim.cpp.

int SO3AnimationSetSpeed ( mmachine  m  ) 

SO3AnimationGetTimePosition : defines speed of an animation.

Prototype: fun [SO3_ANIM F] I

Parameters:
SO3_ANIM : current animation
F : given speed
Returns:
I : 1 if success , NIL otherwise

Definition at line 1314 of file SCOLAnim.cpp.

int SO3AnimationSetTimePosition ( mmachine  m  ) 

SO3AnimationSetTimePosition :defines time position for an animation.

Prototype: fun [SO3_ANIM F] I

Parameters:
SO3_ANIM : current animation
F : given time position
Returns:
I : 1 if success , NIL otherwise

Definition at line 639 of file SCOLAnim.cpp.

int SO3AnimationSetWeight ( mmachine  m  ) 

SO3AnimationSetWeight : defines weight of a given animation.

Prototype: fun [SO3_ANIM F] I

Parameters:
SO3_ANIM : current animation
F : given weight
Returns:
I : 1 if success , NIL otherwise

Definition at line 675 of file SCOLAnim.cpp.

int SO3AnimTrackCreateKey ( mmachine  m  ) 

SO3AnimTrackCreateKey : Return the list of bones for a given node.

Prototype: fun [SO3_ANIMTRACK F [F F F] [F F F F] [F F F]] I

Parameters:
SO3_ANIMTRACK : current animation track
F : given keyframe
[F F F] : given translation
[F F F F] : given orientation
[F F F] : given scale
Returns:
I : 1 if success , NIL otherwise

Definition at line 156 of file SCOLAnim.cpp.

int SO3AnimTrackCreateSequenceKey ( mmachine  m  ) 

SO3AnimTrackCreateSequenceKey : Add an animation to an animation sequence.

Prototype: fun [SO3_ANIMTRACK SO3_ANIM F F F] I

Parameters:
SO3_ANIM_TRACK : Animation sequence track
SO3_ANIM : Animation to add
F : length
F : transition time (default 0.0)
F : decal time (default 0.0) the key start after the decal time
Returns:
I : 1 if success, NIL otherwise

Definition at line 2315 of file SCOLAnim.cpp.

int SO3AnimTrackDestroy ( mmachine  m  ) 

SO3AnimTrackDestroy : Destroy an animation Track.

Prototype: fun [SO3_ANIMTRACK] I

Parameters:
SO3_ANIMTRACK : current animation track
Returns:
I : 1 if success , NIL otherwise

Definition at line 871 of file SCOLAnim.cpp.

int SO3AnimTrackGetKeyTime ( mmachine  m  ) 

SO3AnimTrackGetKeyTime : Return the time for this key frame.

Prototype: fun [SO3_ANIMTRACK I] F

Parameters:
SO3_ANIMTRACK : current animation track
I : current key frame
Returns:
F : Associated time if success , NIL otherwise

Definition at line 416 of file SCOLAnim.cpp.

int SO3AnimTrackGetKeyTransform ( mmachine  m  ) 

SO3AnimTrackGetKeyTransform : Return a key transform.

Prototype: fun [SO3_ANIMTRACK I] [[F F F] [F F F F] [F F F]]

Parameters:
SO3_ANIMTRACK : current animation track
I : current node
Returns:
[[F F F] [F F F F] [F F F]] : Transfomation for the current key frame if success , NIL otherwise
  • [F F F] : translation
  • [F F F F] : orientation
  • [F F F] : scale

Definition at line 288 of file SCOLAnim.cpp.

int SO3AnimTrackGetNumKeys ( mmachine  m  ) 

SO3AnimTrackGetNumKeys : Return number of keys for this animation track.

Prototype: fun [SO3_ANIMTRACK] I

Parameters:
SO3_ANIMTRACK : current animation track
Returns:
I : Number of keys if success , NIL otherwise

Definition at line 381 of file SCOLAnim.cpp.

int SO3AnimTrackGetObject ( mmachine  m  ) 

SO3AnimTrackGetObject : Return the object associated with the current animation track.

Prototype: fun [SO3_ANIMTRACK] SO3_OBJECT

Parameters:
SO3_ANIMTRACK : current animation track
Returns:
SO3_OBJECT : Return object if success , NIL otherwise

Definition at line 90 of file SCOLAnim.cpp.

int SO3AnimTrackGetSequenceKey ( mmachine  m  ) 

SO3AnimTrackGetSequenceKey : Add an animation to an animation sequence.

Prototype: fun [SO3_ANIMTRACK I] [SO3_ANIM F F F F]

Parameters:
SO3_ANIM_TRACK : Animation sequence track
I : Key index
Returns:
Parameters:
SO3_ANIM : SO3_ANIM linked to this key
F : Key postition in second
F : Key lenght in second
F : transition time in second
F : decal time in second
Returns:
I : 1 if success, NIL otherwise

Definition at line 2396 of file SCOLAnim.cpp.

int SO3AnimTrackMoveSequenceKey ( mmachine  m  ) 

SO3AnimTrackMoveSequenceKey : Add an animation to an animation sequence.

Prototype: fun [SO3_ANIMTRACK I I] I

Parameters:
SO3_ANIM_TRACK : Animation sequence track
I : Origin index
I : new index position
Returns:
I : 1 if success, NIL otherwise

Definition at line 2569 of file SCOLAnim.cpp.

int SO3AnimTrackOptimise ( mmachine  m  ) 

SO3AnimTrackOptimise : Optimise the animation track.

Prototype: fun [SO3_SCENE SO3_ANIMTRACK] I

Parameters:
SO3_ANIMTRACK : current animation track
Returns:
I : 1 if success , NIL otherwise

Definition at line 495 of file SCOLAnim.cpp.

int SO3AnimTrackRemoveAllKeys ( mmachine  m  ) 

SO3AnimTrackRemoveAllKeys : Remove all keys from an animation track.

Prototype: fun [SO3_ANIMTRACK] I

Parameters:
SO3_ANIMTRACK : current animation track
Returns:
I : 1 if success , NIL otherwise

Definition at line 529 of file SCOLAnim.cpp.

int SO3AnimTrackRemoveKey ( mmachine  m  ) 

SO3AnimTrackGetObject : Remove a key frame frm an animation track.

Prototype: fun [SO3_ANIMTRACK I] I

Parameters:
SO3_ANIMTRACK : current animation track
I : given key frame index
Returns:
I : 1 if success , NIL otherwise

Definition at line 453 of file SCOLAnim.cpp.

int SO3AnimTrackSetKeyTransform ( mmachine  m  ) 

SO3AnimTrackSetKeyTransform : Set a transform key for a given keyframe.

Prototype: fun [SO3_ANIMTRACK I [F F F] [F F F F] [F F F]] I

Parameters:
SO3_ANIMTRACK : current animation track
I : given key frame
[F F F] : new translation vector
[F F F F] : new orientation
[F F F] : new scale
Returns:
I : 1 if success , NIL otherwise

Definition at line 222 of file SCOLAnim.cpp.

int SO3AnimTrackSetSequenceKey ( mmachine  m  ) 

SO3AnimTrackSetSequenceKey : Add an animation to an animation sequence.

Prototype: fun [SO3_ANIMTRACK I F F F] I

Parameters:
SO3_ANIM_TRACK : Animation sequence track
I : Key index
F : length
F : transition time (default 0.0)
F : decal time (default 0.0) the key start after the decal time
Returns:
I : 1 if success, NIL otherwise

Definition at line 2493 of file SCOLAnim.cpp.

int SO3CbAnimationEnded ( mmachine  m  ) 

SO3CbAnimationEnded : Define the callback scol had to be called when an animation ended event is called.

Prototype: fun [SO3_ANIM fun [SO3_ANIM u0] u1 u0] SO3_ANIM

Parameters:
SO3_ANIM : current scene
fun [SO3_ANIM u0] u1 : function scol to call
Returns:
SO3_ANIM : current scene if success, NIL otherwise

Definition at line 2631 of file SCOLAnim.cpp.

int SO3ObjectCloseBAPBuffer ( mmachine  m  ) 

SO3ObjectCloseBAPBuffer : Close a BAP buffer.

Prototype: fun [SO3_SCENE SO3_OBJECT] I

Parameters:
SO3_SCENE : current scene
SO3_OBJECT : current node on which the skeleton for BAP is asociated
Returns:
I : 1 if success , NIL otherwise

Definition at line 598 of file SCOLBAPFAP.cpp.

int SO3ObjectCreateNodesAnimation ( mmachine  m  ) 

SO3ObjectCreateNodesAnimation : Create a Scene Node Animation.

Prototype: fun [SO3_OBJECT S F] SO3_ANIM

Parameters:
SO3_OBJECT : Node on which the animation is attached
S : animation name
F : length
Returns:
SO3_ANIM : The animation created if success, NIL otherwise

Definition at line 3455 of file SCOLObject.cpp.

int SO3ObjectFAPCreate ( mmachine  m  ) 

SO3ObjectFAPCreate : Create FAP pose according to MPEG4.

Prototype: fun [SO3_SCENE SO3_OBJECT S S S] I

Parameters:
SO3_SCENE : current scene
SO3_OBJECT : current node on which the entity for FAP is asociated
S : meshFile path
S : IFN file path
S : FDP file path
Returns:
I : 1 if success , NIL otherwise

TODO SEntityFap* newEntityFap = scene->CreateEntityFap(tmpEntityFapName, meshFileName, pathStdFDP, pathStdIndices); sceneNodeParent->Attach(newEntityFap); sceneNodeParent->setPosition(position); sceneNodeParent->setOrientation(orient); sceneNodeParent->setScale(scale);

Definition at line 435 of file SCOLBAPFAP.cpp.

int SO3ObjectFAPDestroy ( mmachine  m  ) 

SO3ObjectFAPDestroy : Close a FAP buffer.

Prototype: fun [SO3_SCENE SO3_OBJECT] I

Parameters:
SO3_SCENE : current scene
SO3_OBJECT : current node on which the entity for FAP is asociated
Returns:
I : 1 if success , NIL otherwise

Definition at line 682 of file SCOLBAPFAP.cpp.

int SO3ObjectFeedBAPBuffer ( mmachine  m  ) 

SO3ObjectFeedBAPBuffer : Feed FAP buffer on an entity.

Prototype: fun [SO3_SCENE S SO3_OBJECT] I

Parameters:
SO3_SCENE : current scene
S : FAP datas
SO3_OBJECT : current node on which the animation is asociated
Returns:
I : 1 if success , NIL otherwise

Definition at line 66 of file SCOLBAPFAP.cpp.

int SO3ObjectFeedFAPBuffer ( mmachine  m  ) 

SO3ObjectFeedFAPBuffer : Feed a fap buffer.

Prototype: fun [SO3_SCENE S SO3_OBJECT] I

Parameters:
SO3_SCENE : current scene
S : FAP Buffer
SO3_OBJECT : current node on which the entity for FAP is asociated
Returns:
I : 1 if success , NIL otherwise

Definition at line 262 of file SCOLBAPFAP.cpp.

int SO3ObjectGetBAPAnimation ( mmachine  m  ) 

SO3ObjectGetBAPAnimation : Return the BAP animation.

Prototype: fun [SO3_SCENE SO3_OBJECT] SO3_ANIM

Parameters:
SO3_SCENE : current scene
SO3_OBJECT : current node on which the skeleton for BAP is asociated
Returns:
SO3_ANIM : Returnt he BAP global animation if success , NIL otherwise

Definition at line 731 of file SCOLBAPFAP.cpp.

int SO3ObjectGetDisplaySkeleton ( mmachine  m  ) 

SO3ObjectGetDisplaySkeleton : Return the display state for a skeleton.

Prototype: fun [SO3_OBJECT] I

Parameters:
SO3_OBJECT : current node
Returns:
I : Display state (1 enable, 0 disable) if success , NIL otherwise

Definition at line 1685 of file SCOLAnim.cpp.

int SO3ObjectGetFAPAnimation ( mmachine  m  ) 

SO3ObjectGetBAPAnimation : Return the FAP animation.

Prototype: fun [SO3_SCENE SO3_OBJECT] SO3_ANIM

Parameters:
SO3_SCENE : current scene
SO3_OBJECT : current node on which the entity for FAP is asociated
Returns:
SO3_ANIM : Returnt he FAP global animation if success , NIL otherwise

Definition at line 767 of file SCOLBAPFAP.cpp.

int SO3ObjectGetVertexAnimations ( mmachine  m  ) 

SO3ObjectGetVertexAnimations : Return the list of vertex animations on an object.

Prototype: fun [SO3_OBJECT] [SO3_ANIM r1]

Parameters:
SO3_OBJECT : current object associated with a skeleton
Returns:
[SO3_ANIM r1] : list of vertex animations if success , NIL otherwise

Definition at line 1506 of file SCOLAnim.cpp.

int SO3ObjectHasSkeleton ( mmachine  m  ) 

SO3ObjectHasSkeleton : Return true if an object has a skeleton otherwiser false.

Prototype: fun [SO3_OBJECT] I

Parameters:
SO3_OBJECT : current node
Returns:
I : has skeleton state (1 true, 0 false) if success , NIL otherwise

Definition at line 1738 of file SCOLAnim.cpp.

int SO3ObjectInitBAPDictionnary ( mmachine  m  ) 

SO3ObjectInitBAPDictionnary : Init the BAP dictionary according to H-Anim.

Prototype: fun [SO3_SCENE SO3_OBJECT I] I

Parameters:
SO3_SCENE : current scene
SO3_OBJECT : current node on which the skeleton is asociated
I : Is a H-anim skeleton
Returns:
I : 1 if success , NIL otherwise

Definition at line 130 of file SCOLBAPFAP.cpp.

int SO3ObjectIsHardwareSkinningEnabled ( mmachine  m  ) 

SO3ObjectIsHardwareSkinningEnabled : Return the hardware skinning enable state for an object.

Prototype: fun [SO3_OBJECT] I

Parameters:
SO3_OBJECT : current node
Returns:
I : hardware skinning enable state (1 true, 0 false) if success , NIL otherwise

Definition at line 1782 of file SCOLAnim.cpp.

int SO3ObjectOpenBAPBuffer ( mmachine  m  ) 

SO3ObjectOpenBAPBuffer : Create and Init a BAP buffer.

Prototype: fun [SO3_SCENE SO3_OBJECT] I

Parameters:
SO3_SCENE : current scene
SO3_OBJECT : current node on which the skeleton for BAP is asociated
Returns:
I : 1 if success , NIL otherwise

Definition at line 552 of file SCOLBAPFAP.cpp.

int SO3ObjectOpenFAPBuffer ( mmachine  m  ) 

SO3ObjectOpenFAPBuffer : Create and Init a FAP buffer.

Prototype: fun [SO3_SCENE SO3_OBJECT] I

Parameters:
SO3_SCENE : current scene
SO3_OBJECT : current node on which the entity for FAP is asociated
Returns:
I : 1 if success , NIL otherwise

Definition at line 647 of file SCOLBAPFAP.cpp.

int SO3ObjectPlayFAPFile ( mmachine  m  ) 

SO3ObjectPlayFAPFile : Load a fap file as vertex animations.

Prototype: fun [SO3_SCENE S SO3_OBJECT] I

Parameters:
SO3_SCENE : current scene
S : FAP File path
SO3_OBJECT : current node on which the entity for FAP is asociated
Returns:
I : 1 if success , NIL otherwise

Definition at line 317 of file SCOLBAPFAP.cpp.

int SO3ObjectSetAnimFAPSpeed ( mmachine  m  ) 

SO3ObjectSetAnimFAPSpeed : Set the speed of an animation FAP.

Prototype: fun [SO3_SCENE S SO3_OBJECT] I

Parameters:
SO3_SCENE : current scene
SO3_OBJECT : current node on which the entity for FAP is asociated
F : speed (frame/sec)
Returns:
I : 1 if success , NIL otherwise

Definition at line 394 of file SCOLBAPFAP.cpp.

int SO3ObjectSetDisplaySkeleton ( mmachine  m  ) 

SO3ObjectSetDisplaySkeleton : defines display skeleton mode for an object.

Prototype: fun [SO3_OBJECT I] I

Parameters:
SO3_OBJECT : current node with skeleton associated
I : Display skeleton mode
Returns:
I : 1 if success , NIL otherwise

Definition at line 1992 of file SCOLAnim.cpp.

int SO3ObjectSkeletonGetBlendMode ( mmachine  m  ) 

SO3ObjectSkeletonGetBlendMode : Get the blending mode for a skeleton.

Prototype: fun [SO3_OBJECT] I

Parameters:
SO3_OBJECT : current node with skeleton associated
Returns:
I : Blend mode if success , NIL otherwise

For Blend mode, values are :

  • SO3_ANIMBLEND_AVERAGE
  • SO3_ANIMBLEND_CUMULATIVE

Definition at line 1888 of file SCOLAnim.cpp.

int SO3ObjectSkeletonLoadBAPFile ( mmachine  m  ) 

SO3ObjectSkeletonLoadBAPFile : Load a BAP file as animation.

Prototype: fun [SO3_SCENE S SO3_OBJECT] I

Parameters:
SO3_SCENE : current scene
S : Bap File path
SO3_OBJECT : current node on which the skeleton is asociated
Returns:
I : 1 if success , NIL otherwise

Definition at line 192 of file SCOLBAPFAP.cpp.

int SO3ObjectSkeletonNumOfAnimations ( mmachine  m  ) 

SO3ObjectSkeletonNumOfAnimations : Return the number of animations for a skeleton.

Prototype: fun [SO3_OBJECT] I

Parameters:
SO3_OBJECT : current object associated with a skeleton
Returns:
I : number of animations if success , NIL otherwise

Definition at line 1454 of file SCOLAnim.cpp.

int SO3ObjectSkeletonSetBindPose ( mmachine  m  ) 

SO3ObjectSkeletonSetBindPose : defines bind pose on a skeleton.

Prototype: fun [SO3_OBJECT] I

Parameters:
SO3_OBJECT : current node with skeleton associated
Returns:
I : 1 if success , NIL otherwise

Definition at line 1835 of file SCOLAnim.cpp.

int SO3ObjectSkeletonSetBlendMode ( mmachine  m  ) 

SO3ObjectSkeletonGetBlendMode : defines blending mode for a skeleton.

Prototype: fun [SO3_OBJECT I] I

Parameters:
SO3_OBJECT : current node with skeleton associated
I : Blend mode
Returns:
I : 1 if success , NIL otherwise For blend mode, values are :
  • SO3_ANIMBLEND_AVERAGE
  • SO3_ANIMBLEND_CUMULATIVE

Definition at line 1941 of file SCOLAnim.cpp.

int SO3SceneCreateAnimationSequence ( mmachine  m  ) 

SO3SceneCreateAnimationSequence : Create a Scene Animation sequence.

Prototype: fun [SO3_SCENE S] SO3_ANIM

Parameters:
SO3_SCENE : current scene
S : animation name
Returns:
SO3_ANIM : The animation created if success, NIL otherwise

Definition at line 626 of file SCOLScene.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Oct 31 14:42:33 2011 for SO3Engine by  doxygen 1.6.3