Game route generation method and device, computer storage medium and electronic device

By generating a game route model through layering and texture attribute processing, the problems of low game route development efficiency and inaccurate iteration in the existing technology are solved, and efficient and flexible game route generation is achieved.

CN115138070BActive Publication Date: 2025-09-05NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210774849.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-01
Publication Date
2025-09-05
Estimated Expiration
2042-07-01

AI Technical Summary

Technical Problem

The development of game route models in the prior art requires a lot of human resources, which prolongs the development cycle and increases the inaccuracy of design iterations.

Method used

By obtaining the top-view model of the route to be generated, generating layers according to object properties, creating a mesh model and adding texture attribute information, performing model extrusion operations, adjusting the model extrusion area and height information, and generating the target game route model.

Benefits of technology

It improves the efficiency of game route generation, reduces the basic construction work of artists, avoids inaccuracies in design iterations, and enhances development flexibility and model diversity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115138070B_ABST
    Figure CN115138070B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of computer technology, and relates to a method and device for generating a game route, a storage medium, and an electronic device. The method comprises: obtaining a first image file of a route to be generated, the first image file being obtained by layering according to a top-view model of the route to be generated; creating a grid model of the top-view model according to the first image file, mapping the top-view model to the grid model, and determining the texture attribute information of the texture pixels in the grid model; performing a model extrusion operation on each layer according to the first image file to generate a first virtual target model, adding texture attribute information to the first virtual target model to generate a second virtual target model; adjusting the model extrusion area, height information, and layout points of virtual scene objects of the second virtual target model to generate a target game route model. The present disclosure generates a target game route model based on the top-view model of the route to be generated, thereby improving the efficiency and flexibility of the design and development of the game route model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and more specifically, to a game route generation method, a game route generation device, a computer storage medium, and an electronic device. Background Art

[0002] In the game, players control virtual characters to move in the virtual game scene. In the virtual game scene, players can move according to pre-set game routes. During the movement, they will encounter levels and virtual scene objects, such as virtual monsters, virtual vegetation, and virtual rocks. These virtual route models are designed and verified by game developers.

[0003] In related technologies, the development of a virtual route model usually begins with game planners providing a design description document. Artists then build a basic level white box based on the design description document. Strategists then verify the rationality and accuracy of the design concept based on the basic level white box. This requires a significant amount of human resources to be spent on route editing, which prolongs the development cycle, reduces development efficiency, and increases the inaccuracy of game route design iterations.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute prior art known to ordinary technicians in this field. Summary of the Invention

[0005] The purpose of the present disclosure is to provide a game route generation method and device, a computer storage medium and an electronic device to improve the efficiency of game route generation and the accuracy of iterative design.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by practice of the present disclosure.

[0007] According to one aspect of the present disclosure, a game route generation method is provided, comprising: obtaining a first image file of a route to be generated, the first image file being generated by layering a top-view model of the route to be generated according to object attributes, thereby obtaining layers corresponding to different object attributes; creating a grid model of the top-view model according to the first image file, mapping the top-view model to the grid model to determine texture attribute information of texture pixels in the grid model; performing a model extrusion operation on each of the layers according to the first image file to generate a first virtual target model, and adding the texture attribute information to the first virtual target model to generate a second virtual target model; and adjusting the model extrusion area, height information, and layout points of virtual scene objects of the second virtual target model to generate a target game route model.

[0008] In an exemplary embodiment of the present disclosure, the obtaining of a first image file of the route to be generated is performed by layering a top-view model of the route to be generated according to object attributes to obtain layers corresponding to different object attributes, and includes: layering the top-view model according to object attributes to obtain layers corresponding to different object attributes; setting display color information of each layer, and generating the first image file according to each layer after the display color information is set.

[0009] In an exemplary embodiment of the present disclosure, the grid model of the top view model is created according to the first image file, and the top view model is mapped to the grid model to determine the texture attribute information of the texture pixels in the grid model, including: gridding the top view model according to the first image file to obtain the grid model; adding texture coordinate attributes to the grid model; matching the top view model with the grid model according to the texture coordinate attributes to map the top view model to the grid model to obtain a mapping result; and determining the texture attribute information of the texture pixels in the grid model according to the mapping result.

[0010] In an exemplary embodiment of the present disclosure, meshing the top view model according to the first image file to obtain the mesh model includes: meshing the top view model according to the first image file; extracting target mesh nodes from the mesh nodes of the meshing result based on the shape of the top view model, and generating the mesh model according to the target mesh nodes.

[0011] In an exemplary embodiment of the present disclosure, before matching the top view model with the mesh model according to the texture coordinate attributes to map the top view model to the mesh model to obtain a mapping result, the method further includes: converting the coordinates of the pixel points in the mesh model from the world space to the texture space; and after mapping the top view model to the mesh model to obtain a mapping result, converting the coordinates of the pixel points in the mesh model from the texture space to the world space.

[0012] In an exemplary embodiment of the present disclosure, performing a model extrusion operation on each of the layers according to the first image file to generate a first virtual target model, and adding the texture attribute information to the first virtual target model to generate a second virtual target model includes: determining an object group corresponding to the layer based on the object attributes corresponding to the layer in the first image file, the object group including the virtual model objects in the corresponding layer; performing a model extrusion operation on each of the object groups respectively to generate the first virtual target model; and adding the texture attribute information to the first virtual target model to generate the second virtual target model.

[0013] In an exemplary embodiment of the present disclosure, performing a model extrusion operation on each of the object groups to generate the first virtual target model includes: for each of the object groups, obtaining the vertices of the virtual model objects in the object group; constructing a surface structure of the virtual model objects based on the vertices of the virtual model objects; and performing a model extrusion operation on the corresponding virtual model objects in the object group based on the surface structure to generate the first virtual target model of the object group.

[0014] In an exemplary embodiment of the present disclosure, adding the texture attribute information to the first virtual target model to generate the second virtual target model includes: adding the texture attribute information to the first virtual target model according to the correspondence between the first virtual target model and the grid model to generate the second virtual target model.

