1
$\begingroup$

I want to create a landscape consisting of many fallen cubes, say a large cube pile.

Is is possible (and how) to make this by first creating a large 3d grid of cubes using the array modifier, say 100x100x100 and then use physics to make them fall down naturally on the ground, and create mesh from the resulting pile?

Thanks!

$\endgroup$
3
$\begingroup$

I think arrays of 100x100x100 is a bit ambitious - 1,000,000 objects interacting in a rigid body simulation will take a long time to simulate.

However, the basic steps are as follows :

  1. Setup your Array modifiers to create the objects you desire.
  2. Apply the Array modifiers to create a 'combined' mesh.
  3. In Edit mode, choose Separate (P) and choose 'By Parts' - this will split the mesh into the individual elements created by your Array modifier. Note : The more "objects" you have in your arrays, the longer it will take for the Separate process to split.
  4. Go back to Object mode (Tab) - after the 'separate' you should still have all your newly separated objects selected. Use Set Origin (in the left-hand panel) and select By Geometry - this should set the origin of each separate mesh to the centre of its own geometry (required for the Rigid Body simulation).
  5. In the Physics tab, add Active Rigid Body physics to all the selected objects.

You can now run your simulation. Once it's complete and you have a state you are happy with, simply use Join (Ctrl+J) to join them into a single mesh.

Larger numbers of meshes will significantly slow down the various stages of the process (such as the Separate By Parts and the Rigid Body Simulation) so I'd suggest starting with a smaller number of objects before scaling up to more.

$\endgroup$
  • $\begingroup$ Awesome thanks that's what I needed. I was hoping it'd be this simple. I just need to find the Run Simulation button... $\endgroup$ – Paceman Feb 28 '19 at 0:55
  • $\begingroup$ @Paceman You can either just run the animation (press 'Play' on the timeline) or there is a Bake button in the Rigid Body Cache panel of the Scene properties. If you Bake the animation you'll have to Free the bake if you change anything and want to re-run it. If you're not familiar with simulations in Blender then there are various tutorials online you should be able to find (or search on this site). Hope this helps. $\endgroup$ – Rich Sedman Feb 28 '19 at 7:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.