Lace fabric generation method and device, electronic device, and storage medium

The generation of lace fabric texture and model through parameter control solves the time-consuming and laborious problem of lace fabric generation in the prior art, and achieves the effect of rapid modification and efficient generation of lace fabrics.

CN114332325BActive Publication Date: 2025-08-08NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111645469.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2025-08-08
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

The prior art is time-consuming and labor-intensive when making lace fabrics, making it difficult to achieve batch modification and reuse. In particular, the braided structure and the special bulge feel of the lace fabrics lead to high time-consuming and costly.

Method used

The lace fabric texture is generated through parameter control, and combined with the target lace fabric model to generate lace fabric, users can realize batch modification by changing the production parameters to improve the generation efficiency.

Benefits of technology

The generation of lace fabrics is realized through parameters, so users can quickly modify details, improve the generation efficiency and reusability of lace fabrics, and meet different pattern needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114332325B_ABST
    Figure CN114332325B_ABST
Patent Text Reader

Abstract

The present application provides a lace fabric generation method and device, electronic device, and storage medium, wherein the method includes: obtaining a lace shading style, a target lace pattern mask, and a yarn type parameter, a grid density parameter, and a yarn thickness parameter of the lace fabric; generating a lace pattern according to the yarn type parameter and the yarn thickness parameter, combined with a pattern corresponding to a non-display area of the target lace pattern mask; processing the lace shading style according to the yarn type parameter, the yarn thickness parameter, and the grid density parameter to generate a lace shading; masking the lace shading with the target lace pattern mask, and then superimposing the lace pattern to generate a lace fabric texture; obtaining a target lace fabric model; generating lace fabric according to the target lace fabric model and the lace fabric texture; the generation of lace fabric can be controlled by parameters, with high reusability, effectively improving the efficiency of lace fabric generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a lace fabric generation method and device, electronic equipment, and storage medium. Background Art

[0002] In the current game development context, with the advancement of technology, the overall improvement of game quality, and the increase in device performance, the game's graphics performance is getting closer and closer to the film and television level, making the embodiment of game details also a development focus.

[0003] When creating fabric for game costumes, artists typically manually draw various textures in texture drawing software to create the textures for the game models. This method is not only time-consuming and labor-intensive, but also requires manual drawing when details need to be modified, making it difficult to reuse. This is especially true when creating fabrics like lace, which is both difficult and time-consuming. Summary of the Invention

[0004] In view of the above problems, the present application is proposed to provide a lace fabric production method and device, electronic device, and storage medium that overcome the above problems or at least partially solve the above problems, including:

[0005] A method for generating lace fabric, the method comprising:

[0006] Obtaining a target lace shading style, a target lace pattern mask, and production parameters of the lace fabric, wherein the target lace pattern mask includes a display area and a non-display area; the production parameters include a yarn type parameter, a grid density parameter, and a yarn thickness parameter of the lace fabric;

[0007] generating a lace pattern according to the yarn type parameter and the yarn thickness parameter and in combination with a pattern corresponding to the non-display area of the target lace pattern mask;

[0008] Processing the target lace shading pattern according to the yarn type parameter, the yarn thickness parameter, and the grid density parameter to generate a lace shading;

[0009] After masking the lace background with the target lace pattern mask, the lace pattern is superimposed to generate a lace fabric texture;

[0010] Obtain the target lace fabric model;

[0011] Lace fabric is generated according to the target lace fabric model and the lace fabric texture.

[0012] Optionally, obtaining the production parameters of the lace fabric includes:

[0013] Displaying a parameter panel; the parameter panel includes a spinning type parameter selection control, a grid density parameter selection control, and a spinning thickness parameter selection control;

[0014] In response to the selection operation on each control in the parameter panel, the production parameters of the lace fabric are determined and the production parameters of the lace fabric are obtained.

[0015] Optionally, obtaining a target lace fabric model includes:

[0016] Displaying a model switching control, wherein the model switching control is associated with a model variable list, wherein the model variable list stores a plurality of lace fabric models in sequence;

[0017] In response to a triggering operation on the model switching control, multiple lace fabric models in the model variable list are displayed in sequence, and a target lace fabric model is determined.

[0018] Optionally, generating lace fabric according to the target lace fabric model and the lace fabric texture includes:

[0019] generating a lace fabric map according to the target lace fabric model and the lace fabric texture;

[0020] The target lace fabric model is rendered based on the lace fabric map to generate lace fabric.

[0021] Optionally, generating a lace fabric map according to the target lace fabric model and the lace fabric texture further includes:

[0022] Displaying a material switching control, wherein the material switching control is associated with a material variable list, wherein the material variable list stores multiple materials in sequence;

[0023] In response to a triggering operation on the material switching control, displaying a plurality of materials in the material variable list in sequence and determining a target material;

[0024] generating a lace fabric material map according to the target material and the target lace fabric model;

[0025] The lace fabric material map is mixed with the lace fabric map to update the lace fabric map.

[0026] Optionally, generating a lace fabric map according to the target lace fabric model and the lace fabric texture further includes:

[0027] Displaying an environment switching control, wherein the environment switching control is associated with an ambient light variable list, wherein the ambient light variable list stores multiple ambient lights in sequence;

[0028] In response to a triggering operation on the environment switching control, sequentially displaying multiple ambient lights in the ambient light variable list and determining a target ambient light;

[0029] generating a lace fabric ambient light map according to the target ambient light and the target lace fabric model;

[0030] The lace fabric ambient light map is mixed with the lace fabric map to update the lace fabric map.

[0031] Optionally, rendering the target lace fabric model based on the lace fabric map to generate lace fabric includes:

[0032] Display rendering parameter adjustment controls;

[0033] In response to an adjustment operation on the rendering parameter adjustment control, determining a target rendering parameter;

[0034] The lace fabric map and the target lace fabric model are rendered based on the target rendering parameters to generate lace fabric.

[0035] A lace fabric generating device, comprising:

[0036] A production parameter acquisition module is used to obtain the target lace shading style, the target lace pattern mask, and the production parameters of the lace fabric, wherein the target lace pattern mask includes a display area and a non-display area; the production parameters include the yarn type parameter, the grid density parameter, and the yarn thickness parameter of the lace fabric;