[0015] In an exemplary embodiment of the present disclosure, the adjusting of the model extrusion area, height information and layout points of the virtual scene objects of the second virtual target model to generate a target game route model includes: adjusting the model extrusion area of ​​the second virtual target model to obtain a first adjustment result; adjusting the height of the second virtual target model to obtain a second adjustment result; randomly scattering points on the surface of the second virtual target model to generate the layout points of the virtual scene objects to obtain a third adjustment result; and generating the target game route model based on the first adjustment result, the second adjustment result and the third adjustment result.

[0016] In an exemplary embodiment of the present disclosure, randomly scattering points on the surface of the second virtual target model to generate layout points of the virtual scene object to obtain a third adjustment result also includes: copying the reference virtual model to the layout points of the virtual scene object, and adjusting the model attribute parameters of the reference virtual model.

[0017] In an exemplary embodiment of the present disclosure, adjusting the model extrusion area, height information and layout points of virtual scene objects of the second virtual target model to generate a target game route model includes: replacing the target reference virtual model in the second virtual target model in response to a replacement operation on the target reference virtual model.

[0018] In an exemplary embodiment of the present disclosure, the adjusting of the model extrusion area, height information and layout points of virtual scene objects of the second virtual target model to generate a target game route model includes: in response to a first adjustment operation on the second virtual target model, adjusting the model parameters corresponding to the first adjustment operation in the second virtual target model to obtain a third virtual target model; importing the third virtual target model into a game engine, and in the game engine, in response to a second adjustment operation on the third virtual target model, adjusting the model extrusion area, height information, layout points of virtual scene objects and at least one of the virtual scene object models corresponding to the layout points of virtual scene objects of the third virtual target model to generate the target game route model.

[0019] According to one aspect of the present disclosure, a game route generation device is provided, comprising: a layer processing module for layering a top-view model of a route to be generated according to object attributes, obtaining layers corresponding to different object attributes, and generating a first image file; a texture attribute determination module for creating a grid model of the top-view model based on the first image file, mapping the top-view model to the grid model, and determining texture attribute information of texture pixels in the grid model; a first model generation module for performing a model extrusion operation on each of the layers based on the first image file to generate a first virtual target model, and adding the texture attribute information to the first virtual target model to generate a second virtual target model; and a second model generation module for adjusting the model extrusion area, height information, and layout points of virtual scene objects of the second virtual target model to generate a target game route model.

[0020] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any one of the above methods is implemented.

[0021] According to one aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform any one of the above-mentioned methods by executing the executable instructions.

[0022] The game route generation method in the exemplary embodiment of the present disclosure first layers the top-view model of the route to be generated into layers corresponding to different object attributes according to object attributes to generate a first image file; then creates a grid model of the top-view model based on the first image file, maps the top-view model to the grid model, and thereby determines the texture attribute information of the texture pixels in the grid model; then performs a model extrusion operation on each layer according to the first image file to generate a first virtual target model, adds texture attribute information to the first virtual target model, and generates a second virtual target model; finally, adjusts the model extrusion area, height information, and layout points of virtual scene objects of the second virtual target model to generate a target game route model. On the one hand, the present disclosure breaks through the stereotyped game route generation method. Instead of manually editing the game map according to the route design drawing, the game developer first obtains a top-view model of the route to be generated, and automatically generates the target game route model based on the top-view model, thereby improving the efficiency of game route generation. On the other hand, through the game route generation method disclosed in the present disclosure, in the process of generating the target game route model, there is no need for artists to perform the basic construction work of the level white box and then conduct concept verification. Instead, each step of the production process is visualized to avoid inaccuracies in subsequent design iterations. On the other hand, the target game route model is generated by adjusting the model extrusion area, height information and layout points of the virtual scene objects of the second virtual target model. The construction of the game route model can be achieved by only adjusting some related parameters, thereby improving development flexibility and model diversity.

[0023] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings, in which several embodiments of the present disclosure are shown by way of example and not limitation, wherein:

[0025] Figure 1 A schematic diagram of a route level design document according to an exemplary embodiment of the present disclosure is shown;

[0026] Figure 2 A flowchart showing a method for generating a game route according to an exemplary embodiment of the present disclosure is shown;

[0027] Figure 3 A schematic diagram showing a top view model of a route to be generated according to an exemplary embodiment of the present disclosure is shown;

[0028] Figure 4 A schematic diagram of converting a virtual model object of a top view model into a mesh model according to an exemplary embodiment of the present disclosure is shown;

[0029] Figure 5 The following figure shows an implementation method for obtaining a first image file of a route to be generated according to an exemplary embodiment of the present disclosure. A flowchart of generating the first image file is shown, in which a top view model of the route to be generated is layered according to object attributes to obtain layers corresponding to different object attributes.

[0030] Figure 6 A schematic diagram of related parameters for importing a first image file into three-dimensional computer graphics software according to an exemplary embodiment of the present disclosure is shown;

[0031] Figure 7 A schematic diagram of placing a layer into a created folder according to an exemplary embodiment of the present disclosure is shown;

[0032] Figure 8 A schematic diagram of a process for controlling each layer through the number of loop iterations to display color information visualization according to an exemplary embodiment of the present disclosure is shown;

[0033] Figure 9 A flowchart illustrating an implementation method for adding texture attribute information to each layer according to an exemplary embodiment of the present disclosure is shown;

[0034] Figure 10 A schematic diagram of adding texture coordinate attributes to a mesh model according to an exemplary embodiment of the present disclosure is shown;

[0035] Figure 11 A schematic diagram of resampling the shape of a gridding processing result according to an exemplary embodiment of the present disclosure is shown;

[0036] Figure 12 A schematic diagram of an operation of matching a top view model with a mesh model according to texture coordinate attributes to map the top view model to the mesh model and obtain a mapping result according to an exemplary embodiment of the present disclosure is shown;

[0037] Figure 13 A flowchart of generating a second virtual target model according to an exemplary embodiment of the present disclosure is shown;

[0038] Figure 14 A schematic diagram of an operation of determining an object group corresponding to a layer based on object properties corresponding to the layer in a first image file according to an exemplary embodiment of the present disclosure is shown;

