Map generation method and device, and electronic device

CN115908681BActive Publication Date: 2026-10-16NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

但是,由于是不断的重复使用一张小贴图,最后生成的目标贴图的视觉效果不佳,存在接缝明显以及小贴图中特征元素重复度高的问题

Benefits of technology

[0009] This invention provides a texture generation method, apparatus, and electronic device. The method involves acquiring a first texture, quantity parameters, and texture parameters; generating an initial Vinomap based on the quantity parameters; wherein the initial Vinomap consists of multiple sub-regions, the number of which is related to the quantity parameters; blurring the edges of each sub-region in the initial Vinomap to generate a target Vinomap; scaling and rotating the first texture based on the texture parameters; and filling the processed first texture into the sub-regions of the target Vinomap to generate the target texture. In this method, blurring the boundaries of each sub-region in the initial Vinomap and filling the rotated and scaled first texture into multiple sub-regions of the target Vinomap eliminates gaps at the boundaries of the first texture, resulting in a more natural blending of the boundaries between the various first textures in the target texture. It also reduces the repetition of elements in the target texture, thereby improving the texture quality of the target texture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115908681B_ABST
    Figure CN115908681B_ABST
Patent Text Reader

Abstract

The application provides a map generation method and device and electronic equipment, acquires a first map, a quantity parameter and a map parameter; generates an initial Venn diagram based on the quantity parameter; the initial Venn diagram is composed of a plurality of sub-regions, and the number of the sub-regions is related to the quantity parameter; the edge region of each sub-region in the initial Venn diagram is blurred to generate a target Venn diagram; the first map is scaled and rotated based on the map parameter, and the processed first map is filled into the sub-region in the target Venn diagram to generate a target map. In this way, the boundaries of each sub-region in the initial Venn diagram are blurred, the first map after rotation and scaling is filled into the plurality of sub-regions in the target Venn diagram, the gap of the boundary of the first map is eliminated, the boundaries between the first maps in the target map are fused more naturally, the element repetition in the target map is reduced, and the map effect of the target map is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a texture generation method, apparatus, and electronic device. Background Technology

[0002] In the generation of virtual scene assets, large areas such as ground or building walls require the use of many similar elements. Typically, a small texture is repeatedly applied across the XY plane of the UV mapping to create a larger target texture that fills the entire plane. However, because a small texture is repeatedly used, the resulting target texture often has poor visual quality, exhibiting noticeable seams and high repetition of feature elements within the small textures. Related techniques involve moving each small texture in image processing software to eliminate seams; however, this requires modifying the original small textures, making the process complex and tedious. Another approach is to randomly rotate and enlarge the small textures to address the high repetition of feature elements in the target texture. However, this method also creates seams between the rotated small textures and causes uneven brightness during UV overlay, resulting in a poor-quality final target texture. Summary of the Invention

[0003] In view of this, the purpose of the present invention is to provide a texture generation method, apparatus and electronic device to make the boundary blending between the first textures in the target texture more natural, while reducing the repetition of elements in the target texture, thereby improving the texture effect of the target texture.

[0004] In a first aspect, embodiments of the present invention provide a texture generation method, the method comprising: obtaining a first texture, a quantity parameter, and texture parameters; generating an initial Vino map based on the quantity parameters; wherein the initial Vino map is composed of multiple sub-regions, the number of sub-regions being related to the quantity parameters; blurring the edge regions of each sub-region in the initial Vino map to generate a target Vino map; scaling and rotating the first texture based on the texture parameters, and filling the processed first texture into the sub-regions of the target Vino map to generate the target texture.

[0005] Secondly, embodiments of the present invention provide a texture generation apparatus, the apparatus comprising: an acquisition module for acquiring a first texture, a quantity parameter, and texture parameters; an initial Vinomap generation module for generating an initial Vinomap based on the quantity parameters; wherein the initial Vinomap consists of multiple sub-regions, the number of sub-regions being related to the quantity parameters; a target Vinomap generation module for blurring the edge regions of each sub-region in the initial Vinomap to generate a target Vinomap; and a texture generation module for scaling and rotating the first texture based on the texture parameters, and filling the processed first texture into the sub-regions of the target Vinomap to generate a target texture.

[0006] Thirdly, embodiments of the present invention provide an electronic device, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the texture generation method of any of the first aspects.

[0007] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are invoked and executed by a processor, the computer-executable instructions cause the processor to implement the texture generation method of any one of the first aspects.

[0008] The embodiments of the present invention bring the following beneficial effects:

[0009] This invention provides a texture generation method, apparatus, and electronic device. The method involves acquiring a first texture, quantity parameters, and texture parameters; generating an initial Vinomap based on the quantity parameters; wherein the initial Vinomap consists of multiple sub-regions, the number of which is related to the quantity parameters; blurring the edges of each sub-region in the initial Vinomap to generate a target Vinomap; scaling and rotating the first texture based on the texture parameters; and filling the processed first texture into the sub-regions of the target Vinomap to generate the target texture. In this method, blurring the boundaries of each sub-region in the initial Vinomap and filling the rotated and scaled first texture into multiple sub-regions of the target Vinomap eliminates gaps at the boundaries of the first texture, resulting in a more natural blending of the boundaries between the various first textures in the target texture. It also reduces the repetition of elements in the target texture, thereby improving the texture quality of the target texture.

[0010] 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.

[0011] 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

[0012] 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.

[0013] Figure 1 A schematic diagram of a texture provided in an embodiment of the present invention;

[0014] Figure 2 A schematic diagram of another texture provided in an embodiment of the present invention;

[0015] Figure 3 A flowchart of a texture generation method provided in an embodiment of the present invention;