[0037] a lace pattern generating module, configured to generate a lace pattern according to the yarn type parameter and the yarn thickness parameter in combination with a pattern corresponding to the non-display area of the target lace pattern mask;

[0038] a lace shading generation module, configured to process the target lace shading pattern according to the yarn type parameter, the yarn thickness parameter, and the grid density parameter, and generate a lace shading;

[0039] a lace texture generating module, configured to mask the lace background with the target lace pattern mask and then superimpose the lace pattern to generate a lace fabric texture;

[0040] A fabric model acquisition module is used to obtain a target lace fabric model;

[0041] A lace fabric generation module is used to generate lace fabric according to the target lace fabric model and the lace fabric texture.

[0042] Optionally, the production parameter acquisition module includes:

[0043] A parameter panel display module is used to display a parameter panel; the parameter panel includes a spinning type parameter selection control, a grid density parameter selection control, and a spinning thickness parameter selection control;

[0044] The production parameter determination module is used to determine the production parameters of the lace fabric in response to the selection operation of each control in the parameter panel, and obtain the production parameters of the lace fabric.

[0045] Optionally, the cloth model acquisition module includes:

[0046] A model switching control display module is used to display a model switching control, wherein the model switching control is associated with a model variable list, and the model variable list stores multiple lace fabric models in sequence;

[0047] The lace fabric model determination module is configured to, in response to a triggering operation on the model switching control, sequentially display a plurality of lace fabric models in the model variable list and determine a target lace fabric model.

[0048] Optionally, the lace fabric generation module includes:

[0049] a lace fabric map generation module, configured to generate a lace fabric map according to the target lace fabric model and the lace fabric texture;

[0050] A rendering module is used to render the target lace fabric model based on the lace fabric map to generate lace fabric.

[0051] Optionally, the lace fabric texture generation module includes:

[0052] A material switching control display module is used to display a material switching control, wherein the material switching control is associated with a material variable list, and the material variable list stores multiple materials in sequence;

[0053] a target material determination module, configured to display a plurality of materials in the material variable list in sequence and determine a target material in response to a triggering operation on the material switching control;

[0054] A material map generation module, configured to generate a lace fabric material map according to the target material and the target lace fabric model;

[0055] A lace fabric texture updating module based on a material texture is configured to mix the lace fabric texture with the lace fabric texture to update the lace fabric texture.

[0056] Optionally, the lace fabric texture generation module includes:

[0057] An environment switching control display module, used to display an environment switching control, wherein the environment switching control is associated with an ambient light variable list, and the ambient light variable list stores multiple ambient lights in sequence;

[0058] a target ambient light determination module, configured to, in response to a triggering operation on the environment switching control, sequentially display a plurality of ambient lights in the ambient light variable list and determine a target ambient light;

[0059] an ambient light map generating module, configured to generate an ambient light map of lace fabric according to the target ambient light and the target lace fabric model;

[0060] The lace fabric texture updating module based on the ambient light texture is configured to mix the lace fabric ambient light texture with the lace fabric texture to update the lace fabric texture.

[0061] Optionally, the rendering module includes:

[0062] Rendering parameter adjustment control display module, used to display rendering parameter adjustment controls;

[0063] a target rendering parameter determination module, configured to determine target rendering parameters in response to an adjustment operation on the rendering parameter adjustment control;

[0064] A lace fabric generating module based on target rendering parameters is used to render the lace fabric map and the target lace fabric model based on the target rendering parameters to generate lace fabric.

[0065] An electronic device includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the lace fabric generation method described above when executed by the processor.

[0066] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the lace fabric generation method described above.

[0067] This application has the following advantages:

[0068] In an embodiment of the present application, a lace shading style, a target lace pattern mask, and production parameters of a lace fabric are obtained, wherein the target lace pattern mask includes a display area and a non-display area; the production parameters include a yarn type parameter, a grid density parameter, and a yarn thickness parameter of the lace fabric; according to the yarn type parameter and the yarn thickness parameter, combined with the pattern pattern corresponding to the non-display area of the target lace pattern mask, a lace pattern is generated; according to the yarn type parameter, the yarn thickness parameter, and the grid density parameter, the lace pattern is processed. A lace shading style is provided to generate a lace shading; after masking the lace shading with the target lace pattern mask, the lace pattern is superimposed to generate a lace fabric texture; a target lace fabric model is obtained; and lace fabric is generated according to the target lace fabric model and the lace fabric texture; the generation of lace fabric can be controlled by parameters, and users can achieve batch modification by changing the production parameters, with high reusability, facilitating users to produce lace fabrics with different pattern requirements, and improving the efficiency of lace fabric generation. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for the description of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0070] Figure 1 This is a flowchart of the steps of a lace fabric generation method according to an embodiment of the present application;

[0071] Figure 2 A schematic diagram of a lace pattern according to an embodiment of the present application;

[0072] Figure 3 Schematic diagram of a target lace pattern mask according to an embodiment of the present application;

[0073] Figure 4 A schematic diagram of a pattern according to an embodiment of the present application;

[0074] Figure 5 A schematic diagram of a twisted yarn according to an embodiment of the present application;

[0075] Figure 6 A schematic diagram of a lace pattern according to an embodiment of the present application;

[0076] Figure 7 This is a schematic diagram of the lace texture of an embodiment of the present application;

[0077] Figure 8 This is a structural block diagram of a lace fabric generating device according to an embodiment of the present application. DETAILED DESCRIPTION

[0078] To make the above-mentioned purposes, features, and advantages of this application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and specific embodiments. It is apparent that the embodiments described are only a portion of the embodiments of this application, not all of them. All other embodiments derived by persons of ordinary skill in the art based on the embodiments in this application without inventive effort are also within the scope of protection of this application.

[0079] Related technology When making game clothing fabrics, artists usually manually draw various textures and fabric details in texture drawing software to complete the corresponding game art resources and obtain the required textures. This method is not only time-consuming and labor-intensive, but also cannot control art details in batches.