[0039] Figure 15 A schematic diagram illustrating determining an object group corresponding to a layer based on object properties corresponding to the layer in a first image file according to an exemplary embodiment of the present disclosure is shown;

[0040] Figure 16A schematic diagram of a mold extrusion according to an exemplary embodiment of the present disclosure is shown;

[0041] Figure 17 A schematic diagram illustrating generating a first virtual target model of an object group after performing a model extrusion operation on corresponding virtual model objects in the object group based on a surface structure according to an exemplary embodiment of the present disclosure is shown;

[0042] Figure 18 A flowchart of adjusting the model extrusion area, height information, and arrangement points of virtual scene objects of a second virtual target model to generate a target game route model according to an exemplary embodiment of the present disclosure is shown;

[0043] Figure 19 A schematic diagram illustrating adjusting the height of corresponding surfaces of each virtual model object in a second virtual target model according to an exemplary embodiment of the present disclosure is shown;

[0044] Figure 20 A schematic diagram of random dot scattering according to an exemplary embodiment of the present disclosure is shown;

[0045] Figure 21 A schematic diagram of generating a target game route model in a game engine according to an exemplary embodiment of the present disclosure is shown;

[0046] Figure 22 A flowchart of game route generation according to an exemplary embodiment of the present disclosure is shown;

[0047] Figure 23 A schematic structural diagram of a game route generating device according to an exemplary embodiment of the present disclosure is shown;

[0048] Figure 24 A schematic diagram illustrating a computer-readable storage medium according to an exemplary embodiment of the present disclosure; and

[0049] Figure 25 A block diagram of an electronic device according to an exemplary embodiment of the present disclosure is shown.

[0050] In the drawings, the same or corresponding reference numerals denote the same or corresponding parts. DETAILED DESCRIPTION

[0051] The exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these examples are provided so that this disclosure will be thorough and complete and will fully convey the concepts of the exemplary embodiments to those skilled in the art. Identical reference numerals in the figures represent identical or similar structures, and thus detailed descriptions thereof will be omitted.

[0052] In addition, the described features, structures or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, well-known structures, methods, devices, implementations or operations are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0053] The blocks shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically separate entities. Specifically, these functional entities may be implemented in software, or in one or more software-hardened modules, or in different networks and / or processor devices and / or microcontroller devices.

[0054] In the existing game route generation method, the game planner usually provides the route level design document, such as Figure 1 The route level design document includes the virtual model objects in the game route (such as doors, roads, platforms, etc.), the display properties of the virtual model objects (such as color, etc.), and the layout relationships between the virtual model objects. Artists design the process roadmap based on the route level design document, and then manually build the basic level white box. Only then can they preview the rough route plan within the game engine and provide it to the game planner, who then verifies the reasonableness and accuracy of the route level. This repeated construction and verification prolongs the development project cycle and increases the uncertainty of subsequent level design iterations.

[0055] Based on this, in the exemplary embodiment of the present disclosure, a method for generating a game route is first provided. Figure 2 The following further describes the method for generating a game route in an exemplary embodiment of the present disclosure. In this exemplary embodiment, the game route is generated by artists editing a two-dimensional route and level design document within the game engine, converting it into a three-dimensional game route model. This game route model includes at least the layout points for roads, levels, and virtual scene objects. These virtual scene objects include, but are not limited to, virtual monsters, virtual vegetation, virtual rocks, virtual mountains, and other virtual object models required for arranging the virtual scene.

[0056] In step S210 , a first image file of the route to be generated is obtained, wherein the first image file is generated by layering the top view model of the route to be generated according to object attributes to obtain layers corresponding to different object attributes.

[0057] In the exemplary embodiment of the present disclosure, the top view model of the route to be generated is obtained according to the level design description document of the route to be generated, and is a top view of the route to be generated. The top view can be drawn in a drawing software, such as Figure 3 The diagram shows a schematic diagram of a top-view model of a route to be generated according to an embodiment of the present disclosure. The top-view model includes virtual model objects of the game route (such as doors, roads, platforms, etc.), display properties of the virtual model objects (such as color and texture), and layout connection relationships between the virtual model objects. The drawing software can be Photoshop (abbreviated as PS), and the present disclosure does not specifically limit the drawing software used to draw the top view of the route to be generated.

[0058] The top-view model of the route to be generated is layered according to the object attributes of the virtual model objects, resulting in layers corresponding to different object attributes. The object attributes are used to indicate the model category to which the virtual model objects belong. For example, roads, platforms, and doors belong to different object attributes. After obtaining the layers corresponding to the different object attributes, each layer is named, and then the layers and the names are stored in an image file, thereby obtaining a first image file. The first image file can be a PSD (picture file format) file. Of course, the embodiments of the present disclosure can also select other file types based on the actual application scenario, and the embodiments of the present disclosure do not specifically limit this.

[0059] It should be noted that the layers corresponding to different object attributes in the first image file have corresponding display color information so that the layers can be displayed simultaneously.

[0060] In step S220 , a mesh model of the top view model is created according to the first image file, and the top view model is mapped to the mesh model to determine texture attribute information of texture pixels in the mesh model.

[0061] In an exemplary embodiment of the present disclosure, the virtual model objects in each layer of the first image file are composed of points. Therefore, the top view model can be meshed according to the first image file to convert the virtual model objects in each layer into mesh bodies, such as Figure 4 The figure shows a schematic diagram of converting a virtual model object of a top view model into a mesh model.

[0062] Furthermore, after creating a grid model of the top view model, the top view model can also be mapped to the grid model. The top view model can be scaled to match it with the grid model, and then the top view model can be matched to the texture pixels of the grid model to determine the texture attribute information of the texture pixels in the grid model based on the top view model. In other words, the top view model is mapped to the grid model, thereby adding texture attributes to each texture pixel of the grid model.

[0063] Through this exemplary embodiment, by mapping the top view model to the grid model, the texture pixel points of the grid model are added with texture attribute information corresponding to the top view model, eliminating the need for artists to manually edit texture attributes, thereby improving the efficiency of determining the model's texture attribute information.