[0016] Figure 4 This is a schematic diagram of the initial Vinograph in a texture generation method provided in an embodiment of the present invention;

[0017] Figure 5 This is a schematic diagram of the target Vino map in a texture generation method provided in an embodiment of the present invention;

[0018] Figure 6 This is a schematic diagram of the first texture in a texture generation method provided in an embodiment of the present invention;

[0019] Figure 7 This is a schematic diagram of the blur value of the target Vino map in a texture generation method provided by an embodiment of the present invention;

[0020] Figure 8 This is a schematic diagram of a target texture in a texture generation method provided in an embodiment of the present invention;

[0021] Figure 9 This is a schematic diagram of a graphical user interface in a texture generation method provided in an embodiment of the present invention;

[0022] Figure 10 This is a schematic diagram of a texture generation device provided in an embodiment of the present invention;

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

[0024] 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 with reference to the accompanying drawings. 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.

[0025] Currently, in the generation of virtual scene assets, such as the production of large-scale CG scene assets, large areas of ground or building walls require the use of many similar elements, but there also need to be subtle differences between the elements, such as the grass and sand on the ground, and the brick texture on the building. In addition to generating effects using custom materials during the rendering process, most creators tend to use a single texture to repeat the object's UV space, that is, to repeat it multiple times on the XY plane control of the UV, thereby achieving the effect of using a small texture to cover the entire ground, thus obtaining a larger target texture.

[0026] However, the above method requires repeatedly using a small sticker for stitching, such as Figure 1 The texture generated by simply repeating and splicing small textures will inevitably have gaps in the visual effect, and there will also be a problem of excessive repetition of elements in the small textures. Therefore, it is necessary to adjust the degree of movement of the original small textures before repeating the UVs.

[0027] In related technologies, seams between small textures are manually eliminated by moving each texture in image processing software (such as Photoshop), for example, moving the texture in the middle of the X and Y axes, thus achieving a continuous four-dimensional pattern. However, this method requires modification of the original small textures, making the operation complex and tedious. Additionally, the problem of high repetition of feature elements in the target texture is usually solved by randomly rotating and enlarging the small textures. However, this method also results in seams between the rotated small textures, such as… Figure 2 As shown, the texture boundary processing is rather abrupt, and the UV overlay process produces local brightness inconsistencies, resulting in poor quality of the final generated target texture.

[0028] Based on this, embodiments of the present invention provide a texture generation method, apparatus, and electronic device, which can be applied to portable terminals, computers, and other electronic devices.

[0029] To facilitate understanding of this embodiment, a texture generation method disclosed in this invention will first be described in detail, such as... Figure 3 As shown, the method includes the following steps:

[0030] Step S302: Obtain the first texture, quantity parameters, and texture parameters;

[0031] The first texture mentioned above refers to the original texture used to generate the target texture. It includes feature elements that need to be repeatedly displayed. For example, if a large area of ​​building walls needs to be generated, the feature elements in the first texture typically include stones, soil, or brick walls. Similarly, if a large area of ​​grassland needs to be generated, the feature elements in the first texture typically include grass, gravel, and soil. Additionally, the first texture has a certain size and aspect ratio, such as a 1:1 ratio. The quantity parameters mentioned above are usually a single value, such as 100 or 120, and are usually preset by the operator. The texture parameters typically include multiple parameters, each representing a different meaning, such as size parameters (also called scaling parameters), rotation parameters, cropping parameters, resolution parameters, brightness parameters, etc.

[0032] In addition, the aforementioned first texture is mainly used to generate the target texture, the aforementioned quantity parameter is mainly used to generate the Vino map, indicating the number of polygons in the Vino map, and the aforementioned texture parameter is mainly used to process the first texture, but can also be used to process the target texture. In actual implementation, the above acquisition method is usually set by the staff in the graphical user interface displayed on the front end. After the staff completes the setting, the front end sends the first texture, quantity parameter, and texture parameter to the back end, thus obtaining the aforementioned first texture, quantity parameter, and texture parameter.

[0033] Step S304: Generate an initial Vinomap based on the quantity parameter; wherein the initial Vinomap consists of multiple sub-regions, and the number of sub-regions is related to the quantity parameter;

[0034] The aforementioned Vinograph can also be called a Voronoi diagram. The quantity parameter usually refers to the number of sub-regions in the Vinograph; for example, if the quantity parameter is 100, then the generated Vinograph will have 100 sub-regions. Furthermore, the aforementioned sub-regions usually refer to polygons, such as triangles, quadrilaterals, pentagons, hexagons, etc., and can also be called cells. Specifically, after obtaining the quantity parameter, a blank initial image of a specified size can be randomly generated. Multiple points are generated in this initial image, with the number of points being the same as the quantity parameter, and each point's position is unique. One possible implementation is to generate a Delaunay triangulation based on the generated points, determine the circumcenter of each triangle in the triangulation, and connect the circumcenters of adjacent triangles to obtain multiple polygons, each containing one previously generated point, thus obtaining the aforementioned initial Vinograph. Another possible implementation is to determine the intersection point of the perpendicular bisectors of adjacent lines, connect the adjacent intersection points to form multiple polygons, each containing one previously generated point, thus obtaining the aforementioned initial Vinograph.

[0035] like Figure 4 As shown, this includes multiple polygons, namely the aforementioned sub-regions, each distinguished by a different grayscale level. Each sub-region contains its center point, which is the point generated in the image above.

[0036] Step S306: Blur the edge regions of each sub-region in the initial Venn map to generate the target Venn map;

