Model generation method, device, computer equipment and storage medium

By generating and adjusting mask layers and material maps, the problem of low accuracy after model scaling in open world games is solved, and high-precision game model rendering effects are achieved.

CN114419233BActive Publication Date: 2024-10-01NETEASE (SHANGHAI) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111666919.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2024-10-01
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

In open world games, when using a universal model for scaling, the accuracy of the model is too low and the picture effect is poor.

Method used

By obtaining the mask layer and material map of the target model, the reference model map is generated, and the tiling degree of the mask layer and material map is adjusted according to the zoom level to form a high-precision target model map.

Benefits of technology

On the premise of maintaining game performance, the accuracy of the enlarged model is improved, the problem of poor model effect after scaling is solved, and the quality of the game picture is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114419233B_ABST
    Figure CN114419233B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a model generation method, device, computer equipment and storage medium. The reference model map of the target model can be set to be formed by mixing the material maps corresponding to different detail model materials, and the material maps corresponding to various model materials are formed by four-way continuous tiling. When the target model is scaled in the open world, the four-way continuous tiling degree of the material map can be controlled according to the scaling degree of the target model, and the target model map of the target model formed by four-way continuous tiling can be matched with the addition of the mixed detail model material map, so that the target model map formed by four-way continuous tiling can maintain the map accuracy while matching the scaling degree of the target model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of three-dimensional models, and in particular to a model generation method, device, computer equipment and storage medium. Background Art

[0002] In open world games, players can freely roam in a large virtual world and freely choose the time and method to complete game tasks. In open worlds, super-large models (such as rocks, large buildings, etc.) are often used to create rich game scenes. For the sake of game performance, usually only a few general models are made to splice a variety of super-large models. In this case, the models used will be scaled, resulting in low precision of the enlarged models, resulting in poor picture quality when the characters get close. Summary of the invention

[0003] The embodiments of the present application provide a model generation method, apparatus, computer device and storage medium, which can make the game model have higher accuracy after being enlarged.

[0004] The present application provides a model generation method, including:

[0005] Acquire a scalable target model and a mask layer of the target model, wherein the mask layer is used to determine the distribution position of the model material constituting the target model on the target model;

[0006] In a material library storing a plurality of material maps, a target material map corresponding to a model material required to form the target model is obtained, wherein the target material map is composed of at least one sub-map. Figure 4 The square is formed by continuous tiling;

[0007] Generate a reference model map of the target model according to the target material map and the mask layer;

[0008] Determine the scaling degree of the target model, and scale the mask layer according to the scaling degree to form a scaled mask layer;

[0009] Determine the tiling degree of the target material map in the reference model map according to the scaled mask layer to form a tiling target material map;

[0010] A target model map of the target model is generated based on the scaled mask layer and the tiled target material map, and the target model is rendered based on the target model map to obtain a rendered target model.

[0011] Accordingly, the embodiment of the present application further provides a model generation device, including:

[0012] A layer acquisition unit, used for acquiring a scalable target model and a mask layer of the target model, wherein the mask layer is used for determining a distribution position of a model material constituting the target model on the target model;

[0013] A texture acquisition unit is used to acquire a target material texture corresponding to a model material required to form the target model from a material library storing a plurality of material textures, wherein the target material texture is composed of at least one sub-texture. Figure 4 The square is formed by continuous tiling;

[0014] A generating unit, used for generating a reference model map of the target model according to the target material map and the mask layer;

[0015] A scaling unit, used for determining a scaling degree of the target model, and scaling the mask layer according to the scaling degree to form a scaled mask layer;

[0016] A determining unit, configured to determine a tiling degree of the target material map in the reference model map according to the scaled mask layer, to form a tiling target material map;

[0017] A rendering unit is used to generate a target model map of the target model based on the scaled mask layer and the tiled target material map, and render the target model based on the target model map to obtain a rendered target model.

[0018] Optionally, the map acquisition unit is further used for:

[0019] Obtaining the material to be processed corresponding to the model material in the model material library;

[0020] Mixing the materials to be processed to form a sub-map corresponding to the model material;

[0021] The sub-maps are produced in a four-way continuous manner to form the target material map corresponding to the model material.

[0022] Optionally, the map acquisition unit is further used for:

[0023] Storing the target material map in the material library;

[0024] Setting a storage identifier of the target material map in the material library;

[0025] Determine the target material map corresponding to the model material required to form the target model, and a storage identifier in the material library;

[0026] The target material map is obtained in the material library according to the storage identifier of the target material map.

[0027] Optionally, the layer acquisition unit is further used for:

[0028] Acquire the scalable target model, and determine the model material required to constitute the target model;

[0029] Obtain the color channel corresponding to each of the model materials;

[0030] According to the color channel corresponding to each model material and the distribution position of each model material on the target model, a mask layer corresponding to each model material is generated, wherein the mask layer indicates a weight value corresponding to each pixel.

[0031] Optionally, the generating unit is further used for:

[0032] Determining the corresponding relationship between the target material map corresponding to each model material and each mask layer according to the mask layer corresponding to each model material;

[0033] Obtaining the weight value corresponding to each pixel in each of the mask layers;

[0034] Based on the weight value corresponding to each pixel, each target material map is superimposed with the corresponding mask layer to form a superimposed material map corresponding to each target material map;

[0035] The superimposed material maps are superimposed to form the reference model map of the target model.

[0036] Optionally, the device is also used for:

[0037] generating a normal map of the target model;

[0038] The generating unit is further configured to:

[0039] Generate a mixed material map of the target model according to the target material map and the mask layer;

[0040] The normal map is superimposed on the mixed material map to generate a reference model map of the target model.

[0041] Optionally, the device is also used for:

