Texture modification methods, devices, electronic devices and computer-readable storage media

By obtaining the target modification coordinates in the texture combination, the texture to be modified and merged can be done efficiently and accurately, solving the problems of time-consuming, labor-intensive and inflexible existing technologies, and reducing time and manpower costs.

CN115937026BActive Publication Date: 2025-10-31NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211542529.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2025-10-31
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

Existing technologies, after merging multiple textures, are time-consuming and labor-intensive to modify, lack flexibility, and are prone to frequent modifications due to human error.

Method used

By acquiring the texture combination to be modified, determining the texture to be modified from the single texture based on the target modification coordinates, and then modifying and merging them, efficient and accurate texture modification is achieved.

Benefits of technology

It reduces the time and manpower costs required to modify textures, and improves the efficiency and accuracy of the modification process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115937026B_ABST
    Figure CN115937026B_ABST
Patent Text Reader

Abstract

This invention provides a texture modification method, apparatus, electronic device, and computer-readable storage medium, comprising: acquiring a texture combination to be modified; wherein the texture combination is obtained by integrating multiple individual textures in a target combination manner; determining the texture to be modified from the individual textures included in the texture combination based on the target modification coordinates, modifying the texture to be modified to obtain the target texture; merging the target texture into the texture combination to obtain the modified texture combination. This invention can efficiently and accurately modify the texture to be modified in the texture combination, thereby effectively reducing the time and labor costs required for texture modification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing technology, and in particular to a method, apparatus, electronic device, and computer-readable storage medium for modifying textures. Background Technology

[0002] Currently, by merging multiple individual textures into a single master texture and obtaining the texture information at the corresponding positions after merging using the vertex shading range values ​​on the model, the same quality artistic effects can be achieved with fewer draw calls. However, existing technology can only modify the merged master texture as a whole, making texture modification difficult and inflexible. Furthermore, when modifying one or more individual textures within the master texture, or when effects in blending channels are required, the original individual textures must be modified individually before merging, and then the modified individual textures must be merged again. This process is highly susceptible to human error, leading to frequent and tedious subsequent modifications, making texture modification time-consuming and labor-intensive. Summary of the Invention

[0003] In view of this, the purpose of the present invention is to provide a texture modification method, apparatus, electronic device and computer-readable storage medium, which can efficiently and accurately modify the texture to be modified in the texture combination, thereby effectively reducing the time and labor costs required for texture modification.

[0004] In a first aspect, embodiments of the present invention provide a texture modification method, comprising: obtaining a texture combination to be modified; wherein the texture combination is obtained by integrating multiple single textures in a target combination manner; determining the texture to be modified from the single textures included in the texture combination based on the target modification coordinates, modifying the texture to be modified to obtain a target texture; merging the target texture into the texture combination to obtain a modified texture combination.

[0005] Secondly, embodiments of the present invention also provide a texture modification device, comprising: a texture combination determination module, configured to obtain a texture combination to be modified; wherein the texture combination is obtained by integrating multiple single textures in a target combination manner; a texture modification module, configured to determine the texture to be modified from the single textures included in the texture combination based on target modification coordinates, so as to modify the texture to be modified to obtain a target texture; and a texture merging module, configured to merge the target texture into the texture combination to obtain a modified texture combination.

[0006] Thirdly, embodiments of the present invention also provide an electronic device, including a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method described in any of the first aspects.

[0007] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the method described in any of the first aspects.

[0008] This invention provides a texture modification method, apparatus, electronic device, and computer-readable storage medium. First, a texture combination to be modified is obtained. This texture combination is obtained by integrating multiple individual textures in a target combination manner. Then, based on the target modification coordinates, the texture to be modified is determined from the individual textures included in the texture combination. The texture to be modified is then modified to obtain the target texture. Finally, the target texture is merged into the texture combination to obtain the modified texture combination. This method can determine the texture to be modified from the texture combination based on the target modification coordinates, thereby efficiently and accurately modifying the texture to be modified. Compared to the prior art of modifying the entire texture combination or modifying the original individual textures and then re-merging the modified individual textures, this invention can effectively reduce the time and labor costs required for texture modification.

[0009] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.

[0010] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0011] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0012] Figure 1 This is a flowchart illustrating a texture modification method provided in an embodiment of the present invention;

[0013] Figure 2 A schematic diagram of a graphical user interface provided in an embodiment of the present invention;

[0014] Figure 3 A schematic diagram of another graphical user interface provided in an embodiment of the present invention;

[0015] Figure 4 This is a schematic diagram of a texture combination provided in an embodiment of the present invention;

[0016] Figure 5 A schematic diagram of a Get Integer node provided in an embodiment of the present invention;

[0017] Figure 6 A schematic diagram illustrating another texture combination provided in an embodiment of the present invention;

[0018] Figure 7 This is a schematic diagram of each channel in a target texture provided in an embodiment of the present invention;

[0019] Figure 8 A schematic diagram of a channel parameter adjustment interface provided in an embodiment of the present invention;

[0020] Figure 9 This is a schematic diagram of a texture modification device provided in an embodiment of the present invention;

[0021] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0022] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0023] Currently, multiple textures can be merged into one using Atlas Texture based on UE4 (the fourth generation of the Unity engine). Specifically, Photoshop is first used to blend the channels in the textures, and then Atlas Texture is used to stitch the textures together into the desired 2x2 or 4x4 texture format before using the stitched texture in the project. However, this method can only modify the merged texture as a whole. When there is a need to modify one or more textures, the texture modification process is time-consuming and labor-intensive. Based on this, this invention provides a texture modification method, apparatus, electronic device, and computer-readable storage medium that can efficiently and accurately modify the textures to be modified in a texture combination, thereby effectively reducing the time and labor costs required for texture modification.

[0024] To facilitate understanding of this embodiment, a texture modification method disclosed in this invention will first be described in detail, see [link to relevant documentation]. Figure 1 The diagram shows a flowchart of a texture modification method, which mainly includes the following steps S102 to S106:

[0025] Step S102: Obtain the texture combination to be modified. The texture combination is obtained by integrating multiple single textures in a target combination manner. The target combination manner is used to characterize the arrangement order and method of the single textures in the texture combination. In one implementation, Substance Designer can be used to quickly synthesize multiple single textures into a texture combination in a target combination manner according to texture requirements. The texture combination can also be called an Atlas texture.

[0026] Step S104: Based on the target modification coordinates, determine the texture to be modified from the individual textures included in the texture combination, and modify the texture to be modified to obtain the target texture. In one embodiment, a texture number input box (such as a Select Texture input box) provided by the graphical user can be used to receive the texture number entered by the user in the texture number input box, and read the target modification coordinates corresponding to the texture number. The target modification coordinates are planar coordinates. Using the target modification coordinates, the position of the texture to be modified in the texture combination is located through the Function function of Substance Designer (SD), thereby performing channel separation on the texture to be modified so that any channel in the texture to be modified can be modified to obtain the target texture.

[0027] Step S106: Merge the target texture into a texture combination to obtain a modified texture combination. In one implementation, the channels can be remixed and the final modified texture combination can be output.

[0028] The texture modification method provided in this invention can determine the texture to be modified from the texture combination based on the target modification coordinates, thereby efficiently and accurately modifying the texture to be modified. Compared with the prior art of modifying the entire texture combination or modifying the original single texture and then re-merging the modified single texture, this invention can effectively reduce the time and manpower costs required for texture modification.

[0029] In one embodiment, the present invention also provides an implementation for generating texture combinations, as described in (1) to (3) below:

[0030] (1) Obtain the multiple individual textures to be integrated and the mesh coordinates of each individual texture, and convert the mesh coordinates to cell coordinates. In one implementation, the mesh coordinates of the individual textures can be obtained through the function node (Grill size), denoted as grill.x (mesh x-coordinate) and grill.y (mesh y-coordinate). In practical applications, see [link to relevant documentation]. Figure 2A schematic diagram of a graphical user interface is shown. A Grill size input box can be provided through the graphical user interface. In response to the determination operation for Grillsize, the corresponding grill.x and grill.y can be obtained. Since the grid coordinates are floating-point coordinates, and integer coordinates are required when integrating textures, the grid coordinates are redefined as cell coordinates. See Figure 3 Another schematic diagram of a graphical user interface is shown, and the cell coordinates are rounded. Among them, the cell coordinates include cell.x (cell abscissa) and cell.y (cell ordinate). For example, if there are 4 textures to be integrated, that is, 2x2, so the coordinates are redefined as: x = 2, y = 2. In addition, during the rounding process, when 0 < x < 1, the value of x is 1, and when 1 < x < 2, the value of x is 2.