[0037] To eliminate gaps between the first textures filling each sub-region, the edge regions of each sub-region in the initial Vinomap can be blurred. Specifically, the blur value of the pixels at the boundary of each sub-region can be set to blur the boundary regions of each sub-region. The blur value indicates the degree of blurring in the image, such as... Figure 5 As shown, the boundaries of each sub-region are weakened, so that the boundary areas of each sub-region do not appear to have a sense of boundary visually.

[0038] Step S308: Scale and rotate the first texture based on the texture parameters, and fill the processed first texture into a sub-region of the target Vino map to generate the target texture.

[0039] To reduce the repetition of feature elements in the first texture image, the first texture image can be enlarged, reduced, and rotated using the obtained texture parameters. These texture parameters typically include the maximum enlargement parameter, the minimum reduction parameter, and the rotation angle range. For example, enlarging the first texture image by 10% yields one processed first texture image; reducing it by 10% yields another; rotating it clockwise by 20° yields one; and rotating it counterclockwise by 20° yields yet another. Alternatively, the first texture image can be enlarged first and then rotated to obtain a different processed first texture image. In this embodiment, scaling and rotating the first texture image based on the texture parameters results in multiple processed first texture images. Then, each processed first texture image is randomly filled into one of multiple sub-regions until each sub-region is completely filled with processed first texture images, thus obtaining the target texture image.

[0040] This invention provides a texture generation method, which involves obtaining a first texture, quantity parameters, and texture parameters; generating an initial Vinomap based on the quantity parameters; wherein the initial Vinomap consists of multiple sub-regions, the number of which is related to the quantity parameters; blurring the edges of each sub-region in the initial Vinomap to generate a target Vinomap; scaling and rotating the first texture based on the texture parameters, and filling the processed first texture into the sub-regions of the target Vinomap to generate the target texture. In this method, blurring the boundaries of each sub-region in the initial Vinomap and filling the rotated and scaled first texture into multiple sub-regions of the target Vinomap eliminates gaps at the boundaries of the first texture, making the boundary blending between the various first textures in the target texture more natural, while reducing the element repetition in the target texture, thereby improving the texture effect of the target texture.

[0041] The following describes the steps for blurring the edge regions of each sub-region in the initial Vinomap to generate the target Vinomap, along with one possible implementation:

[0042] For each sub-region in the initial Vinograph, starting from the target point of the sub-region and ending at the region boundary of the sub-region, different blur values ​​are sequentially set from the starting point to the ending point to generate the target Vinograph; wherein, the blur degree of the blur value set at the starting point of each sub-region in the target Vinograph is less than the blur degree of the blur value set at the ending point of the sub-region.

[0043] The target point mentioned above can be a point randomly generated in the initial image during the generation of the initial Vinomap. Specifically, for each sub-region in the initial Vinomap, a weight needs to be applied linearly to each boundary of the sub-region, using the target point of that sub-region as a reference. The applied weights increase sequentially, and each weight is multiplied by a specified blur value. Since the distance from the target point to each boundary is different, a boundary range with not entirely identical blur changes can be obtained; that is, the blur value of each boundary of the sub-region is different. The blur value is larger closer to the sub-region boundary and smaller closer to the target point. In other words, the boundary of each sub-region appears more blurred visually. Figure 5 As shown in the figure. In this method, by setting a large blur value for the boundary of each sub-region, the boundary regions between each sub-region in the target Vinograph are blurred, thus weakening the boundary gaps.

[0044] The above texture parameters include scaling and rotation parameters; the following describes step S308, which involves scaling and rotating the first texture based on the texture parameters, and then filling the processed first texture into a sub-region of the target Vino map to generate the target texture. One possible implementation is as follows:

[0045] (1) Based on the scaling and rotation parameters, the first texture is scaled and rotated to obtain multiple second textures;

[0046] Specifically, the first texture can be scaled, rotated, or both scaled and rotated. It should be noted that the scaling and rotation of the first texture are randomized, primarily based on scaling parameters. The scaling is performed within the range specified by the scaling parameters, and the rotation is performed within the range specified by the rotation parameters, thus resulting in multiple second textures.

[0047] The above scaling parameters include the scaling range of the first texture, and the above rotation parameters include the rotation range of the first texture. The following describes the steps of step (1) scaling and rotating the first texture according to the scaling parameters and rotation parameters to obtain multiple second textures. One possible implementation is to control the first texture to be randomly scaled within the scaling range and to control the first texture to be randomly rotated within the scaling range to obtain multiple second textures.

[0048] For example, the scaling range mentioned above could be 110%, indicating that the first texture can be magnified to a maximum of 110% and shrunk to a minimum of 90%. In other words, the first texture will randomly scale within a range of 90%-110%. The rotation range mentioned above could be ±18°, indicating that the first texture can be rotated a maximum of 18° clockwise and a maximum of 18° counterclockwise. This means the first texture will randomly rotate within a range of ±18°, resulting in multiple second textures. In this method, by using the scaling and rotation ranges to make the first texture randomly change within these ranges, multiple different second textures can be obtained, further reducing the repetition of feature elements in the first texture.

[0049] (2) Fill multiple sub-regions of the target Venn map with multiple second textures to obtain the initial texture;

[0050] Specifically, a target second texture is randomly selected from multiple second textures, and this target second texture is randomly filled into one of multiple sub-regions until each sub-region is filled, thus obtaining the initial texture.

[0051] (3) Based on the blur value of each pixel in the target Vino map, process the transparency value of the initial texture to obtain the target texture.

[0052] Since only the second texture is filled during the filling process, hard boundaries will be created between the sub-regions after the second texture is filled, resulting in noticeable seams. Therefore, based on the blurred values ​​obtained from the previous steps of blurring the boundaries of the sub-regions in the target Vino map, the transparency of the corresponding boundaries in the initial texture can be adjusted to weaken the visibility of the boundaries of each sub-region in the initial texture. For example, the transparency value of each pixel in the initial texture can be set to a specified value, and each specified value can be multiplied by the blurred value of the corresponding pixel in the target Vino map, thereby increasing the transparency of the boundary areas of each sub-region in the initial texture.