[0042] Reducing the number of faces of the target model to form a low-poly model of the target model;

[0043] Perform UV unfolding on the low-poly model to generate a UV map corresponding to the low-poly model;

[0044] Adding texture information of the low-poly surface to the UV map to form a texture map;

[0045] Rendering the texture map on the surface of the low-poly model;

[0046] A normal map of the target model is generated according to difference information between the target model and the low-poly model after rendering the texture map.

[0047] Optionally, the material library includes different material matrices, wherein one of the material matrices includes target material maps of the same type, and the map acquisition unit is further used for:

[0048] Determine the category of the target model and the application scenario of the target model in the target application;

[0049] Determining the type of target material map of the target model according to the type of the target model and the application scenario;

[0050] According to the type of the target material map, a target material matrix is ​​determined in the material library; and the target material map is searched in the target material matrix.

[0051] Similarly, an embodiment of the present application also provides a computer device, including:

[0052] Memory for storing computer programs;

[0053] A processor is used to execute any step of the model generation method.

[0054] In addition, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the model generation methods are implemented.

[0055] The embodiments of the present application provide a model generation method, apparatus, computer equipment and storage medium, which can set the reference model map of the target model to be formed by mixing material maps corresponding to different detail model materials, and the material maps corresponding to various model materials are formed by four-way continuous tiling. When the target model is scaled in an open world, the degree of four-way continuous tiling of the material map can be controlled according to the scaling degree of the target model, and the target model map of the target model formed by four-way continuous tiling can be combined with the addition of mixed detail model material maps to maintain the mapping accuracy while matching the scaling degree of the target model. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0057] Figure 1 is a system schematic diagram of a model generation device provided in an embodiment of the present application;

[0058] Figure 2 It is a flowchart of the model generation method provided in the embodiment of the present application;

[0059] Figure 3 is a schematic diagram of a mask layer of a target model provided in an embodiment of the present application;

[0060] Figure 4 is a schematic diagram of a normal map provided in an embodiment of the present application;

[0061] Figure 5 It is a schematic diagram of a texture matrix of a model material for a mountain and rock model provided in an embodiment of the present application;

[0062] Figure 6 is a schematic diagram of a mapping matrix for a rock model provided in an embodiment of the present application;

[0063] Figure 7 It is a schematic diagram of the shader production process provided in an embodiment of the present application;

[0064] Figure 8 1 is a schematic diagram comparing the mapping accuracy of the rock model provided in the embodiment of the present application;

[0065] Fig. 9 is another flow chart of the model generation method provided in an embodiment of the present application;

[0066] Fig.10 is a schematic diagram of the structure of a model generation device provided in an embodiment of the present application;

[0067] Fig.11 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0068] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0069] The embodiment of the present application provides a model generation method, device, computer equipment and storage medium. Specifically, the model generation method of the embodiment of the present application can be performed by a computer device, wherein the computer device can be a terminal or a server. The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (Personal Computer, PC), a personal digital assistant (Personal Digital Assistant, PDA), etc. The terminal can also include a client, which can be a game application client, a front-end browser client carrying a game program, or an instant messaging client. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution network services, and basic cloud computing services such as big data and artificial intelligence platforms.

[0070] For example, when the model generation method is run on a terminal, the terminal device stores a three-dimensional game model making application, such as Unreal Engine, 3DMAX, etc., and can present a graphical user interface in the three-dimensional game model making application. The terminal device is used to interact with the user through a graphical user interface, such as downloading and installing a three-dimensional game model making application through the terminal device and running it. The terminal device can provide the graphical user interface to the user in a variety of ways, for example, it can be rendered and displayed on the display screen of the terminal device, or the graphical user interface can be presented through holographic projection. For example, the terminal device may include a touch display screen and a processor, the touch display screen is used to present the graphical user interface and receive the operation instructions generated by the user acting on the graphical user interface, the graphical user interface includes a model making process screen, and the processor is used to run the three-dimensional model making application, generate a graphical user interface, respond to the operation instructions, and control the display of the graphical user interface on the touch display screen.

[0071] See also Figure 1 , Figure 1 A system diagram of a model generation device provided in an embodiment of the present application. The system may include at least one terminal. The terminal held by the user is used to obtain a scalable target model and a mask layer of the target model, the mask layer is used to determine the distribution position of the model material constituting the target model on the target model; in a material library storing multiple material maps, a target material map corresponding to the model material required to constitute the target model is obtained, the target material map is composed of at least one sub-map. Figure 4The target model is formed by continuous tiling; a reference model map of the target model is generated according to the target material map and the mask layer; the scaling degree of the target model is determined, and the mask layer is scaled according to the scaling degree to form a scaled mask layer; the tiling degree of the target material map in the reference model map is determined according to the scaled mask layer to form a tiling target material map; a target model map of the target model is generated based on the scaled mask layer and the tiled target material map, and the target model is rendered based on the target model map to obtain a rendered target model.

[0072] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0073] This embodiment will be described from the perspective of a model generation method, which can be specifically integrated into a terminal device, which can include a smart phone, a laptop, a tablet computer, a personal computer and other devices.

[0074] The present application provides a model generation method, which can be executed by a processor of a terminal, such as Figure 2 As shown, the specific process of the model generation method mainly includes steps 201 to 206, which are described in detail as follows:

[0075] Step 201: Obtain a scalable target model and a mask layer of the target model, where the mask layer is used to determine the distribution position of the model materials constituting the target model on the target model.

[0076] In the embodiment of the present application, the target model is a virtual model of a virtual object included in the game world. For example, the target model can be a virtual character model manipulated by the player in the game, any virtual world component element model included in the game world (such as virtual buildings, virtual rocks, virtual trees, etc.), etc. In addition, since the game world displayed in the open world game is relatively broad, the same game model will be scaled in the game interface as the virtual character controlled by the player moves in the game world. For example, the game world includes a mountain model composed of multiple stone models. When the virtual character is far away from the mountain model in the game scene, the size of the mountain model displayed in the game interface is small. The stone model that constitutes the mountain model can be reduced, so that the mountain model is reduced. When the virtual character is close to the mountain model in the game scene, the size of the mountain model displayed in the game interface is large. The stone model that constitutes the mountain model can be enlarged, so that the mountain model is enlarged.

[0077] In the embodiment of the present application, in order to make the game model match different game environments, the game model has features related to the game environment in different game environments. Furthermore, in order to make the game model more vivid and richer in details, a variety of model materials can be mixed to form a game model map. When making a game model map including mixed materials, a mask layer can be set to display the distribution position of the model materials of various games on the target model. Specifically, before the above step 201 "obtaining a scalable target model and a mask layer of the target model", it is also necessary to pre-make a mask layer of the target model, which can be:

[0078] Obtain a scalable target model and determine the model materials required to compose the target model;

[0079] Get the color channel corresponding to each model material;

[0080] According to the color channel corresponding to each model material and the distribution position of each model material on the target model, a mask layer corresponding to each model material is generated, wherein the mask layer indicates a weight value corresponding to each pixel.

[0081] For example, Figure 3 In the mask layer diagram of the target model shown, the target model is a rock model 301, which can be composed of a basic material, a moss material, a chamfer material, and a dark surface material. Corresponding mask layers are set for the basic material, the moss material, the chamfer material, and the dark surface material, respectively, so as to form a mask layer 302 corresponding to the rock model 301. The basic material can be set to correspond to the gray area on the mask layer 302, the moss material to correspond to the green area on the mask layer 302, the chamfer material to correspond to the red area on the mask layer 302, and the dark surface material to correspond to the blue area on the mask layer 302. In addition, the pixels corresponding to the darker color areas have larger weight values ​​on the corresponding layers, while the pixels corresponding to the lighter color areas have smaller weight values ​​on the corresponding layers.

[0082] Step 202: In a material library storing a plurality of material maps, a target material map corresponding to a model material required to form a target model is obtained, wherein the target material map is composed of at least one sub-map. Figure 4 The square is formed by continuous tiling.

[0083] In the embodiment of the present application, in order to form the target model map of the target model, it is necessary to obtain the material maps of various model materials included in the target model for mixing. In order to reduce the number of samplings and thus achieve the purpose of low performance consumption, multiple material maps can be stored in a material library. When the required material map is used, it is queried and called from the material library. Among them, the material library is a storage structure for storing all material maps in the terminal. The material library can be a structure of a texture array, a structure of a database, etc.

[0084] In the embodiment of the present application, before the above step 202 of "obtaining a target material map corresponding to a model material required to form a target model in a material library storing a plurality of material maps", it is also necessary to store the generated target material map in the material library in advance, specifically:

[0085] Obtain the material to be processed corresponding to the model material in the model material library;

[0086] Mix the materials to be processed to form a sub-map corresponding to the model material;

[0087] The sub-maps are produced in a four-way continuous manner to form the target material map corresponding to the model material.

[0088] In the embodiment of the present application, in order to make the material map match the scaling degree of the target model and to maintain the mapping accuracy of the material map after scaling, the material map is set to be infinitely extended by a sub-map generated by the material to be processed using a four-way continuous production method, wherein the sub-map has a higher accuracy, so when the sub-map is extended to form a larger material map using the four-way continuous production method, the extended material map also has a higher accuracy. In addition, the four-way continuous production method is a pattern generated by repeatedly and continuously arranging the sub-map in four directions, upward, downward, left and right.

[0089] In the embodiment of the present application, the material to be processed of the mixed material map may be pre-stored in the model making software.

[0090] In an embodiment of the present application, after the target material map is produced, it is also necessary to store the produced target material map in the material library. Since there are many material maps stored in the material library, in order to conveniently find the required material map, a storage identifier can be set for each material map, so as to distinguish different material maps in the material library, and the target material map can be found from the material library more quickly and conveniently through the storage identifier. For example, in the Unreal Engine, the material map is stored in the texture array, and the required material map can be found in the texture array by UV addressing, and the addressing index can be controlled by a custom floating point value. Specifically, after the above step of "forming the target material map corresponding to the model material by the sub-map in a four-way continuous production method", it also includes:

[0091] Store the target material map into the material library;

[0092] Set the storage ID of the target material map in the material library;

[0093] At this time, in the above step 202, "obtaining a target material map corresponding to a model material required to compose a target model from a material library storing a plurality of material maps" can be:

[0094] Determine the target material map corresponding to the model material required to compose the target model, and the storage identifier in the material library;

[0095] Get the target material map in the material library according to the storage identifier of the target material map.

[0096] For example, you can use natural numbers to number different material maps, and search for the target material map from the material library according to the natural number corresponding to the target material map.

[0097] In the embodiment of the present application, the material library has different types of material maps. In order to better manage the material maps, the material maps can be divided into different material matrices. The material library includes different material matrices, wherein one material matrix includes target material maps of the same type. When obtaining the target material map corresponding to the target model, the type of the target material map required by the target model can be determined first, and then searched in the material matrix of the corresponding type, thereby speeding up the search rate of the target material map. Specifically, the above step 202 "obtaining the target material map corresponding to the model material required to constitute the target model in the material library storing multiple material maps" can be:

[0098] Determine the category of the target model and the application scenario of the target model in the target application;

[0099] Determine the type of target material map for the target model based on the type and application scenario of the target model;

[0100] According to the type of the target material map, determine the target material matrix in the material library; search for the target material map in the target material matrix.

[0101] In the embodiment of the present application, the material matrix can be distinguished by color, and the texture matrix can also be distinguished by function, that is, a normal material matrix for storing normal maps can be created, and the used material maps can be classified and stored in the texture matrix. When making model maps, they can be called from the texture matrix, which can reduce the number of sampling times and achieve the purpose of low consumption. For the texture matrix that has been created, the matrix material library can be maintained in the subsequent "add, delete, and replace" method. For example, the user can delete, add, and replace the material map in the material matrix. For example, Figure 5In the schematic diagram of the texture matrix for the model material of the rock model shown, after the model material required for the rock model is determined, the to-be-processed material required for the model material is obtained from all the to-be-processed materials included in the array element 501, and the obtained to-be-processed materials are mixed to form a material map 502 corresponding to the model material. The user can import the generated material map into the texture matrix that stores the material map in the Unreal Engine 4. The user can also add new material maps to the texture matrix, delete the material maps stored in the texture matrix, and replace one of the material maps stored in the texture matrix with another material map. In addition, if the model map of the rock model is composed of the material maps and normal maps corresponding to different detail model materials superimposed, it can be obtained from Figure 6 The texture required for the mountain and rock model is obtained from the texture matrix schematic diagram shown in the figure, that is, the material texture required for the mountain and rock model is obtained from the color map texture array 601 storing each material map, and the detail model material texture of the mountain and rock model is obtained by mixing. The normal map required for the mountain and rock model is obtained from the normal map texture array 602 storing each normal map, and the normal map of the mountain and rock model is obtained by mixing. Figure 6 The various parameters configured in parameter group 603 superimpose the detail model material map and the normal map of the mountain and rock model to form the model map of the mountain and rock model.

[0102] Step 203: Generate a reference model map of the target model according to the target material map and the mask layer.

[0103] In the embodiment of the present application, each target material map can be superimposed with the corresponding mask layer, and then the superimposed layers are mixed and superimposed to generate a reference model map that is not scaled. In the above step 203, "generating a reference model map of the target model according to the target material map and the mask layer" can be:

[0104] According to the mask layers corresponding to the model materials, the corresponding relationship between the target material maps corresponding to the model materials and the mask layers is determined;

[0105] Get the weight value corresponding to each pixel in each mask layer;

[0106] Based on the weight value corresponding to each pixel, each target material map and the corresponding mask layer are superimposed to form a superimposed material map corresponding to each target material map;

[0107] The superimposed material maps are superimposed to form a reference model map of the target model.

[0108] In the embodiment of the present application, if the surface of the target model has an uneven texture, a normal map can be made for the target model, that is, the method further includes: generating a normal map of the target model. Then, the normal map can be superimposed with the prepared reference model map, so that the target model has an uneven texture and has the effect of a high-precision map. At this time, the above step 203 "generating a reference model map of the target model according to the target material map and the mask layer" can be:

[0109] Generate a mixed material map of the target model according to the target material map and the mask layer;

[0110] The normal map is superimposed with the mixed material map to generate a reference model map of the target model.

[0111] For example, Figure 4 In the normal map schematic diagram shown, the target model is a mountain and rock model, and a normal map can be made for the mountain and rock model, so that the map 401 of the mountain and rock model becomes the normal map 402. In addition, when making the normal map, there is no need to consider the accuracy of the normal map too much, as long as the mountain and rock model has an approximate turning structure normal.

[0112] In the embodiment of the present application, when making a normal map, the details of the high-polygon model can be baked onto the low-polygon model. Specifically, the above step of "making a normal map of the target model" can be:

[0113] Reduce the number of faces of the target model to form a low-poly model of the target model;

[0114] Unwrap the low-poly model and generate the UV map corresponding to the low-poly model;

[0115] Add the texture information of the low-poly surface to the UV map to form a texture map;

[0116] Render the texture on the low-poly surface;

[0117] Generate a normal map of the target model based on the difference information between the target model and the low-poly model after rendering the texture map.

[0118] In the embodiment of the present application, texture refers to the detailed information of the surface of an object, including lines, colors or patterns. UV unfolding of the low-poly model is to unfold the low-poly model surface along the boundary, and a two-dimensional plane can be obtained. The texture coordinates of the two-dimensional plane in the texture coordinate system correspond to the vertices on the unfolded low-poly model surface. Texture coordinates, i.e., UV coordinates, are used to characterize the position of each pixel point in the two-dimensional plane corresponding to the low-poly model in the texture space.

[0119] In addition, texture information is detailed information about the surface of an object, including information such as texture, color or pattern. The added texture information can be one or more types of detailed information. A texture map is a two-dimensional plane map including texture information.

[0120] In the embodiment of the present application, low-poly refers to a low-polygon model, which is composed of multiple polygons, and one polygon is called a face. The number of polygons that make up the low-polygon model is the number of faces of the low-polygon model, wherein the number of faces of the low-polygon model is small and is lower than a preset number of faces.

[0121] Step 204: determine the scaling degree of the target model, and scale the mask layer according to the scaling degree to form a scaled mask layer.

[0122] In the embodiment of the present application, since the target model (the model actually used in the big world game scene) is formed by splicing and scaling based on the general model produced at the beginning, the scaling degree can be determined based on the size comparison between the general model and the target model. When the size of the target model is determined, the generated mask layer can also be scaled so that the size of the mask layer after scaling matches the size of the target model.

[0123] Step 205: Determine the tiling degree of the target material map in the reference model map according to the scaled mask layer to form a tiling target material map.

[0124] In the embodiment of the present application, when the mask layer is scaled, in order to make the material map match the scaled mask layer, the target material map needs to be scaled, and the UV scaling node TextureCoordinate is set for the target material map. The tiling degree of the target material map is controlled by adjusting the scaling value, so that the target material map reaches the corresponding accuracy. For example, when the mask layer is enlarged, the corresponding display position of each model material on the target model remains unchanged, and the display area becomes larger, that is, the tiling degree of the target material map corresponding to each material increases, so that the enlarged target material map can cover the corresponding display area.

[0125] Step 206 , generating a target model map of the target model based on the scaled mask layer and the tiled target material map, and rendering the target model based on the target model map to obtain a rendered target model.

[0126] In an embodiment of the present application, after obtaining the scaled mask layer and the tiled target material map, the scaled mask layer and the tiled target material map can be superimposed to obtain a target model map, and the target model map can be further rendered on the surface of the target model, so that the rendered target model can show the corresponding map details.

[0127] All of the above technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described in detail here.

[0128] The model generation method provided in the embodiment of the present application can set the reference model map of the target model to be formed by mixing the material maps corresponding to different detail model materials, and the material maps corresponding to various model materials are formed by four-way continuous tiling. When the target model is scaled in the open world, the four-way continuous tiling degree of the material map can be controlled according to the scaling degree of the target model, and the mixed detail model material map is added, so that the target model map of the target model formed by four-way continuous tiling can maintain the mapping accuracy while matching the scaling degree of the target model.

[0129] For example, Figure 7 In the shader production process diagram shown, a variety of material maps showing different detailed model materials are stored in the 2D texture array. Each material map has a custom float (floating point) data type identifier in the 2D texture array. When making the model map of the target model, the model material required for the target model is determined, and the addressing index is controlled according to the float in the 2D texture array to obtain the material maps of different detail types corresponding to the different model materials, namely, material map A, material map B and material map C. The weights corresponding to each material map are determined according to the weight blending map, and the material map A is combined with the corresponding weight A, the weight B corresponding to the material map B is combined, and the weight C corresponding to the material map C is combined. The detailed part of the model map of the target model is superimposed with the original part of the target model (the normal map of the target model), and the output forms the model map of the target model. In addition, in the actual production process, the shader in the Unreal Engine 4 material editor can be used to implement the following Figure 7 The shader production process shown.

[0130] For example, Figure 8In the diagram of the comparison of the mapping accuracy of the rock model shown, when the virtual character is on the rock model, the rock model needs to be enlarged. On the one hand, the enlarged rock model can be split into multiple sub-models. However, only when the actual enlargement ratio of the rock model is lower than the preset enlargement ratio, the accuracy of the enlarged rock model can be maintained to a certain extent. When the actual enlargement ratio of the rock model exceeds the preset enlargement ratio, the accuracy of the enlarged rock model cannot be maintained after one split, and a blurred model map as shown in 901 will be formed. The model map of the enlarged rock model split into multiple sub-models is blurred, and the problem of low accuracy of the enlarged model cannot be completely solved. In addition, when a rock model is split into multiple sub-models, the cost of rendering this rock model will double. When multiple rock models appear in a game scene, the frame rate of this scene will drop significantly, which will greatly affect the smoothness of the game experience. On the other hand, in order to improve the precision of the magnified rock model, the method provided in the embodiment of the present application can be used to use a mixed model material to produce a model map of a large rock model, mix the material maps of different model materials, and combine the four-sided continuous tiling characteristics of the material map to ensure that the rock model maintains a relatively clear model map as shown in 902 when it is magnified. Not only can it solve the problem of insufficient precision of large rock model maps in open world game scenes, but it also ensures that the consumption required for rendering the rock model is low. The large-scale use of rock models using this material in open world game scenes can also ensure the picture effect of a preset frame rate (for example, 30 frames).

[0131] See also Fig. 9 , Fig. 9 Another schematic diagram of the model generation method provided in the embodiment of the present application. The specific process of the method can be as follows:

[0132] Step 1001, create various material maps and store them in the material library.

[0133] Specifically, the production method can be to obtain the unprocessed material corresponding to the model material in the model material library; mix the materials to be processed to form a sub-map corresponding to the model material; and form a target material map corresponding to the model material by the sub-map in a four-way continuous production method.

[0134] Step 1002: Obtain a scalable target model.

[0135] Step 1003: From a material library storing a plurality of material maps, obtain a target material map corresponding to a model material required to compose a target model.

[0136] Specifically, the target material map corresponding to the model material required to compose the target model may be determined, and a storage identifier in the material library; and the target material map may be obtained in the material library according to the storage identifier of the target material map.

[0137] Step 1004: Generate a mask layer of the target model.

[0138] Specifically, a scalable target model may be obtained to determine the model materials required to constitute the target model; a color channel corresponding to each model material may be obtained; and a mask layer corresponding to each model material may be generated according to the color channel corresponding to each model material and the distribution position of each model material on the target model, wherein the mask layer indicates a weight value corresponding to each pixel.

[0139] Step 1005: Generate a mixed material map of the target model according to the target material map and the mask layer.

[0140] Specifically, it can be: obtaining the weight value corresponding to each pixel in each mask layer; based on the weight value corresponding to each pixel, superimposing each target material map and the corresponding mask layer to form a superimposed material map corresponding to each target material map; superimposing each superimposed material map to form a mixed material map of the target model.

[0141] Step 1006: Generate a normal map of the target model.

[0142] Specifically, the normal map can be generated by reducing the number of faces of the target model to form a low-poly model of the target model; UV unfolding the low-poly model to generate a UV map corresponding to the low-poly model; adding texture information of the low-poly model surface to the UV map to form a texture map; rendering the texture map on the surface of the low-poly model; and generating a normal map for the target model based on the difference information between the target model and the low-poly model after rendering the texture map.

[0143] Step 1007: superimpose the normal map and the mixed material map to generate a reference model map of the target model.

[0144] Step 1008: Determine the scaling degree of the target model, and scale the mask layer according to the scaling degree to form a scaled mask layer.

[0145] Step 1009: Determine the tiling degree of the target material map in the reference model map according to the scaled mask layer to form a tiling target material map.

[0146] Step 1010: Generate a target model map of the target model based on the scaled mask layer and the tiled target material map, and render the target model based on the target model map to obtain a rendered target model.

[0147] All of the above technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described in detail here.

[0148] The model generation method provided in the embodiment of the present application can set the reference model map of the target model to be formed by mixing the material maps corresponding to different detail model materials, and the material maps corresponding to various model materials are formed by four-way continuous tiling. When the target model is scaled in the open world, the degree of four-way continuous tiling of the material map can be controlled according to the scaling degree of the target model, and the target model map of the target model formed by four-way continuous tiling can be further made to maintain the mapping accuracy while matching the scaling degree of the target model by adding the mixed detail model material map.

[0149] In order to better implement the model generation method of the embodiment of the present application, the embodiment of the present application also provides a model generation device. Fig.10 , Fig.10 The schematic diagram of the structure of the model generation device provided in the embodiment of the present application is as follows. The model generation device may include a layer acquisition unit 1101, a texture acquisition unit 1102, a generation unit 1103, a scaling unit 1104, a determination unit 1105 and a rendering unit 1106.

[0150] The layer acquisition unit 1101 is used to acquire a scalable target model and a mask layer of the target model, wherein the mask layer is used to determine the distribution position of the model material constituting the target model on the target model;

[0151] The texture acquisition unit 1102 is used to acquire a target material texture corresponding to a model material required to form a target model from a material library storing multiple material textures. The target material texture is composed of at least one sub-texture. Figure 4 The square is formed by continuous tiling;

[0152] A generating unit 1103, used for generating a reference model map of a target model according to a target material map and a mask layer;

[0153] The scaling unit 1104 is used to determine the scaling degree of the target model, and scale the mask layer according to the scaling degree to form a scaled mask layer;

[0154] A determining unit 1105, configured to determine a tiling degree of a target material map in a reference model map according to the scaled mask layer, to form a tiling target material map;

[0155] The rendering unit 1106 is used to generate a target model map of the target model based on the scaled mask layer and the tiled target material map, and render the target model based on the target model map to obtain a rendered target model.

[0156] Optionally, the map acquisition unit 1102 is further used for:

[0157] Obtain the material to be processed corresponding to the model material in the model material library;

[0158] Mix the materials to be processed to form a sub-map corresponding to the model material;

[0159] The sub-maps are produced in a four-way continuous manner to form the target material map corresponding to the model material.

[0160] Optionally, the map acquisition unit 1102 is further used for:

[0161] Store the target material map into the material library;

[0162] Set the storage ID of the target material map in the material library;

[0163] Determine the target material map corresponding to the model material required to compose the target model, and the storage identifier in the material library;

[0164] Get the target material map in the material library according to the storage identifier of the target material map.

[0165] Optionally, the layer acquisition unit 1101 is further used for:

[0166] Obtain a scalable target model and determine the model materials required to compose the target model;

[0167] Get the color channel corresponding to each model material;

[0168] According to the color channel corresponding to each model material and the distribution position of each model material on the target model, a mask layer corresponding to each model material is generated, wherein the mask layer indicates a weight value corresponding to each pixel.

[0169] Optionally, the generating unit 1103 is further configured to:

[0170] According to the mask layers corresponding to the model materials, the corresponding relationship between the target material maps corresponding to the model materials and the mask layers is determined;

[0171] Get the weight value corresponding to each pixel in each mask layer;

[0172] Based on the weight value corresponding to each pixel, each target material map and the corresponding mask layer are superimposed to form a superimposed material map corresponding to each target material map;

[0173] The superimposed material maps are superimposed to form a reference model map of the target model.

[0174] Optionally, the device is also used for:

[0175] Generate a normal map of the target model;

[0176] The generating unit 1103 is further used for:

[0177] Generate a mixed material map of the target model according to the target material map and the mask layer;

[0178] The normal map is superimposed with the mixed material map to generate a reference model map of the target model.

[0179] Optionally, the device is also used for:

[0180] Reduce the number of faces of the target model to form a low-poly model of the target model;

[0181] Unwrap the low-poly model and generate the UV map corresponding to the low-poly model;

[0182] Add the texture information of the low-poly surface to the UV map to form a texture map;

[0183] Render the texture on the low-poly surface;

[0184] Generate a normal map of the target model based on the difference information between the target model and the low-poly model after rendering the texture map.

[0185] Optionally, the material library includes different material matrices, wherein one material matrix includes target material maps of the same type, and the map acquisition unit 1102 is further used to:

[0186] Determine the category of the target model and the application scenario of the target model in the target application;

[0187] Determine the type of target material map for the target model based on the type and application scenario of the target model;

[0188] According to the type of the target material map, determine the target material matrix in the material library; search for the target material map in the target material matrix.

[0189] All of the above technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described in detail here.

[0190] The model generation device provided in the embodiment of the present application obtains a scalable target model and a mask layer of the target model through a layer acquisition unit 1101, and the mask layer is used to determine the distribution position of the model material constituting the target model on the target model. Then, the target material map corresponding to the model material required to constitute the target model is obtained from a material library storing multiple material maps through a map acquisition unit 1102. The target material map consists of at least one sub-map. Figure 4The target model is formed by continuous tiling, and then, the reference model texture of the target model is generated by the generating unit 1103 according to the target material texture and the mask layer, and then, the scaling unit 1104 determines the scaling degree of the target model, and the mask layer is scaled according to the scaling degree to form the scaled mask layer, and then, the determining unit 1105 determines the tiling degree of the target material texture in the reference model texture according to the scaled mask layer to form the tiling target material texture, and finally, the rendering unit 1106 generates the target model texture of the target model based on the scaled mask layer and the tiling target material texture, and the target model is rendered based on the target model texture to obtain the rendered target model. The texture accuracy can be maintained while matching the scaling degree of the target model.

[0191] Accordingly, the embodiment of the present application also provides a computer device, which may be a terminal, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer, a personal digital assistant, or other terminal device. Fig.11 As shown, Fig.11 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 1200 includes a processor 1201 having one or more processing cores, a memory 1202 having one or more computer-readable storage media, and a computer program stored in the memory 1202 and executable on the processor. The processor 1201 is electrically connected to the memory 1202. It will be understood by those skilled in the art that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0192] The processor 1201 is the control center of the computer device 1200. It uses various interfaces and lines to connect the various parts of the entire computer device 1200, and executes various functions of the computer device 1200 and processes data by running or loading software programs and / or modules stored in the memory 1202, and calling data stored in the memory 1202, thereby monitoring the computer device 1200 as a whole.

[0193] In the embodiment of the present application, the processor 1201 in the computer device 1200 will load instructions corresponding to the processes of one or more application programs into the memory 1202 according to the following steps, and the processor 1201 will run the application programs stored in the memory 1202 to implement various functions:

[0194] Obtain a scalable target model and a mask layer of the target model, where the mask layer is used to determine the distribution position of the model materials constituting the target model on the target model;

[0195] In a material library storing multiple material maps, a target material map corresponding to a model material required to form a target model is obtained, wherein the target material map consists of at least one sub-map. Figure 4 The square is formed by continuous tiling;

[0196] Generate a reference model map of the target model according to the target material map and mask layer;

[0197] Determine the scaling degree of the target model, and scale the mask layer according to the scaling degree to form a scaled mask layer;

[0198] Determine the tiling degree of the target material map in the reference model map according to the scaled mask layer, and form the tiling target material map;

[0199] A target model map of the target model is generated based on the scaled mask layer and the tiled target material map, and the target model is rendered based on the target model map to obtain a rendered target model.

[0200] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0201] Optional, such as Fig.11 As shown, the computer device 1200 further includes: a touch screen 1203, a radio frequency circuit 1204, an audio circuit 1205, an input unit 1206, and a power supply 1207. The processor 1201 is electrically connected to the touch screen 1203, the radio frequency circuit 1204, the audio circuit 1205, the input unit 1206, and the power supply 1207, respectively. Those skilled in the art can understand that Fig.11 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0202] The touch display screen 1203 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 1203 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user and various graphical user interfaces of the computer device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. The touch panel can be used to collect the user's touch operation on or near it (such as the user cashes any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute the corresponding program. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 1201, and can receive the command sent by the processor 1201 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 1201 to determine the type of touch event, and then the processor 1201 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 1203 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 1203 can also be used as a part of the input unit 1206 to realize the input function.

[0203] In an embodiment of the present application, various different types of material maps are generated in advance by processor 1201 and stored in a material library. When it is determined to generate a target model, processor 1201 generates a mask layer corresponding to the target model and obtains a material map matching the target model, thereby generating a model map corresponding to the target model based on the obtained mask layer and material map.

[0204] The radio frequency circuit 1204 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other computer device through wireless communication, and to send and receive signals between the network device or other computer device.

[0205] The audio circuit 1205 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 1205 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 1205 and converted into audio data, and then the audio data is output to the processor 1201 for processing, and then sent to another computer device through the radio frequency circuit 1204, or the audio data is output to the memory 1202 for further processing. The audio circuit 1205 may also include an earphone jack to provide communication between an external headset and the computer device.

[0206] The input unit 1206 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0207] The power supply 1207 is used to supply power to various components of the computer device 1200. Optionally, the power supply 1207 can be logically connected to the processor 1201 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 1207 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0208] although Fig.11 Not shown, the computer device 1200 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0209] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0210] As can be seen from the above, the computer device provided in this embodiment can set the reference model map of the target model to be formed by mixing the material maps corresponding to different detail model materials, and the material maps corresponding to various model materials are formed by four-way continuous tiling. When the target model is scaled in the open world, the degree of four-way continuous tiling of the material map can be controlled according to the scaling degree of the target model, and the target model map of the target model formed by four-way continuous tiling can be further made to maintain the mapping accuracy while matching the scaling degree of the target model by adding the mixed detail model material map.

[0211] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0212] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any model generation method provided in the embodiment of the present application. For example, the computer program can execute the following steps:

[0213] Obtain a scalable target model and a mask layer of the target model, where the mask layer is used to determine the distribution position of the model materials constituting the target model on the target model;

[0214] In a material library storing multiple material maps, a target material map corresponding to a model material required to form a target model is obtained, wherein the target material map consists of at least one sub-map. Figure 4 The square is formed by continuous tiling;

[0215] Generate a reference model map of the target model according to the target material map and mask layer;

[0216] Determine the scaling degree of the target model, and scale the mask layer according to the scaling degree to form a scaled mask layer;

[0217] Determine the tiling degree of the target material map in the reference model map according to the scaled mask layer, and form the tiling target material map;

[0218] A target model map of the target model is generated based on the scaled mask layer and the tiled target material map, and the target model is rendered based on the target model map to obtain a rendered target model.

[0219] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0220] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0221] Since the computer program stored in the storage medium can execute the steps in any one of the model generation methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the model generation methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0222] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0223] The above is a detailed introduction to a model generation method, device, computer equipment and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the technical scheme and core ideas of the present invention. Ordinary technicians in this field should understand that they can still modify the technical schemes recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents; and these modifications or replacements do not make the essence of the corresponding technical scheme deviate from the scope of the technical schemes of the embodiments of the present invention.

Claims

1. A model generation method, characterized in that: include: Acquire a scalable target model and a mask layer of the target model, wherein the mask layer is used to determine the distribution position of the model material constituting the target model on the target model, wherein the target model is a virtual model of a virtual object included in the game world, and the mask layer is generated according to the color channel corresponding to the model material required to constitute the target model and the distribution position of the model material on the target model; In a material library storing a plurality of material maps, a target material map corresponding to a model material required to form the target model is obtained, wherein the target material map is formed by continuously tiling at least one sub-map in four directions; Generate a reference model map of the target model according to the target material map and the mask layer; Determine the scaling degree of the target model, and scale the mask layer according to the scaling degree to form a scaled mask layer; Determine the tiling degree of the target material map in the reference model map according to the scaled mask layer to form a tiling target material map; A target model map of the target model is generated based on the scaled mask layer and the tiled target material map, and the target model is rendered based on the target model map to obtain a rendered target model.

2. The method according to claim 1, characterized in that Before obtaining the target material map corresponding to the model material required to form the target model from the material library storing a plurality of material maps, the method further comprises: Obtaining the material to be processed corresponding to the model material in the model material library; Mixing the materials to be processed to form a sub-map corresponding to the model material; The sub-maps are produced in a four-way continuous manner to form the target material map corresponding to the model material.

3. The method according to claim 2, characterized in that After the sub-maps are formed into the target material map corresponding to the model material in a four-way continuous production manner, the method further includes: Storing the target material map in the material library; Setting a storage identifier of the target material map in the material library; The step of obtaining, from a material library storing a plurality of material maps, a target material map corresponding to a model material required to form the target model comprises: Determine the target material map corresponding to the model material required to form the target model, and a storage identifier in the material library; The target material map is obtained in the material library according to the storage identifier of the target material map.

4. The method according to claim 1, characterized in that Before obtaining the scalable target model and the mask layer of the target model, the method further includes: Acquire the scalable target model, and determine the model material required to constitute the target model; Obtain the color channel corresponding to each of the model materials; According to the color channel corresponding to each model material and the distribution position of each model material on the target model, a mask layer corresponding to each model material is generated, wherein the mask layer indicates a weight value corresponding to each pixel.

5. The method according to claim 4, characterized in that The step of generating a reference model map of the target model according to the target material map and the mask layer comprises: Determining the corresponding relationship between the target material map corresponding to each model material and each mask layer according to the mask layer corresponding to each model material; Obtaining the weight value corresponding to each pixel in each of the mask layers; Based on the weight value corresponding to each pixel, each target material map is superimposed with the corresponding mask layer to form a superimposed material map corresponding to each target material map; The superimposed material maps are superimposed to form the reference model map of the target model.

6. The method according to claim 1, characterized in that The method further comprises: generating a normal map of the target model; The step of generating a reference model map of the target model according to the target material map and the mask layer comprises: Generate a mixed material map of the target model according to the target material map and the mask layer; The normal map is superimposed on the mixed material map to generate a reference model map of the target model.

7. The method according to claim 6, characterized in that The generating a normal map of the target model comprises: Reducing the number of faces of the target model to form a low-poly model of the target model; Perform UV unfolding on the low-poly model to generate a UV map corresponding to the low-poly model; Adding texture information of the low-poly surface to the UV map to form a texture map; Rendering the texture map on the surface of the low-poly model; A normal map of the target model is generated according to difference information between the target model and the low-poly model after rendering the texture map.

8. The method according to claim 1, characterized in that The material library includes different material matrices, wherein one of the material matrices includes a target material map of the same type, and obtaining the target material map corresponding to the model material required to form the target model from the material library storing multiple material maps includes: Determine the category of the target model and the application scenario of the target model in the target application; Determining the type of target material map of the target model according to the type of the target model and the application scenario; According to the type of the target material map, a target material matrix is ​​determined in the material library; and the target material map is searched in the target material matrix.

9. A model generation device, characterized in that: include: A layer acquisition unit, used for acquiring a scalable target model and a mask layer of the target model, wherein the mask layer is used for determining a distribution position of a model material constituting the target model on the target model, wherein the target model is a virtual model of a virtual object included in a game world, and the mask layer is generated according to a color channel corresponding to a model material required to constitute the target model and a distribution position of the model material on the target model; A texture acquisition unit, used to acquire a target material texture corresponding to a model material required to form the target model from a material library storing a plurality of material textures, wherein the target material texture is formed by continuously tiling at least one sub-texture in four directions; A generating unit, used for generating a reference model map of the target model according to the target material map and the mask layer; A scaling unit, used for determining a scaling degree of the target model, and scaling the mask layer according to the scaling degree to form a scaled mask layer; A determining unit, configured to determine a tiling degree of the target material map in the reference model map according to the scaled mask layer, to form a tiling target material map; A rendering unit is used to generate a target model map of the target model based on the scaled mask layer and the tiled target material map, and render the target model based on the target model map to obtain a rendered target model.

10. A computer device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps in the model generation method according to any one of claims 1 to 9 when executing the computer program.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the model generation method according to any one of claims 1 to 9 are implemented.