[0064] In step S230 , a model extrusion operation is performed on each layer according to the first image file to generate a first virtual target model, and texture attribute information is added to the first virtual target model to generate a second virtual target model.

[0065] In an exemplary embodiment of the present disclosure, each layer of the first image file is still a one-dimensional plane layer. Through a model extrusion operation, the one-dimensional plane layer is converted into a three-dimensional stereo model, namely, the first virtual target model, and the texture attribute information of the texture pixels in the determined grid model is transferred to the first virtual target model to generate a second virtual target model.

[0066] In step S240 , the model extrusion area, height information, and layout points of the virtual scene objects of the second virtual target model are adjusted to generate a target game route model.

[0067] In an exemplary embodiment of the present disclosure, after obtaining the second virtual target model, the model extrusion area, height information, and arrangement points of virtual scene objects of the second virtual target model may be adjusted to generate a target game route model.

[0068] Among them, by adjusting the model extrusion area and height information, the adjusted second virtual target model presents a clearly layered state. Combined with adjusting the layout points of the virtual scene objects, various target game route models can be generated.

[0069] The game route generation method according to this example embodiment breaks through the stereotyped game route generation method. Instead of manually editing the game map according to the route design diagram, the game developer first obtains a top-view model of the route to be generated, and then automatically generates a target game route model based on the top-view model, thereby improving the efficiency of game route generation. Through the game route generation method disclosed in the present invention, in the process of generating the target game route model, there is no need for artists to perform the basic construction work of the level white box and then verify the concept. Instead, each step of the production process is visualized to avoid inaccuracies in subsequent design iterations. In addition, the target game route model is generated by adjusting the model extrusion area, height information and layout points of the virtual scene objects of the second virtual target model. By simply adjusting some related parameters, the game route model can be constructed, thereby improving development flexibility and model diversity.

[0070] In an exemplary embodiment, a method for obtaining a first image file of a route to be generated is also provided. The top view model of the route to be generated is layered according to object attributes to obtain layers corresponding to different object attributes. Generating the first image file may include steps S510 and S520:

[0071] Step S510 , layering the top view model according to object attributes to obtain layers corresponding to different object attributes.

[0072] The top view model can be layered according to the object attributes of the virtual model objects to obtain layers corresponding to different object attributes. For example, virtual model objects with the object attribute of "door" can be placed in the same layer, virtual model objects with the object attribute of "platform" can be placed in the same layer, and so on.

[0073] Step S520 , setting display color information of each layer, and generating a first image file according to each layer after the display color information is set.

[0074] The display color information may be set for each layer so that each layer can be displayed with the set display color at the same time, and the first image file is generated according to each layer and the corresponding display color information.

[0075] In actual implementation, a synthesis network can be created in the 3D computer graphics software Houdini to modify the image texture in the synthesis network. For example, a synthesis network COP2NetWork can be created in the 3D computer graphics software Houdini, and then the first image file can be imported into the synthesis network, and the color channel information (such as color C (Color) / transparency A (Alpha)) in the first image file can be deleted, and the channel naming information can be retained, that is, the named layer file can be retained. Figure 6 A schematic diagram of relevant parameters for importing a first image file into three-dimensional computer graphics software according to an exemplary embodiment of the present disclosure is shown, and the bolded parts are schematic diagrams of relevant parameters that are retained.

[0076] Furthermore, the named layer file can be renamed to C (Color). By renaming, display color information is added to each layer. The purpose of adding display color information to the layer is to make the layer visual. The embodiment of this disclosure does not specifically limit the specific type of display color information to be set.

[0077] In order to be able to adjust each layer visually, you can create a subnet and generate digital assets (HDA) corresponding to each layer. Create a folder based on the parameters of the digital asset and change the folder type to list type (MultiparmBlock). Then, put the renamed layer input as a parameter into the created folder, such as Figure 7 The diagram shows a layer being placed into a created folder.

[0078] In some possible implementations, in order to enable each layer to be visualized with the set display color information, a loop may be created to control each layer to be displayed with the display color information through a number of loop iterations.

[0079] For example, you can create For-Each-Number, use the detail function to read the detailed properties of each layer (that is, display color information), and use the strcat expression function to return the connection of two strings, such as chs(strcat(".. / .. / Layer_name",detail(".. / .. / foreach_count1","iteration",0)+1)). Through the loop iteration number iteration in For-Each-Number, control each layer to display color information visualization, such as Figure 8 A schematic diagram of a process for controlling each layer through the number of loop iterations to display color information visualization according to an exemplary embodiment of the present disclosure.

[0080] Finally, after each layer is visualized with the set display color information, a first image file is generated according to each layer and the corresponding display color information.

[0081] In actual implementation, other channel layers except color channel information can be deleted, that is, the C (Color) / A (Alpha) channel layer is retained, and an empty Null node is created to output the generated first image file, which at least includes the display color information of each layer.

[0082] Through this exemplary embodiment, layers corresponding to different object attributes can be simultaneously visualized with set display color information, so that artists and planners can view the general situation of game routes and levels in real time during the generation of game routes.

[0083] In an exemplary embodiment, a method for adding texture attribute information to each layer is also provided. Creating a mesh model of a top-view model based on a first image file, and mapping the top-view model to the mesh model to determine the texture attribute information of texture pixels in the mesh model may include steps 910 to 940:

[0084] Step S910: According to the first image file, meshing is performed on the top view model to obtain a mesh model.

[0085] In this exemplary embodiment, the top view model may be meshed based on the first image file to obtain a mesh model, ie, a surface mesh.

[0086] In actual implementation, a tracing node Trace may be created to read the first image file and create tracing surfaces for each layer in the first image file, thereby obtaining a surface meshed mesh model.

[0087] Step S920: Add texture coordinate attributes to the mesh model.

[0088] Among them, to add texture coordinate attributes to the mesh model, you can create UV texture coordinate attributes by adding "Add Point Texture" to add texture coordinate attributes to the mesh model, such as Figure 10 shown.

