# How to build and destroy a procedural Wall

In this tutorial we will create and destroy a procedural wall in 3dsmAX using Standard Geometry, SpaceWarps and ParticleFlow without any scripting techniques. We will also use the plug-in ParicleActionsPlus which gives a good control on particle positioning, you can free download it at this link. Lastly we will use collisions to make the bricks of the wall fly. This tutorial will take more or less 45 minutes for an intermediate level of artist.

## Initializing the scene

Open 3dsmax, go to Customize>Unit Setup>System Unit Setup and choose centimeters, later use a PAL frame rate and set the end time to 150, then click OK.

Create a plane object with position XYZ=0, Length/Width=150, segs=2 and rename it PlaneB.

Create one more plane with XY=0 and Z=22,5 then set rotation Y= -90, Length=92 Widt=42, Length Segs=9 Width=20 and rename it PlaneA.

With PlaneA still selected go to Modify Panel and add a Noise modifier with scale=0,28, Y=1.

Now add a VolumeSelect modifier, select Vertex and activate the Invert option, then go in sub-object mode and scale down the gizmo on Y axis until you obtain a result like the next image.

Lastly add a DeleteMesh modifier and that's all for this object.

Come back to Create module and create a ChamferBox from ExtendedPrimitives with Length=10, Width=5, Heigth=2, Fillet=0,13 and position it where you want.

Create a SDeflector from Spacewarp>Deflectors, set Diameter=30, scale Y=275 XZ=100, position X=0 Y=56 Z=58, rotation X= -10 YZ=0.

Create a Wind from Spacewarp>Forces, set strength=0,15, turbolence=0,31, frequency=0,85, scale=0,15, make sure the arrow heads to the top.

Create a Vortex from Spacewarp>Forces with position XYZ=0, set axial drop=0, damping=1, orbital speed=0,39, damping=10, radial pull=0,18, damping=1.

Now Open ParticelView (key 6), add an Empty Flow and close ParticleView.

At this point the scene should look like the image below.

## Initialising the ParticleFlow

Open the ParticleView, click on the PF Source01 event and set Viewport=100% in the Quantity Multiplier section.
Moving out of the event, right click and add a Birth event from New>BirthEvent menù.
Drag the Display operator from the new event Event01 to the event PF Source01, now selecting the Display operator set Geometry from scroll down menu Type and then link the two events through the Wiring system.

Right click into Event01, go to Append>Operator and select PositionObject+, repeat this operation and add Append>Operator>ShapeInstance and Append>Test>Collision obtaining something like the image below.

Right clicking out of the events add New>OperatorEvent>Force and automatically a new event Event02 is created, delete the Display operator by selecting it and pressing Del on the keyboard.

Into the Event02, right click and add an Append>Operator>Spin, Append>Operator>KeepApart and Append>Test>AgeTest.

Moving again out of the events, right click and add a New>OperatorEvent>Force to create a new event Event03. From Event03 delete the Display operator and lastly complete the operations linking all with the Wiring system.

Now we have all the events and operators in the right position so we can set the operator parameters to complete the ParticleFlow initialisation. You can take a look at the image below and use the same settings on your ParticleSystem.

Finally it's time to close the ParticleView. Take a look at the scene and save it making sure the result is quite similar to the image below.

## Animation

Turn on the AutoKey in the lower right part of the screen, select the spacewarp SDeflector01, move the timeline to frame 25, set position to X=1 Y= -19 Z=47, rotation X=10 YZ=0, move at the frame 50 and set position X=1 Y=15 Z=35, rotation X= -10 YZ=0, move to frame 75 and set position X=1 Y= -26 Z=24, rotation X=10 YZ=0, move at the frame 100 and set position X=1 Y=13 Z=16, rotation X= -10 YZ=0, move to frame 125 and set position X=1 Y= -10 Z=6, rotation XYZ=0.

Now turn off the AutoKey, save the file, click Play and look at the result. If everything was right you'll have something like this image. Right click and download the tutorialEND file. Enjoy your wall destroyer!

Conceived and realized by Augusto Lombardi.

Enter content...