# Tutorials

## Learn new skills with our bite sized lessons

Raised Flower Beds Part 2 - Forest Pack
Learn how to create raised flower beds in the second part of this two part tutorial
Technologies:
Forest Pack, RailClone

#### Resources

In this video, the second of our two-part tutorial on creating raised flower beds, we explain how to use Forest Pack to add the plants. If you’ve yet to watch the first part, it explained how to model wooden raised beds using RailClone, but we’ve split this tutorial in two because even if you don’t want to create raised beds, some of the tips in this second video should be useful for any kind of decorative planting.

In this tutorial, we will be using the Bushes and Flowers collection from The3DGarden which contains 41 species of common small decorative garden plant, each in 4 variations for a total of over 180 plants (plus additional presets and grasses), but of course, these techniques will also work with other assets

1. Add a new Forest Pack object by selecting a spline from the scene. If you are combining this tutorial with the last one for raised beds, make sure you choose the same spline that is being used to drive the RailClone object.
2. Go to the Geometry rollout and click to open the Library Browser. Either add plants from the scene or from a library. As I mentioned in the intro, I will be using flowers from The 3D Garden Plants and Bushes collection. To select multiple items from the library, hold down control as you click and choose a selection of plants that you want to grow in your beds. When you are done, click Import Selected.
3. Do a quick edit of the Distribution > Density value to approximate the final planting - we’ll come back to this and refine it later.
4. In a second we will use Forest Packs auto-clustering feature to create groups of plants parametrically. To determine which plants belong in a group the feature uses the Colour IDs set in the Geometry panel. In some cases, we may have two plants of the same species that should be clustered together, or maybe you just want a patch of planting that contains multiple species, either way, you group them by assigning them the same Colour ID. Go through the list and assign Colour IDs as appropriate.
5. To see the Colour IDs represented in the viewport, go to the Display rollout and enable Use Colour IDs
6. Go to the Distribution > Diversity settings and turn on Cluster. This feature creates noise maps that automatically create clusters from items with the same Noise ID. There are 4 settings.

Size which is used to control the size of the clusters in scene units.
Roughness which set the shape of the cluster from smooth at 0% to rough at 100%
Blurry Edge which allows adjacent clusters to bleed together from sharply defined borders as 0% to blurred borders at 100%
And finally, Noise which adds random items to the distribution.
7. In this example you have some choices to make, if you use a small Size value you will get small clusters of plants, which looks nice but all the beds will look more or less the same. If you use a larger size, each bed will contain fewer species of plant, but the beds can end up looking visually different because of this. As always, the exact setting depends on the look you’re going for.
8. Don’t forget too that the clusters feature respects the Item’s Probability value, so you can easily adjust the mix of plants by increasing or reducing the probability values from the Geometry rollout.
9. What about a situation where you have several plants that are quite different sizes? In this scene, for example, I have many small flowers but also some bushes that are much larger. When we decrease the density to a point that the small flowers are correctly spaced, the bushes will overlap far too much. To fix that you can use Collisions. (Sometimes it’s easier to see and resolve this issue by changing the viewport representation to Pyramid Proxies from the Display rollout.)
10. First of all, with Collisions disabled adjust the Density, Threshold and Distribution Map to get the correct spacing for your smallest plants
11. Enable Collisions and turn on Preview on Viewport so we can see the results of our changes.
12. Next, go to the Geometry rollout. Select everything and set the Collision Radius value to 0%. Effectively you have disabled collisions again, but you can now increase the Collision Radius for just those large plants that need it. In that way, you can mix large and small plants and maintain a nice density throughout.
13. Once you’re happy with the distribution, don’t forget to add some Randomisation from the Transform rollout. For this scene, I set the Scale randomisation Minimum to 30% and the maximum to 140% to create a much larger range. I also changed the X and Y Rotation to -15% to 15%.
14. In the Areas rollout, for Edge mode I would choose either Point, or if that results in plants intersecting the wooden bed, Size or Edge

So that finishes the beds, so far this has all been relevant whether you are planting normal beds or raised beds. In the final part, we’ll look at two techniques for moving the plants into position on the Z axis: either using the Item's Z Offset parameter or by linking the Z position to a RailClone parameter using Forest Effects.

1. To raise all the plants manually, simply select them all from the Geometry rollout and increase the Z Offset property.

This is by far the easiest way to get the desired look and you could leave it here, but it’s not a fully integrated system, if I want to change the height of the bed I have to edit the RailClone object and the FP object separately. Let’s fix that with an expression
2. Set the Z Offset back to 0.
3. Go to the Effects rollout and click to add a New Effect
4. Open the Effects Editor
5. The first thing to do when creating an effect is to decide what property of the scatter you want to control. In this case, it is the Z position of the plants. If you look at the list of Attributes you should find one called fpItem.position. Double click to add this to the expression.
6. In the description pane at the bottom of the editor some information is displayed about this property. For example, here we can see this is a Vector. That means it has 3 values: X, Y and Z. To access them you append a .x, .y, or .z to the end of fpItem.position. Since we want to control the Z position our expression will start with fpItem.position.z and then an equals sign.
7. We want to be able to edit the Z position outside of the expression, and for that, we need a parameter. Several types are available including Numeric, Scene Objects, Controller, Texture or Curve