[0053] In the above method, the boundary blending effect in the initial texture is improved by using the Vino map fractal algorithm and the blur value of each pixel in the target Vino map, thus avoiding the excessive overlap error that occurs when using functions such as noise.

[0054] In step (3) above, the initial texture is processed based on the blur value of each pixel in the target Winnowing image to obtain the target texture. One possible implementation is to determine the blur value of each pixel in the target Winnowing image as the transparency value of the corresponding pixel in the initial texture to obtain the target texture.

[0055] In practice, the blur value can be directly obtained from the target Vinograph, and a blur mask can be generated based on the blur value, such as... Figure 7 As shown, the boundary regions of each sub-region are lighter in color, indicating a larger blur value in that region. The blur value of each pixel in the target Vino map is then used as the transparency value of the corresponding pixel's alpha channel in the initial texture. Figure 7 A lighter color at the boundary of each sub-region indicates greater transparency in that region. For example, ... Figure 6 The image shown is the first texture. The target texture obtained after the above steps is as follows: Figure 8 As shown, the feature elements include varying sizes and multiple mapping angles, and the various second maps achieve a seamless effect. This method uses the blurred range of the boundaries of sub-regions in the target Vinograph as transparency, eliminating hard boundaries caused by filling the second maps.

[0056] To further improve the texture effect of the target texture, the texture parameters also include resolution parameters. After scaling and rotating the first texture based on the texture parameters, and filling the processed first texture into multiple sub-regions in the target Vino map to generate the target texture, the method further includes: determining the resolution of the target texture to the target resolution corresponding to the resolution parameters.

[0057] The resolution parameters mentioned above are multiples of 1024. For example, if the obtained resolution parameter is 2048, then after generating the target texture, the resolution of the target texture will be updated to 2048 to increase or decrease the resolution of the target texture as needed. In this method, the resolution parameter can be set as needed to change the resolution of the target texture, thereby further improving the texture quality of the target texture.

[0058] In some existing technologies, the original textures need to be modified and processed using various image processing software, which is cumbersome, time-consuming, and labor-intensive. Therefore, in this embodiment, a graphical user interface (GUI) is provided through a terminal device. This GUI includes parameter setting controls; for example, such as... Figure 9 As shown, the bar controls to the right of Size, Rotation, Quantity, and Resolution are the parameter setting controls. The control for Size is used to set the scaling parameter, the control for Rotation is used to set the rotation parameter, the control for Quantity is used to set the quantity parameter, and the control for Resolution is used to set the resolution parameter.

[0059] It's also worth noting that the aforementioned terminal devices include both the UI front-end and the texture generation back-end. The front-end is written in TypeScript and Vue, compiled using the Electron framework, offering cross-platform advantages. The back-end algorithm is written in Python. Front-end UI settings and back-end algorithm-generated result previews are exchanged via RPC (Remote Procedure Call). The front-end Electron thread manages the UI process, RPC communication process, and back-end algorithm modules. The back-end algorithm modules are typically directly ported to various DCC (Digital Content Creation) software and engines. The use of TypeScript and Python, along with the Electron framework, allows for rapid development of software versions for different platforms. Furthermore, it can be easily integrated into most Python-supported content creation software.

[0060] In step S302 above, the step of obtaining the first texture, quantity parameters, and texture parameters can be implemented as follows: in response to the upload operation of the first texture, the first texture is obtained and displayed in the graphical user interface; in response to the parameter selection operation of the parameter setting control, the quantity parameters and texture parameters are obtained.

[0061] The above-mentioned response to the upload operation of the first image can be such that, in response to a trigger operation on the image upload control, the first image is uploaded to the terminal device and displayed. For example, as shown... Figure 9As shown, staff can click the "Upload Original Texture" control to display the textures currently stored on the device. Selecting the desired texture will upload the first texture to the terminal device, and it will also be displayed in the "Upload Original Texture" control. The UI process then sends the first texture to the backend algorithm process via an RPC client. Alternatively, staff can directly drag and drop the first texture into the "Upload Original Texture" area, which will then become the display area for the first texture.

[0062] Similarly, exemplified by, Figure 9 As shown, staff can slide the size control, rotation control, quantity control, and resolution control to select target parameters, such as... Figure 9 As shown, sliding the size control to 110% allows you to select a scaling parameter of 110%; sliding the rotation control to ±18° allows you to select a rotation parameter of ±18°; sliding the quantity control to 130 allows you to select a quantity parameter of 130; and sliding the resolution control to 4096 allows you to select a resolution parameter of 4096. Similarly, the texture parameters are sent to the backend algorithm process via the RPC client through the UI process.

[0063] Then, after receiving the texture parameters sent by the UI process via RPC communication, the process calls a pre-set algorithm module to generate the required target texture based on the first texture, quantity parameters, and texture parameters. In the above method, the parameter setting control allows users to directly enter the parameter adjustment stage after selecting the original texture, without needing to adjust the original texture itself. This makes the operation simple and convenient, further improving the efficiency of texture generation.

[0064] Furthermore, the aforementioned graphical user interface also includes a save control and a target texture preview area; for example, such as Figure 9 The "Save Settings" option shown corresponds to the save control mentioned above. Figure 9 The area indicated by ③ in the text corresponds to the target texture preview area mentioned above.