[0089] In actual implementation, after meshing the top-view model, shape resampling can be performed on the meshing result to generate a mesh model based on the shape resampling results. Shape resampling of the meshing result involves extracting target mesh nodes from the mesh nodes of the meshing result based on the shape of the top-view model, and generating a mesh model based on the target mesh nodes. Target mesh nodes are mesh nodes that reflect the shape of the mesh model while ensuring that the shape of the mesh model is not affected, and redundant nodes between mesh nodes are deleted.

[0090] For example, a filter can be used to resample the shape of the meshing result, and redundant nodes between mesh nodes can be deleted by creating a facet node that changes the geometry, such as Figure 11 A schematic diagram of shape resampling of a gridding processing result according to an embodiment of the present disclosure is shown. Before shape resampling, the number of nodes is 1657, and after shape resampling, the number of nodes is 17.

[0091] By extracting target grid nodes from grid nodes of grid processing results based on the shape of the top view model, the number of nodes of the grid model is reduced without affecting the grid model, thereby improving processing efficiency.

[0092] Step S930: Matching the top view model with the mesh model according to the texture coordinate attributes to map the top view model to the mesh model to obtain a mapping result.

[0093] The top view model and the mesh model may be matched by model scaling according to the texture coordinate attributes added to the mesh model, so as to map the top view model to the mesh model.

[0094] In actual implementation, you can create a node to write attributes: v@P=v@uv; v@Pz=0, add texture coordinate attributes to the mesh model, and convert the coordinates of the pixel points in the mesh model from world space to texture space. In the texture space, use the extrusion node (such as the Poly Extrude node) to scale the model to map the top view model to the mesh model, that is, match it to the texture pixels, that is, map the top view model to the mesh model.

[0095] like Figure 12 FIG. 4 shows an operation diagram of matching a top view model with a mesh model according to texture coordinate attributes to map the top view model to the mesh model to obtain a mapping result according to an exemplary embodiment of the present disclosure, as shown in FIG. Figure 12 , through the texture information sampling to the attribute (Attribute From Map), the first image file path imported into the synthesis network is referenced as a channel shortcut, and by writing attributes (such as UV texture coordinate attributes), the texture attribute information of the texture pixels in the mesh model is output, such as the corresponding color attributes.

[0096] In addition, after mapping the top view model to the mesh model and obtaining the mapping result, the coordinates of the pixel points in the mesh model are converted from the texture space to the world space.

[0097] Step S940: Determine texture attribute information of texture pixels in the mesh model according to the mapping result.

[0098] In this exemplary embodiment, the top view model may be matched to the texture pixels of the mesh model according to the mapping result, thereby determining the texture attribute information of the texture pixels in the mesh model.

[0099] Through this exemplary embodiment, by mapping the top view model to the mesh model, the texture attribute information of the texture pixels in the mesh model is determined, which reduces the editing operations of the game developer and improves the efficiency of determining the texture attribute information.

[0100] In an exemplary embodiment of the present disclosure, step S230 may further include steps S1310 to S1330:

[0101] Step 1310 : Based on the object properties corresponding to the layer in the first image file, determine the object group corresponding to the layer, wherein the object group includes the virtual model object in the corresponding layer.

[0102] In this exemplary embodiment, the first image file includes layers corresponding to different object attributes. Based on the object attributes corresponding to each layer, the layers can be grouped to determine the object groups corresponding to the layers. Virtual model objects belonging to the same layer are grouped together into an object group, meaning that the object group includes the virtual model objects in the corresponding layer. For example, the virtual model objects included in the object group "Roads" are all roads, and so on.

[0103] In actual implementation, Figure 14 As shown, you can create the attribute Attribute Create, create the surface attribute Primitive Attribute "name", and set the type to string String, and rename the layers in the first image file Rename input as a channel shortcut to write into the string; then, add the write attribute AttributeWrangle: i@PSDLayerNumber = detail(1,"iteration",0), use the detaile function to read the detail attributes (such as object attributes), use For-Each Number, adjust the number of loop iterations iteration to the number of layers in the first image file, and then read the object attributes of each layer in the first image file through the number of loops, and divide the virtual model objects with the same object attributes into the same group, as shown in the following example: Figure 15 The bold line portion shown divides the virtual model objects with the same object attributes in the first layer file into one group, with a total of eight groups.

[0104] It is worth noting that after grouping virtual model objects according to object properties, differentiated editing operations can be performed on each group separately. For example, you can only edit the "door" and other virtual model objects will not be edited. For example, you can create a For-Each Number again, use the detail function to read the detailed properties of each object group (such as display color information, object properties, etc.), and set the number of loop iterations in For-Each Number to the number of layers in the first image file. Through the node filtering Blast, all layers except the bottom surface in the first image file can be filtered out to implement editing operations on each layer, thereby improving the editing efficiency of virtual model objects.

[0105] Step 1320 : Perform a model extrusion operation on each object group to generate a first virtual target model.

[0106] In this exemplary embodiment, after the virtual model objects are divided into multiple object groups, a model extrusion operation can be performed on each object group to generate a first virtual target model. Model extrusion involves extruding each virtual model object from a one-dimensional plane through the model to obtain a three-dimensional model with a certain thickness. The extrusion thickness does not have any special requirements.

[0107] Among them, first, for each object group, the vertices of the virtual model objects in the object group can be obtained; then, based on the vertices of the virtual model objects, the surface structure of the virtual model objects can be constructed; finally, based on the surface structure, the corresponding virtual model objects in the object group can be subjected to a model extrusion operation to generate the first virtual target model of the object group.

[0108] In actual implementation, for each object group, the virtual model objects in the object group can be extruded, and the extrusion results are transferred to the corresponding object group. Figure 16 A schematic diagram of a model extrusion according to an exemplary embodiment of the present disclosure is shown. Figure 16 The virtual model object shown can be enclosed by an object. By building an object bounding box to enclose the points of the virtual model object, the vertices of the virtual model object within the bounding box can be determined. It is worth noting that since the object bounding box only encloses vertices, it is necessary to promote the points within the bounding box from point group attributes PointGroups to surface group attributes Primitive Groups through Group Promote, as shown in the following example: Figure 16 The surface structure of the virtual model object is constructed by the vertices of the virtual model object. After the corresponding virtual model objects in the object group are subjected to model extrusion operation based on the surface structure, the first virtual target model of the object group is generated, such as Figure 17 As shown, the dotted line circled part is Figure 16 The corresponding first virtual target model, the generation process of the remaining parts is the same as Figure 16 The generation method of the first virtual target model shown is the same and will not be repeated here.