[0080] Due to the special characteristics of lace fabrics, such as its weaving structure and raised thread feel, which are different from ordinary fabrics, the relevant technology is more difficult to use when making lace fabrics, and the time cost is higher.

[0081] In view of this, an embodiment of the present application provides a method for generating lace fabric to overcome the defects of the prior art.

[0082] One of the core concepts of the embodiments of the present application is to generate lace fabric textures through parameter control, and then combine them with the target lace fabric model to generate lace fabric, so that users can achieve batch modification of details by changing the production parameters. It is highly reusable, convenient for users to produce lace fabrics with different pattern requirements, and can effectively improve the efficiency of lace fabric generation.

[0083] Reference Figure 1 , shows a flowchart of a lace fabric generation method provided by an embodiment of the present application. In the embodiment of the present application, the lace fabric generation method may include the following steps:

[0084] Step 101: Obtain a target lace shading style, a target lace pattern mask, and production parameters of a lace fabric, wherein the target lace pattern mask includes a display area and a non-display area; the production parameters include a yarn type parameter, a grid density parameter, and a yarn thickness parameter of the lace fabric;

[0085] Step 102, generating a lace pattern according to the yarn type and the yarn thickness parameter and the pattern corresponding to the non-display area of the target lace pattern mask;

[0086] Step 103, processing the target lace shading pattern according to the yarn type parameter, the yarn thickness parameter, and the grid density parameter to generate a lace shading;

[0087] Step 104, masking the lace background with the target lace pattern mask, and then superimposing the lace pattern to generate a lace fabric texture;

[0088] Step 105: obtaining a target lace fabric model;

[0089] Step 106: Generate lace fabric according to the target lace fabric model and the lace fabric texture.

[0090] The processes of generating the lace pattern and generating the lace shading may not be separated in order, for example, they may be generated simultaneously, or the lace pattern may be generated first and then the lace shading, or the lace shading may be generated first and then the lace pattern.

[0091] The embodiment of the present application obtains a lace shading style, a target lace pattern mask, and production parameters of a lace fabric, wherein the target lace pattern mask includes a display area and a non-display area; the production parameters include a yarn type parameter, a grid density parameter, and a yarn thickness parameter of the lace fabric; generates a lace pattern based on the yarn type parameter and the yarn thickness parameter, combined with a pattern corresponding to the non-display area of the target lace pattern mask; processes the lace shading style based on the yarn type parameter, the yarn thickness parameter, and the grid density parameter to generate a lace shading; masks the lace shading with the target lace pattern mask, and then superimposes the lace pattern to generate a lace fabric texture; obtains a target lace fabric model; and generates lace fabric based on the target lace fabric model and the lace fabric texture. The generation of lace fabric can be controlled by parameters, and users can make batch modifications by changing the production parameters. This method has high reusability, facilitates users in producing lace fabrics with different pattern requirements, and improves the efficiency of lace fabric generation.

[0092] Next, the lace fabric generating method in this exemplary embodiment will be further described.

[0093] Generally, the process of weaving lace fabric involves a grid and a pattern (also called a pattern), and multiple patterns are connected through the grid to form a lace fabric. Therefore, it can be considered that lace fabric is composed of a combination of a grid and a pattern.

[0094] In this embodiment, lace fabric generation software for making lace fabric can be run through a terminal device, and a graphical user interface can be rendered on a display screen of the terminal device. Relevant interactive controls can be provided in the graphical user interface so that the user can adjust relevant parameters of the lace fabric through the interactive controls to generate lace fabric that meets the requirements.

[0095] In step 101, a target lace shading style, a target lace pattern mask, and production parameters of the lace fabric are obtained, wherein the target lace pattern mask includes a display area and a non-display area; the production parameters include a yarn type parameter, a grid density parameter, and a yarn thickness parameter of the lace fabric.

[0096] The lace pattern mask in the embodiment of the present application is used to determine the positions where the lace pattern and the lace shading appear. In this embodiment, the lace shading presented in the lace fabric is referred to as a lace grid. It can be understood that the lace grid is obtained after the lace shading is processed by the lace pattern mask. Specifically, the lace pattern mask includes a display area and a non-display area. The display area indicates the position where the lace shading appears, and the non-display area indicates the position where the lace pattern appears. The pattern pattern corresponding to each lace pattern mask is used to determine the display effect of the lace pattern. Specifically, the pattern pattern includes the appearance of the lace pattern and the weaving method of the yarn. Generally, the weaving methods include plain weave, twill weave, satin weave and saro weave. The lace shading style is used to determine the basic style of the lace grid. Figure 2 The lace shading pattern is obtained by tiling the target lace shading pattern in an example of this application. Figure 3 This is the target lace pattern mask in an example of this application. Figure 4 It is one of the pattern patterns in the non-display area of the target lace pattern mask in an example of this application.

[0097] In the embodiment of the present application, obtaining the target lace shading pattern may include one or more of receiving an imported target lace shading pattern, generating a target lace shading pattern, and obtaining the target lace shading pattern from a shading pattern library associated with lace making software.

[0098] For example, the user can prepare the target lace shading pattern in advance from other production software according to needs, and import it into the lace fabric generation software.

[0099] For example, users can directly use the relevant tools and functions provided by the lace fabric generation software to create a target lace shading pattern. The process of using the relevant tools and functions provided by the lace fabric generation software to create a target lace shading pattern may include: arranging sampling nodes so that the yarns are arranged crosswise according to the sampling nodes, and performing directional distortion processing on the yarns through blurring operations and noise-based textures to obtain a lace shading pattern that makes the yarns more realistic.

[0100] For example, the graphical user interface may provide a lace shading style selection control so that the user can determine the target lace shading style through the lace shading style selection control. Specifically, the lace shading style selection control may associate multiple lace shading styles stored in a specified storage path in the form of a storage path. For example, the multiple lace shading styles may include a diamond shading style, a hexagonal shading style, a special shape shading style (such as a lace shading style), and a lace shading style. Figure 2 The example shows a lace shading pattern obtained by tiling a special shaped shading pattern. When the user clicks the lace shading pattern selection control, the interface displays the available shading patterns. When the user selects one of the available shading patterns, the pattern is determined as the target lace shading pattern.

