Map superimposition processing method and device, storage medium and electronic device

CN115546370BActive Publication Date: 2026-09-08NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211157990.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-22
Publication Date
2026-09-08
Estimated Expiration
2042-09-22

AI Technical Summary

Technical Problem

[0008]本申请至少部分实施例提供了一种贴图叠加处理方法、装置、存储介质及电子装置,以至少解决相关技术提供的法线贴图叠加方法其操作繁琐、效率低且难以进行局部叠加的技术问题

Benefits of technology

[0013]In at least some embodiments of this application, a first texture, a second texture, and at least one third texture corresponding to the virtual 3D model are first obtained. The first texture is an initial normal map, the second texture is a material partition map, and at least one third texture is a normal map to be overlaid. At least one region to be overlaid is selected from the second texture, where the at least one region to be overlaid corresponds to a local or all texture region in the first texture that needs to be modified or enhanced. At least one fourth texture is obtained by overlaying the at least one region to be overlaid with the at least one third texture. The virtual 3D model is then rendered based on the first texture and at least one fourth texture. This achieves the goal of overlaying the initial normal map with the normal map based on the material partition map to render the virtual 3D model. This simplifies the normal map overlay process, improves the efficiency of normal map overlay, and enhances the controllability of local texture overlay. It also solves the technical problems of the cumbersome operation, low efficiency, and difficulty in local overlay of the normal map overlay method provided by related technologies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115546370B_ABST
    Figure CN115546370B_ABST
Patent Text Reader

Abstract

The application discloses a map superimposition processing method and device, a storage medium and an electronic device. The method comprises the following steps: acquiring a first map, a second map and at least one third map corresponding to a virtual three-dimensional model, wherein the first map is an initial normal map, the second map is a material partition map, and the at least one third map is a to-be-superimposed normal map; selecting at least one to-be-superimposed area from the second map, wherein the at least one to-be-superimposed area corresponds to a local or whole texture area to be modified or enhanced in the first map; performing normal texture superimposition on the at least one to-be-superimposed area by using the at least one third map to obtain at least one fourth map; and rendering the virtual three-dimensional model based on the first map and the at least one fourth map. The application solves the technical problems of the normal map superimposition method provided by the related art, such as complicated operation, low efficiency and difficulty in local superimposition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more specifically, to a method, apparatus, storage medium, and electronic device for texture overlay processing. Background Technology

[0002] Currently, in the design and production of virtual models, normal maps are typically used to control the physically based rendering (PBR) materials of the models. However, many virtual models in a virtual scene need to be reused or modified (such as refurbishing old model resources and customizing models). After being exported to the engine, the reused or modified virtual models may exhibit poor texture display (such as being unclear or indistinct).

[0003] In related technologies, there are two main approaches to modifying and enhancing the texture of virtual models.

[0004] The first method involves importing the virtual model into a texture painting software (such as Substance Painter, SP); importing the normal map of the virtual model into SP, and applying the normal map to multiple faces of the virtual model; importing the normal texture map to be overlaid or enhanced into the corresponding layer of the normal map in SP; creating a new fill layer and adding the normal texture map to be overlaid to this fill layer for adjustment; and then exporting the new normal map. However, the drawback of this first method is that it requires repeating the import and export process multiple times for each virtual model to be modified, making the process cumbersome and inefficient; it also makes it impossible to overlay multiple texture maps simultaneously, and it is difficult to make local modifications or enhancements to the normal map.

[0005] The second method involves importing an existing normal map and the normal map to be overlaid (or enhanced) into graphics processing software (such as Photoshop, PS); blending them using layer blending tools (overlay mode or multiply mode); and controlling the texture intensity in the normal map by adjusting the opacity between layers to obtain a new normal map. However, the drawbacks of this second method are: the effect of using Photoshop's layer blending tools to overlay normal maps is poor, easily covering and destroying the original normal map; it cannot overlay multiple texture maps simultaneously, cannot perform local overlay and local enhancement of normal maps, and has poor control over the texture intensity of the normal map.

[0006] There is currently no effective solution to the above problems.

[0007] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0008] This application provides at least some embodiments a texture overlay processing method, apparatus, storage medium, and electronic device to at least solve the technical problems of the cumbersome operation, low efficiency, and difficulty in local overlay of normal map overlay methods provided in the related art.

[0009] According to one embodiment of this application, a texture overlay processing method is provided, comprising: obtaining a first texture, a second texture, and at least one third texture corresponding to a virtual 3D model, wherein the first texture is an initial normal map, the second texture is a material partition map, and the at least one third texture is a normal map to be overlaid; selecting at least one region to be overlaid from the second texture, wherein the at least one region to be overlaid corresponds to a local or all texture region in the first texture to be modified or enhanced; performing normal texture overlay on the at least one region to be overlaid using the at least one third texture to obtain at least one fourth texture; and rendering the virtual 3D model based on the first texture and the at least one fourth texture.

[0010] According to one embodiment of this application, a texture overlay processing apparatus is also provided, comprising: an acquisition module, configured to acquire a first texture, a second texture, and at least one third texture corresponding to a virtual 3D model, wherein the first texture is an initial normal texture, the second texture is a material partitioning texture, and the at least one third texture is a normal texture to be overlaid; a selection module, configured to select at least one region to be overlaid from the second texture, wherein the at least one region to be overlaid corresponds to a local or all texture region in the first texture to be modified or enhanced; an overlay module, configured to overlay the at least one region to be overlaid with normal textures using the at least one third texture to obtain at least one fourth texture; and a rendering module, configured to render the virtual 3D model based on the first texture and the at least one fourth texture.

[0011] According to one embodiment of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the texture overlay processing method described in any of the above claims when running.

[0012] According to one embodiment of this application, an electronic device is also provided, including: a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the texture overlay processing method described in any of the above claims.

[0013] In at least some embodiments of this application, a first texture, a second texture, and at least one third texture corresponding to the virtual 3D model are first obtained. The first texture is an initial normal map, the second texture is a material partition map, and at least one third texture is a normal map to be overlaid. At least one region to be overlaid is selected from the second texture, where the at least one region to be overlaid corresponds to a local or all texture region in the first texture that needs to be modified or enhanced. At least one fourth texture is obtained by overlaying the at least one region to be overlaid with the at least one third texture. The virtual 3D model is then rendered based on the first texture and at least one fourth texture. This achieves the goal of overlaying the initial normal map with the normal map based on the material partition map to render the virtual 3D model. This simplifies the normal map overlay process, improves the efficiency of normal map overlay, and enhances the controllability of local texture overlay. It also solves the technical problems of the cumbersome operation, low efficiency, and difficulty in local overlay of the normal map overlay method provided by related technologies. Attached Figure Description

[0014] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0015] Figure 1 This is a hardware structure block diagram of a mobile terminal for a texture overlay processing method according to one embodiment of this application.

[0016] Figure 2 This is a flowchart of a texture overlay processing method according to one embodiment of this application;

[0017] Figure 3 This is a schematic diagram of a virtual three-dimensional model according to one embodiment of this application;

[0018] Figure 4 This is a schematic diagram of the surface structure of a virtual three-dimensional model according to one embodiment of this application;

[0019] Figure 5 This is a schematic diagram of an initial normal map according to one embodiment of this application;

[0020] Figure 6 This is a schematic diagram of a material partitioning texture according to one embodiment of this application;

[0021] Figure 7 This is a schematic diagram of a normal map to be overlaid according to one embodiment of this application;

[0022] Figure 8This is a schematic diagram of another normal map to be superimposed according to one embodiment of this application;

[0023] Figure 9 This is a schematic diagram of a modified normal map according to one embodiment of this application;

[0024] Figure 10 This is a schematic diagram of a modified virtual 3D model according to one embodiment of this application;

[0025] Figure 11 This is a schematic diagram of the surface structure of a modified virtual three-dimensional model according to one embodiment of this application;

[0026] Figure 12 This is a structural block diagram of a texture overlay processing apparatus according to one embodiment of this application;

[0027] Figure 13 This is a schematic diagram of an electronic device according to one embodiment of the present application. Detailed Implementation

[0028] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0029] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0030] It should be noted that, in the specification of this application, the word "for example" is used to mean "used as an example, illustration, or description." Any embodiment described as "for example" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. In the following description, details are set forth for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid unnecessarily obscuring the description of this application. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.

[0031] In the description of the embodiments of this application, some nouns or terms appearing shall be interpreted as follows:

[0032] Normal mapping: This refers to a texture that uses RGB color channels to mark the direction of the normal to each point on the surface of a virtual object. Normal mapping can display more detailed information about models with a higher polygon count.

[0033] Identifier maps (or ID maps): These are maps that use different colors to represent different virtual materials.

[0034] Currently, the PBR (Prep-Build) workflow is commonly used in the design and production of virtual models. However, a frequent issue arises during this process: the loss of high-poly models of the virtual or scene models leads to unclear textures when imported into the engine. In such cases, modifications to the normal map or texture overlays are necessary to optimize the model's texture display. When overlaying and enhancing the normal map of a virtual model, it may only be necessary to overlay multiple textures on multiple local areas of the normal map. In this case, the methods provided by relevant technologies require sequentially overlaying and controlling multiple textures on multiple local areas of the normal map, which is cumbersome and inefficient.

[0035] In one possible implementation of this application, the method of manually overlaying multiple textures sequentially based on SP or PS, which is commonly used in computer technology scenarios involving the overlay of normal maps of virtual models, still suffers from technical problems such as cumbersome overlay operations, low efficiency, and poor controllability of local texture overlay after practice and careful research. Therefore, the scenario applied to the embodiments of this application can be any scenario in the computer field involving the enhancement or modification of virtual model normal maps, and the target game type can be action, adventure, simulation, role-playing, and casual games, etc.

[0036] This application proposes a texture overlay processing method. It employs a procedural normal map blending tool in conjunction with the ID map of a virtual model to quickly overlay or modify the normal map to be modified in Photoshop. This simplifies the normal map overlay process, improves the efficiency of normal map overlay, and enhances the controllability of local texture overlay. It also solves the technical problems of cumbersome operation, low efficiency, and difficulty in local overlay of the normal map overlay methods provided by related technologies.

[0037] The methods described in this application can be executed in a terminal device (e.g., a mobile terminal, a computer terminal, or a similar computing device). Taking a mobile terminal as an example, the mobile terminal can be a smartphone, tablet computer, PDA, mobile internet device, PAD, game console, or other terminal device.

[0038] Figure 1 This is a hardware structure block diagram of a mobile terminal according to a texture overlay processing method based on one embodiment of this application. For example... Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 (Only one is shown) Processor 102, memory 104, transmission device 106, input / output device 108, and display device 110. Taking the application of texture overlay processing method to a video game scene through this mobile terminal as an example, processor 102 calls and runs the computer program stored in memory 104 to execute the texture overlay processing method. The virtual 3D model in the rendered video game scene is transmitted to input / output device 108 and / or display device 110 through transmission device 106, thereby providing the virtual 3D model to the player.

[0039] Still as Figure 1 As shown, the processor 102 may include, but is not limited to, processing devices such as: Central Processing Unit (CPU), Graphics Processing Unit (GPU), Digital Signal Processing (DSP) chip, Microcontroller Unit (MCU), Field Programmable Gate Array (FPGA), Neural-Network Processing Unit (NPU), Tensor Processing Unit (TPU), Artificial Intelligence (AI) type processor, etc.

[0040] Those skilled in the art will understand that Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0041] In some optional embodiments primarily focused on gaming scenarios, the aforementioned terminal device may also provide a human-computer interaction interface with a touch-sensitive surface. This interface can sense finger contact and / or gestures to interact with a graphical user interface (GUI). The human-computer interaction functions may include the following: creating web pages, drawing, word processing, creating electronic documents, playing games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music, and / or web browsing, etc. Executable instructions for performing the aforementioned human-computer interaction functions are configured / stored in one or more processor-executable computer program products or readable storage media.

[0042] The methods described in this application can also be executed on a server. The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Taking the texture overlay processing method applied to a video game scene via a video game server as an example, the video game server can render a virtual 3D model in the video game scene based on this texture overlay processing method and provide this virtual 3D model to the player (e.g., it can be rendered and displayed on the player's terminal screen, or provided to the player through holographic projection, etc.).

[0043] According to one embodiment of this application, an embodiment of a texture overlay processing method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0044] In one possible implementation, this application provides a texture overlay processing method running on the aforementioned mobile terminal. Figure 2 This is a flowchart of a texture overlay processing method according to one embodiment of this application, such as... Figure 2 As shown, the method includes the following steps:

[0045] Step S21: Obtain the first texture, the second texture, and at least one third texture corresponding to the virtual 3D model, wherein the first texture is the initial normal map, the second texture is the material partition map, and at least one third texture is the normal map to be overlaid.

[0046] The aforementioned virtual 3D models can be virtual character models, virtual item models, and virtual prop models in game scenes, etc.

[0047] The aforementioned game scene can be a virtual game scene involving the enhancement or modification of virtual model normal maps. The corresponding game type can be: action (e.g., first-person or third-person shooter games, 2D or 3D fighting games, war action games, and sports action games), adventure (e.g., exploration games, collection games, puzzle games), simulation (e.g., sandbox simulation games, simulation games, strategy simulation games, city-building simulation games, business simulation games), role-playing games, and casual (e.g., board games, casual competitive games, music rhythm games, dress-up games, etc.).

[0048] The first texture mentioned above can be the initial normal map of the virtual 3D model. This initial normal map is used to determine the original normal texture of the virtual 3D model.

[0049] The second texture map mentioned above can be a material partition map (equivalent to an ID map) of the aforementioned virtual 3D model. This material partition map can be used to identify different virtual materials of the aforementioned virtual 3D model by using different colors.

[0050] The third texture mentioned above can be the normal map to be overlaid on the virtual 3D model. For example, when modifying the initial normal map of the virtual 3D model, the third texture can be a normal map pre-specified by the technician to determine the modified normal texture.

[0051] The aforementioned at least one third texture can be multiple third textures. These multiple third textures can be normal textures to be superimposed corresponding to multiple local regions of the initial normal texture of the aforementioned virtual 3D model.

[0052] The specific implementation methods for obtaining the first texture, second texture, and at least one third texture corresponding to the virtual 3D model can be, but are not limited to, pre-drawn by art designers using graphics drawing software, or selected from a preset texture database.

[0053] Step S22: Select at least one region to be superimposed from the second texture map, wherein the at least one region to be superimposed corresponds to a local or all texture region in the first texture map that needs to be modified or enhanced.

[0054] It is easy to understand that at least one region to be superimposed from the second texture image can correspond to a texture region to be modified or enhanced in the first texture image (e.g., a region with insufficient texture clarity, a region with missing texture, or a region with texture modification requirements).

[0055] The area to be modified or enhanced in the first texture image can be the entire texture area of ​​the first texture image. In this case, all material partitions are selected from the second texture image as the area to be overlaid.

[0056] The area to be modified or enhanced in the first texture image can also be one or more local texture areas of the first texture image. In this case, one or more areas to be superimposed are selected from the second texture image, each corresponding to one or more local texture areas.

[0057] Specifically, the above-mentioned selection of at least one region to be overlaid from the second image may also include other methods and steps, which can be referred to in the further description of the embodiments of this application below, and will not be repeated here.

[0058] Step S23: Use at least one third texture to overlay normal textures onto at least one region to be overlaid, to obtain at least one fourth texture;

[0059] Using at least one of the above-mentioned normal maps to be superimposed (equivalent to the third map), normal textures can be superimposed on the at least one region to be superimposed, thereby obtaining the fourth map. The fourth map can be used to determine the superimposed normal texture within the at least one region to be superimposed.

[0060] It should be noted that the above-described process of using at least one third texture to overlay normal textures onto at least one region can be accomplished using graphics editing software (such as Photoshop).

[0061] Specifically, the above-mentioned method of using at least one third texture to overlay normal textures on at least one region to obtain at least one fourth texture may also include other methods and steps, which can be referred to in the further description of the embodiments of this application below, and will not be repeated here.

[0062] Step S24: Render the virtual 3D model based on the first texture and at least one fourth texture.

[0063] Based on the initial normal map (equivalent to the first map) and at least one fourth map obtained by overlaying normal textures on at least one region to be overlaid, the virtual 3D model in the game scene can be rendered. The model texture of the rendered virtual 3D model includes the modified normal texture corresponding to the at least one third map.

[0064] Specifically, the above-mentioned rendering of the virtual 3D model based on the first texture and at least one fourth texture may also include other methods and steps, which can be referred to in the further description of the embodiments of this application below, and will not be repeated here.

[0065] It is readily understood that, through the above embodiments of this application, for the needs of repeated modification, local modification, and local overlay of virtual model normal maps, the normal map overlay method, in conjunction with the ID map of the virtual model, allows for rapid local overlay or modification of the normal map to be modified within the graphic design software, avoiding multiple import and export processes of the model and textures. The above method can also simultaneously overlay multiple normal maps with a single click (both local and global overlays), and the texture intensity can be easily controlled for each local area of ​​the normal map to be overlaid. The overlay effect is good, the speed is fast, the controllability is strong, and the operation is simple and intuitive.

[0066] In at least some embodiments of this application, a first texture, a second texture, and at least one third texture corresponding to the virtual 3D model are first obtained. The first texture is an initial normal map, the second texture is a material partition map, and at least one third texture is a normal map to be overlaid. At least one region to be overlaid is selected from the second texture, where the at least one region to be overlaid corresponds to a local or all texture region in the first texture that needs to be modified or enhanced. At least one fourth texture is obtained by overlaying the at least one region to be overlaid with the at least one third texture. The virtual 3D model is then rendered based on the first texture and at least one fourth texture. This achieves the goal of overlaying the initial normal map with the normal map based on the material partition map to render the virtual 3D model. This simplifies the normal map overlay process, improves the efficiency of normal map overlay, and enhances the controllability of local texture overlay. It also solves the technical problems of the cumbersome operation, low efficiency, and difficulty in local overlay of the normal map overlay method provided by related technologies.

[0067] The methods described in the embodiments of this application will be further described below.

[0068] Optionally, in step S22, selecting at least one region to be overlaid from the second texture image may include the following steps:

[0069] Step S221: Obtain multiple different color regions of the second texture. These multiple different color regions are used to represent the different materials corresponding to the different components of the virtual 3D model.