[0109] Step 1330: Add texture attribute information to the first virtual target model to generate a second virtual target model.

[0110] In this exemplary embodiment, after the first virtual object model is generated, texture attribute information may be added to the first virtual object model. The texture attribute information is texture attribute information of texture pixels in the determined grid model.

[0111] In actual implementation, an Attribute Transfer operation may be used to transfer texture attribute information of texture pixels in the mesh model to the first virtual target model, add texture attribute information to the first virtual target model, and generate a second virtual target model.

[0112] In an exemplary embodiment of the present disclosure, a method for generating a target game route model by adjusting relevant parameter information of a second virtual target model is also provided. Adjusting the model extrusion area, height information, and layout points of virtual scene objects of the second virtual target model to generate the target game route model may include steps S1810 to S1840:

[0113] Step S1810: adjusting the model extrusion area of ​​the second virtual target model to obtain a first adjustment result.

[0114] The model extrusion area can be randomly adjusted to obtain different first adjustment results, thereby ultimately obtaining different types of target game path models. Adjustment of the model extrusion area refers to selecting different model extrusion areas and performing extrusion operations, such as selecting different extrusion points, lines, or surfaces, to obtain different extrusion results, thereby changing the target game path models into different shapes.

[0115] Step S1820: adjusting the height of the second virtual target model to obtain a second adjustment result.

[0116] The height of the second virtual target model may be randomly adjusted to obtain different second adjustment results, thereby ultimately obtaining different types of target game route models.

[0117] In actual implementation, you can create an extrusion node Poly Extrude, and under the local properties, you can see the scale zscale attribute. Activate this attribute to Distance Scale (distance size), and you can set the height of the corresponding surface of each virtual model object in the second virtual target model. Figure 19 As shown, you can add a pre-packaged Lot Subdivision HDA file (which comes with a convenience node). This node iteratively subdivides polygons into smaller "lots," with controls for the minimum size, number of iterations, and irregularity. Create a random attribute called Randomize, set its type to Primitive (surface attribute), name it zscale, and adjust its maximum and minimum values.

[0118] Step S1830: Randomly scatter points on the surface of the second virtual target model to generate layout points of the virtual scene object, and obtain a third adjustment result.

[0119] Among them, points can be randomly scattered on the surface of the second virtual target model to generate layout points of the virtual scene object, and different third adjustment results can be obtained, such as Figure 20 This is a schematic diagram of random dot scattering according to an exemplary embodiment of the present disclosure.

[0120] In some possible implementations, a reference virtual model can be copied to a placement point on a virtual scene object, and its model attribute parameters can be adjusted. The reference virtual model is the virtual model being replaced, and its model attribute parameters include, but are not limited to, size and rotation angle. This allows for clear placement of monsters on the target game path model and allows for direct replacement of the reference virtual model when adjustments to virtual scene objects are needed.

[0121] Among them, regional scattering points can be added, and a curve tool can be used to accurately locate the scattering point area, so as to randomly scatter points in the scattering point area on the surface of the second virtual target model, thereby improving the scattering point accuracy.

[0122] In some possible implementations, in order to avoid the virtual scene object models attached to the layout points of the virtual scene objects generated by random scattering of points from being interlaced, the second virtual target model can also be grouped based on the surface. For the second virtual target model, the upper surface of the second virtual target model can be divided into the first group, and the other surfaces as the second group. For example, the surfaces with a normal direction of 1 are divided into the first group, and the surfaces with a normal direction not of 1 are deleted from the second group. Random points are then scattered on all the surfaces in the first group, and position matching is added. The X-axis / Y-axis is set as the center, and the Z-axis takes the minimum value of zero, so that the reference virtual model is added to the randomly scattered points through position matching, so that the reference virtual model is accurately attached to the surface of the second virtual target model without interlacing.

[0123] Step S1840: Generate a target game route model according to the first adjustment result, the second adjustment result, and the third adjustment result.

[0124] In the present exemplary embodiment, a target game course model may be generated based on the first adjustment result, the second adjustment result, and the third adjustment result.

[0125] In some possible implementations, in order to further reduce the number of faces of the target game route model, redundant faces in the second virtual target model may be deleted.

[0126] In an exemplary embodiment of the present disclosure, a method for generating a target game route model is also provided. By adjusting the model extrusion area, height information, and layout points of the virtual scene objects of the second virtual target model, the target game route model can be generated by replacing the target reference virtual model in the second virtual target model in response to a replacement operation on the target reference virtual model. That is, the art assets of the target reference virtual model in the second virtual target model can be replaced, for example, replacing "grass" with "hill", replacing "Monster 1" with "Monster 2", etc. Based on this, by replacing the target reference virtual model, different monster placement situations and scene situations can be obtained, enriching the game route and making the process of generating the game route more flexible.

[0127] In an exemplary embodiment of the present disclosure, another implementation method for generating a target game route model is provided. Adjusting the model extrusion area, height information, and layout points of virtual scene objects of the second virtual target model to generate the target game route model may include:

[0128] In response to the first adjustment operation on the second virtual target model, adjusting the model parameters corresponding to the first adjustment operation in the second virtual target model to obtain a third virtual target model;

[0129] The third virtual target model is imported into the game engine. In the game engine, in response to the second adjustment operation on the third virtual target model, at least one of the model extrusion area, height information, layout points of virtual scene objects, and virtual scene object models corresponding to the layout points of virtual scene objects of the third virtual target model is adjusted to generate a target game route model.