[0101] Similar to obtaining the target lace shading style, obtaining the target lace pattern mask may include receiving an imported target lace pattern mask, generating the target lace pattern mask, and obtaining the target lace pattern mask from a pattern mask library associated with the lace making software.

[0102] For example, the user can prepare the target lace pattern mask in other production software in advance according to the needs, and import it into the lace fabric generation software.

[0103] For example, the user can directly use the relevant tools and functions provided by the lace fabric generation software to create a target lace pattern mask. The process of using the relevant tools and functions provided by the lace fabric generation software to create a target lace pattern mask can include: determining a pattern, and determining a display area and a non-display area of the lace pattern mask based on the outline of the pattern, wherein the display area is the area within the lace pattern outline, and the non-display area is the area outside the lace pattern outline.

[0104] For example, the graphical user interface may provide a lace pattern mask selection control, so that the user can use the lace pattern mask selection control to determine a target lace pattern mask. Specifically, the lace pattern mask selection control can associate multiple lace pattern masks stored in a specified storage path by way of storage paths. When the user clicks the lace pattern mask selection control, selectable lace pattern masks can be displayed in the interface. When the user selects one of the selectable lace pattern masks, the lace pattern mask is determined as the target lace pattern mask.

[0105] The production parameters include the yarn type parameter, grid density parameter and yarn thickness parameter of the lace fabric; the yarn type can include twisted yarn and non-twisted yarn. When the yarn type parameter is a twisted yarn parameter, it means that the lace fabric is made with twisted yarn; when the yarn type parameter is a non-twisted yarn parameter, it means that the lace fabric is made with non-twisted yarn. Figure 5 Shown is a schematic diagram of multiple yarns of the twisted yarn type displayed side by side.

[0106] The grid density parameter is used to determine the density of the lace pattern after it is tiled. Specifically, the grid density parameter can include a length parameter and a width parameter. The length parameter is used to indicate the number of lace patterns tiled in the length direction within a unit length, and the width parameter is used to indicate the number of lace patterns tiled in the width direction within a unit width. The larger the grid density parameter, the denser the lace pattern will appear after it is tiled.

[0107] The yarn thickness may include the thickness of a pattern yarn used for weaving a lace pattern and the thickness of a mesh yarn used for weaving a lace mesh. Optionally, the thickness of the pattern yarn used for weaving a lace pattern may be further subdivided into the thicknesses of multiple sub-pattern yarns, for example, the thicknesses of multiple sub-pattern yarns may be divided according to different sub-pattern patterns within a pattern, or the thicknesses of multiple sub-pattern yarns may be divided according to different weaving methods within a pattern, and so on.

[0108] In the embodiment of the present application, the process of obtaining the production parameters may include:

[0109] Displaying a parameter panel; the parameter panel includes a spinning type parameter selection control, a grid density parameter selection control, and a spinning thickness parameter selection control;

[0110] In response to the selection operation on each control in the parameter panel, the production parameters of the lace fabric are determined and the production parameters of the lace fabric are obtained.

[0111] Specifically, the graphical user interface of the lace fabric generation software may include a parameter panel trigger control, and the parameter panel may be displayed in response to a trigger operation on the parameter panel trigger control; the parameter panel includes a yarn type parameter selection control, a grid density parameter selection control, and a yarn thickness parameter selection control; the user can click on each control in the parameter panel to display the input / selection interface corresponding to each control, and then determine the corresponding production parameters in the input / selection interface.

[0112] For example, when a user clicks on a spinning type parameter selection control, a twisting type control and a non-twisting type control may be displayed. When the user selects the twisting type control, the spinning type is determined to be twisting. Optionally, to allow the user to more intuitively view the effects of different spinning types, a twisting texture pattern may be embedded in the twisting type control, and a non-twisting texture pattern may be embedded in the non-twisting type control.

[0113] For example, when a user clicks a grid density parameter selection control, multiple selectable grid density controls are displayed. When the user selects one of these controls, the grid density is determined to be the grid density corresponding to the selected grid density control. To allow users to more intuitively view the effects of different grid densities, an image of the target lace shading style tiled at that grid density can be embedded in the grid density control.

[0114] Optionally, when the user clicks the grid density parameter selection control, a grid density slider may be displayed, and the user may determine the grid density parameter by dragging the pointer on the slider.

[0115] Optionally, when the user clicks the grid density parameter selection control, an input box for the user to input a specific grid density value may be displayed, and the grid density input by the user in the input box is received to determine the grid density parameter.

[0116] For example, when a user clicks the yarn thickness parameter selection control, multiple pattern yarn thickness controls and grid yarn thickness controls are displayed. When the user selects one of the pattern yarn thickness controls, the pattern yarn thickness is determined to be the thickness corresponding to the selected pattern yarn thickness control. The same applies to the grid yarn thickness. To allow users to more intuitively view the effects of different yarn thicknesses, a yarn thickness control can be embedded with an image showing the effect of the currently selected yarn type corresponding to the yarn thickness.

[0117] Optionally, when the user clicks on the yarn thickness parameter selection control, the pattern yarn thickness slider and the grid yarn thickness slider can also be displayed. The user can determine the pattern yarn and grid yarn thickness parameters by dragging the pointer on the slider.

[0118] Optionally, when the user clicks on the yarn thickness parameter selection control, an input box can be displayed for the user to enter the specific pattern yarn and grid yarn thickness, and the thickness entered by the user in the input box can be received to determine the pattern yarn and grid yarn thickness parameters.

[0119] It should also be noted that for production parameters not selected / modified by the user, the corresponding default production parameters are used.

[0120] In step 102, a lace pattern is generated according to the yarn type parameter and the yarn thickness parameter in combination with a pattern corresponding to the non-display area of the target lace pattern mask.

[0121] After determining the type of yarn and the thickness of the pattern yarn, the pattern yarn style for weaving the lace pattern can be determined. For easy distinction, the pattern yarn at this time is called the target pattern yarn. The target pattern yarn is woven according to the corresponding pattern to simulate the weaving process to generate a lace pattern.