[0070] Step S222: Select at least one color region from multiple different color regions;

[0071] Step S223: Determine at least one region to be overlaid based on at least one color region.

[0072] The material partition map (equivalent to a second map) of the aforementioned virtual 3D model can include multiple different color regions, which represent the different materials corresponding to the different components of the virtual 3D model. Therefore, after the structural design of the virtual 3D model is completed, technicians can control the rendering material of the virtual 3D model by adjusting the material map of a specified color region in the aforementioned material partition map, facilitating its application in real-world scenarios.

[0073] The specific implementation process of selecting at least one region to be superimposed from the second texture image can be as follows: select at least one color region from multiple different color regions of the second texture image, and determine the at least one region to be superimposed based on the at least one color region.

[0074] Figure 3 This is a schematic diagram of a virtual three-dimensional model according to one embodiment of this application. Figure 4 This is a schematic diagram of the surface structure of a virtual three-dimensional model according to one embodiment of this application, such as... Figure 3 and Figure 4 As shown, the virtual 3D model is a virtual cube model in the game scene. The virtual 3D model includes 6 faces: face 301, face 302, face 303, face 304, face 305 and face 306.

[0075] Figure 5 This is a schematic diagram of an initial normal map according to one embodiment of this application, such as... Figure 4 and Figure 5 As shown, in the above virtual cube model to be modified, the normal textures of every two faces are the same: the normal textures of face 301 and face 304 are the same, the normal textures of face 302 and face 305 are the same, and the normal textures of face 303 and face 306 are the same.

[0076] Figure 6 This is a schematic diagram of a material partitioning texture according to one embodiment of this application, such as... Figure 6 As shown, the material partitioning map can include 6 color regions, which correspond to the 6 faces of the virtual cube model mentioned above: color region 601 corresponds to face 301, color region 602 corresponds to face 302, color region 603 corresponds to face 303, color region 604 corresponds to face 304, color region 605 corresponds to face 305, and color region 606 corresponds to face 306.

[0077] Still as Figure 6As shown, the six color regions in the material partition map can correspond to different colors, with the same color indicating the same virtual material. Color regions 601 and 604 both correspond to color 1 (e.g., red), and correspondingly, faces 301 and 304 of the virtual cube model have the same virtual material. Color regions 602 and 605 both correspond to color 2 (e.g., green), and correspondingly, faces 302 and 305 of the virtual cube model have the same virtual material. Color regions 603 and 606 both correspond to color 3 (e.g., blue), and correspondingly, faces 303 and 306 of the virtual cube model have the same virtual material.

[0078] Still as Figure 6 As shown, when modifying the normal map of the virtual cube model, technicians can select color region 602 and color region 606 from the six color regions of the material partition map as target color regions (equivalent to at least one of the aforementioned color regions) according to scene requirements; further, the texture regions corresponding to the face 302 of color region 602 and the face 306 of color region 606 (in such a way as...) Figure 5 The region corresponding to the initial normal map shown is determined as the region to be overlaid.

[0079] Optionally, in step S23, performing normal texture overlay on at least one region to be overlaid using at least one third texture to obtain at least one fourth texture may include the following steps:

[0080] Step S231: From at least one third texture, select at least one third texture corresponding to each region to be overlaid in the region to be overlaid, and obtain the selection result;

[0081] Step S232: Perform normal texture overlay on at least one region to be overlaid according to the selection result to obtain at least one fourth texture.

[0082] The aforementioned at least one third texture can be at least one normal texture corresponding to the aforementioned virtual 3D model to be overlaid. From this at least one third texture, a corresponding third texture can be selected for each of the at least one overlay region. In particular, depending on the requirements of the application scenario, each of the at least one overlay region can select its own different third texture, and any two of the at least one overlay region can also select the same third texture.

[0083] The selection result described above can be the correspondence between each region to be overlaid and the selected third texture. Based on this selection result, normal texture overlay can be performed on at least one region to be overlaid to obtain at least one fourth texture.

[0084] Figure 7This is a schematic diagram of a normal map to be overlaid according to one embodiment of this application. Figure 8 This is a schematic diagram of another normal map to be superimposed according to one embodiment of this application, such as... Figure 7 and Figure 8 As shown, texture 701 and texture 801 are normal maps that are pre-made or pre-obtained by technicians for modifying the normal map of the aforementioned virtual cube model.

[0085] like Figure 6 , Figure 7 and Figure 8 As shown, when modifying the normal map of the virtual cube model, texture 701 can be selected as the texture to be superimposed for the area to be superimposed corresponding to color region 606, and texture 801 can be selected as the texture to be superimposed for the area to be superimposed corresponding to color region 602.

[0086] Optionally, in step S232, performing normal texture overlay on at least one region to be overlaid according to the selection result to obtain at least one fourth texture may include the following execution steps:

[0087] Step S2321: Add a mask to the third texture corresponding to each region to be overlaid according to the selection result, wherein the outline of the mask is determined by the outline of the corresponding region to be overlaid.

[0088] Step S2322: Determine the texture corresponding to the mask from the third texture corresponding to each region to be overlaid;

[0089] Step S2323: Overlay the texture corresponding to the mask with at least one region to be overlaid using normal texture to obtain at least one fourth texture.

[0090] The outline of the mask can be determined based on the outline of the areas to be overlaid. Following the selection of the third texture for each area to be overlaid, a mask is added to the third texture corresponding to each area. This mask is used to determine the area in the third texture used for texture overlay.

[0091] The texture corresponding to the mask is determined from the third texture corresponding to each of the above-mentioned areas to be superimposed. The texture corresponding to the mask can be a partial texture of the third texture.

[0092] By overlaying the texture corresponding to the mask with the at least one area to be overlaid using normal textures, at least one fourth texture can be obtained. The number of fourth textures corresponds to the number of times the normal texture is overlaid.

[0093] Still as Figure 6 and Figure 7 As shown, since texture 701 is selected as the texture to be overlaid for the area to be overlaid corresponding to color region 606, the outline of color region 606 is determined as follows: Figure 7 The outline 702 is shown, and a mask is added to the texture 701 according to the outline 702, thereby obtaining a local texture within the outline 702 in the texture 701 (denoted as the local texture). Figure 7 (This is equivalent to the fourth texture mentioned above).

