Morph animation is used to generate the intermediate frames needed to seamlessly morph a geometry to match another. (Eg: changing a facial expression from a frown to a smile.)
In use, the developer specifies a starting and ending RpGeometry objects for an RpAtomic. These two objects are the morph targets. The RpMorph functions are then used to generate interpolated new RpGeometry data from the two morph targets over time.
|
This is the callback function supplied to RpMorphGeometrySetCallBack and returned from RpMorphGeometryGetCallBack. The supplied function will be passed a pointer to the geometry's parent atomic, and the position of the current interpolator. The function will only be called when the position of the geometry's current interpolator moves out of the current range.
|
|
RpMorphAtomicAddTime is used to advance the morph target animation of the specified atomic by the given amount. The time is measured in seconds and would normally represent the time elapsed between two successive rendering frames. The morph plugin must be attached before using this function.
|
|
RpMorphAtomicGetCurrentInterpolator is used to retrieve the index of the specified atomic's current interpolator. The morph plugin must be attached before using this function.
|
|
RpMorphAtomicSetCurrentInterpolator is used to set the specified atomic's current interpolator. The morph plugin must be attached before using this function.
|
|
RpMorphAtomicSetTime is used to define the position of the specified atomic's current interpolator. The morph plugin must be attached before using this function.
|
|
RpMorphGeometryCreateInterpolators is used to create the given number of interpolators in the animation extension data of the specified geometry. The morph plugin must be attached before using this function.
|
|
RpMorphGeometryGetCallBack is used to retrieve the callback function associated with the specified geometry. The morph plugin must be attached before using this function.
|
|
RpMorphGeometryGetInterpolator is used to retrieve a pointer to the specified geometry's interpolator which has the given index. The morph plugin must be attached before using this function.
|
|
RpMorphGeometrySetCallBack is used to define the callback function associated with the specified geometry. The morph plugin must be attached before using this function.
|
|
RpMorphGeometrySetInterpolator is used to initialize the interpolator in the specified geometry with the given index using the specified start morph target index, end morph target index and time duration (in seconds) that the interpolator will run for. The interpolator is specified with an index into the interpolator array in the geometry's animation extension data. The start and end morph targets are specified with indices into the geometry's morph target array. The morph plugin must be attached before using this function.
|
|
RpMorphGeometrySetNextInterpolator is used to set the interpolator that will be executed after the current interpolator has expired. The morph plugin must be attached before using this function.
|
|
RpMorphPluginAttach is used to attach the morph plugin to the RenderWare system to enable the generation of morph target animations. The plugin must be attached between initializing the system with RwEngineInit and opening it with RwEngineOpen.
|
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |