Map generation method and device, storage medium, server and client
By generating and integrating resource textures on the server side, the problem of Substance Painter being unable to handle textures without project files was solved, thus achieving efficient texture generation.
Patent Information
- Application Number
- CN202111645231.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2041-12-29
AI Technical Summary
In existing technologies, the Substance Painter tool only supports baking based on project files and cannot process resource textures without project files, resulting in low texture generation efficiency.
The server responds to the client's texture generation request, generates at least two resource textures based on model parameters and compositing information, and integrates them in the color channels to generate the target texture.
It enables a convenient texture compositing method, reduces the system's operational burden, and improves texture generation efficiency.
Smart Images

Figure CN114307156B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, and in particular, to a map generation method and device, a storage medium, a server and a client. BACKGROUND
[0002] PBR map is a shading rendering technology based on physical law simulation, which can achieve more accurate picture rendering by describing how light interacts with the surface of an object. In particular, in order to achieve realistic virtual animation production, multiple resource maps are superimposed, synthesized and processed, thereby forming maps with different effects for animation production in a game engine.
[0003] At present, the superposition, synthesis and other processing of multiple resource maps are usually performed by directly selecting multiple resource maps for baking in a 3D drawing software such as Substance Painter, thereby synthesizing and processing them into one map. However, the Substance Painter tool only supports baking based on engineering files, and cannot synthesize resource maps without engineering files. Moreover, baking with engineering files greatly increases the generation burden of resource maps, thereby reducing the generation efficiency of maps. SUMMARY
[0004] Therefore, the present application provides a map generation method and device, a storage medium, a server and a client, which mainly aims to solve the problem of low generation efficiency of existing maps.
[0005] According to one aspect of the present application, a map generation method is provided, comprising:
[0006] In response to a map generation request sent by a client, baking at least two resource maps according to model parameters in map baking requirement information carried in the map generation request;
[0007] Generating a target map corresponding to the resource maps according to synthesis information in the map baking requirement information;
[0008] Outputting the target map to the client to enable the client to perform model rendering based on the target map.
[0009] Further, the generating a target map corresponding to the resource maps according to synthesis information in the map baking requirement information comprises:
[0010] Determining a resource map to be processed in the at least two resource maps based on map objects in the synthesis information, the at least two resource maps including at least two of an ambient occlusion map, a roughness map, a metallic map and a specular map;
[0011] The resource map to be processed is configured in a color channel, and the color channel is integrated to obtain a target map.
[0012] Further, the configuration of the resource map to be processed in the color channel and the integrated processing of the color channel to obtain the target map comprises:
[0013] The matrix content of the selected area information of the at least two resource maps is sequentially stored in the at least two target color single channel matrices corresponding to the color channels, respectively.
[0014] Based on the matrix content stored in the at least two target color single channel matrices, a synthesis processing is performed to obtain a target map.
[0015] Further, the sequential storage of the matrix content of the selected area information in the at least two target color single channel matrices corresponding to the color channels comprises:
[0016] Obtain a map resource color synthesis matching relationship, and the map resource color synthesis matching relationship is used to represent the mapping relationship between different resource maps and different color single channels.
[0017] Based on the map resource color synthesis matching relationship, the matrix content of the selected area information corresponding to the at least two resource maps is sequentially stored in the matched target color single channel matrix.
[0018] Further, the generation of the target map corresponding to the resource map according to the synthesis information in the map baking requirement information comprises:
[0019] If the map object in the synthesis information is two resource maps, the selected area information of the two resource maps is sequentially configured in two target color channel matrices in a color channel, and the color channel comprises at least three color channel matrices.
[0020] Further, the baking of at least two resource maps according to the model parameters in the map generation request carried in the map baking requirement information comprises:
[0021] In response to a first map generation request and a second map generation request, a first model parameter in first map baking requirement information and a second model parameter in second map baking requirement information are baked respectively to obtain two first resource maps and two second resource maps.
[0022] The generation of the target map corresponding to the resource map according to the synthesis information in the map baking requirement information comprises:
[0023] In the case that the first resource map and the second resource map have the same map size, the matrix contents of the selected area information of the two first resource maps are sequentially stored in a first color single-channel matrix and a second color single-channel matrix in four color channels, and the matrix contents of the selected area information of the two second resource maps are sequentially stored in a third color single-channel matrix and a fourth color single-channel matrix in four color channels.
[0024] The first color single-channel matrix, the second color single-channel matrix, the third color single-channel matrix, and the fourth color single-channel matrix are subjected to a synthesis process based on the matrix contents, to obtain a target map.
[0025] According to an aspect of the present application, another method for generating a map is provided, comprising:
[0026] Obtaining model parameters and synthesis information corresponding to a map to be generated;
[0027] Sending a map generation request carrying map baking requirement information to a server, the map baking requirement information including the model parameters and the synthesis information;
[0028] Receiving a target map sent by the server, to perform model rendering based on the target map, wherein the target map is obtained by the server based on the map baking requirement information.
[0029] Further, after receiving the target map sent by the server, the method further comprises:
[0030] Receiving a map resource color synthesis matching relationship sent by the server, the map resource color synthesis matching relationship being used to represent a mapping relationship between different resource maps and different color single-channels, the resource maps including an ambient light shading map, a roughness map, a metalness map, and a specular map;
[0031] According to the map resource color synthesis matching relationship, at least two color channels corresponding to the target map are parsed;
[0032] The model is rendered according to data read from a color channel matrix of the color channels.
[0033] Further, the sending of the map generation request carrying the map baking requirement information to the server comprises:
[0034] When the model parameters include a first model parameter and a second model parameter, a first map generation request and a second map generation request are sent to the server, so that the server bakes two first resource maps and two second resource maps based on the first model parameter and the second model parameter.
[0035] The receiving of the target texture sent by the server includes:
[0036] Receive the target texture generated by the server when the texture sizes of the first resource texture and the second resource texture are the same.
[0037] According to another aspect of the present invention, a texture generation apparatus is provided, comprising:
[0038] The baking module is used to respond to the texture generation request sent by the client, and bake according to the model parameters in the texture baking requirement information carried in the texture generation request to obtain at least two resource textures.
[0039] The generation module is used to generate the target texture corresponding to the resource texture according to the compositing information in the texture baking requirement information;
[0040] The output module is used to output the target texture to the client so that the client can perform model rendering based on the target texture.
[0041] Furthermore, the generation module includes:
[0042] The determining unit is used to determine the resource textures to be processed from the at least two resource textures based on the texture objects in the composite information. The at least two resource textures include at least two textures from the ambient occlusion map, roughness map, metallic map, and specular map.
[0043] The configuration unit is used to configure the resource texture to be processed in the color channel and to integrate the color channel to obtain the target texture.
[0044] Furthermore, the configuration unit includes:
[0045] The storage subunit is used to sequentially store the matrix contents of the selection information of the at least two resource textures into at least two target color single-channel matrices corresponding to the color channels;
[0046] A compositing unit is used to perform compositing processing based on the matrix contents stored in the at least two target color single-channel matrices to obtain a target texture.
[0047] Furthermore, the storage subunit is specifically used to obtain the texture resource color synthesis matching relationship, which is used to characterize the mapping relationship between different resource textures and different color single channels; based on the texture resource color synthesis matching relationship, the matrix content of the selection area information corresponding to the at least two resource textures is stored in the matched target color single channel matrix in sequence.
[0048] Further, the generating module is specifically configured to, if the map object in the synthesis information is two resource maps, sequentially configure selection area information of the two resource maps into two target color channel matrices in color channels, the color channels including at least three color channel matrices.
[0049] Further,
[0050] The baking module is specifically configured to, in response to a first map generation request and a second map generation request, perform baking according to first model parameters in first map baking requirement information and second model parameters in second map baking requirement information respectively, to obtain two first resource maps and two second resource maps.
[0051] The generating module is configured to, if the map sizes of the first resource maps and the second resource maps are the same, sequentially store matrix contents of selection area information of the two first resource maps in a first color single channel matrix and a second color single channel matrix in four color channels, and sequentially store matrix contents of selection area information of the two second resource maps in a third color single channel matrix and a fourth color single channel matrix in the four color channels; and perform synthesis processing based on the matrix contents of the first color single channel matrix, the second color single channel matrix, the third color single channel matrix and the fourth color single channel matrix to obtain a target map.
[0052] According to another aspect of the present application, a map generation device is provided, comprising:
[0053] An obtaining module is configured to obtain model parameters corresponding to a map to be generated and synthesis information.
[0054] A sending module is configured to send a map generation request carrying map baking requirement information to a server, the map baking requirement information including the model parameters and the synthesis information.
[0055] A receiving module is configured to receive a target map sent by the server, to perform model rendering based on the target map, wherein the target map is obtained by the server based on the map baking requirement information.
[0056] Further, the device further comprises an analyzing module and a rendering module.
[0057] The receiving module is further configured to receive a map resource color synthesis matching relationship sent by the server, the map resource color synthesis matching relationship being used to represent a mapping relationship between different resource maps and different color single channels, the resource maps including an ambient light shading map, a roughness map, a metalness map and a specular map.
[0058] The analysis module is configured to analyze at least two color channels corresponding to the target map according to the color synthesis matching relationship of the map resource.
[0059] The rendering module is configured to render the model according to data read from the color channel matrix of the color channels.
[0060] Further, the sending module is specifically configured to send a first map generation request and a second map generation request to the server to make the server bake two first resource maps and two second resource maps based on the first model parameter and the second model parameter when the model parameter includes the first model parameter and the second model parameter.
[0061] The receiving module is specifically configured to receive a target map generated by the server when the map size of the first resource map and the second resource map is the same.
[0062] According to an aspect of the present application, there is provided a storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the above-described map generation method.
[0063] According to an aspect of the present application, there is provided a server, comprising a processor, a memory, a communication interface and a communication bus, the processor, the memory and the communication interface being in communication with each other through the communication bus.
[0064] The memory is configured to store at least one executable instruction, the executable instruction causing the processor to perform operations corresponding to the above-described map generation method.
[0065] According to an aspect of the present application, there is provided another storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the above-described map generation method.
[0066] According to an aspect of the present application, there is provided a client, comprising a processor, a memory, a communication interface and a communication bus, the processor, the memory and the communication interface being in communication with each other through the communication bus.
[0067] The memory is configured to store at least one executable instruction, the executable instruction causing the processor to perform operations corresponding to the above-described map generation method.
[0068] By means of the above technical solutions, the technical solutions provided by the embodiments of the present application have at least the following advantages:
[0069] The application provides a map generation method and device, a storage medium, a server and a client.
[0070] The above description is only a summary of the technical scheme of the application. In order to make the technical means of the application more clearly understood, the application can be implemented according to the content of the specification, and in order to make the above and other purposes, characteristics and advantages of the application more obvious and easy to understand, the following specific embodiments of the application are described. BRIEF DESCRIPTION OF DRAWINGS
[0071] Various other advantages and benefits will become apparent to those of ordinary skill in the art, upon reading the following detailed description of the preferred embodiments. The accompanying drawings are intended to depict only preferred embodiments of the application, and therefore should not be considered to narrow the scope of the present application. Additionally, like reference numerals are intended to denote like parts throughout the various figures. In the drawings:
[0072] Figure 1 A map generation method flow chart provided by an embodiment of the application is shown in the figure;
[0073] Figure 2 A synthesized target map schematic diagram provided by an embodiment of the application is shown in the figure;
[0074] Figure 3 Another map generation method flow chart provided by an embodiment of the application is shown in the figure;
[0075] Figure 4 Still another map generation method flow chart provided by an embodiment of the application is shown in the figure;
[0076] Figure 5 A resource map provided by an embodiment of the application is shown in the figure; Figure 1 A selected area information schematic diagram is shown in the figure;
[0077] Figure 6 A resource map provided by an embodiment of the application is shown in the figure; Figure 2 A selected area information schematic diagram is shown in the figure;
[0078] Figure 7 A synthesized target map schematic diagram provided by an embodiment of the application is shown in the figure;
[0079] Figure 8 Another flow chart of a method for generating a map is shown according to an embodiment of the present application;
[0080] Figure 9 A timing flow chart of a client and a server is shown according to an embodiment of the present application;
[0081] Figure 10 Another flow chart of a method for generating a map is shown according to an embodiment of the present application;
[0082] Figure 11 A block diagram of a map generation device is shown according to an embodiment of the present application;
[0083] Figure 12 Another block diagram of a map generation device is shown according to an embodiment of the present application;
[0084] Figure 13 A structural diagram of a server is shown according to an embodiment of the present application;
[0085] Figure 14 A structural diagram of a client is shown according to an embodiment of the present application. DETAILED DESCRIPTION
[0086] Exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be accurately conveyed to those skilled in the art.
[0087] The superposition and synthesis of multiple resource maps are usually processed by a 3D drawing software, such as SubstancePainter, which directly selects multiple resource maps for baking to synthesize and process into one map. However, the baking based on an engineering file is only supported in the SubstancePainter tool, and the resource maps without the engineering file cannot be synthesized and processed, and the baking with the engineering file greatly increases the processing burden of the resource maps, thereby reducing the generation efficiency of the maps. An embodiment of the present application provides a method for generating a map, as shown in Figure 1 The method comprises the following steps:
[0088] 101. In response to a map generation request sent by a client, baking according to model parameters in map baking requirement information carried in the map generation request to obtain at least two resource maps.
[0089] In the embodiment of the present application, the server as the current execution subject receives the map generation request sent by the client, and the map generation request carries map baking demand information, so as to bake according to the model parameters in the map baking demand information. At least two resource maps required to be baked by the map generation request sent by the client are used for rendering the model, and the application scenarios suitable for the model include but are not limited to the production of network games and the production of three-dimensional animation. At this time, the model can be generated in the server, and when the client needs to obtain the model, the client can directly request the server. The server can generate a model meeting the requirements of the client based on the model resources in the game engine, and then send the model to the client. The client sends a map generation request carrying map baking demand based on the model. The embodiment of the present application does not make specific limitation.
[0090] It should be noted that the resource map is an image resource that can simulate and render the content of the map based on physical laws to obtain a PBR (Physically-Based Rendering) map. Specifically, the resource map includes an ambient occlusion map, a roughness map, a metallic map, and a specular map. At this time, the specific resource map required to be baked can be determined according to the model parameters in the map baking demand information. The model parameters are used to represent the model content of the expected rendering map, so as to bake the matching resource map according to the model parameters. The embodiment of the present application does not make specific limitation. The ambient occlusion map is used to represent the map that represents how much ambient light a certain point on the surface can obtain. The roughness map is used to represent the map that defines the roughness of the material based on the use of black and white colors. The metallic map is used to represent the map that linearly combines different models between dielectric and metal and has a basic color of color incident mirror reflection. The specular map is used to represent the map that represents the amount of incident mirror reflection.
[0091] 102. Generating a target map corresponding to the resource map according to the synthesis information in the map baking demand information.
[0092] In the embodiment of the present application, in order to realize the synthesis of the map, the current server generates a target map corresponding to at least two resource maps according to the synthesis information in the map baking demand information. The synthesis information is used to represent the map required to be synthesized by the client, and at least two maps selected from the ambient occlusion map, the roughness map, the metallic map, and the specular map can be synthesized. For example, the synthesis information is to synthesize the ambient occlusion map and the roughness map, and then the ambient occlusion map and the roughness map are synthesized into a target map. Figure 2 As shown in the figure, three resource maps are synthesized to obtain a target map after synthesis.
[0093] In the embodiment of the present application, since the mapping content of each resource map is displayed by different color values in the color channel, when generating the target map by combining at least two resource maps according to the combination information, specifically, the single color channel corresponding to each resource map can be combined and stored in the multi-channel color system, so as to realize the combination of resource maps, which is not limited in the embodiment of the present application.
[0094] 103. outputting the target map to the client.
[0095] In the embodiment of the present application, when the generation of the target map is completed, the target map generated by combination is output to the client as the response content of the map generation request sent by the client, so that the client performs model rendering based on the target map. In addition, after receiving the target map, the client can perform model rendering based on the target map. At this time, in order to realize more diversified model rendering effect and improve the utilization rate of the map, the resource map baked in step 101 can also be output to the client at the same time, so as to perform baking model by selecting and using the map by the client.
[0096] In one embodiment of the present application, in order to further limit and illustrate, as shown in Figure 3 Step 102 of generating the target map corresponding to the resource map according to the combination information in the map baking requirement information includes:
[0097] 201. determining the resource map to be processed in the at least two resource maps based on the map object in the combination information;
[0098] 202. configuring the resource map to be processed in the color channel, and integrating the color channel to obtain a target map.
[0099] Since the combination information contains at least two resource maps required to be combined by the client, in order to accurately combine the resource maps, first, the resource map to be processed in the at least two resource maps is determined based on the map object in the combination information, so as to configure the determined resource map in the color channel and integrate the color channel to obtain a target map. Among them, the at least two resource maps include at least two of the environment light shielding map, the roughness map, the metal degree map and the highlight map. At this time, the map object is the object to be combined selected or preset by the client, for example, the map object in the combination information is: metal degree map + roughness map, which means that the resource maps to be processed are the metal degree map and the roughness map, which are not limited in the embodiment of the present application.
[0100] It should be noted that the color channel can be three color channels of a RGB three-channel color system, i.e., red (R), green (G), and blue (B) three color channels, and also include the red (R), green (G), and blue (B) three color channels and an alpha channel of transparency; or a color channel in other color modes. When the resource map is configured in the color channel, each resource map can be configured in the corresponding color channel, for example, the metal degree map is configured in the red (R) color channel, and the selected area information of the highlight map is configured in the green (G) color channel, and the embodiments of the present application are not limited specifically. In addition, the resource maps in each color channel are synthesized, i.e., the resource maps configured in each color channel are displayed and output at the same time, so that the target map after synthesis is obtained.
[0101] In an embodiment of the present application, in order to further limit and illustrate, as shown in Figure 4 step 202, the resource map to be processed is configured in the color channel, and the color channel is integrated to obtain the target map, including:
[0102] 301, the matrix content of the selected area information of the at least two resource maps is stored in the at least two target color single-channel matrixes corresponding to the color channels in sequence;
[0103] 302, based on the matrix content stored in the at least two target color single-channel matrixes, the synthesis processing is performed to obtain the target map.
[0104] In this embodiment of the invention, to more accurately synthesize resource textures and achieve convenient texture synthesis, the selection area information of each resource is first determined, thereby synthesizing the resource textures to obtain the target texture. The selection area information refers to the region of the resource texture to be processed; it can be the entire region of each resource texture or a partial region, allowing for flexible texture synthesis. When configuring the selection area information in the color channels, the matrix contents of the selection area information of at least two resource textures are sequentially stored in at least two target color single-channel matrices corresponding to the color channels, thereby performing the synthesis process. Specifically, since texture information is mainly stored in the RGB three-channel color space, i.e., a texture is obtained by superimposing a three-dimensional matrix, which is represented by superimposing the matrix content of red (R), green (G), and blue (B) in three dimensions, when configuring selection information in the color channel, the target color single-channel matrix to be configured for the selection information is first determined. That is, at least two are selected from the three-dimensional red (R), green (G), and blue (B) single-channel matrices as the target color single channel to be integrated. Then, the matrix content corresponding to each selection information is stored in the determined target color single-channel matrix. This process can be performed sequentially according to the selection information determined in at least two resource textures. In addition, in this embodiment of the invention, storing the matrix content of the selection information in the target color single-channel matrix can be achieved by directly copying the selection information of the resource texture into a single channel, so as to store the selection information in the single-channel matrix. For example, as shown in the figure below. Figure 5 The resource post shown Figure 1 The matrix content of the selected area information, and such as Figure 6 The matrix contents of the selection area information shown are stored in the B color single-channel matrix and the G color single-channel matrix, respectively, so that the data in each color single-channel matrix is displayed as a target texture, such as... Figure 7 As shown.
[0105] It should be noted that after storing the matrix content of the selection area information into at least two target color single-channel matrices corresponding to the color channels, the matrix content stored in the at least two target color single-channel matrices is synthesized. That is, each target color single-channel matrix can be output simultaneously to obtain a synthesized texture, which is used as the synthesized target texture.
[0106] In an embodiment of the present application, in order to further limit and illustrate, the step 301 sequentially stores the matrix content of the selected area information in the at least two target color single-channel matrices corresponding to the color channels respectively comprises: obtaining a map resource color synthesis matching relationship, the map resource color synthesis matching relationship being used to represent the mapping relationship between different resource maps and different color single-channels; and sequentially storing the matrix content of the selected area information corresponding to the at least two resource maps in the matched target color single-channel matrices based on the map resource color synthesis matching relationship.
[0107] In order to improve the operation efficiency of map synthesis, the map resource color synthesis matching relationship can be obtained in advance, which is used to represent the mapping relationship between different resource maps and different color single-channels, so as to limit the storage relationship between different selected area information and different target color single-channels. Among them, the map resource color synthesis matching relationship can include the storage limitation relationship between the ambient light shading map, the roughness map, the metal degree map, the highlight map and different color single-channels, for example, the ambient light shading resource map corresponds to the green (G) and blue (B) single-channels, that is, the selected area information obtained from the ambient light shading map can only be stored in the green (G) single-channel matrix or the blue (B) single-channel, thereby providing a convenient color synthesis basis for the synthesis of the map.
[0108] It should be noted that, since the map resource color synthesis matching relationship can be pre-configured in the current server, or can be bound based on the generation of different models, in order to realize the flexible synthesis of resource maps, the embodiment of the present application does not make specific limitation.
[0109] In an embodiment of the present application, in order to further limit and illustrate, the step 102 generates the target map corresponding to the resource map according to the synthesis information in the map baking demand information comprises: if the map object in the synthesis information is two resource maps, then the selected area information of the two resource maps is sequentially configured in two target color channel matrices in the color channels.
[0110] In an embodiment of the present application, in order to realize the multi-channel synthesis effect of the map, the color channels can include the red (R) channel, the green (G) channel, the blue (B) channel, and can also include the alpha channel, that is, the transparency channel, that is, the color channels include at least three color channel matrices, so that when the map object in the synthesis information is two resource maps, the selected area information of the two resource maps is sequentially configured in any two target color channel matrices in the at least three color channels.
[0111] For example, if the map object in the synthesis information is an ambient light shielding map + a highlight map, the selection information 1 of the ambient light shielding map and the selection information 2 of the highlight map can be sequentially configured in the color channel matrix of the G channel and the B channel, and of course, can also be configured in the color channel matrix of the R channel and the alpha channel, and the embodiment of the present application is not limited specifically.
[0112] In an embodiment of the present application, in order to further limit and illustrate, the step 101 is baked according to the model parameters in the map baking requirement information carried in the map generation request, to obtain at least two resource maps, including: in response to the first map generation request and the second map generation request, the first model parameters in the first map baking requirement information and the second model parameters in the second map baking requirement information are respectively baked to obtain two first resource maps and two second resource maps.
[0113] In the embodiment of the present application, in order to meet the baking requirements of the client for the map, and the color channel can include the red (R) channel, the green (G) channel, the blue (B) channel, and the alpha channel, the current server can receive two map generation requests sent by the client, that is, the client requests to generate two resource maps in each request, to synthesize the target map through the four resource maps corresponding to the two requests. Specifically, the current server responds to the first map generation request and the second map generation request, and performs resource map baking according to the first model parameters and the second model parameters carried respectively, to obtain two first resource maps and two second resource maps. At this time, the two first resource maps and the two second resource maps can be the same or different, and the embodiment of the present application is not limited specifically.
[0114] Correspondingly, in the application scenario that two resource maps are requested in each request of the above-mentioned client to synthesize the target map through the four resource maps corresponding to the two requests, the step 103 generates the target map corresponding to the resource map according to the synthesis information in the map baking requirement information, including:
[0115] In the case that the map size of the first resource map and the second resource map is the same, the matrix content of the selection information of the two first resource maps is sequentially stored in the first color single channel matrix and the second color single channel matrix in the four color channels, and the matrix content of the selection information of the two second resource maps is sequentially stored in the third color single channel matrix and the fourth color single channel matrix in the four color channels.
[0116] The target map is obtained by performing synthesis processing based on the matrix content of the first color single channel matrix, the second color single channel matrix, the third color single channel matrix, and the fourth color single channel matrix.
[0117] In the embodiment of the present application, since the color channel can include four single channels of red (R) channel, green (G) channel, blue (B) channel and alpha channel, in order to synthesize four resource maps, it is determined whether the map sizes are the same, if the map sizes of the two first resource maps and the two second resource maps are the same, the four resource maps can be all stored in a group of color channels, at this time, the four resource maps can be completely different four resource maps, for example, the four resource maps are environment light occlusion map, roughness map, metalness map and specular map respectively, the four resource maps can also be completely the same, or any two same, any three same resource maps, for example, the four resource maps are all environment light occlusion maps, or the four resource maps are one roughness map and three metalness maps, etc., which are not limited in the embodiment of the present application. In addition, in the process of storing the matrix content of the selected area information of the resource map in the color single channel matrix in sequence, specifically, the matrix content of the selected area information of the two first resource maps is stored in the first color single channel matrix and the second color single channel matrix in the four color channels in sequence, and the matrix content of the selected area information of the two second resource maps is stored in the third color single channel matrix and the fourth color single channel matrix in the four color channels in sequence, the storage correspondence relationship between the matrix content of the selected area information of each resource map and the color single channel matrix can be determined randomly, or can be stored according to the specified correspondence relationship between the specified resource map and the color single channel matrix, which is not limited in the embodiment of the present application. For example, the two first resource maps are environment light occlusion map and roughness map respectively, and the two second resource maps are metalness map and specular map respectively, then the environment light occlusion map, the roughness map, the metalness map and the specular map can be stored in the red (R) channel matrix, the green (G) channel matrix, the blue (B) channel matrix and the alpha channel matrix in sequence, so as to synthesize according to the four single channel matrices, that is, the contents of the four single channel matrices are displayed in one map to obtain the target map.
[0118] The embodiment of the present application provides a map generation method, compared with the prior art, the server responds to the map generation request sent by the client, bakes according to the model parameters in the map baking demand information carried in the map generation request, obtains at least two resource maps; generate the target map corresponding to the resource map according to the synthesis information in the map baking demand information; output the target map to the client, so that the client performs model rendering based on the target map, which realizes the synthesis of the map based on the server according to the client demand, improves the efficiency of matching different models for map rendering in the client, greatly reduces the system operation burden of map synthesis, thereby improving the efficiency of map generation.
[0119] The embodiment of the present application provides another generation method of a map, as shown in the following formula (1), which comprises the following steps: Figure 8
[0120] 401. Obtain model parameters corresponding to a map to be generated and synthesis information.
[0121] In the embodiment of the present application, the client as a current execution subject generates model parameters based on different model contents in the model rendering process, that is, the model parameters are used to represent the model content of the expected rendering map, and the synthesis information is used to represent the map required to be synthesized by the client, which can be at least two maps selected from the ambient occlusion map, the roughness map, the metalness map and the specular map.
[0122] It should be noted that the model expected to be rendered in the current client can be generated based on the demand in the current client in the server, so as to be fed back in the current client. The model parameters and the synthesis information are obtained by the current client during rendering, and are sent to the server for map generation.
[0123] 402. Send a map generation request carrying map baking demand information to the server.
[0124] In the embodiment of the present application, the map baking demand information comprises the model parameters and the synthesis information, so that the server bakes at least two resource maps based on the model parameters in the map baking demand information, and generates a target map based on the synthesis information.
[0125] Among them, the resource map is an image resource that can simulate the rendering content of the map based on physical laws to obtain a PBR (Physically-Based Rendering) map. Specifically, the resource map comprises an ambient occlusion map, a roughness map, a metalness map and a specular map. The ambient occlusion map is used to represent a map that represents how much ambient light a certain point on the surface can obtain. The roughness map is used to represent a map that defines the roughness of the material based on black and white colors. The metalness map is used to represent a map that linearly combines different models between dielectric and metal and has a basic color of color incident mirror reflection. The specular map is used to represent a map that represents the amount of incident mirror reflection.
[0126] 403. Receive the target map sent by the server.
[0127] In the embodiment of the present application, when the server synthesizes at least two resource maps based on the synthesis information in the map baking demand information to generate a target map, the target map is fed back to the current client. After the current client receives the target map, the model is rendered based on the synthesized target map, as shown in Figure 9 The target map is obtained by the server based on the map baking demand information. Specifically, since the map content of each resource map is displayed by different color values in the color channel, when at least two resource maps are generated into a target map according to the synthesis information, the single color channel corresponding to each resource map can be synthesized and stored in a multi-channel color system, so as to realize the synthesis of resource maps. The embodiment of the present application is not limited specifically.
[0128] In another embodiment of the present application, in order to further limit and illustrate, as shown in Figure 10 After step 401 receives the target map sent by the server, the method further includes:
[0129] 501. Receive the map resource color synthesis matching relationship sent by the server;
[0130] 502. Analyze at least two color channels corresponding to the target map according to the map resource color synthesis matching relationship;
[0131] 503. Render the model according to the data read from the color channel matrix of the color channel.
[0132] In the embodiment of the present application, in order to realize accurate model rendering in the current client, when the received target map is synthesized according to the map resource color synthesis matching relationship in the server, the map resource color synthesis matching relationship sent by the server is received to analyze at least two color channels corresponding to the target map during synthesis, so as to read data from the color channel matrix of the color channel to render the model. The map resource color synthesis matching relationship is used to represent the mapping relationship between different resource maps and different color single channels. The resource maps include ambient occlusion map, roughness map, metallicity map, and highlight map. The map resource color synthesis matching relationship can include the storage limitation relationship between the ambient occlusion map, the roughness map, the metallicity map, and the highlight map and different color single channels, for example, the ambient occlusion resource map corresponds to the G single channel, that is, the selected area information obtained from the ambient occlusion map can only be stored in the G single channel matrix, thereby providing a convenient color synthesis basis for map synthesis.
[0133] It should be noted that, since the mapping relationship between different resource maps and different color single channels is stored in the color synthesis matching relationship of the map resource, when the target map is received, the target map combined as the synthesized map is exhibited by the color values of each color channel. Therefore, at least two color channels in the target map are parsed based on the color synthesis matching relationship of the map resource, so as to read the color channel matrix content in the at least two color channels, that is, the content of the corresponding resource map is obtained to perform model rendering. For example, based on the color synthesis matching relationship of the map resource, it is parsed that the R channel in the target map corresponds to the high light map, and the data read from the R channel is rendered.
[0134] In another embodiment of the present application, in order to further limit and illustrate, step 402 sends a map generation request carrying map baking requirement information to the server: when the model parameters include first model parameters and second model parameters, a first map generation request and a second map generation request are sent to the server.
[0135] In order to meet the client's baking demand for the map, the current client can send two map generation requests to the server, respectively for different two models to generate and synthesize the corresponding target map, so that the server generates the target map based on the first model parameters and the second model parameters to obtain two first resource maps and two second resource maps. Among them, the server can store the matrix content of the selection information of the four resource maps in the R channel matrix, the G channel matrix, the B channel matrix and the alpha channel matrix in the four color channels in turn based on the first model parameters and the second model parameters to obtain two first resource maps and two second resource maps, so as to synthesize to obtain the target map.
[0136] Correspondingly, in order to further illustrate and refine, the 403 receives the target map sent by the server, including: receiving the target map generated by the server under the condition that the map size of the first resource map and the second resource map is the same.
[0137] Among them, the server will store the matrix content of the selection information of the two first resource maps in the first color single channel matrix and the second color single channel matrix in the four color channels in turn under the condition that the map size of the first resource map and the second resource map is the same, and store the matrix content of the selection information of the two second resource maps in the third color single channel matrix and the fourth color single channel matrix in the four color channels in turn, so as to take the matrix content of the four color single channels as the basis for synthesizing the target map.
[0138] In addition, since the client separately generates the first map generation request and the second map generation request for the first model and the second model respectively, the server is requested to generate the corresponding target map. At this time, since the target map contains four color single channels, in order to accurately render the two models, the server carries the color single channel stored in the first resource map generated according to the first model parameter and the color single channel stored in the second resource map generated according to the second model parameter in the target map sent after generating the target map, so that the client knows which color single channel in the target map stores the map content generated by the first model request and which color single channel stores the map content generated by the second model request, so as to read the matrix content of the color single channel according to the map resource color synthesis matching relationship and perform rendering on the first model and the second model. For example, the target map carries the G channel and the B channel of the ambient occlusion map and the roughness map generated according to the first model parameter, and the R channel and the alpha channel of the metalness map and the specular map generated according to the second model parameter. The client reads the ambient occlusion map in the G channel matrix, the roughness map in the B channel matrix, the metalness map in the R channel matrix, and the specular map in the alpha channel matrix based on the map resource color synthesis matching relationship, so as to render the first model based on the ambient occlusion map and the roughness map, and render the second model based on the metalness map and the specular map. The accuracy of model rendering is greatly improved, and the utilization rate of each color single channel is improved.
[0139] The embodiment of the present application provides another map generation method. Compared with the prior art, the embodiment of the present application acquires model parameters and synthesis information corresponding to a to-be-generated map by a client; sends a map generation request carrying map baking demand information to a server, wherein the map baking demand information includes the model parameters and the synthesis information; receives a target map sent by the server, and performs model rendering based on the target map, wherein the target map is obtained by baking and synthesizing the server based on the map baking demand information, so as to meet the purpose of requesting the server to perform map synthesis according to the demand of the client, improve the efficiency of model rendering in the client, greatly reduce the system operation burden of map synthesis, and improve the efficiency of map generation.
[0140] Further, as an implementation of the method shown in the above Figure 1 The embodiment of the present application provides a map generation device, as shown in the above Figure 11 The device comprises:
[0141] The baking module 61 is configured to perform baking according to the model parameters in the map baking demand information in the map generation request sent by the client, and obtain at least two resource maps.
[0142] The generating module 62 is configured to generate a target map corresponding to the resource map according to the synthesis information in the map baking requirement information.
[0143] The output module 63 is configured to output the target map to the client, so that the client performs model rendering based on the target map.
[0144] Further, the generating module comprises:
[0145] The determining unit is configured to determine a resource map to be processed in the at least two resource maps based on a map object in the synthesis information, the at least two resource maps comprising at least two of an ambient occlusion map, a roughness map, a metallic map, and a specular map.
[0146] The configuration unit is configured to configure the resource map to be processed in a color channel, and perform integration processing on the color channel to obtain a target map.
[0147] Further, the configuration unit comprises:
[0148] The storage sub-unit is configured to sequentially store matrix contents of selected area information of the at least two resource maps in at least two target color single-channel matrices corresponding to the color channels, respectively.
[0149] The synthesis unit is configured to perform synthesis processing based on the matrix contents stored in the at least two target color single-channel matrices to obtain a target map.
[0150] Further, the storage sub-unit is specifically configured to obtain a map resource color synthesis matching relationship, the map resource color synthesis matching relationship being used to represent a mapping relationship between different resource maps and different color single channels; and sequentially store matrix contents of selected area information corresponding to the at least two resource maps in matching target color single-channel matrices based on the map resource color synthesis matching relationship.
[0151] Further, the generating module is specifically configured to, if the map object in the synthesis information is two resource maps, sequentially configure selected area information of the two resource maps in two target color channel matrices in a color channel, the color channel comprising at least three color channel matrices.
[0152] Further,
[0153] The baking module is specifically configured to perform baking according to first model parameters in first baking requirement information of the first map generation request and second model parameters in second baking requirement information of the second map generation request, respectively, to obtain two first resource maps and two second resource maps.
[0154] The generation module is configured to, in a case where the map sizes of the first resource maps and the second resource maps are the same, store matrix contents of selected area information of the two first resource maps in a first color single-channel matrix and a second color single-channel matrix of four color channels in sequence, and store matrix contents of selected area information of the two second resource maps in a third color single-channel matrix and a fourth color single-channel matrix of the four color channels in sequence; and perform synthesis processing based on the matrix contents of the first color single-channel matrix, the second color single-channel matrix, the third color single-channel matrix, and the fourth color single-channel matrix to obtain a target map.
[0155] The embodiment of the present application provides a map generation device, compared with the prior art, the server of the present application responds to the map generation request sent by the client, performs baking according to the model parameters in the map baking requirement information carried in the map generation request, and obtains at least two resource maps; generates a target map corresponding to the resource map according to the synthesis information in the map baking requirement information; and outputs the target map to the client, so that the client performs model rendering based on the target map, realizes synthesis of the map based on the server according to the requirements of the client, improves the efficiency of matching different models for map rendering in the client, greatly reduces the system operation burden of map synthesis, and thus improves the efficiency of map generation.
[0156] Further, as an implementation of the method shown in the above Figure 8 The embodiment of the present application provides a map generation device, compared with the prior art, the server of the present application responds to the map generation request sent by the client, performs baking according to the model parameters in the map baking requirement information carried in the map generation request, and obtains at least two resource maps; generates a target map corresponding to the resource map according to the synthesis information in the map baking requirement information; and outputs the target map to the client, so that the client performs model rendering based on the target map, realizes synthesis of the map based on the server according to the requirements of the client, improves the efficiency of matching different models for map rendering in the client, greatly reduces the system operation burden of map synthesis, and thus improves the efficiency of map generation. Figure 12
[0157] The acquisition module 71 is configured to acquire model parameters and synthesis information corresponding to a to-be-generated map;
[0158] The sending module 72 is configured to send a map generation request carrying map baking requirement information to a server, the map baking requirement information including the model parameters and the synthesis information;
[0159] The receiving module 73 is configured to receive a target map sent by the server, and perform model rendering based on the target map, wherein the target map is obtained by the server based on the map baking requirement information.
[0160] Further, the apparatus further comprises: an analyzing module, a rendering module,
[0161] The receiving module is further configured to receive a map resource color synthesis matching relationship sent by the server, the map resource color synthesis matching relationship being used to represent a mapping relationship between different resource maps and different color single channels, and the resource maps including an ambient light shading map, a roughness map, a metalness map, and a specular map.
[0162] The analyzing module is configured to analyze at least two color channels corresponding to the target map according to the map resource color synthesis matching relationship.
[0163] The rendering module is configured to render the model according to data read from a color channel matrix of the color channels.
[0164] Further, the sending module is specifically configured to, when the model parameters include first model parameters and second model parameters, send a first map generation request and a second map generation request to the server, so that the server bakes two first resource maps and two second resource maps based on the first model parameters and the second model parameters.
[0165] The receiving module is specifically configured to receive a target map generated by the server when map sizes of the first resource maps and the second resource maps are the same.
[0166] Embodiments of the present application provide another map generation apparatus, compared with the prior art, the client of the present application obtains model parameters and synthesis information corresponding to a map to be generated, sends a map generation request carrying map baking requirement information to a server, the map baking requirement information includes the model parameters and the synthesis information, receives a target map sent by the server, and performs model rendering based on the target map, wherein the target map is obtained by baking and synthesizing the target map based on the map baking requirement information, the purpose of requesting the server to perform map synthesis according to the requirements of the client is met, the efficiency of model rendering in the client is improved, the system operation burden of map synthesis is greatly reduced, and thus the efficiency of map generation is improved.
[0167] According to an embodiment of the present application, a storage medium is provided, the storage medium stores at least one executable instruction, and the computer executable instruction can execute the map generation method in any method embodiment.
[0168] Figure 13 A structural schematic diagram of a server according to an embodiment of the present application is shown, and embodiments of the present application do not limit the specific implementation of the terminal.
[0169] AsFigure 13 As shown, the server can include a processor 702, a communications interface 704, a memory 706, and a communications bus 708.
[0170] The processor 702, the communications interface 704, and the memory 706 can communicate with each other through the communications bus 708.
[0171] The communications interface 704 is configured to communicate with network elements such as a client or other servers.
[0172] The processor 702 is configured to execute the program 710, and can execute the related steps in the above-described embodiment of the method for generating a map.
[0173] Specifically, the program 710 can include program code including computer operation instructions.
[0174] The processor 702 can be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present application. The one or more processors included in the terminal can be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0175] The memory 706 is configured to store the program 710. The memory 706 can include a high-speed RAM memory, and can also include a non-volatile memory such as at least one disk memory.
[0176] The program 710 can be specifically configured to cause the processor 702 to perform the following operations:
[0177] In response to a map generation request sent by the client, baking according to model parameters in map baking requirement information carried in the map generation request to obtain at least two resource maps;
[0178] Generating a target map corresponding to the resource map according to synthesis information in the map baking requirement information;
[0179] Outputting the target map to the client to enable the client to perform model rendering based on the target map.
[0180] According to an embodiment of the present application, another storage medium is provided, which stores at least one executable instruction, and the computer executable instruction can execute the generation method of the map in any method embodiment described above.
[0181] Figure 14 A structure diagram of a client according to an embodiment of the present application is shown, and the embodiment of the present application does not limit the specific implementation of the terminal.
[0182] As shown in Figure 14 , the client can include a processor 802, a communications interface 804, a memory 806, and a communications bus 808.
[0183] The processor 802, the communications interface 804, and the memory 806 can communicate with each other through the communications bus 808.
[0184] The communications interface 804 is configured to communicate with network elements such as clients or other servers.
[0185] The processor 802 is configured to execute the program 810, and specifically can execute the related steps in the generation method of the map.
[0186] Specifically, the program 810 can include program code, and the program code includes computer operation instructions.
[0187] The processor 802 can be a central processing unit CPU, or an application specific integrated circuit ASIC, or one or more integrated circuits configured to implement embodiments of the present application. The one or more processors included in the terminal can be the same type of processor, such as one or more CPUs; or can be different types of processors, such as one or more CPUs and one or more ASICs.
[0188] The memory 806 is configured to store the program 810. The memory 806 can include a high-speed RAM memory, and can also include a non-volatile memory such as at least one disk memory.
[0189] The program 810 can specifically be used to cause the processor 802 to perform the following operations:
[0190] Obtain model parameters and synthesis information corresponding to the map to be generated;
[0191] The service end is sent a map generation request carrying map baking demand information, and the map baking demand information includes the model parameter and the synthesis information;
[0192] The target map sent by the service end is received to perform model rendering based on the target map, wherein the target map is obtained by the service end based on the map baking demand information.
[0193] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be realized by general computing devices, which can be concentrated on a single computing device or distributed on a network composed of multiple computing devices, and optionally, they can be realized by program codes executable by the computing devices, so that they can be stored in storage devices and executed by the computing devices, and in some cases, the steps shown or described can be executed in different order, or they can be respectively manufactured into individual integrated circuit modules, or multiple modules or steps thereof can be manufactured into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
[0194] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for generating a map, characterized in that, The method comprises the following steps: in response to a client sending a map generation request, baking according to the model parameters in the map baking requirement information carried in the map generation request, obtaining at least two resource maps; generating target maps corresponding to the resource maps according to the synthesis information in the map baking requirement information; outputting the target maps to the client to enable the client to perform model rendering based on the target maps; the method of generating target maps corresponding to the resource maps according to the synthesis information in the map baking requirement information comprises: determining the resource maps to be processed in the at least two resource maps based on the map objects in the synthesis information, the at least two resource maps including at least two of the ambient light shading map, the roughness map, the metallicity map and the highlight map; storing the matrix contents of the selection area information of the at least two resource maps in the at least two target color single channel matrices corresponding to the color channels in sequence respectively; performing synthesis processing based on the matrix contents stored in the at least two target color single channel matrices to obtain target maps.
2. The method of claim 1, wherein, the method of storing the matrix contents of the selection area information in the at least two target color single channel matrices corresponding to the color channels in sequence respectively comprises: obtaining a map resource color synthesis matching relationship, which is used to represent the mapping relationship between different resource maps and different color single channels; storing the matrix contents of the selection area information corresponding to the at least two resource maps in the matching target color single channel matrices in sequence based on the map resource color synthesis matching relationship.
3. The method of claim 1, wherein, the method of generating target maps corresponding to the resource maps according to the synthesis information in the map baking requirement information comprises: if the map objects in the synthesis information are two resource maps, the selection area information of the two resource maps is arranged in two target color channel matrices in the color channels in sequence, and the color channels include at least three color channel matrices.
4. The method of claim 1, wherein, the method of baking according to the model parameters in the map baking requirement information carried in the map generation request to obtain at least two resource maps comprises: in response to a first map generation request and a second map generation request, baking according to first model parameters in first map baking requirement information and second model parameters in second map baking requirement information respectively to obtain two first resource maps and two second resource maps; the method of generating target maps corresponding to the resource maps according to the synthesis information in the map baking requirement information comprises: in the case that the map sizes of the first resource maps and the second resource maps are the same, the matrix contents of the selection area information of the two first resource maps are stored in a first color single channel matrix and a second color single channel matrix in four color channels in sequence, and the matrix contents of the selection area information of the two second resource maps are stored in a third color single channel matrix and a fourth color single channel matrix in four color channels in sequence; Perform a synthesis process based on the matrix content of the first color single-channel matrix, the second color single-channel matrix, the third color single-channel matrix, and the fourth color single-channel matrix to obtain a target map.
5. A method of generating a map, characterized by Comprise: Obtain model parameters and synthesis information corresponding to a to-be-generated map; Send a map generation request carrying map baking requirement information to the server, wherein the map baking requirement information comprises the model parameters and the synthesis information; Receive the target map sent by the server to perform model rendering based on the target map, wherein the target map is obtained by the server based on the map baking requirement information; Wherein, the server performs baking synthesis on the target map based on the map baking requirement information comprises: Determine at least two resource maps to be processed based on the map object in the synthesis information of the map baking requirement information, the at least two resource maps comprising at least two of the ambient occlusion map, the roughness map, the metalness map, and the specular map; Respectively store the matrix content of the selection information of the at least two resource maps in at least two target color single-channel matrices corresponding to color channels in sequence; Perform a synthesis process based on the matrix content stored in the at least two target color single-channel matrices to obtain a target map.
6. The method of claim 5, wherein, After receiving the target map sent by the server, the method further comprises: Receive the map resource color synthesis matching relationship sent by the server, wherein the map resource color synthesis matching relationship is used to represent the mapping relationship between different resource maps and different color single-channels, and the resource maps comprise the ambient occlusion map, the roughness map, the metalness map, and the specular map; Parse at least two color channels corresponding to the target map according to the map resource color synthesis matching relationship; Render the model according to the data read from the color channel matrix of the color channel.
7. The method of claim 6, wherein, The server sends a map generation request carrying map baking requirement information: When the model parameters comprise a first model parameter and a second model parameter, send a first map generation request and a second map generation request to the server to make the server bake two first resource maps and two second resource maps based on the first model parameter and the second model parameter; The method further comprises: Receive the target map generated by the server when the map sizes of the first resource map and the second resource map are the same.
8. An apparatus for generating a map, characterized by Comprise: A baking module, configured to perform baking according to the model parameters in the map baking requirement information carried in the map generation request sent by the client to obtain at least two resource maps; A generation module, configured to generate a target map corresponding to the resource map according to the synthesis information in the map baking requirement information; An output module, configured to output the target map to the client to make the client perform model rendering based on the target map; The generation module comprises: The determining unit is configured to determine a resource map to be processed in the at least two resource maps based on a mapping object in the synthesis information, the at least two resource maps including at least two of an ambient light shielding map, a roughness map, a metal degree map, and a highlight map. The configuration unit is configured to configure the resource map to be processed in a color channel and perform integration processing on the color channel to obtain a target map. The configuration unit includes: The storage sub-unit is configured to sequentially store matrix contents of the selected area information of the at least two resource maps in at least two target color single-channel matrixes corresponding to the color channels, respectively. The synthesis unit is configured to perform synthesis processing based on the matrix contents stored in the at least two target color single-channel matrixes to obtain a target map.
9. An apparatus for generating a map, characterized by includes: The acquisition module is configured to acquire model parameters and synthesis information corresponding to a to-be-generated map. The sending module is configured to send, to a server, a map generation request carrying map baking demand information, the map baking demand information including the model parameters and the synthesis information. The receiving module is configured to receive a target map sent by the server to perform model rendering based on the target map, wherein the target map is obtained by the server based on the map baking demand information. The server performs baking synthesis on the target map based on the map baking demand information, including: determining a resource map to be processed in at least two resource maps based on a mapping object in the synthesis information of the map baking demand information, the at least two resource maps including at least two of an ambient light shielding map, a roughness map, a metal degree map, and a highlight map; sequentially storing matrix contents of the selected area information of the at least two resource maps in at least two target color single-channel matrixes corresponding to the color channels, respectively; performing synthesis processing based on the matrix contents stored in the at least two target color single-channel matrixes to obtain a target map.
10. A storage medium, the storage medium storing at least one executable instruction, the executable instruction causing a processor to perform operations corresponding to the generation method of the map according to any one of claims 1-4.
11. A server end, comprising: A processor, a memory, a communication interface, and a communication bus, the processor, the memory, and the communication interface completing communication with each other through the communication bus; The memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the generation method of the map according to any one of claims 1-4.
12. A storage medium, the storage medium storing at least one executable instruction, the executable instruction causing a processor to perform operations corresponding to the generation method of the map according to any one of claims 5-7.
13. A client comprising: A processor, a memory, a communication interface, and a communication bus, the processor, the memory, and the communication interface completing communication with each other through the communication bus; The memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the generation method of the map according to any one of claims 5-7.
Citation Information
Patent Citations
Mapping processing method and device, storage medium and electronic device
CN110619599A
Dynamic object baking method and device, computer device and storage medium
CN111445567A
Method and device for generating model map
CN113034658A