Creating PCG graphs
In this exercise, you will develop several PCG graphs and link them to create a network chain culminating in a single main PCG graph. This activity is designed to highlight the importance of combining multiple PCG graphs in order to make it look more clean and less messy.
To begin our exercise, let’s use the PCG folder and add a few PCG graphs inside there.
Right-click on the content PCG folder space and create a new PCG graph. Duplicate the PCG graph and name the graphs individually: PCG_Foliage
and PCG_Forest
.
Figure 5.13 – Creating two PCG graphs – PCG_Foliage and PCG_Forest
We will go one by one, working on and testing each individually until both of them are ready to be combined into one PCG graph. Let’s get started with the first one: PCG_Foliage
!
PCG_Foliage
In this section, we will create PCG nodes for PCG_Foliage
and develop the logic for spawning foliage based on its position and encountered...