[0122] For example, Figure 4 The figure shows one of the patterns in the non-display area of the target lace pattern mask in an example of the present application. The process of performing weaving simulation according to the pattern pattern may include: dividing the pattern pattern into multiple sub-pattern patterns according to the weaving method in the pattern pattern; for each sub-pattern pattern, first determining the arrangement of the target pattern yarns according to the weaving method of the sub-pattern pattern, arranging the target pattern yarns according to the determined arrangement method, and masking the arranged target pattern yarns with the mask corresponding to the sub-pattern pattern, that is, obtaining the target pattern direction corresponding to the display area of the mask, and obtaining the sub-lace pattern. The sub-lace patterns corresponding to all sub-pattern patterns can be obtained in a similar manner. Finally, all sub-lace patterns are spliced according to the pattern pattern to obtain the lace pattern corresponding to the pattern pattern.

[0123] Optionally, the lace threads in the lace pattern may be directional-distorted by using a blur operation and a noise-based texture, so that the lace pattern appears more realistic.

[0124] In step 103, the target lace shading pattern is processed according to the yarn type parameter, the yarn thickness parameter, and the grid density parameter to generate a lace shading.

[0125] After determining the yarn type and yarn thickness parameters, the mesh yarn pattern for the lace mesh can be determined. For ease of distinction, this mesh yarn is referred to as the target mesh yarn. The target mesh yarn is used to replace the yarn in the target lace shading pattern. The target lace shading pattern, which has been replaced with the target mesh yarn, is then tiled according to the mesh density parameters to obtain the lace shading.

[0126] In step 104, the lace background pattern is masked using the target lace pattern mask, and then the lace pattern is superimposed to generate a lace fabric texture.

[0127] In this embodiment, when the target lace pattern mask is a mask generated by adjusting the grayscale value, that is, the grayscale value of the display area of the target lace pattern mask is 1, and the grayscale value of the non-display area is 0, then the process of using the target lace pattern mask to mask the lace background can be specifically to mix the target lace pattern mask and the lace background in a multiplicative form, so that the lace background is displayed in the display area of the target lace pattern mask to obtain a lace grid.

[0128] When the target lace pattern mask is a mask generated by adjusting the transparency value, that is, the transparency of the display area of the target lace pattern mask is 100% and the transparency of the non-display area is 0, then the process of using the target lace pattern mask to mask the lace background can specifically be to superimpose the target lace pattern mask on the lace background so that the lace background is displayed in the display area of the target lace pattern mask, thereby obtaining a lace mesh.

[0129] After obtaining the lace mesh, the lace mesh and the lace pattern are combined to generate lace fabric.

[0130] Specifically, the lace pattern may be superimposed on the lace grid so that the lace pattern just fills the non-display area of the target lace pattern mask.

[0131] For example, the lace pattern is as follows Figure 2 As shown, the target lace pattern mask is as follows Figure 3 As shown, the lace pattern corresponding to the target lace pattern is as follows Figure 6 As shown. Figure 3 The target lace pattern mask shown is Figure 2 The lace shading shown is masked so that the portion of the lace shading corresponding to the non-display area of the target lace pattern mask is blocked, while the portion of the lace shading corresponding to the display area of the target lace pattern mask is displayed normally, thereby obtaining a lace mesh. Figure 6 The lace pattern shown is superimposed on the lace mesh. Since the lace pattern is generated based on the pattern pattern corresponding to the non-display area of the target lace pattern mask, the outline of the lace pattern corresponds to the outline of the non-display area of the target lace pattern mask. That is, the lace pattern is superimposed on the lace mesh, so that the part of the lace background corresponding to the non-display area masked by the lace pattern displays the lace pattern, achieving the effect of the combination of the lace mesh and the lace pattern, that is, obtaining the lace fabric texture (such as Figure 7 ). The Lace Fabric Texture is used to represent the flat linear pattern of lace fabric.

[0132] In step 105, a target lace fabric model is obtained.

[0133] In this embodiment, the lace fabric model refers to a lace fabric mesh model, and obtaining the target lace fabric model may include receiving an imported target lace fabric model, generating the target lace fabric model, and obtaining the target lace fabric model from a model library associated with lace making software.

[0134] For example, the user can pre-make a target lace fabric model according to the needs and import it into the lace fabric generation software. Alternatively, the user can directly use the relevant tools and functions provided by the lace fabric generation software to make the target lace fabric model.

[0135] Exemplarily, the process of obtaining the target lace fabric model may include:

[0136] Displaying a model switching control, wherein the model switching control is associated with a model variable list, wherein the model variable list stores a plurality of lace fabric models in sequence;

[0137] In response to a triggering operation on the model switching control, multiple lace fabric models in the model variable list are displayed in sequence, and a target lace fabric model is determined.

[0138] Specifically, the graphical user interface of the lace fabric generation software may include a model switching control, the model switching control being associated with a model variable list, the model variable list storing a plurality of lace fabric models in sequence, and each time a user clicks the model switching control, a displayed lace fabric model is switched. For example, the lace fabric model with the first sequence number in the model variable list may be determined as the default lace fabric model, that is, before the user clicks the model switching control, the lace fabric model with the first sequence number is displayed; when the user clicks the model switching control once, the lace fabric model with the second sequence number is displayed to replace the currently displayed lace fabric model with the first sequence number; when the user clicks the model switching control again, the lace fabric model with the third sequence number is displayed to replace the currently displayed lace fabric model with the second sequence number; and so on. When the currently displayed lace fabric model with the last sequence number is the lace fabric model, the user clicks the model switching control again to display the lace fabric model with the first sequence number to replace the currently displayed lace fabric model with the last sequence number.

[0139] Users can determine the target lace fabric model by clicking the model switching control, which is more convenient.

[0140] Optionally, the graphical user interface of the lace fabric generation software may further include a slider for adjusting the orientation of the currently displayed lace fabric model. The slider is provided with a movable pointer. When the pointer moves from one end of the slider to the other end of the slider, the currently displayed lace fabric model rotates 360 degrees. By moving the pointer on the slider, the display angle of the currently displayed lace fabric model can be determined.

