UE5 "Electric Dreams" project PCG technology analysis using Import Data Table or Create Points Grid to create secondary details around the target anchor point

In order to increase the level of detail of the scene, the method of constructing content vertically and hierarchically can be used in PCG, that is, first construct a more eye-catching target (called the target anchor point in this paper), and then build the details around the target anchor point. Take placing stones in the scene as an example: first place some eye-catching large stones (even mountains) in the scene, and then scatter some small gravel around the mountains.

A typical example is the construction of the ForestExample scene in "Electric Dreams". In this scene, two kinds of nodes are used to construct the secondary details, namely Import Data TableandCreate Points Grid

Import Data Table

insert image description here

Import Data TableA predefined one can be imported DataTablein the following format:

insert image description here

DataTableCorrespondence between data and Pointin :Property
insert image description here

Import Data TableThe node comes with a predefined Data Table, which can be found in the following directory:
"/Engine/Plugins/Experimental/PCG/Content/BP_Elements/Resources/UnitDiscPointData.uasset"

insert image description here

This Data Table defines a disc (saucer) shape:

This dish has its own radial Density gradient, which is very convenient for us to use Density Filterfor filtering

insert image description here

Import Data TableExample of using build secondary details in the ForestExample scene

insert image description here

insert image description here

Create Points Grid

Create Points GridA two-dimensional (three-dimensional) matrix composed of Points can be created according to the given parameters such as position size:
insert image description here

This matrix does not carry the Density that marks the position (distance) information:

insert image description here
But we can use the following logic to Distance To Densitycalculate the positional relationship between the matrix and the target anchor point

insert image description here

insert image description here

Create Points GridExample of using Build Secondary Details in the ForestExample scene :

insert image description here

Guess you like

Origin blog.csdn.net/hello_tute/article/details/131925094