[0094] Still as Figure 6 and Figure 8 As shown, since texture 801 is selected as the texture to be overlaid for the area to be overlaid corresponding to color region 602, the outline of color region 602 is determined as follows: Figure 8 The outline 802 is shown, and a mask is added to the texture 801 according to the outline 802, thereby obtaining a local texture within the outline 802 in the texture 801 (denoted as the local texture). Figure 8 (This is equivalent to the fourth texture mentioned above).

[0095] Optionally, in step S24, rendering the virtual 3D model based on the first texture and at least one fourth texture may include the following steps:

[0096] Step S241: Perform normal texture overlay on the first texture and at least one fourth texture to obtain the fifth texture;

[0097] Step S242: Render the virtual 3D model using the fifth texture.

[0098] By overlaying the initial normal map of the virtual 3D model and at least one of the fourth maps with normal textures, the fifth map can be obtained. This fifth map can be used to re-render the virtual 3D model to obtain the normal effect of the overlaid model.

[0099] It should be noted that in the above method steps of the embodiments of this application, the process of overlaying normal textures can be implemented by graphics design software (such as PS), and the process of rendering virtual 3D models can be implemented by a preset game engine (such as UE4, UE5, etc.).

[0100] Optionally, in step S241, performing normal texture overlay on the first texture and at least one fourth texture to obtain a fifth texture may include the following steps:

[0101] Step S2411: In response to a touch operation performed on multiple adjustment controls, adjust the normal intensity of the first texture and at least one fourth texture to preview the current overlay result in real time. The multiple adjustment controls are used to control the normal intensity of each texture in the first texture and at least one fourth texture respectively.

[0102] Step S2412: In response to the touch operation performed on the confirmation control, the current overlay result is determined as the fifth texture.

[0103] The aforementioned multiple adjustment controls can be multiple adjustment controls corresponding to the normal texture overlay process. These multiple adjustment controls are used to control the normal intensity of the texture during the normal texture overlay process. Specifically, each of these multiple adjustment controls is used to control the normal intensity of each texture in the first texture and the at least one fourth texture, respectively. For example, when there are three fourth textures, the number of the multiple adjustment controls can be four, where one adjustment control is used to control the normal intensity of the first texture, and the other three adjustment controls are used to control the normal intensity of the three fourth textures, respectively.

[0104] When adjusting the normal intensity of the first texture and at least one fourth texture using the aforementioned adjustment controls, the current normal texture overlay result can be previewed in real time based on the currently adjusted normal intensity value. The aforementioned confirmation control is used to confirm the currently adjusted normal intensity value. When a touch operation is detected on the confirmation space, the current overlay result is determined as the fifth texture. This fifth texture can be used to re-render the virtual 3D model to obtain the overlaid model normal effect.

[0105] It should be noted that the touch operations performed on the multiple adjustment and confirmation controls described above can all be performed by the user touching the display screen of the terminal device with their finger and controlling the operation of the terminal device. Touch operations can include single-point touch and multi-point touch, where the touch operation of each touch point can include clicking, long pressing, hard pressing, swiping, etc. The above touch operations can also be implemented through input devices such as a mouse and keyboard.

[0106] Figure 9 This is a schematic diagram of a modified normal map according to one embodiment of this application, such as... Figure 9 As shown, for the three normal maps (including...) Figure 5 The initial normal map of the virtual cube model shown, and the aforementioned local texture Figure 7 And the above partial stickers Figure 8 When performing normal texture overlay, the normal intensity of the three normal maps can be controlled through the control bar corresponding to the overlay process (for example, the operation bar in graphic design software).

[0107] Still as Figure 9 As shown, by dragging the control handle corresponding to intensity 1 (equivalent to one of the aforementioned adjustment controls) via touch gestures, the normal intensity of the initial normal map can be controlled to be 100%; by dragging the control handle corresponding to intensity 2 (equivalent to one of the aforementioned adjustment controls) via touch gestures, the normal intensity of the local normal map can be controlled to be 100%. Figure 7 The normal intensity is 100%; by dragging the control handle corresponding to intensity 3 (equivalent to one of the aforementioned adjustment controls) via touch gestures, the above-mentioned local patch can be controlled. Figure 8The normal intensity is 100%.

[0108] Still as Figure 9 As shown, the display area of ​​normal map 901 can preview the normal texture overlay result in real time according to the intensity value currently adjusted by the three control handles in the control bar. When the user clicks the confirmation button in the control bar (equivalent to the confirmation control mentioned above), the currently previewed normal map is exported to obtain normal map 901 (equivalent to the fifth map mentioned above) for re-rendering the virtual cube model.

[0109] Still as Figure 6 and Figure 9 As shown, compared to the initial normal map, the above-mentioned initial normal map and the above-mentioned local map... Figure 7 And the above partial stickers Figure 8 In the normal map 901 obtained after normal texture overlay, the normal texture in the area to be overlaid corresponding to color region 602 is modified to a local texture. Figure 8 The normal texture of the area to be overlaid, corresponding to color region 606, was modified to a local texture. Figure 7 The normal texture allows for local modification of the normal map.

[0110] Figure 10 This is a schematic diagram of a modified virtual 3D model according to one embodiment of this application. Figure 11 This is a schematic diagram of the surface structure of a modified virtual 3D model according to one embodiment of this application, such as... Figure 10 and Figure 11 As shown, by rendering the virtual cube model using the aforementioned normal map 901, a modified virtual cube model can be obtained. Compared to the original virtual cube model, the normal textures of face 1102 (corresponding to face 302 before modification) and face 1106 (corresponding to face 306 before modification) in the modified virtual cube model are modified to their respective specified textures.

[0111] Optionally, in the above texture overlay processing method: the fifth texture and the first texture are stored in different storage locations to output the first rendering result or the second rendering result separately, or the comparison result between the first rendering result and the second rendering result is output synchronously, wherein the first rendering result is the rendering result of the virtual 3D model by the first texture, and the second rendering result is the rendering result of the virtual 3D model by the fifth texture.