[0141] In step 106, lace fabric is generated according to the target lace fabric model and the lace fabric texture.

[0142] After determining the target lace fabric model and lace fabric texture, the lace fabric texture can be mapped to the surface of the target lace fabric model in a tiling manner through the fabric shader in the lace fabric generation software, and the lace fabric is generated after shading and rendering processing.

[0143] That is, the process of generating lace fabric according to the target lace fabric model and the lace fabric texture may include:

[0144] generating a lace fabric map according to the target lace fabric model and the lace fabric texture;

[0145] The target lace fabric model is rendered based on the lace fabric map to generate lace fabric.

[0146] Each pixel in the lace fabric map precisely corresponds to each pixel on the surface of the target lace fabric model. The lace fabric map includes texture data for each pixel in the target lace fabric model. A lace fabric map generated solely based on the target lace fabric model and the lace fabric texture is also called a lace fabric texture map. Lace fabric is then rendered onto the surface of the target lace fabric model, following its mapping relationship with the target lace fabric model.

[0147] In an optional embodiment of the present application, the step of generating a lace fabric map according to the target lace fabric model and the lace fabric texture further includes:

[0148] Displaying a material switching control, wherein the material switching control is associated with a material variable list, wherein the material variable list stores multiple materials in sequence;

[0149] In response to a triggering operation on the material switching control, displaying a plurality of materials in the material variable list in sequence and determining a target material;

[0150] generating a lace fabric material map according to the target material and the target lace fabric model;

[0151] The lace fabric material map is mixed with the lace fabric map to update the lace fabric map.

[0152] In this embodiment, the graphical user interface can also display a material switching control. The material switching control is associated with a material variable list, which stores multiple materials in sequence. Each time the user clicks the material switching control, the displayed material is switched. This is similar to the model switching control described above and will not be repeated here.

[0153] Users can select the target material by clicking the material switch control. This generates a lace fabric texture map based on the target lace fabric model. This lace fabric texture map contains material information, and each pixel in the lace fabric texture map precisely corresponds to each pixel on the surface of the target lace fabric model. Therefore, there is a one-to-one correspondence between the pixels in the lace fabric texture map and the pixels in the lace fabric map.

[0154] The lace fabric texture map is mixed with the lace fabric texture map, that is, the material information in the lace fabric texture map is assigned to the lace fabric texture map in a one-to-one correspondence, to obtain a new texture. The lace fabric texture map is replaced with the obtained new texture to update the lace fabric texture so that the updated lace fabric texture also contains material information; the material information is used to represent the texture of the lace fabric.

[0155] For example, when the target material is metal, the lace fabric texture map is also a metal texture map. By blending the lace fabric texture map with a lace fabric texture map, the resulting updated lace fabric texture has a metallic texture. The target lace fabric model is then rendered based on this lace fabric texture, and the resulting lace fabric also has a metallic texture.

[0156] In an optional embodiment of the present application, the step of generating a lace fabric map according to the target lace fabric model and the lace fabric texture further includes:

[0157] Displaying an environment switching control, wherein the environment switching control is associated with an ambient light variable list, wherein the ambient light variable list stores multiple ambient lights in sequence;

[0158] In response to a triggering operation on the environment switching control, sequentially displaying multiple ambient lights in the ambient light variable list and determining a target ambient light;

[0159] generating a lace fabric ambient light map according to the target ambient light and the target lace fabric model;

[0160] The lace fabric ambient light map is mixed with the lace fabric map to update the lace fabric map.

[0161] In this embodiment, the graphical user interface can also display an environment switch control. This environment switch control is associated with an ambient light variable list, which sequentially stores multiple ambient lights. For example, the multiple ambient lights can include ambient light emitted by point light sources, ambient light emitted by spotlights, ambient light emitted by parallel light sources, and skylight formed by reflected sunlight. Each time the user clicks the environment switch control, a displayed ambient light is switched. This is similar to the model switch control described above and will not be further described here.

[0162] Users can select the target ambient light by clicking the ambient switch control. This, combined with the target lace fabric model, generates a lace fabric ambient light map. This lace fabric ambient light map contains ambient light information, and each pixel in the lace fabric ambient light map precisely corresponds to each pixel on the surface of the target lace fabric model. Therefore, there is a one-to-one correspondence between the pixels in the lace fabric ambient light map and the pixels in the lace fabric map.

[0163] The lace fabric ambient light map is mixed with the lace fabric map, that is, the ambient light information in the lace fabric ambient light map is assigned to the lace fabric map in a one-to-one correspondence to obtain a new map. The lace fabric map is replaced with the obtained new map to update the lace fabric map, so that the updated lace fabric map also includes ambient light information; the ambient light information is used to represent the angle at which each pixel of the lace fabric is illuminated by ambient light.

[0164] Optionally, the graphical user interface of the lace fabric generation software may further include a slider for adjusting the position of the ambient light source. A movable pointer is disposed on the slider. When the pointer moves from one end of the slider to the other end of the slider, the currently displayed ambient light source rotates 360 degrees around the target lace fabric model. By moving the pointer on the slider, the position of the currently displayed ambient light source can be determined.

[0165] It should be noted that the lace fabric material map and the lace fabric ambient light map can be mixed with the lace fabric texture map at the same time to obtain a lace fabric map containing lace fabric texture, target material and ambient light information.

[0166] Furthermore, in an optional embodiment of the present application, the step of rendering the target lace fabric model based on the lace fabric map to generate the lace fabric includes:

[0167] Display rendering parameter adjustment controls;

[0168] In response to an adjustment operation on the rendering parameter adjustment control, determining a target rendering parameter;

[0169] The lace fabric map and the target lace fabric model are rendered based on the target rendering parameters to generate lace fabric.

