AnimatedGeometry element
- Last UpdatedDec 06, 2023
- 1 minute read
Other than keyframe-based animations, the MWX format supports animated geometries.
You can create animated geometries in 3D Studio Max and then exported through a dummy user buffer, as shown in the image below.
Code example
This is a code example of how an animated geometry is declared inside an .mwx file.
[...]
</Mesh>
<AnimatedGeometry name="fileName|itemName_animatedPart" version="1">
<compressionScheme value="None"/>
<numVertices value="2760"/>
<dynamicElements value="POSITION"/>
<animations>
<anim id="anim_itemName_animationName" file="fileName\fileName_itemName_animatedPart_dummyName.ageo">
<numFrames value="40"/>
<interpolate value="true"/>
<circularInterpolation value="true"/>
<fpsMode value="true" fps="25.0"/>
</anim>
</animations>
</AnimatedGeometry>
[...]
For more details on creating and exporting animated geometries, see Animated Geometry (Legacy 3DS MAX).
