Magic Fountain - Max
This use case shows how to animate a fountain water based on pipeline process.
Fountain I
This use case shows how to animate fountain based on animated spheres.The scene steps are:
- Step 1: Load the scene. See fountainPath
- Step 2: Duplicate the existing sphere into 4000 animated once along a rotated path. See fountainPath
- Step 3: Render the result. See fountainRender
These steps are defined into a unique pipeline process. See pipelineFountain
result
Pipeline process
<Process id="pipelineFountain" type="pipeline">
<Exec processId="fountainPath" mode="updatePath" active="true"/>
<Exec processId="fountainPath" unique="true">
<Var name="u" type="sequence">1-4000</Var>
<Var name="begin" type="random">
<Param name="trunc">1</Param>
<Param name="min">0</Param>
<Param name="max">50</Param>
</Var>
<Var name="length" type="random">
<Param name="trunc">1</Param>
<Param name="min">25</Param>
<Param name="max">50</Param>
</Var>
<Var name="rot" type="random">
<Param name="min">-180</Param>
<Param name="max">180</Param>
</Var>
</Exec>
<Exec processId="fountainRender" active="false"/>
</Process>
Load scene and uplicate the existing sphere into 4000 animated once along a rotated path
<Process id="fountainPath" type="3d">
<Input creationId="fountain"/>
<Object copy="water" name="water$u">
<Motion coord="pos" begin="$begin" length="$length">
<Path ref="fall" id="33">
<Transform name="rotate">0;0;$rot</Transform>
</Path>
<Velocity type="sinus"/>
</Motion>
</Object>
<Path name="fall" type="bezier" id="34">
<Point name="0" in="69.7979;-5.3035e-006;118.798" out="69.6714;-2.55875e-006;101.951">69.7979;-5.3035e-006;118.798</Point>
<Point name="1" in="72.9899;1.61312e-007;85.2555" out="86.1091;5.21777e-006;54.2191">79.5495;2.68954e-006;69.7373</Point>
<Point name="2" in="95.7717;7.50094e-006;40.2052" out="120.115;1.12965e-005;16.908">107.944;9.39873e-006;28.5566</Point>
<Point name="3" in="134.54;1.2769e-005;7.87012" out="150.331;1.37256e-005;1.99823">150.331;1.37256e-005;1.99823</Point>
</Path>
</Process>
Scene viewport: the fountain and the path used to animate the spheres
Render the result
<Process id="fountainRender" type="3d">
<Render>
<Param name="creationId">outputFountain</Param>
<Param name="resolution">1920;1080</Param>
<Param name="frames">1-100</Param>
<Param name="camera">camera</Param>
</Render>
</Process>
Specifications: Process