[0170] Taking into account the particularity of lace fabrics and to facilitate users in creating lace fabrics for a variety of different needs, in this embodiment, the graphical user interface also provides a rendering parameter trigger control for the fabric shader. When the user clicks the rendering parameter trigger control, a rendering parameter input panel is displayed. The rendering parameter input panel includes multiple rendering parameter adjustment controls. The user can adjust the rendering-related rendering parameter adjustment controls according to actual needs to determine the corresponding rendering parameters and obtain the target rendering parameters. Based on the obtained target rendering parameters, the lace fabric map and the target lace fabric model are rendered to generate lace fabric that meets the user's needs.

[0171] Specifically, one rendering parameter adjustment control corresponds to one rendering parameter. In this embodiment, the rendering parameters may include: parameters for adjusting the color brightness of the cloth material, parameters for adjusting the lowest threshold of the darkest part of the cloth, parameters for adjusting the reflective intensity of the cloth interpolation, parameters for adjusting the diffuse reflection intensity of the cloth, parameters for adjusting the reflective reflection intensity of the cloth, parameters for adjusting the roughness of the cloth, parameters for adjusting the diffuse reflection color of the cloth, parameters for adjusting the reflective color of the cloth, parameters for adjusting the highlight items of the cloth, etc. One or more of the following.

[0172] Users can adjust the rendering effect of lace fabric by adjusting the rendering parameters, making it easier to generate the desired lace fabric. For rendering parameter adjustment controls that the user does not adjust, the rendering parameters corresponding to the rendering parameter condition control will use the default values.

[0173] Furthermore, to simulate the highlight effect of lace fabric, the fabric shader of this embodiment performs two BRDF calculations to distinguish the rough and smooth parts of the lace fabric, making them more distinct. Specifically, when rendering the target lace fabric model, the fabric shader performs two BRDF processes on the lace fabric map based on the roughness adjustment parameter specified in the target rendering parameters. This makes the rough and smooth parts of the generated lace fabric more distinct, resulting in a more realistic rendering result.

[0174] In order to better imitate the special texture of the reflective part of the fluffy part of the cloth object, the cloth shader of this embodiment mainly uses the normal in the world space and the vector of the camera observation angle to perform dot product to distinguish the range where the reflection should appear in the model. Then, the result of the dot product is purposefully limited to between 0 and 1 through the clamp (returning a value within the range) function, that is, when the dot product result is less than 0, the dot product result is recorded as 0; when the dot product result is greater than 1, the dot product result is recorded as 1; when the dot product result is between 0 and 1, the actual dot product result is used. Then, the black and white ranges are reversed accordingly, and the result is squared to expand the range of reflection. It is then multiplied by the value of a three-vector, which defines the color tendency of the reflection range, that is, the parameter used to adjust the reflection color in the target rendering parameters. Finally, the obtained range is input as an interpolation into the Lerp (interpolation) node to obtain a more natural reflection effect.

[0175] In an embodiment of the present application, users can input production parameters including yarn type parameters, mesh density parameters, and yarn thickness parameters of the lace fabric through the parameter panel provided by the lace fabric generation software, thereby quickly generating / modifying the detailed textures corresponding to the lace fabric in batches, with high reusability. Through the model switching control, material switching control, and environment switching control, the lace fabric model, material, and ambient light corresponding to the lace fabric can be quickly modified. The rendering parameter adjustment control allows for rapid modification of the rendering effect of the lace fabric. This allows users to easily create lace fabrics with different pattern requirements and ensure the display effect of the generated lace fabric.

[0176] It should be noted that for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the order of the actions described, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.

[0177] Reference Figure 8 , shows a structural block diagram of an embodiment of a lace fabric generating device of the present application, which may specifically include the following modules:

[0178] The production parameter acquisition module 801 is used to obtain the target lace shading style, the target lace pattern mask, and the production parameters of the lace fabric, wherein the target lace pattern mask includes a display area and a non-display area; the production parameters include the yarn type parameter, the grid density parameter, and the yarn thickness parameter of the lace fabric;

[0179] a lace pattern generating module 802 for generating a lace pattern according to the yarn type parameter and the yarn thickness parameter in combination with a pattern corresponding to the non-display area of the target lace pattern mask;

[0180] A lace shading generation module 803 is configured to process the target lace shading pattern according to the yarn type parameter, the yarn thickness parameter, and the grid density parameter to generate a lace shading;

[0181] A lace texture generating module 804 is configured to mask the lace background with the target lace pattern mask and then superimpose the lace pattern to generate a lace fabric texture.

[0182] The fabric model acquisition module 805 is used to acquire a target lace fabric model;

[0183] The lace fabric generating module 806 is configured to generate lace fabric according to the target lace fabric model and the lace fabric texture.

[0184] Optionally, the production parameter acquisition module 801 includes:

[0185] A parameter panel display module is used to display a parameter panel; the parameter panel includes a spinning type parameter selection control, a grid density parameter selection control, and a spinning thickness parameter selection control;

[0186] The production parameter determination module is used to determine the production parameters of the lace fabric in response to the selection operation of each control in the parameter panel, and obtain the production parameters of the lace fabric.

[0187] Optionally, the cloth model acquisition module 805 includes:

[0188] A model switching control display module is used to display a model switching control, wherein the model switching control is associated with a model variable list, and the model variable list stores multiple lace fabric models in sequence;

[0189] The lace fabric model determination module is configured to, in response to a triggering operation on the model switching control, sequentially display a plurality of lace fabric models in the model variable list and determine a target lace fabric model.

[0190] Optionally, the lace fabric generating module 806 includes:

[0191] a lace fabric map generation module, configured to generate a lace fabric map according to the target lace fabric model and the lace fabric texture;

[0192] A rendering module is used to render the target lace fabric model based on the lace fabric map to generate lace fabric.

[0193] Optionally, the lace fabric texture generation module includes:

[0194] A material switching control display module is used to display a material switching control, wherein the material switching control is associated with a material variable list, and the material variable list stores multiple materials in sequence;

[0195] a target material determination module, configured to display a plurality of materials in the material variable list in sequence and determine a target material in response to a triggering operation on the material switching control;

[0196] A material map generation module, configured to generate a lace fabric material map according to the target material and the target lace fabric model;

[0197] A lace fabric texture updating module based on a material texture is configured to mix the lace fabric texture with the lace fabric texture to update the lace fabric texture.

