Genesis-3d Open source game engine Full Instance tutorial Parkour game 01: Automatic generation of roads

Source: Internet
Author: User
Tags abstract

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.