[0065] After scaling and rotating the first texture based on the texture parameters, and filling the processed first texture into a sub-region of the target Venn diagram to generate the target texture, the above method further includes: in response to a trigger operation on the save control, displaying a preview of the target texture in the target texture preview area; in response to a trigger operation on the preview, displaying the texture parameters and quantity parameters of the target texture on the parameter setting control.

[0066] In practice, after selecting all parameters, staff can click the save control to display the target texture in the target texture preview area and store it there. Clicking this area (i.e., clicking the displayed target texture) will show the corresponding quantity and texture parameters in the parameter setting controls. If the currently displayed target texture does not meet expectations, the quantity and texture parameters can be adjusted directly through the parameter setting controls, thereby adjusting the currently displayed target texture. This method allows users to click the save control after generating the target texture to display it in the graphical user interface. The preview window provides real-time confirmation of the final effect of the target texture, making it more convenient and faster.

[0067] The graphical user interface described above also includes output controls; for example, such as Figure 9 The "output" shown corresponds to the output control mentioned above. After scaling and rotating the first texture based on the texture parameters, and filling the processed first texture into a sub-region of the target Vinograph to generate the target texture, the method further includes: responding to a trigger operation on the output control and outputting the target texture to a specified storage space.

[0068] If staff observe the target texture displayed in the preview area and find that it meets expectations, they can click the output control to obtain the final result, that is, output the target texture to the specified storage space for later use.

[0069] Furthermore, the aforementioned graphical user interface includes a reset control; for example, such as Figure 9 The "Reset" option shown corresponds to the reset control mentioned above. The method also includes: responding to a trigger operation on the reset control and restoring the currently selected quantity and texture parameters to their initial values.

[0070] If the currently selected parameters do not meet expectations, or if you need to reset the currently selected parameters, you can directly click the reset control to restore the currently displayed parameters, such as 110%, ±18°, 130,4096, to 100%, 0°, 0,1024.

[0071] In the above method, the seamless texture front-end generation tool not only allows for convenient setting of the number of times the first texture is repeated through the editing interface, but also enables individual setting of the first texture's size and rotation randomness. Furthermore, it allows for easy previewing of the generation effects with different parameters, ultimately generating the desired seamless texture at the new resolution. Additionally, based on Voronoi fractals, a new algorithm is used to obtain irregular, uniformly blurred boundaries, significantly improving the gap effect between the boundaries of the first textures. This effectively eliminates gaps without altering the original textures. Simultaneously, the overall brightness of the seamless texture is maintained during the texture blending and stitching process, preventing inconsistent bright areas caused by overlap.

[0072] Corresponding to the above method embodiments, this invention provides a texture generation device, such as... Figure 10 As shown, the device includes:

[0073] Module 1001 is used to obtain the first texture, quantity parameters, and texture parameters;

[0074] The initial Vinograph generation module 1002 is used to generate an initial Vinograph based on a quantity parameter; wherein the initial Vinograph consists of multiple sub-regions, and the number of sub-regions is related to the quantity parameter;

[0075] The target Vinio map generation module 1003 is used to blur the edge regions of each sub-region in the initial Vinio map to generate the target Vinio map.

[0076] The texture generation module 1004 is used to scale and rotate the first texture based on the texture parameters, and fill the processed first texture into a sub-region of the target Venn diagram to generate the target texture.

[0077] This invention provides a texture generation apparatus that acquires a first texture, quantity parameters, and texture parameters; generates an initial Vino map based on the quantity parameters; the initial Vino map consists of multiple sub-regions, the number of which is related to the quantity parameters; blurs the edges of each sub-region in the initial Vino map to generate a target Vino map; scales and rotates the first texture based on the texture parameters, and fills the processed first texture into the sub-regions of the target Vino map to generate the target texture. In this method, blurring the boundaries of each sub-region in the initial Vino map and filling the rotated and scaled first texture into multiple sub-regions of the target Vino map eliminates gaps at the boundaries of the first texture, making the boundary blending between the various first textures in the target texture more natural, while reducing the element repetition in the target texture, thereby improving the texture effect of the target texture.

[0078] Furthermore, the aforementioned target Vinio map generation module is also used to: for each sub-region in the initial Vinio map, starting from the center point of the sub-region and ending at the region boundary of the sub-region, sequentially set different fuzzy values ​​from the starting point to the ending point to generate the target Vinio map; wherein, the fuzziness of the fuzzy value set at the starting point of each sub-region in the target Vinio map is less than the fuzziness of the fuzzy value set at the ending point of the sub-region.

[0079] Furthermore, the above-mentioned texture parameters include scaling parameters and rotation parameters; the texture generation module is also used to: scale and rotate the first texture according to the scaling parameters and rotation parameters to obtain multiple second textures; fill multiple sub-regions in the target Vino map with the multiple second textures to obtain an initial texture; and process the transparency value of the initial texture based on the blur value of each pixel in the target Vino map to obtain the target texture.

[0080] Furthermore, the texture generation module is also used to: determine the blur value of each pixel in the target Vino map as the transparency value of the corresponding pixel in the initial texture map, thereby obtaining the target texture map.

[0081] Furthermore, the scaling parameters include the scaling range of the first texture; the rotation parameters include the rotation range of the first texture; the texture generation module is also used to: control the first texture to be randomly scaled within the scaling range, and control the first texture to be randomly rotated within the scaling range to obtain multiple second textures.

[0082] Furthermore, the above-mentioned texture parameters also include resolution parameters; the above-mentioned device also includes a resolution determination module: determining the resolution of the target texture as the target resolution corresponding to the resolution parameters.

[0083] Furthermore, a graphical user interface is provided through the terminal device, the graphical user interface including parameter setting controls; the above-mentioned acquisition module is also used to: in response to the upload operation of the first image, acquire the first image and display the first image in the graphical user interface; in response to the parameter selection operation of the parameter setting controls, acquire quantity parameters and image parameters.

