Skip to main content

PCG

When integrating PCG with Errant Paths, it's better to avoid generating content in both systems in parallel. For instance, if your PCG logic spawns foliage based on the landscape shape, PCG should start generating once Errant Paths is finished updating as Errant Paths can be modifying landscape shape or weightmaps in the process. Simultaneous processing can lead to PCG placing foliage based on outdated landscape shape/weightmaps, resulting in foliage being spawned above or below the landscape.

To synchronize PCG updates with Errant Paths, you can enable an option to pause PCG generation during the Path update. Additionally, you can enable clearing existing PCG content before the Path is generated. Synchronization occurs only between the Paths and PCG Volumes that overlap.

  1. Open a PathDescription asset
  2. Go to "Interoperability" -> "PCG" section
  3. Enable "Pause PCG Generation" and optionally "Cleanup PCG".

Notice the timing of updates in the video. PCG waits for Errant Paths to finish updating.