[0031] (2) Determine the model based on the grid coordinates, cell coordinates, and preset combination, and determine the target combination method. Among them, the preset combination determination model is as follows:

[0032] F(x, y) = (cell.y - 1) * grill.y + cell.x; where cell.x is the cell abscissa, cell.y is the cell ordinate, and grill.y is the grid ordinate. By substituting the above cell abscissa, cell ordinate, and grid ordinate into the preset combination determination model, the required target combination method can be obtained. In specific implementation, the coordinates (x, y) of a single texture can be defined as Grill Size, and the defined functional Grill Size can be obtained through the Get Integer2 node. The obtained values of (x, y) are substituted into the preset combination determination model, and the combination method of the required integrated texture can be obtained through calculation.

[0033] (3) Integrate each single texture according to the target combination method to obtain a texture combination. Exemplarily, when assuming to combine a texture combination composed of 16 textures (that is, 4 * 4), define x = 4, y = 4, and input 16 single textures, then the texture combination as shown in Figure 4 can be obtained.

[0034] Based on the aforementioned texture combination, this embodiment of the invention provides an implementation method for modifying at least one single texture in the texture combination. Specifically: (1) Calculate the product of the grid horizontal coordinate and the grid vertical coordinate in the target modification coordinate, that is, calculate grill.x*grill.y; (2) If the product matches the output value of the model determined by the preset combination for the target modification coordinate, determine the single texture corresponding to the output value as the texture to be modified. For example, assuming that the third single texture in the 4*4 texture needs to be modified, that is, the position of 3 / 16, then enter 3 in the Select Texture input box, convert grill.x of the third single texture to cell.x, and convert grill.y of the third single texture to cell.y, and then calculate the output value of (cell.y-1)*grill.y+cell.x. If grill.x*grill.y equals (cell.y-1)*grill.y+cell.x, then determine that the target modification coordinate is true, so that the effect of the currently selected third single texture can be quickly modified in Substance Designer.

[0035] Since the single texture to be selected in this embodiment of the invention is an integer such as 1, 2, 3, etc., the integer column is defined as the function Select Texture, and the integer column is obtained through Get Integer, such as... Figure 5 The diagram illustrates a Get Integer node. By simply inputting the desired texture number, the system can calculate and retrieve the single texture at the corresponding location, such as... Figure 6 The diagram shows another texture combination. Figure 6 This illustrates the modifications made to the 1st, 6th, 8th, 9th, and 14th individual textures in the texture set.

[0036] For ease of understanding, this embodiment of the invention also provides an implementation method for modifying the texture to be modified to obtain the target texture, as shown in steps 1 to 2 below:

[0037] Step 1: Separate the target texture channels to obtain multiple channels corresponding to the target texture. In one implementation, the Grayscale Coversion node can be used on the input target texture via RGBASplit to separate the R (Red), G (Green), B (Blue), and A (Alpha) channels of the color or normal map, such as... Figure 7 The diagram shown illustrates the channels in a target texture.

[0038] Step 2: In response to a channel selection operation, determine the target channel and modify it to obtain the target texture. In one implementation, one or more of the target channel's adjusters, brightness, saturation, contrast, and opacity can be modified. The modified target channel is then blended with other channels in the target texture (excluding the target channel) to obtain the target texture. For specific implementation details, see [link to implementation details]. Figure 8 The diagram shows an interface for adjusting channel parameters. You can add corresponding adjusters, brightness, saturation, contrast, transparency, etc. to the required channels. Then, RGBAMerge is used to re-merge the modified channel information and output it, thereby enabling quick and accurate adjustment of single textures or channel effects at specified positions in texture combinations.