[0198] Optionally, the lace fabric texture generation module includes:

[0199] An environment switching control display module, used to display an environment switching control, wherein the environment switching control is associated with an ambient light variable list, and the ambient light variable list stores multiple ambient lights in sequence;

[0200] a target ambient light determination module, configured to, in response to a triggering operation on the environment switching control, sequentially display a plurality of ambient lights in the ambient light variable list and determine a target ambient light;

[0201] an ambient light map generating module, configured to generate an ambient light map of lace fabric according to the target ambient light and the target lace fabric model;

[0202] The lace fabric texture updating module based on the ambient light texture is configured to mix the lace fabric ambient light texture with the lace fabric texture to update the lace fabric texture.

[0203] Optionally, the rendering module includes:

[0204] Rendering parameter adjustment control display module, used to display rendering parameter adjustment controls;

[0205] a target rendering parameter determination module, configured to determine target rendering parameters in response to an adjustment operation on the rendering parameter adjustment control;

[0206] A lace fabric generating module based on target rendering parameters is used to render the lace fabric map and the target lace fabric model based on the target rendering parameters to generate lace fabric.

[0207] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0208] An embodiment of the present application also discloses an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the steps of the lace fabric generation method described above are implemented.

[0209] The embodiment of the present application further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the lace fabric generation method described above are implemented.

[0210] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0211] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0212] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0213] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0214] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0215] Although preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic inventive concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0216] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.

[0217] The above is a detailed introduction to the lace fabric generation method and device, electronic device and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for those skilled in the art, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present application.

Claims

1. A method for producing lace fabric, characterized in that: The method comprises: Obtaining a target lace shading style, a target lace pattern mask, and production parameters of the lace fabric, wherein the target lace pattern mask includes a display area and a non-display area; the production parameters include a yarn type parameter, a grid density parameter, and a yarn thickness parameter of the lace fabric; generating a lace pattern according to the yarn type parameter and the yarn thickness parameter and in combination with a pattern corresponding to the non-display area of the target lace pattern mask; Processing the target lace shading pattern according to the yarn type parameter, the yarn thickness parameter, and the grid density parameter to generate a lace shading; After masking the lace background with the target lace pattern mask, the lace pattern is superimposed to generate a lace fabric texture; Obtain the target lace fabric model; Lace fabric is generated according to the target lace fabric model and the lace fabric texture.

2. The method according to claim 1, characterized in that The step of obtaining the target lace shading style, the target lace pattern mask, and the production parameters of the lace fabric includes: Displaying a parameter panel; the parameter panel includes a spinning type parameter selection control, a grid density parameter selection control, and a spinning thickness parameter selection control; In response to the selection operation on each control in the parameter panel, the production parameters of the lace fabric are determined and the production parameters of the lace fabric are obtained.

3. The method according to claim 1, characterized in that The step of obtaining a target lace fabric model includes: Displaying a model switching control, wherein the model switching control is associated with a model variable list, wherein the model variable list stores a plurality of lace fabric models in sequence; In response to a triggering operation on the model switching control, multiple lace fabric models in the model variable list are displayed in sequence, and a target lace fabric model is determined.

4. The method according to claim 3, characterized in that Generating lace fabric according to the target lace fabric model and the lace fabric texture includes: generating a lace fabric map according to the target lace fabric model and the lace fabric texture; The target lace fabric model is rendered based on the lace fabric map to generate lace fabric.

5. The method according to claim 4, characterized in that The step of generating a lace fabric map according to the target lace fabric model and the lace fabric texture further includes: Displaying a material switching control, wherein the material switching control is associated with a material variable list, wherein the material variable list stores multiple materials in sequence; In response to a triggering operation on the material switching control, displaying a plurality of materials in the material variable list in sequence and determining a target material; generating a lace fabric material map according to the target material and the target lace fabric model; The lace fabric material map is mixed with the lace fabric map to update the lace fabric map.

6. The method according to claim 4, characterized in that The step of generating a lace fabric map according to the target lace fabric model and the lace fabric texture further includes: Displaying an environment switching control, wherein the environment switching control is associated with an ambient light variable list, wherein the ambient light variable list stores multiple ambient lights in sequence; In response to a triggering operation on the environment switching control, sequentially displaying multiple ambient lights in the ambient light variable list and determining a target ambient light; generating a lace fabric ambient light map according to the target ambient light and the target lace fabric model; The lace fabric ambient light map is mixed with the lace fabric map to update the lace fabric map.

7. The method according to any one of claims 4 to 6, characterized in that The rendering of the target lace fabric model based on the lace fabric map to generate lace fabric includes: Display rendering parameter adjustment controls; In response to an adjustment operation on the rendering parameter adjustment control, determining a target rendering parameter; The lace fabric map and the target lace fabric model are rendered based on the target rendering parameters to generate lace fabric.

8. A lace fabric production device, characterized in that: The device comprises: A production parameter acquisition module is used to obtain the target lace shading style, the target lace pattern mask, and the production parameters of the lace fabric, wherein the target lace pattern mask includes a display area and a non-display area; the production parameters include the yarn type parameter, grid density parameter, and yarn thickness parameter of the lace fabric; a lace pattern generating module, configured to generate a lace pattern according to the yarn type parameter and the yarn thickness parameter in combination with a pattern corresponding to the non-display area of the target lace pattern mask; a lace shading generation module, configured to process the target lace shading pattern according to the yarn type parameter, the yarn thickness parameter, and the grid density parameter, and generate a lace shading; a lace texture generating module, configured to mask the lace background with the target lace pattern mask and then superimpose the lace pattern to generate a lace fabric texture; A fabric model acquisition module is used to obtain a target lace fabric model; A lace fabric generation module is used to generate lace fabric according to the target lace fabric model and the lace fabric texture.

9. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the lace fabric generating method according to any one of claims 1 to 7 are implemented.

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

Citation Information

Patent Citations

  • Solid fragmentation simulation and animation method based on embedded grids

    CN104574472A

  • Cloth animation generation method and device and computer readable storage medium

    CN111028320A