[0084] Furthermore, a graphical user interface is provided through a terminal device, the graphical user interface including a save control and a target texture preview area; the above device also includes a texture display module, used to: in response to a trigger operation on the save control, display a preview image of the target texture in the target texture preview area; in response to a trigger operation on the preview image, display the texture parameters and quantity parameters of the target texture on the parameter setting control.

[0085] Furthermore, a graphical user interface is provided through a terminal device, the graphical user interface including output controls; the above device also includes a texture storage module for: responding to a trigger operation on the output controls and outputting the target texture to a specified storage space.

[0086] Furthermore, a graphical user interface is provided through a terminal device, the graphical user interface including a reset control; the above device also includes a parameter recovery module for: responding to a trigger operation on the reset control, restoring the currently selected quantity parameters and texture parameters to their initial parameters.

[0087] The texture generation apparatus provided in this embodiment of the invention has the same technical features as the texture generation method provided in the above embodiments, so it can also solve the same technical problems and achieve the same technical effects.

[0088] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-described texture generation method. This electronic device can be a server or a terminal device.

[0089] See Figure 11 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100. The processor 100 executes the machine-executable instructions to implement the texture generation method described above.

[0090] Furthermore, Figure 11 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 100, the communication interface 103 and the memory 101 connected via the bus 102.

[0091] The memory 101 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 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 102 may 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 11 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.

[0092] Processor 100 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 100 or by instructions in software form. Processor 100 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may 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 may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 101. The processor 100 reads information from memory 101 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiment. This method specifically includes:

[0093] The process involves obtaining a first texture, its quantity parameter, and texture parameters. Based on the quantity parameter, an initial Vinomap is generated, consisting of multiple sub-regions, the number of which is related to the quantity parameter. The edges of each sub-region in the initial Vinomap are blurred to generate a target Vinomap. The first texture is then scaled and rotated based on the texture parameters. This processed first texture is then used to fill the sub-regions in the target Vinomap, generating the target texture. This method blurs the boundaries of each sub-region in the initial Vinomap and fills the rotated and scaled first texture into multiple sub-regions of the target Vinomap, eliminating gaps in the first texture boundaries. This results in a more natural blending of the boundaries between different first textures in the target texture, while also reducing element redundancy in the target texture, thus improving the overall texture quality.

[0094] The steps described above for blurring the edge regions of each sub-region in the initial Vinograph to generate the target Vinograph include: for each sub-region in the initial Vinograph, starting from the center point of the sub-region and ending at its boundary, sequentially setting different blur values ​​from the starting point to the ending point to generate the target Vinograph; wherein the blur degree of the blur value set at the starting point of each sub-region in the target Vinograph is less than the blur degree of the blur value set at the ending point of the sub-region. In this method, by setting a larger blur value for the boundary of each sub-region, the boundary regions between each sub-region in the target Vinograph are blurred, weakening the boundary gaps.

[0095] The aforementioned texture parameters include scaling and rotation parameters. The steps of scaling and rotating the first texture based on these parameters, and then filling the processed first texture into a sub-region of the target Vino map to generate the target texture, include: scaling and rotating the first texture according to the scaling and rotation parameters to obtain multiple second textures; filling the multiple second textures into multiple sub-regions of the target Vino map to obtain an initial texture; and processing the transparency value of the initial texture based on the blur value of each pixel in the target Vino map to obtain the target texture. This method utilizes a Vino map fractal algorithm and the blur value of each pixel in the target Vino map to improve the boundary blending effect in the initial texture, avoiding the excessive overlap error that occurs when using functions such as noise.

[0096] The steps described above, which process the initial texture based on the blur value of each pixel in the target Vino map to obtain the target texture, include: determining the blur value of each pixel in the target Vino map as the transparency value of the corresponding pixel's alpha channel in the initial texture map, thus obtaining the target texture. In this method, the blur range of the boundary of the sub-region in the target Vino map is used as the transparency, eliminating hard boundaries caused by filling the second texture map.

[0097] The scaling parameters mentioned above include the scaling range of the first texture; the rotation parameters include the rotation range of the first texture; the steps of scaling and rotating the first texture according to the scaling and rotation parameters to obtain multiple second textures include: controlling the first texture to be randomly scaled within the scaling range, and controlling the first texture to be randomly rotated within the scaling range to obtain multiple second textures. In this method, by using the scaling and rotation ranges to make the first texture randomly change within that range, multiple different second textures can be obtained, further reducing the repetition of feature elements in the first texture.

[0098] The aforementioned texture parameters also include resolution parameters. After scaling and rotating the first texture based on these parameters, and filling multiple sub-regions in the target Vinograph with the processed first texture to generate the target texture, the method further includes: determining the resolution of the target texture to the target resolution corresponding to the resolution parameters. In this method, the resolution parameters can be set as needed, thereby changing the resolution of the target texture and further improving the texture quality.

[0099] The aforementioned method provides a graphical user interface (GUI) via a terminal device, which includes parameter setting controls. The steps for obtaining the first texture, quantity parameters, and texture parameters include: in response to an upload operation of the first texture, obtaining the first texture and displaying it in the GUI; and in response to a parameter selection operation on the parameter setting controls, obtaining the quantity parameters and texture parameters. In this method, after selecting the original texture using the parameter setting controls, the user can directly enter the parameter adjustment stage without needing to adjust the original texture. This simplifies the operation and further improves texture generation efficiency.