[0130] In which, in response to the first adjustment operation on the second virtual target model, the model parameters corresponding to the first adjustment operation in the second virtual target model can be opened, and the input interface of the model parameters can be used to adjust the second virtual target model, and the second virtual target model with the input interface of the model parameters can be used as the third target virtual model.

[0131] Furthermore, the third virtual target model is imported into the game engine, so that within the game engine, the third virtual target model is adjusted in response to the second adjustment operation on the third virtual target model to generate a target game route model.

[0132] In actual implementation, the second target virtual model can be imported into the game engine, the curve input can be selected in the corresponding digital asset file, and the curve closure Closed can be activated to replace the target reference virtual model. After adjusting the parameters, the target game route model can be automatically generated according to the second target virtual model. Figure 21Optionally, the game engine may be Unreal Engine 4 (UE4).

[0133] Figure 22 A flowchart of a method for generating a game route according to an exemplary embodiment of the present disclosure is shown. Figure 22 , which may include steps S2210 to S2230:

[0134] Step S2210, creating a game route model and modifying the game route model in three-dimensional computer graphics software to obtain a second virtual target model;

[0135] Step S2220: Open the relevant adjustment parameter interface corresponding to the second virtual target model;

[0136] Step S2230: import the second virtual target model after the interface is developed into the game engine, modify the relevant parameters in the game engine, and obtain the target game route model.

[0137] Among them, at least one of the model extrusion area, height information and arrangement points of the virtual scene objects of the second virtual target model can be adjusted in the game engine to generate a target game route model.

[0138] From the above, it can be seen that the present disclosure breaks through the stereotyped game route generation method. Instead of the game developer manually editing the game map according to the route design drawing, the game developer first obtains the top-view model of the route to be generated, and automatically generates the target game route model based on the top-view model, thereby improving the efficiency of game route generation. Through the game route generation method disclosed in the present disclosure, in the process of generating the target game route model, there is no need for the artist to produce the basic construction work of the level white box and then conduct concept verification. Instead, each step of the production process is visualized to avoid inaccuracies in subsequent design iterations. The target game route model is generated by adjusting the model extrusion area, height information and layout points of the virtual scene objects of the second virtual target model. The construction of the game route model can be achieved by only adjusting some related parameters, thereby improving development flexibility and model diversity.

[0139] In an exemplary embodiment of the present disclosure, a game route generating device is also provided. Figure 23 As shown, the game route generation device 2300 may include a layer processing module 2310, a texture attribute determination module 2320, a first model generation module 2330, and a second model generation module 2340. Specifically,

[0140] The layer processing module 2310 is used to obtain a first image file of the route to be generated, wherein the first image file is generated by layering the top view model of the route to be generated according to object attributes, and obtaining layers corresponding to different object attributes;

[0141] a texture attribute determination module 2320 for creating a mesh model of the top view model according to the first image file, and mapping the top view model to the mesh model to determine texture attribute information of texture pixels in the mesh model;

[0142] A first model generation module 2330 is configured to perform a model extrusion operation on each of the layers according to the first image file to generate a first virtual target model, and to add the texture attribute information to the first virtual target model to generate a second virtual target model;

[0143] The second model generation module 2340 is used to adjust the model extrusion area, height information and layout points of the virtual scene objects of the second virtual target model to generate a target game route model.

[0144] Since the functional modules of the game route generation device of the exemplary embodiment of the present disclosure are the same as those in the above-mentioned game route generation method in the inventive embodiment, they will not be described in detail here.

[0145] It should be noted that although several modules or units of the game route generation device are mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0146] In addition, in the exemplary embodiments of the present disclosure, a computer storage medium capable of implementing the above-mentioned method is also provided. A program product capable of implementing the above-mentioned method of this specification is stored on the computer storage medium. In some possible embodiments, various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code. When the program product is executed on a terminal device, the program code is used to cause the terminal device to perform the steps according to the various exemplary embodiments of the present disclosure described in the "Exemplary Methods" section of this specification.

[0147] refer to Figure 24 As shown, a program product 2400 for implementing the above method according to an exemplary embodiment of the present disclosure is described. The program product 2400 may be a portable compact disc read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0148] The program product may be implemented in any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0149] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0150] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0151] The program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, and the like, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0152] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided. Those skilled in the art will appreciate that various aspects of the present disclosure can be implemented as a system, method, or program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware embodiment, a complete software embodiment (including firmware, microcode, etc.), or an embodiment combining hardware and software aspects, which can be collectively referred to herein as a "circuit," "module," or "system."

[0153] Refer to the following Figure 25 25 is a diagram to describe an electronic device 2500 according to this embodiment of the present disclosure. Figure 25 The electronic device 2500 shown is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.

[0154] like Figure 25 As shown, electronic device 2500 is implemented as a general-purpose computing device. Components of electronic device 2500 may include, but are not limited to, the aforementioned at least one processing unit 2510, the aforementioned at least one storage unit 2520, a bus 2530 connecting various system components (including storage unit 2520 and processing unit 2510), and a display unit 2540.

[0155] The storage unit stores program code, which can be executed by the processing unit 2510, so that the processing unit 2510 performs the steps described in the above "Exemplary Method" section of this specification according to various exemplary embodiments of the present disclosure.

[0156] The storage unit 2520 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 2521 and / or a cache memory unit 2522 , and may further include a read-only memory unit (ROM) 2523 .

[0157] The storage unit 2520 may also include a program / utility 2524 having a set (at least one) of program modules 2525, such program modules 2525 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0158] Bus 2530 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0159] Electronic device 2500 can also communicate with one or more external devices 2600 (e.g., a keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with electronic device 2500, and / or any device that enables electronic device 2500 to communicate with one or more other computing devices (e.g., a router, modem, etc.). Such communication can occur via input / output (I / O) interface 2550. Furthermore, electronic device 2500 can also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via network adapter 2560. As shown, network adapter 2560 communicates with other modules of electronic device 2500 via bus 2530. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with electronic device 2500, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0160] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

[0161] Furthermore, the figures above are merely illustrative of the processes included in the methods according to exemplary embodiments of the present disclosure and are not intended to be limiting. It is readily understood that the processes illustrated in the figures above do not indicate or limit the temporal order of these processes. Furthermore, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0162] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow from the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the claims.

