1. Automatic generation of roads
Automatic Road Generation Overview:
The core of 3D parkour game is running, in the process of running the increase of fun to make the game more playful. The automatic generation and free stitching of roads add more unpredictability to the game. This unpredictability allows the player to experience the spirit of exploration in the game and develop the player's interest in the game. Therefore, in the parkour game, the developer is not recommended to set a fixed scene road, the road automatically generated mode to attract more players. Developers can implement automatic road generation in a variety of ways, implement the role of fixed-point scenes, or set the coordinates of the road to create displacement changes through the character's forward run.
Principle:
By making the character run continuously, produce the corresponding displacement change, to reach the road automatic generation for example. Abstract the road into a piece of the image of the board, the different scenes of the road conversion and disappear as the board of the stitching and fall. Its principle flow, as shown in Figure 1-1.
Figure 1-1
Implementation method:
Step 1:
Import Art resources. Will make good road art resources into the genesis-3d engine. Take SHANGGU01.FBX as an example. Import the Shanggu01.fbx file into the project folder-> drag the resource file in the project file into the scene-> attached material. Note here, in order to make the road can be perfect stitching, road scene making interface should be the same size. and convert the file to template. The easy way to reuse resources is shown in Figure 1-1-1 below.
Figure 1-1-1
Step 2:
The principle and realization of road splicing:
2.1 Splicing principle: Two road splicing as an example, abstract understanding for the board a, B.
The engine in the same side of the board to create two empty objects, according to the following diagram principle, all the road scene files are marked well. As shown in Figure 1-2-1-1
Figure 1-2-1-1