[0100] The method described above provides a graphical user interface (GUI) via a terminal device. The GUI includes a save control and a target texture preview area. Following the steps of scaling and rotating the first texture based on texture parameters, and filling the processed first texture into a sub-region of the target Vinograph to generate the target texture, the method further includes: responding to a trigger operation on the save control by displaying a preview of the target texture in the target texture preview area; and responding to a trigger operation on the preview image by displaying the texture parameters and quantity parameters of the target texture on the parameter setting control. In this method, after generating the target texture, clicking the save control displays the target texture in the GUI, and the preview window allows for real-time confirmation of the final effect of the target texture, making it more convenient and faster.

[0101] The above-mentioned method provides a graphical user interface through a terminal device, the graphical user interface including an output control; after scaling and rotating the first texture based on texture parameters, filling the processed first texture into a sub-region of the target Venn diagram to generate a target texture, the above-mentioned method further includes: responding to a trigger operation on the output control and outputting the target texture to a specified storage space.

[0102] The above provides a graphical user interface via a terminal device, the graphical user interface including a reset control; the above method further includes: in response to a trigger operation on the reset control, restoring the currently selected quantity parameter and texture parameter to their initial parameters.

[0103] This embodiment also provides a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are invoked and executed by a processor, the machine-executable instructions cause the processor to implement the above-described texture generation method, which specifically includes:

[0104] The process involves obtaining a first texture, its quantity parameter, and texture parameters. Based on the quantity parameter, an initial Vinomap is generated, consisting of multiple sub-regions, the number of which is related to the quantity parameter. The edges of each sub-region in the initial Vinomap are blurred to generate a target Vinomap. The first texture is then scaled and rotated based on the texture parameters. This processed first texture is then used to fill the sub-regions in the target Vinomap, generating the target texture. This method blurs the boundaries of each sub-region in the initial Vinomap and fills the rotated and scaled first texture into multiple sub-regions of the target Vinomap, eliminating gaps in the first texture boundaries. This results in a more natural blending of the boundaries between different first textures in the target texture, while also reducing element redundancy in the target texture, thus improving the overall texture quality.

[0105] The steps described above for blurring the edge regions of each sub-region in the initial Vinograph to generate the target Vinograph include: for each sub-region in the initial Vinograph, starting from the center point of the sub-region and ending at its boundary, sequentially setting different blur values ​​from the starting point to the ending point to generate the target Vinograph; wherein the blur degree of the blur value set at the starting point of each sub-region in the target Vinograph is less than the blur degree of the blur value set at the ending point of the sub-region. In this method, by setting a larger blur value for the boundary of each sub-region, the boundary regions between each sub-region in the target Vinograph are blurred, weakening the boundary gaps.

[0106] The aforementioned texture parameters include scaling and rotation parameters. The steps of scaling and rotating the first texture based on these parameters, and then filling the processed first texture into a sub-region of the target Vino map to generate the target texture, include: scaling and rotating the first texture according to the scaling and rotation parameters to obtain multiple second textures; filling the multiple second textures into multiple sub-regions of the target Vino map to obtain an initial texture; and processing the transparency value of the initial texture based on the blur value of each pixel in the target Vino map to obtain the target texture. This method utilizes a Vino map fractal algorithm and the blur value of each pixel in the target Vino map to improve the boundary blending effect in the initial texture, avoiding the excessive overlap error that occurs when using functions such as noise.

[0107] The steps described above, which process the initial texture based on the blur value of each pixel in the target Vino map to obtain the target texture, include: determining the blur value of each pixel in the target Vino map as the transparency value of the corresponding pixel's alpha channel in the initial texture map, thus obtaining the target texture. In this method, the blur range of the boundary of the sub-region in the target Vino map is used as the transparency, eliminating hard boundaries caused by filling the second texture map.

[0108] The scaling parameters mentioned above include the scaling range of the first texture; the rotation parameters include the rotation range of the first texture; the steps of scaling and rotating the first texture according to the scaling and rotation parameters to obtain multiple second textures include: controlling the first texture to be randomly scaled within the scaling range, and controlling the first texture to be randomly rotated within the scaling range to obtain multiple second textures. In this method, by using the scaling and rotation ranges to make the first texture randomly change within that range, multiple different second textures can be obtained, further reducing the repetition of feature elements in the first texture.

[0109] The aforementioned texture parameters also include resolution parameters. After scaling and rotating the first texture based on these parameters, and filling multiple sub-regions in the target Vinograph with the processed first texture to generate the target texture, the method further includes: determining the resolution of the target texture to the target resolution corresponding to the resolution parameters. In this method, the resolution parameters can be set as needed, thereby changing the resolution of the target texture and further improving the texture quality.

[0110] The aforementioned method provides a graphical user interface (GUI) via a terminal device, which includes parameter setting controls. The steps for obtaining the first texture, quantity parameters, and texture parameters include: in response to an upload operation of the first texture, obtaining the first texture and displaying it in the GUI; and in response to a parameter selection operation on the parameter setting controls, obtaining the quantity parameters and texture parameters. In this method, after selecting the original texture using the parameter setting controls, the user can directly enter the parameter adjustment stage without needing to adjust the original texture. This simplifies the operation and further improves texture generation efficiency.

[0111] The method described above provides a graphical user interface (GUI) via a terminal device. The GUI includes a save control and a target texture preview area. Following the steps of scaling and rotating the first texture based on texture parameters, and filling the processed first texture into a sub-region of the target Vinograph to generate the target texture, the method further includes: responding to a trigger operation on the save control by displaying a preview of the target texture in the target texture preview area; and responding to a trigger operation on the preview image by displaying the texture parameters and quantity parameters of the target texture on the parameter setting control. In this method, after generating the target texture, clicking the save control displays the target texture in the GUI, and the preview window allows for real-time confirmation of the final effect of the target texture, making it more convenient and faster.