[0112] Taking the modification and re-rendering of the normal map of the virtual cube model as an example, the normal map 901 generated by the above normal texture overlay (equivalent to the fifth map above) and the above initial normal map (equivalent to the first map above) can be stored separately. That is to say, when modifying the normal map corresponding to the model, the initial normal map will not be modified, but a new normal map will be regenerated.

[0113] Based on the above normal map 901 and the initial normal map, the virtual cube model before modification can be output separately using the initial normal map (e.g., Figure 3 The virtual cube model shown is equivalent to the first rendering result mentioned above. Alternatively, the modified virtual cube model can be output separately using normal map 901 (e.g., Figure 10 The virtual cube model shown is equivalent to the second rendering result mentioned above. It can also use normal map 901 and the initial normal map to output the virtual cube model before and after modification to display the comparison results.

[0114] In summary, in the embodiments of this application, for the needs of repeated modification, local modification, and local overlay of virtual model normal maps, the normal map overlay method can be used in conjunction with the ID map of the virtual model to quickly overlay or modify the normal map to be modified in the graphic design software, avoiding multiple import and export processes of the model and the map.

[0115] The method described in this application embodiment can also simultaneously overlay multiple normal maps with one click (it can be local overlay or global overlay), and perform individual normal intensity control on each local area of ​​the normal map to be overlaid. The overlay effect is good, the speed is fast, the controllability is strong, and the operation is simple and intuitive.

[0116] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as a magnetic disk or optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0117] This embodiment also provides a texture overlay processing apparatus for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0118] Figure 12 This is a structural block diagram of a texture overlay processing apparatus according to one embodiment of this application, such as... Figure 12 As shown, the device includes: an acquisition module 1201, used to acquire a first texture, a second texture, and at least one third texture corresponding to a virtual 3D model, wherein the first texture is an initial normal map, the second texture is a material partitioning map, and at least one third texture is a normal map to be overlaid; a selection module 1202, used to select at least one region to be overlaid from the second texture, wherein the at least one region to be overlaid corresponds to a local or all texture region in the first texture to be modified or enhanced; an overlay module 1203, used to overlay the at least one region to be overlaid with normal textures using at least one third texture to obtain at least one fourth texture; and a rendering module 1204, used to render the virtual 3D model based on the first texture and at least one fourth texture.

[0119] Optionally, the selection module 1202 is further configured to: obtain multiple different color regions of the second texture, wherein the multiple different color regions are used to represent the different materials corresponding to the different components of the virtual 3D model; select at least one color region from the multiple different color regions; and determine at least one region to be superimposed based on the at least one color region.

[0120] Optionally, the overlay module 1203 is further configured to: select a third texture corresponding to each region to be overlaid from at least one third texture, and obtain a selection result; and perform normal texture overlay on at least one region to be overlaid according to the selection result to obtain at least one fourth texture.

[0121] Optionally, the overlay module 1203 is further configured to: add a mask to the third texture corresponding to each region to be overlaid according to the selection result, wherein the outline of the mask is determined by the outline of the corresponding region to be overlaid; determine the texture corresponding to the mask from the third texture corresponding to each region to be overlaid; and overlay the texture corresponding to the mask with the normal texture of at least one region to be overlaid to obtain at least one fourth texture.

[0122] Optionally, the rendering module 1204 is further configured to: overlay normal textures on the first texture and at least one fourth texture to obtain a fifth texture; and render the virtual 3D model using the fifth texture.

[0123] Optionally, the rendering module 1204 is further configured to: respond to a touch operation performed on a plurality of adjustment controls, adjust the normal intensity of the first texture and at least one fourth texture to preview the current overlay result in real time, wherein the plurality of adjustment controls are used to control the normal intensity of each texture in the first texture and at least one fourth texture respectively; and respond to a touch operation performed on a confirmation control to determine the current overlay result as the fifth texture.

[0124] Optionally, in the above-mentioned texture overlay processing device, the fifth texture and the first texture are stored in different storage locations to output the first rendering result or the second rendering result separately, or to output the comparison result between the first rendering result and the second rendering result simultaneously. The first rendering result is the rendering result of the virtual three-dimensional model by the first texture, and the second rendering result is the rendering result of the virtual three-dimensional model by the fifth texture.

[0125] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0126] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.

[0127] Optionally, in this embodiment, the computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0128] Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.

[0129] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0130] S1, obtain the first texture, the second texture, and at least one third texture corresponding to the virtual 3D model, wherein the first texture is the initial normal map, the second texture is the material partition map, and at least one third texture is the normal map to be overlaid;

[0131] S2, select at least one region to be superimposed from the second texture map, wherein the at least one region to be superimposed corresponds to a local or all texture region in the first texture map that needs to be modified or enhanced;

[0132] S3, use at least one third texture to overlay normal textures on at least one area to be overlaid to obtain at least one fourth texture;

[0133] S4 renders the virtual 3D model based on the first texture and at least one fourth texture.

[0134] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: obtaining multiple different color regions of a second texture, the multiple different color regions being used to represent different materials corresponding to different components of a virtual 3D model; selecting at least one color region from the multiple different color regions; and determining at least one region to be overlaid based on the at least one color region.

[0135] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: selecting a third texture corresponding to each of at least one region to be overlaid from at least one third texture, and obtaining a selection result; performing normal texture overlay on at least one region to be overlaid according to the selection result, and obtaining at least one fourth texture.

[0136] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: adding a mask to a third texture corresponding to each region to be overlaid according to the selection result, wherein the outline of the mask is determined by the outline of the corresponding region to be overlaid; determining the texture corresponding to the mask from the third texture corresponding to each region to be overlaid; and overlaying the texture corresponding to the mask with a normal texture of at least one region to be overlaid to obtain at least one fourth texture.

[0137] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: overlaying normal textures on a first texture and at least one fourth texture to obtain a fifth texture; and rendering a virtual 3D model using the fifth texture.

[0138] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: adjusting the normal intensity of a first texture and at least one fourth texture in response to a touch operation performed on a plurality of adjustment controls to preview the current overlay result in real time, wherein the plurality of adjustment controls are used to control the normal intensity of each texture in the first texture and at least one fourth texture respectively; and determining the current overlay result as a fifth texture in response to a touch operation performed on a confirmation control.

