Improving a forest PCG tool
As you saw in the previous screenshot, the current configuration allows the trees to spread evenly, but that causes the rocks to overlap with each other. The solution involves adding a configuration that reduces the variance in the placement of spawned trees across the landscape, filling the gaps with static mesh rocks. This solution will be a good scenario in which to use the PCG tool. It will require a few extra nodes, as follows:
- Self Pruning: This node proves valuable in eliminating any overlapping points that may obstruct the placement of other static meshes interacting with the terrain during spawning.
Figure 2.56 – The Self Pruning node
- Difference: This node helps to eliminate points from another set that represents trees and rearrange them in an organised order. In other words, it differentiates the positions of the points, depending on the static mesh spawning a position on the terrain.