Motion - Max
This use case shows how to apply motion on objets.
Segment Motion Motion Composed in Space Motion Composed in Time Rotate Motion Motion with sinus Velocity Spline Path Motion Spline Path Motion with Transform Circle Motion Composed Circle and Rotate Motion
Segment Motion
How to apply a Segment Motion on a teapot.process
<Process id="motionSegment" type="3d">
<Param name="reset">1</Param>
<Object create="object" name="teapot">
<Param name="class">teapot</Param>
<Motion name="m1" coord="pos" frames="1-100/11">
<Path type="segment">
<Param name="begin">-50;0;0</Param>
<Param name="end">50;0;0</Param>
</Path>
</Motion>
</Object>
</Process>
result
Specifications: Overview
Motion Composed in Space
How to compose two Segement Motions in space.process
<Process id="motionComposeSpace" type="3d">
<Param name="reset">1</Param>
<Object create="object" name="teapot">
<Param name="class">teapot</Param>
<Motion name="m1" coord="pos" frames="1-100/11">
<Path type="segment">
<Param name="begin">-50;0;0</Param>
<Param name="end">50;0;0</Param>
</Path>
<Motion name="m11" frames="1-100/11">
<Path type="segment">
<Param name="begin">0;0;0</Param>
<Param name="end">0;-50;0</Param>
</Path>
</Motion>
</Motion>
</Object>
</Process>
result
Specifications: Overview
Motion Composed in Time
How to compose two Segement Motions in Time.process
<Process id="motionComposeTime" type="3d">
<Param name="reset">1</Param>
<Object create="object" name="teapot">
<Param name="class">teapot</Param>
<Motion name="m1" coord="pos" frames="1-51/6">
<Path type="segment">
<Param name="begin">-50;0;0</Param>
<Param name="end">0;0;0</Param>
</Path>
</Motion>
<Motion name="m2" coord="pos" frames="51-100/6">
<Path type="segment">
<Param name="begin">0;0;0</Param>
<Param name="end">0;50;0</Param>
</Path>
<Velocity name="v1" type="square" frames="51-100"/>
</Motion>
</Object>
</Process>
result
Specifications: Overview
Rotate Motion
How to apply a Rotate Motion on a teapot.process
<Process id="motionRotate" type="3d">
<Param name="reset">1</Param>
<Object create="object" name="teapot">
<Param name="class">teapot</Param>
<Motion coord="rot" type="rotate" frames="1-100/11">
<Param name="begin">0;0;0</Param>
<Param name="end">0;0;180</Param>
</Motion>
</Object>
</Process>
result
Specifications: Overview
Motion with sinus Velocity
How to set a sinus Velocity.process
<Process id="motionVelocity" type="3d">
<Param name="reset">1</Param>
<Object create="object" name="teapot">
<Param name="class">teapot</Param>
<Motion coord="rot" type="rotate" frames="1-100/31">
<Param name="begin">0;0;0</Param>
<Param name="end">0;0;180</Param>
<Velocity frames="1-100" type="sinus">
<Param name="repeat">2</Param>
<Param name="mirror">true</Param>
</Velocity>
</Motion>
</Object>
</Process>
result
track
Specifications: Overview
Spline Path Motion
How to apply a Spline Path Motion on a teapot. To tangent the path, Motion coord value is "pos-rot"process
<Process id="motionPath" type="3d">
<Input creationId="bezier" />
<Object create="object" name="teapot">
<Param name="class">teapot</Param>
<Param name="radius">10</Param>
<Motion name="m2" coord="pos-rot" frames="1-100/21">
<Path name="spline" type="bezier" update="true">
<Point name="0" in="-95.0;47.6;35.5" out="-90.2;46.6;28.5">-95.0;47.6;35.5</Point>
<Point name="1" in="-81.9;37.0;23.5" out="-57.9;0.4;18.1">-69.9;18.7;20.7</Point>
<Point name="2" in="-70.9;-61.7;17.5" out="24.8;-62.8;20.1">-23.0;-62.2;18.8</Point>
<Point name="3" in="30.4;-42.3;21.4" out="52.1;7.5;27.1">41.2;-17.4;24.2</Point>
<Point name="4" in="94.6;32.8;54.4" out="129.5;22.0;64.4">129.5;22.0;64.4</Point>
</Path>
</Motion>
</Object>
</Process>
result
Specifications: Overview
Spline Path Motion with Transform
How to apply a Spline Path Motion on a camera with transform. To tangent the path, Motion coord value is "pos-target".process
<Process id="motionPathTransform" type="3d">
<Input creationId="bezier" />
<Camera create="target" name="camera">
<Param name="fov">80.0</Param>
<Motion name="m2" coord="pos-target" frames="1-100/21">
<Path ref="spline" >
<Transform name="translate">0;0;5</Transform>
</Path>
</Motion>
</Camera>
<Path name="spline" type="bezier" update="true">
<Point name="0" in="-95.0;47.6;35.5" out="-90.2;46.6;28.5">-95.0;47.6;35.5</Point>
<Point name="1" in="-81.9;37.0;23.5" out="-57.9;0.4;18.1">-69.9;18.7;20.7</Point>
<Point name="2" in="-70.9;-61.7;17.5" out="24.8;-62.8;20.1">-23.0;-62.2;18.8</Point>
<Point name="3" in="30.4;-42.3;21.4" out="52.1;7.5;27.1">41.2;-17.4;24.2</Point>
<Point name="4" in="94.6;32.8;54.4" out="129.5;22.0;64.4">129.5;22.0;64.4</Point>
</Path>
</Process>
result
viewport
Specifications: Overview
Circle Motion
How to apply a Circle Motion on a teapot.process
<Process id="motionCircle" type="3d">
<Param name="reset">1</Param>
<Object create="object" name="teapot">
<Param name="class">teapot</Param>
<Motion coord="pos-rot" frames="1-100/11">
<Path type="circle">
<Param name="center">0;0;0</Param>
<Param name="axe">0;0;1</Param>
<Param name="radius">50</Param>
<Param name="begin">0</Param>
<Param name="end">180</Param>
</Path>
</Motion>
</Object>
</Process>
result
Specifications: Overview
Composed Circle and Rotate Motion
How to apply a composed Circle and Rotate Motion on a teapot.process
<Process id="motionCircleRotate" type="3d">
<Param name="reset">1</Param>
<Object create="object" name="teapot">
<Param name="class">teapot</Param>
<Motion coord="pos-rot" frames="1-100/31">
<Path type="circle">
<Param name="center">0;0;0</Param>
<Param name="axe">0;0;1</Param>
<Param name="radius">50</Param>
<Param name="begin">0</Param>
<Param name="end">180</Param>
</Path>
<Motion type="rotate" frames="1-100">
<Param name="begin">0;0;0</Param>
<Param name="end">0;0;180</Param>
<Velocity frames="1-100" type="sinus">
<Param name="repeat">2</Param>
<Param name="mirror">true</Param>
</Velocity>
</Motion>
</Motion>
</Object>
</Process>
result
Specifications: Overview