[0139] Optionally, the aforementioned computer-readable storage medium is further configured to store program code for performing the following steps: the fifth texture and the first texture are stored in different storage locations to output the first rendering result or the second rendering result separately, or to output the comparison result between the first rendering result and the second rendering result synchronously, wherein the first rendering result is the rendering result of the virtual 3D model by the first texture, and the second rendering result is the rendering result of the virtual 3D model by the fifth texture.

[0140] In the computer-readable storage medium of the above embodiments, a technical solution for implementing a texture overlay processing method is provided. First, a first texture, a second texture, and at least one third texture corresponding to a virtual 3D model are obtained. The first texture is an initial normal map, the second texture is a material partition map, and the at least one third texture is a normal map to be overlaid. At least one region to be overlaid is selected from the second texture, where the at least one region corresponds to a local or all texture region in the first texture that needs to be modified or enhanced. At least one fourth texture is obtained by overlaying the at least one region using the at least one third texture with normal texture overlay. The virtual 3D model is then rendered based on the first texture and the at least one fourth texture. This achieves the goal of overlaying the initial normal map with the normal map based on the material partition map to render the virtual 3D model. This simplifies the normal map overlay process, improves the efficiency of normal map overlay, and enhances the controllability of local texture overlay. Furthermore, it solves the technical problems of cumbersome operation, low efficiency, and difficulty in local overlay of the normal map overlay methods provided by related technologies.

[0141] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this application.

[0142] In exemplary embodiments of this application, a computer-readable storage medium stores a program product capable of implementing the methods described above in this embodiment. In some possible implementations, various aspects of the embodiments of this application may also be implemented as a program product including program code, which, when the program product is run on a terminal device, causes the terminal device to perform the steps described in the "Exemplary Methods" section of this embodiment according to various exemplary embodiments of this application.

[0143] The program product for implementing the above-described method according to embodiments of this application may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the embodiments of this application is not limited thereto. In the embodiments of this application, the computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0144] The aforementioned program product may take the form of any combination of one or more computer-readable media. Such computer-readable storage media may be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples (not exhaustive) of computer-readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0145] It should be noted that the program code contained on the computer-readable storage medium can be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0146] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0147] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0148] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0149] S1, obtain the first texture, the second texture, and at least one third texture corresponding to the virtual 3D model, wherein the first texture is the initial normal map, the second texture is the material partition map, and at least one third texture is the normal map to be overlaid;

[0150] S2, select at least one region to be superimposed from the second texture map, wherein the at least one region to be superimposed corresponds to a local or all texture region in the first texture map that needs to be modified or enhanced;

[0151] S3, use at least one third texture to overlay normal textures on at least one area to be overlaid to obtain at least one fourth texture;

[0152] S4 renders the virtual 3D model based on the first texture and at least one fourth texture.

[0153] Optionally, the processor may also be configured to perform the following steps via a computer program: acquiring multiple different color regions of the second texture, wherein the multiple different color regions are used to represent the different materials corresponding to the different components of the virtual 3D model; selecting at least one color region from the multiple different color regions; and determining at least one region to be overlaid based on the at least one color region.

[0154] Optionally, the processor may also be configured to perform the following steps via a computer program: selecting a third texture corresponding to each region to be overlaid from at least one third texture, and obtaining a selection result; performing normal texture overlay on at least one region to be overlaid according to the selection result, and obtaining at least one fourth texture.

[0155] Optionally, the processor may also be configured to perform the following steps via a computer program: adding a mask to the third texture corresponding to each region to be overlaid according to the selection result, wherein the outline of the mask is determined by the outline of the corresponding region to be overlaid; determining the texture corresponding to the mask from the third texture corresponding to each region to be overlaid; and overlaying the texture corresponding to the mask with the normal texture of at least one region to be overlaid to obtain at least one fourth texture.

[0156] Optionally, the processor may also be configured to perform the following steps via a computer program: overlaying normal textures on a first texture and at least one fourth texture to obtain a fifth texture; and rendering a virtual 3D model using the fifth texture.

[0157] Optionally, the processor may also be configured to perform the following steps via a computer program: in response to a touch operation performed on a plurality of adjustment controls, adjust the normal intensity of a first texture and at least one fourth texture to preview the current overlay result in real time, wherein the plurality of adjustment controls are used to control the normal intensity of each texture in the first texture and at least one fourth texture respectively; in response to a touch operation performed on a confirmation control, determine the current overlay result as a fifth texture.

[0158] Optionally, the processor may also be configured to perform the following steps via a computer program: the fifth texture and the first texture are stored in different storage locations to output the first rendering result or the second rendering result separately, or to output the comparison result between the first rendering result and the second rendering result synchronously, wherein the first rendering result is the rendering result of the virtual 3D model by the first texture, and the second rendering result is the rendering result of the virtual 3D model by the fifth texture.

[0159] In the electronic device described in the above embodiments, a technical solution for implementing a texture overlay processing method is provided. First, a first texture, a second texture, and at least one third texture corresponding to a virtual 3D model are obtained. The first texture is an initial normal map, the second texture is a material partition map, and the at least one third texture is a normal map to be overlaid. At least one region to be overlaid is selected from the second texture, where the at least one region corresponds to a local or all texture region in the first texture that needs to be modified or enhanced. At least one fourth texture is obtained by overlaying the at least one region using the at least one third texture with normal textures. The virtual 3D model is then rendered based on the first texture and the at least one fourth texture. This achieves the goal of overlaying the initial normal map with the normal map based on the material partition map to render the virtual 3D model. This simplifies the normal map overlay process, improves the efficiency of normal map overlay, and enhances the controllability of local texture overlay. Furthermore, it solves the technical problems of cumbersome operation, low efficiency, and difficulty in local overlay in the normal map overlay methods provided by related technologies.

[0160] Figure 13 This is a schematic diagram of an electronic device according to an embodiment of this application. Figure 13 As shown, the electronic device 1300 is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0161] like Figure 13 As shown, the electronic device 1300 is presented in the form of a general-purpose computing device. The components of the electronic device 1300 may include, but are not limited to: at least one processor 1310, at least one memory 1320, a bus 1330 connecting different system components (including memory 1320 and processor 1310), and a display 1340.

[0162] The memory 1320 stores program code that can be executed by the processor 1310, causing the processor 1310 to perform the steps described in the method section of the embodiments of this application according to various exemplary implementations of this application.