[0039] The texture modification method provided in this embodiment of the invention can realize the merging, channel separation, and modification process of the entire Atlas texture in Substance Designer.

[0040] Currently, to save resources, existing technologies often store multiple single textures in different channels of a single texture, such as RMA (Roughness, Metallicity, and AO maps), depending on the project's needs. Typically, the red channel corresponds to the Roughness map, the green channel to the Metallic map, and the blue channel to the AO map. Adjusting the effect of a specific channel of one of 16 blended textures becomes extremely tedious. For example, to enhance the texture contrast of the 7th texture, the Roughness map in the red channel of that 7th texture needs modification. This usually requires finding the original roughness map from before merging, modifying it in tools like Photoshop to achieve the desired effect, re-inserting it into the red channel, merging it back into the integrated texture, and then checking the effect again in the engine. This process is repeated until the desired result is achieved. Modifying multiple textures and multiple channels becomes a very large workload.

[0041] The texture modification method provided in this embodiment of the invention only requires selecting the number of textures to be modified, inputting the corresponding position of the textures to be modified, modifying the independent or mixed effect of the texture in a certain channel of the RGBA channel of the blended texture through the adjuster, and quickly outputting the effect for verification in the engine.

[0042] Regarding the texture modification method provided in the foregoing embodiments, this invention provides a texture modification device, see [link to device]. Figure 9 The diagram shows a structural schematic of a texture modification device, which mainly includes the following parts:

[0043] The texture combination determination module 902 is used to obtain the texture combination to be modified; wherein, the texture combination is obtained by integrating multiple single textures in a target combination manner;

[0044] The texture modification module 904 is used to determine the texture to be modified from the single textures contained in the texture combination based on the target modification coordinates, so as to modify the texture to be modified to obtain the target texture.

[0045] The texture merging module 906 is used to merge target textures into texture combinations to obtain modified texture combinations.

[0046] The texture modification device provided in this invention can determine the texture to be modified from the texture combination based on the target modification coordinates, thereby efficiently and accurately modifying the texture to be modified. Compared with the prior art of modifying the entire texture combination or modifying the original single texture and then re-merging the modified single texture, this invention can effectively reduce the time and labor costs required for modifying textures.

[0047] In one embodiment, the above-mentioned device further includes a texture integration module, configured to: acquire multiple single textures to be integrated and the grid coordinates of each single texture, and convert the grid coordinates into cell coordinates; determine a model based on the grid coordinates, cell coordinates and a preset combination, and determine a target combination method; integrate each single texture according to the target combination method to obtain a texture combination.

[0048] In one implementation, the preset combination determines the model as follows: F(x,y)=(cell.y-1)*grill.y+cell.x; where cell.x is the x-coordinate of cell, cell.y is the y-coordinate of cell, and grill.y is the y-coordinate of grid.

[0049] In one implementation, the texture modification module 904 is further configured to: calculate the product of the grid horizontal coordinate and the grid vertical coordinate in the target modification coordinates; if the product matches the output value of the preset combination model for the target modification coordinates, determine the single texture corresponding to the output value as the texture to be modified.

[0050] In one embodiment, the texture modification module 904 is further configured to: separate the target texture into channels to obtain multiple channels corresponding to the target texture; in response to a channel selection operation, determine the target channel and modify the target channel to obtain the target texture.

[0051] In one embodiment, the texture modification module 904 is further configured to: modify one or more of the adjuster, brightness, saturation, contrast, and transparency of the target channel, and determine the target texture based on the modified target channel.

[0052] In one embodiment, the texture modification module 904 is further configured to: perform channel blending processing on the modified target channel and other channels in the target texture other than the target channel to obtain the target texture.

[0053] The device provided in this embodiment of the invention has the same implementation principle and technical effect as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.

[0054] This invention provides an electronic device, specifically, the electronic device includes a processor and a storage device; the storage device stores a computer program, which is executed by the processor:

[0055] A texture modification method includes: obtaining a texture combination to be modified; wherein the texture combination is obtained by integrating multiple single textures in a target combination manner; determining the texture to be modified from the single textures included in the texture combination based on the target modification coordinates, modifying the texture to be modified to obtain the target texture; merging the target texture into the texture combination to obtain the modified texture combination.

[0056] In one implementation, the method further includes: obtaining multiple individual textures to be integrated and the grid coordinates of each individual texture, and converting the grid coordinates into cell coordinates; determining a model based on the grid coordinates, cell coordinates, and a preset combination, and determining a target combination method; integrating each individual texture according to the target combination method to obtain a texture combination.

[0057] In one implementation, the preset combination determines the model as follows: F(x,y)=(cell.y-1)*grill.y+cell.x; where cell.x is the x-coordinate of cell, cell.y is the y-coordinate of cell, and grill.y is the y-coordinate of grid.

[0058] In one implementation, the step of determining the texture to be modified from the individual textures included in the texture combination based on the target modification coordinates includes: calculating the product of the grid horizontal coordinate and the grid vertical coordinate in the target modification coordinates; if the product matches the output value of the model determined by the preset combination for the target modification coordinates, the individual texture corresponding to the output value is determined as the texture to be modified.

[0059] In one implementation, the step of modifying the texture to be modified to obtain the target texture includes: separating the target texture into channels to obtain multiple channels corresponding to the target texture; in response to a channel selection operation, determining the target channel and modifying the target channel to obtain the target texture.

[0060] In one implementation, the step of modifying a target channel to obtain a target texture includes: modifying one or more of the target channel's adjuster, brightness, saturation, contrast, and transparency, and determining the target texture based on the modified target channel.

[0061] In one implementation, the step of determining the target texture based on the modified target channel includes: performing channel blending processing on the modified target channel and other channels in the target texture other than the target channel to obtain the target texture.

[0062] The electronic device provided in this invention can determine the texture to be modified from the texture combination based on the target modification coordinates, thereby efficiently and accurately modifying the texture to be modified. Compared with the prior art of modifying the entire texture combination or modifying the original single texture and then re-merging the modified single texture, this invention can effectively reduce the time and manpower costs required to modify textures.

[0063] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The electronic device 100 includes: a processor 10, a memory 11, a bus 12, and a communication interface 13. The processor 10, the communication interface 13, and the memory 11 are connected through the bus 12. The processor 10 is used to execute executable modules, such as computer programs, stored in the memory 111.

[0064] The memory 11 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 13 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc.

[0065] Bus 12 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 10 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0066] The memory 11 is used to store programs. After receiving an execution instruction, the processor 10 executes the programs. The method executed by the device for defining the flow process disclosed in any of the foregoing embodiments of the present invention can be applied to the processor 10 or implemented by the processor 10.

[0067] Processor 10 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 10 or by instructions in software form. Processor 10 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 11. The processor 10 reads the information in memory 11 and, in conjunction with its hardware, completes the steps of the above method.

[0068] The computer program product of the readable storage medium provided in the embodiments of the present invention includes a computer-readable storage medium storing program code, wherein the program code includes instructions that can be executed:

[0069] A texture modification method includes: obtaining a texture combination to be modified; wherein the texture combination is obtained by integrating multiple single textures in a target combination manner; determining the texture to be modified from the single textures included in the texture combination based on the target modification coordinates, modifying the texture to be modified to obtain the target texture; merging the target texture into the texture combination to obtain the modified texture combination.

[0070] In one implementation, the method further includes: obtaining multiple individual textures to be integrated and the grid coordinates of each individual texture, and converting the grid coordinates into cell coordinates; determining a model based on the grid coordinates, cell coordinates, and a preset combination, and determining a target combination method; integrating each individual texture according to the target combination method to obtain a texture combination.

[0071] In one implementation, the preset combination determines the model as follows: F(x,y)=(cell.y-1)*grill.y+cell.x; where cell.x is the x-coordinate of cell, cell.y is the y-coordinate of cell, and grill.y is the y-coordinate of grid.

