top of page

Procedural Content Generation

The Procedural Content Generation Framework (PCG) is a toolset for creating your own procedural content and tools inside Unreal Engine.

In Engine Final output: 

​​​

PCG Volume Workflow:

PCG Volume:

  • PCG volume breakdown: consider the PCG from create option and drag it to the scene, we need to consider this particular volume so that we can generate the mesh inside volume. consider PCG component and create a graph to access the particular volume with blueprints.
     

Screenshot (16)_edited.jpg
Screenshot (17).png
  • PCG graph: inside the pcg graph, consider sampler surface sampler and if we connect it to landscape, it will give a sample og jpw

pcg graph_edited.jpg
Screenshot (18).png
  • After we use the debug and drag the pcg graph into the scene we will be able to see the blocks randomly generate inside the volume and the if we move the volume it changes according to the landscape.

  • In order to have assets in place of cubes, connect the static mesh spawner node to surface sampler and in this particular node add entries and add custom meshes that will spawn in the scene.

image.png
  • As the mesh so close to each other we need to change the values in surface sample to get the better results. and we can add more surface samplers to have more layers to gain better results.

bottom of page