Voxel PCG Graphs
How Voxel Graphs can be called directly from PCG.
Last updated
How Voxel Graphs can be called directly from PCG.
Last updated
To make it easier to synchronize workflows between terrain generation and PCG, Voxel PCG Graphs (VPGs) exist. These are a type of Voxel Graph which can be called directly from a PCG graph using the Call Voxel PCG Graph
node. Depending on the usecase, VPGs may also help improve foliage generation performance.
VPGs have one Input, and potentially multiple Outputs, which are of the Point Set type. On the PCG-side, these are seen as standard point collections, and both hold the same data. Attributes can be retrieved and set by name - some attributes have default get/set nodes to make things easier.
Parameters can be created and customized as usual. They're shown in the details panel of the Call Voxel PCG Graph
node, so their values can be changed per call. It's not currently possible to set VPG parameters using a pin from PCG. To pass in dynamic data, an attribute has to be used instead.