[0163] The memory 1320 may include a readable medium in the form of volatile memory cells, such as random access memory (RAM) 13201 and / or cache memory 13202, and may further include read-only memory (ROM) 13203, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.

[0164] In some instances, memory 1320 may also include programs / utilities 13204 having a set (at least one) of program modules 13205, including but not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Memory 1320 may further include memory remotely located relative to processor 1310, which can be connected to electronic device 1300 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0165] Bus 1330 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, peripheral bus, graphics acceleration port, processor 1310, or a local bus using any of the various bus structures.

[0166] Display 1340 may be, for example, a touch-screen liquid crystal display (LCD) that allows a user to interact with the user interface of electronic device 1300.

[0167] Optionally, the electronic device 1300 can also communicate with one or more external devices 1400 (e.g., keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 1300, and / or any device that enables the electronic device 1300 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via the input / output (I / O) interface 1350. Furthermore, the electronic device 1300 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via the network adapter 1360. Figure 13 As shown, network adapter 1360 communicates with other modules of electronic device 1300 via bus 1330. It should be understood that, although... Figure 13As not shown, other hardware and / or software modules may be used in conjunction with electronic device 1300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, Redundant Arrays of Independent Disks (RAID) systems, tape drives, and data backup storage systems.

[0168] The aforementioned electronic device 1300 may further include: a keyboard, a cursor control device (such as a mouse), an input / output interface (I / O interface), a network interface, a power supply, and / or a camera.

[0169] Those skilled in the art will understand that Figure 13 The structure shown is for illustrative purposes only and does not limit the structure of the electronic device described above. For example, the electronic device 1300 may also include components that are more... Figure 13 The more or fewer components shown, or having the same Figure 13 Different configurations are shown. The memory 1320 can be used to store computer programs and corresponding data, such as the computer program and corresponding data corresponding to the texture overlay processing method in this embodiment. The processor 1310 executes various functional applications and data processing by running the computer program stored in the memory 1320, thereby implementing the aforementioned texture overlay processing method.

[0170] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0171] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0172] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0173] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0174] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0175] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0176] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for texture overlay processing, characterized in that, include: Obtain a first texture, a second texture, and at least one third texture corresponding to the virtual 3D model, wherein the first texture is an initial normal map, the second texture is a material partition map, and the at least one third texture is a pre-specified normal map to be overlaid for determining the modified normal texture; Obtain multiple different color regions of the second texture, which are used to represent the different materials corresponding to the different components of the virtual 3D model; Select at least one color region from the plurality of different color regions; At least one region to be overlaid is determined based on the at least one color region, wherein the at least one region to be overlaid corresponds to a local or all texture region in the first texture image that needs to be modified or enhanced. The at least one third texture is used to overlay normal textures onto the at least one region to be overlaid to obtain at least one fourth texture, wherein the at least one fourth texture is used to determine the overlaid normal texture within the at least one region to be overlaid. The virtual 3D model is rendered based on the first texture and the at least one fourth texture.

2. The texture overlay processing method according to claim 1, characterized in that, The at least one fourth texture is obtained by overlaying normal textures onto the at least one region to be overlaid using the at least one third texture, including: From the at least one third texture, select the third texture corresponding to each of the at least one areas to be overlaid in the at least one area to be overlaid, and obtain the selection result; Based on the selection result, normal textures are overlaid on the at least one region to be overlaid to obtain the at least one fourth texture.

3. The texture overlay processing method according to claim 2, characterized in that, Based on the selection result, normal texture overlay is performed on the at least one region to be overlaid to obtain the at least one fourth texture, including: According to the selection results, a mask is added to the third texture corresponding to each region to be overlaid, wherein the outline of the mask is determined by the outline of the corresponding region to be overlaid; The texture corresponding to the mask is determined from the third texture corresponding to each region to be overlaid; The texture corresponding to the mask is superimposed with the normal texture of the at least one area to be superimposed to obtain the at least one fourth texture.

4. The texture overlay processing method according to claim 1, characterized in that, Rendering the virtual 3D model based on the first texture and the at least one fourth texture includes: A fifth texture is obtained by overlaying the first texture and the at least one fourth texture; The virtual 3D model is rendered using the fifth texture.

5. The texture overlay processing method according to claim 4, characterized in that, The fifth texture is obtained by overlaying normal textures on the first texture and the at least one fourth texture, including: In response to touch operations performed on multiple adjustment controls, the normal intensity of the first texture and the at least one fourth texture is adjusted to preview the current overlay result in real time. The multiple adjustment controls are used to control the normal intensity of each texture in the first texture and the at least one fourth texture, respectively. In response to a touch operation performed on the confirmation control, the current overlay result is determined as the fifth texture.

6. The texture overlay processing method according to claim 4, characterized in that, The fifth texture and the first texture are stored in different storage locations to output the first rendering result or the second rendering result separately, or to output the comparison result between the first rendering result and the second rendering result simultaneously. The first rendering result is the rendering result of the virtual 3D model by the first texture, and the second rendering result is the rendering result of the virtual 3D model by the fifth texture.

7. A texture overlay processing device, characterized in that, include: The acquisition module is used to acquire a first texture, a second texture, and at least one third texture corresponding to the virtual 3D model, wherein the first texture is an initial normal texture, the second texture is a material partition texture, and the at least one third texture is a pre-specified normal texture to be overlaid for determining the modified normal texture; The selection module is used to obtain multiple different color regions of the second texture, wherein the multiple different color regions are used to represent the different materials corresponding to the different components of the virtual 3D model; select at least one color region from the multiple different color regions; determine at least one region to be superimposed based on the at least one color region, wherein the at least one region to be superimposed corresponds to a local or all texture region in the first texture that needs to be modified or enhanced; An overlay module is used to overlay normal textures onto at least one region to be overlaid using at least one third texture to obtain at least one fourth texture, wherein the at least one fourth texture is used to determine the overlaid normal texture within the at least one region to be overlaid. A rendering module is used to render the virtual 3D model based on the first texture and the at least one fourth texture.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the texture overlay processing method according to any one of claims 1 to 6 when run by a processor.

9. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the texture overlay processing method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Material adding method and apparatus of 3D model, and terminal

    CN105574918A