[0112] The above-mentioned method provides a graphical user interface through a terminal device, the graphical user interface including an output control; after scaling and rotating the first texture based on texture parameters, filling the processed first texture into a sub-region of the target Venn diagram to generate a target texture, the above-mentioned method further includes: responding to a trigger operation on the output control and outputting the target texture to a specified storage space.

[0113] The above provides a graphical user interface via a terminal device, the graphical user interface including a reset control; the above method further includes: in response to a trigger operation on the reset control, restoring the currently selected quantity parameter and texture parameter to their initial parameters.

[0114] The computer program products of the texture generation method, apparatus, electronic device and system provided in the embodiments of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.

[0115] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0116] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.

[0117] 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.

[0118] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0119] Finally, it should be noted that the above 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 texture generation method, characterized in that, The method includes: Get the first texture, quantity parameters, and texture parameters; Based on the quantity parameter, an initial Vinomap is generated; wherein the initial Vinomap consists of multiple sub-regions, the number of which is related to the quantity parameter; the sub-regions include pre-generated target points; For each sub-region in the initial Vinograph, starting from the target point of the sub-region and ending at the region boundary of the sub-region, different blur values ​​are sequentially set from the starting point to the ending point to generate a target Vinograph; wherein, the blur degree of the blur value set at the starting point of each sub-region in the target Vinograph is less than the blur degree of the blur value set at the ending point of the sub-region. The first texture is scaled and rotated based on the texture parameters, and the processed first texture is filled into the sub-region of the target Venn diagram to generate the target texture.

2. The method according to claim 1, characterized in that, The texture parameters include scaling parameters and rotation parameters; The steps of scaling and rotating the first texture based on the texture parameters, and filling the processed first texture into the sub-region of the target Vino map to generate the target texture include: Based on the scaling parameters and the rotation parameters, the first texture is scaled and rotated to obtain multiple second textures; The plurality of second textures are filled into the plurality of sub-regions in the target Vinograph to obtain an initial texture; Based on the blur value of each pixel in the target Vino map, the transparency value of the initial texture is processed to obtain the target texture.

3. The method according to claim 2, characterized in that, The steps for processing the initial texture based on the blur value of each pixel in the target Vino map to obtain the target texture include: The blur value of each pixel in the target Vino map is determined as the transparency value of the corresponding pixel in the initial texture map, thus obtaining the target texture map.

4. The method according to claim 2, characterized in that, The scaling parameter includes the scaling range of the first texture; the rotation parameter includes the rotation range of the first texture. The steps of scaling and rotating the first texture according to the scaling parameters and the rotation parameters to obtain multiple second textures include: The first texture is randomly scaled within the scaling range, and the first texture is randomly rotated within the scaling range to obtain multiple second textures.

5. The method according to claim 1, characterized in that, The texture parameters also include resolution parameters; After scaling and rotating the first texture based on the texture parameters, and filling the processed first texture into the plurality of sub-regions in the target Vino map to generate the target texture, the method further includes: The resolution of the target texture is determined to be the target resolution corresponding to the resolution parameter.

6. The method according to claim 1, characterized in that, A graphical user interface is provided through a terminal device, the graphical user interface including parameter setting controls; The steps to obtain the first texture, quantity parameters, and texture parameters include: In response to the upload operation of the first texture, the first texture is obtained and displayed in the graphical user interface; In response to a parameter selection operation on the parameter setting control, the quantity parameter and the texture parameter are obtained.

7. The method according to claim 1, characterized in that, A graphical user interface is provided through a terminal device, the graphical user interface including a save control and a target texture preview area; After scaling and rotating the first texture based on the texture parameters, and filling the processed first texture into the sub-region of the target Vino map to generate the target texture, the method further includes: In response to a trigger operation on the save control, a preview of the target texture is displayed in the target texture preview area; In response to a trigger operation on the preview image, the texture parameters and quantity parameters of the target texture are displayed on the parameter setting control.

8. The method according to claim 1, characterized in that, A graphical user interface is provided through a terminal device, the graphical user interface including output controls; After scaling and rotating the first texture based on the texture parameters, and filling the processed first texture into the sub-region of the target Vino map to generate the target texture, the method further includes: In response to a trigger operation on the output control, the target texture is output to a specified storage space.

9. The method according to claim 1, characterized in that, The method further includes: providing a graphical user interface via a terminal device, the graphical user interface including a reset control; and providing a graphical user interface via a terminal device. In response to a trigger operation on the reset control, the currently selected quantity parameter and texture parameter are restored to their initial values.

10. A texture generation apparatus, characterized in that, The device includes: The acquisition module is used to acquire the first texture, quantity parameters, and texture parameters; An initial Vinomap generation module is used to generate a Vinomap based on the quantity parameter; wherein the Vinomap consists of multiple sub-regions, the number of which is related to the quantity parameter; and the sub-regions include pre-generated target points. The target Veno map generation module is used to generate a target Veno map by setting different blur values ​​sequentially from the target point of the sub-region to the boundary of the sub-region for each sub-region in the initial Veno map; wherein the blur degree of the blur value set at the starting point of each sub-region in the target Veno map is less than the blur degree of the blur value set at the ending point of the sub-region. The texture generation module is used to scale and rotate the first texture based on the texture parameters, and fill the processed first texture into the sub-region of the target Venn diagram to generate the target texture.

11. An electronic device, characterized in that, The method includes a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, the processor executing the computer-executable instructions to implement the texture generation method according to any one of claims 1-9.

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

Citation Information

Patent Citations

  • Inlaid picture simulation method and apparatus

    CN106530370A

  • Method and system for quickly and automatically generating full-printed pattern

    CN113362411A