Claims

1. A method for generating a game route, characterized in that: include: Obtaining a first image file of the route to be generated, the first image file being generated by layering a top-view model of the route to be generated according to object attributes, where the layers corresponding to different object attributes are obtained; the object attributes are used to indicate the model category to which the virtual model object belongs; creating a mesh model of the top view model according to the first image file, and mapping the top view model to the mesh model to determine texture attribute information of texture pixels in the mesh model; Performing a model extrusion operation on each of the layers according to the first image file to generate a first virtual target model, and adding the texture attribute information to the first virtual target model to generate a second virtual target model; The model extrusion area, height information, and layout points of virtual scene objects of the second virtual target model are adjusted to generate a target game route model.

2. The method according to claim 1, characterized in that The step of obtaining a first image file of the route to be generated, wherein the first image file is generated by layering the top view model of the route to be generated according to object attributes to obtain layers corresponding to different object attributes, includes: Layering the top view model according to object attributes to obtain layers corresponding to different object attributes; The display color information of each layer is set, and the first image file is generated according to each layer after the display color information is set.

3. The method according to claim 1, characterized in that The step of creating a mesh model of the top view model according to the first image file and mapping the top view model to the mesh model to determine texture attribute information of texture pixels in the mesh model includes: performing meshing processing on the top view model according to the first image file to obtain the mesh model; Adding texture coordinate attributes to the mesh model; Matching the top view model with the mesh model according to the texture coordinate attributes to map the top view model to the mesh model to obtain a mapping result; According to the mapping result, texture attribute information of the texture pixels in the mesh model is determined.

4. The method according to claim 3, characterized in that The gridding process of the top view model according to the first image file to obtain the grid model includes: performing gridding processing on the top view model according to the first image file; Based on the shape of the top view model, target grid nodes are extracted from grid nodes of a gridding processing result, and the grid model is generated according to the target grid nodes.

5. The method according to claim 3, characterized in that Before matching the top view model with the mesh model according to the texture coordinate attributes to map the top view model to the mesh model to obtain a mapping result, the method further includes: Convert the coordinates of the pixel points in the mesh model from the world space to the texture space; And after mapping the top view model to the grid model and obtaining a mapping result, the coordinates of the pixel points in the grid model are converted from the texture space to the world space.

6. The method according to claim 1, characterized in that The step of performing a model extrusion operation on each of the layers according to the first image file to generate a first virtual target model, and adding the texture attribute information to the first virtual target model to generate a second virtual target model includes: determining, based on object properties corresponding to the layer in the first image file, an object group corresponding to the layer, the object group including the virtual model objects in the corresponding layer; Performing a model extrusion operation on each of the object groups to generate the first virtual target model; The texture attribute information is added to the first virtual target model to generate the second virtual target model.

7. The method according to claim 6, characterized in that The step of performing a model extrusion operation on each of the object groups to generate the first virtual target model includes: For each of the object groups, obtaining vertices of the virtual model objects in the object group; constructing a surface structure of the virtual model object according to the vertices of the virtual model object; Based on the surface structure, a model extrusion operation is performed on the corresponding virtual model objects in the object group to generate a first virtual target model of the object group.

8. The method according to claim 6, characterized in that Adding the texture attribute information to the first virtual target model to generate the second virtual target model includes: According to the correspondence between the first virtual target model and the grid model, the texture attribute information is added to the first virtual target model to generate the second virtual target model.

9. The method according to claim 1, characterized in that The adjusting the model extrusion area, height information, and layout points of virtual scene objects of the second virtual target model to generate a target game route model includes: adjusting the model extrusion area of ​​the second virtual target model to obtain a first adjustment result; Adjusting the height of the second virtual target model to obtain a second adjustment result; Randomly scattering points on the surface of the second virtual target model to generate layout points of the virtual scene object, thereby obtaining a third adjustment result; The target game route model is generated according to the first adjustment result, the second adjustment result, and the third adjustment result.

10. The method according to claim 9, characterized in that The randomly scattering points on the surface of the second virtual target model to generate layout points of the virtual scene object to obtain a third adjustment result further includes: The reference virtual model is copied to the arrangement point of the virtual scene object, and the model attribute parameters of the reference virtual model are adjusted.

11. The method according to claim 10, characterized in that The adjusting the model extrusion area, height information, and layout points of virtual scene objects of the second virtual target model to generate a target game route model includes: In response to a replacement operation on the target reference virtual model, the target reference virtual model in the second virtual target model is replaced.

12. The method according to any one of claims 1 to 11, characterized in that The adjusting the model extrusion area, height information, and layout points of virtual scene objects of the second virtual target model to generate a target game route model includes: In response to a first adjustment operation on the second virtual target model, adjusting a model parameter corresponding to the first adjustment operation in the second virtual target model to obtain a third virtual target model; The third virtual target model is imported into a game engine. In the game engine, in response to a second adjustment operation on the third virtual target model, at least one of the model extrusion area, height information, layout points of virtual scene objects, and virtual scene object models corresponding to the layout points of virtual scene objects of the third virtual target model is adjusted to generate the target game route model.

13. A game route generating device, characterized in that: The device comprises: a layer processing module, configured to obtain a first image file of a route to be generated, wherein the first image file is generated by layering a top view model of the route to be generated according to object attributes, thereby obtaining layers corresponding to different object attributes; wherein the object attributes are used to indicate a model category to which a virtual model object belongs; a texture attribute determination module, configured to create a mesh model of the top view model according to the first image file, and map the top view model to the mesh model to determine texture attribute information of texture pixels in the mesh model; A first model generation module is configured to perform a model extrusion operation on each of the layers according to the first image file to generate a first virtual target model, and to add the texture attribute information to the first virtual target model to generate a second virtual target model; The second model generation module is used to adjust the model extrusion area, height information and layout points of the virtual scene objects of the second virtual target model to generate a target game route model.

14. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.

15. An electronic device, characterized in that: include: processor; as well as a memory for storing executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 12 by executing the executable instructions.