[0072] In one implementation, the step of determining the texture to be modified from the individual textures included in the texture combination based on the target modification coordinates includes: calculating the product of the grid horizontal coordinate and the grid vertical coordinate in the target modification coordinates; if the product matches the output value of the model determined by the preset combination for the target modification coordinates, the individual texture corresponding to the output value is determined as the texture to be modified.

[0073] In one implementation, the step of modifying the texture to be modified to obtain the target texture includes: separating the target texture into channels to obtain multiple channels corresponding to the target texture; in response to a channel selection operation, determining the target channel and modifying the target channel to obtain the target texture.

[0074] In one implementation, the step of modifying a target channel to obtain a target texture includes: modifying one or more of the target channel's adjuster, brightness, saturation, contrast, and transparency, and determining the target texture based on the modified target channel.

[0075] In one implementation, the step of determining the target texture based on the modified target channel includes: performing channel blending processing on the modified target channel and other channels in the target texture other than the target channel to obtain the target texture.

[0076] The readable storage medium provided in this invention can determine the texture to be modified from the texture combination based on the target modification coordinates, thereby efficiently and accurately modifying the texture to be modified. Compared with the prior art of modifying the entire texture combination or modifying the original single texture and then re-merging the modified single texture, this invention can effectively reduce the time and manpower costs required to modify textures.

[0077] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion 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 invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0078] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for modifying textures, characterized in that, include: Obtain the texture combination to be modified; wherein, the texture combination is obtained by integrating multiple single textures in a target combination manner; Based on the target modification coordinates corresponding to the texture number, the texture to be modified is determined from the single textures included in the texture combination, and the texture to be modified is modified to obtain the target texture; The target texture is merged into the texture combination to obtain the modified texture combination; The step of determining the texture to be modified from the single textures included in the texture combination based on the target modification coordinates corresponding to the texture number includes: Calculate the product of the grid's x-coordinate and y-coordinate in the target's modified coordinate system; If the product matches the output value of the preset combination model for modifying the coordinates of the target, the single texture corresponding to the output value is determined as the texture to be modified.

2. The method according to claim 1, characterized in that, The method further includes: Obtain multiple individual textures to be integrated and the grid coordinates of each individual texture, and convert the grid coordinates into cell coordinates; Based on the grid coordinates, the cell coordinates, and a preset combination, a model is determined, and a target combination method is determined. Each of the individual textures is integrated according to the target combination method to obtain a texture combination.

3. The method according to claim 2, characterized in that, The preset combination determines the model as follows: F(x,y)=(cell.y-1)*grill.y+cell.x; where cell.x is the x-coordinate of cell, cell.y is the y-coordinate of cell, and grill.y is the y-coordinate of grid.

4. The method according to claim 1, characterized in that, The step of modifying the texture to obtain the target texture includes: The target texture is separated into multiple channels to obtain the target texture. In response to the selection operation for the channel, a target channel is determined, and the target channel is modified to obtain a target texture.

5. The method according to claim 4, characterized in that, The step of modifying the target channel to obtain the target texture includes: Modify one or more of the adjusters, brightness, saturation, contrast, and transparency of the target channel, and determine the target texture based on the modified target channel.

6. The method according to claim 5, characterized in that, The step of determining the target texture based on the modified target channel includes: The modified target channel and other channels in the target texture map, excluding the target channel, are mixed to obtain the target texture map.

7. A texture modification device, characterized in that, include: The texture combination determination module is used to obtain the texture combination to be modified; wherein, the texture combination is obtained by integrating multiple single textures in a target combination manner; The texture modification module is used to determine the texture to be modified from the single textures included in the texture combination based on the target modification coordinates corresponding to the texture number, and modify the texture to be modified to obtain the target texture. The texture merging module is used to merge the target texture into the texture combination to obtain the modified texture combination; The texture modification module is specifically used to calculate the product of the grid horizontal coordinate and the grid vertical coordinate in the target modification coordinates; if the product matches the output value of the preset combination model for the target modification coordinates, the single texture corresponding to the output value is determined as the texture to be modified.

8. An electronic device, characterized in that, The method includes a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions that, when invoked and executed by a processor, cause the processor to perform the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Target model rendering method and device, equipment and storage medium

    CN113947657A