Three-dimensional modeling clothing zooming method and device and electronic equipment
By pre-scaling the mesh data of the 3D clothing pattern and mapping it to the latest position, the problem of abnormal display after scaling of 3D modeled clothing was solved, ensuring shape consistency and improving user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- LINGDI (ZHEJIANG) TECHNOLOGY CO LTD
- Filing Date
- 2024-10-29
- Publication Date
- 2026-05-01
AI Technical Summary
Existing technologies discard garment pattern information during the scaling process of 3D modeled clothing, resulting in abnormal display of scaled 3D garment components, requiring re-simulation and leading to a poor user experience.
By pre-scaling the 3D mesh data corresponding to the garment pattern, and mapping the latest position based on the old position of the 3D garment parts before pre-scaling and the pre-scaled 3D mesh data, the shape before and after scaling is consistent, avoiding display confusion.
This technology ensures that 3D clothing components maintain the same shape as the modeled clothing after scaling, eliminating the need for re-simulation and improving the user experience.
Smart Images

Figure CN121962545A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of computer technology, and more particularly to a scaling method, apparatus, and electronic device for three-dimensional modeled clothing. Background Technology
[0002] In the process of clothing simulation modeling, it is usually necessary to scale the size of the simulated 3D clothing. This scaling involves treating the 3D clothing as a whole and adjusting the proportions through scaling transformations.
[0003] In related technologies, the general approach is to convert the 3D modeled clothing into a .obj format and then scale the model.
[0004] In fashion design software, there is often a need to scale 3D modeled garments. This could be done by scaling the entire 3D modeled garment or by scaling individual 3D garment components separately.
[0005] However, related technologies have already converted 3D modeled clothing into OBJ models. Because this conversion discards information related to the clothing patterns (such as stitching relationships, fabric physical parameters, rendering parameters, etc.), it can lead to abnormal display of scaled 3D clothing components. For example, due to the missing stitching relationships, scaled 3D clothing components may appear in the wrong positions, or the entire 3D modeled clothing may appear disorganized. Summary of the Invention
[0006] This specification provides a scaling method, apparatus, and electronic device for 3D modeled clothing, which solves the problem of abnormal display after scaling clothing patterns of 3D modeled clothing.
[0007] According to a first aspect of the embodiments of this specification, a scaling method for three-dimensional modeled clothing is provided, the method comprising:
[0008] In response to a selection operation on at least one 3D garment component in a 3D modeled garment, the target 3D garment component to be operated on is determined.
[0009] In response to a scaling operation on the garment pattern corresponding to the target three-dimensional garment component, a scaling ratio is determined;
[0010] According to the scaling ratio, the three-dimensional mesh data corresponding to the garment pattern is pre-scaled; wherein, the three-dimensional mesh data is mesh data obtained by meshing the garment pattern;
[0011] Based on the pre-scaled 3D mesh data, the latest position of the target 3D clothing component in the 3D modeled clothing is determined, and the scaled target 3D clothing component constructed from the 3D mesh data is displayed at the latest position.
[0012] Optionally, determining the latest position of the 3D garment component corresponding to the target garment pattern after scaling, based on the pre-scaled 3D mesh data, includes:
[0013] Obtain the original position of the target 3D clothing component in the 3D modeled clothing before scaling;
[0014] Based on the old position and the pre-scaled 3D mesh data, the latest position of the target 3D clothing component in the 3D modeled clothing is determined.
[0015] Optionally, determining the scaling ratio in response to a scaling operation on the garment pattern corresponding to the target three-dimensional garment component includes:
[0016] In response to a scaling operation performed on a two-dimensional garment pattern corresponding to the target three-dimensional garment component, the scaling ratio of the scaling operation is determined;
[0017] Alternatively, in response to a scaling operation performed on a three-dimensional garment pattern corresponding to the target three-dimensional garment component, the scaling ratio of the scaling operation is determined.
[0018] Optionally, when the target three-dimensional garment part has related garment accessories, the method further includes:
[0019] According to the scaling ratio, the clothing accessories related to the target three-dimensional clothing component are scaled.
[0020] Based on the pre-scaled 3D mesh data, calculate the position of the scaled garment accessories in the 3D modeled garment.
[0021] Accordingly, when displaying the scaled target 3D clothing component constructed from the 3D mesh data, the method further includes:
[0022] The scaled-down version of the garment accessory is displayed at the garment accessory location.
[0023] Optionally, calculating the position of the scaled garment accessories in the 3D modeled garment based on the pre-scaled 3D mesh data includes:
[0024] Obtain the difference in relative position between the garment accessories before scaling and the target 3D garment component before scaling;
[0025] Based on the latest position of the target 3D clothing component in the 3D modeled clothing, the difference in the relative positions is superimposed to obtain the scaled position of the clothing accessory in the 3D modeled clothing.
[0026] Optionally, the garment accessories include at least one of appliqués, zippers, prints, buttons, and attachments.
[0027] Optionally, for a target three-dimensional clothing component, the method further includes:
[0028] According to the scaling ratio, the two-dimensional clothing pattern corresponding to the target three-dimensional clothing component is scaled.
[0029] Optionally, the 3D modeled clothing is modeled using simulation in the following ways:
[0030] In response to the operation request to perform three-dimensional modeling on a two-dimensional garment pattern, the two-dimensional garment pattern is meshed to obtain three-dimensional mesh data;
[0031] Based on the stitching relationship between different two-dimensional garment patterns, stitching constraints are set for the three-dimensional garment components corresponding to the two-dimensional garment patterns, and physical simulation modeling is performed based on the physical parameters of the fabric to obtain an unrendered three-dimensional modeled garment.
[0032] Based on the fabric rendering parameters, the unrendered 3D modeled garment is rendered, and the rendered 3D modeled garment is displayed.
[0033] Optionally, the step of meshing the two-dimensional garment pattern to obtain three-dimensional mesh data includes:
[0034] A polygonal mesh is filled in the closed area of the edge outline of the two-dimensional garment pattern to obtain two-dimensional mesh data of relevant information of the filled polygonal mesh;
[0035] A three-dimensional garment pattern is created in three-dimensional space corresponding to the two-dimensional garment pattern, so as to transform the two-dimensional mesh data into three-dimensional mesh data of the three-dimensional garment pattern; wherein the three-dimensional mesh data and the two-dimensional mesh data have the same topological structure.
[0036] According to a second aspect of the embodiments of this specification, a scaling device for three-dimensional modeled clothing is provided, the device comprising:
[0037] The first response unit, in response to a selection operation on at least one three-dimensional garment component in a three-dimensional modeled garment, determines the target three-dimensional garment component to be operated on.
[0038] The second response unit determines the scaling ratio in response to the scaling operation of the garment pattern corresponding to the target three-dimensional garment component.
[0039] The pre-scaling unit pre-scales the three-dimensional mesh data corresponding to the garment pattern according to the scaling ratio; wherein the three-dimensional mesh data is mesh data obtained by meshing the garment pattern.
[0040] The scaling unit determines the latest position of the target 3D clothing component in the 3D modeled clothing based on the pre-scaled 3D mesh data, and displays the scaled target 3D clothing component constructed from the 3D mesh data at the latest position.
[0041] According to a third aspect of the embodiments of this specification, an electronic device is provided, comprising:
[0042] processor;
[0043] Memory used to store processor-executable instructions;
[0044] The processor is configured to scale any of the above-mentioned methods for modeling 3D clothing.
[0045] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided that stores computer instructions thereon, which, when executed by a processor, implement any of the above-described scaling methods for three-dimensional modeled clothing.
[0046] According to a fifth aspect of the embodiments of this specification, a computer program product is provided, including a computer program that, when executed by a processor, implements any of the above-described scaling methods for three-dimensional modeled clothing.
[0047] This specification provides a scaling scheme for 3D modeled clothing. After a user scales the clothing pattern corresponding to a 3D clothing component, it ensures that the scaled 3D clothing component maintains the original shape of the 3D modeled clothing, eliminating the need for a re-simulation of the 3D modeled clothing. Specifically, by pre-scaling the 3D mesh data corresponding to the clothing pattern and mapping the old position of the 3D clothing component in the 3D modeled clothing based on the pre-scaling mesh data, the scheme ensures that the shape of the 3D modeled clothing remains consistent before and after scaling, preventing display chaos on the 3D modeled clothing due to the inability to locate the scaled 3D clothing component. Attached Figure Description
[0048] Figure 1a This is a schematic diagram illustrating an abnormal display of scaled 3D modeled clothing according to one embodiment of this specification;
[0049] Figure 1b This is a schematic diagram showing the normal display of scaled 3D modeled clothing according to one embodiment of this specification;
[0050] Figure 2 This is a flowchart of a scaling method for three-dimensional modeled clothing provided in one embodiment of this specification;
[0051] Figure 3 This is a schematic diagram of the types of 3D modeled clothing provided in one embodiment of this specification;
[0052] Figure 4 This is a schematic diagram of a meshing process provided in one embodiment of this specification;
[0053] Figure 5 This is a schematic diagram of a two-dimensional garment pattern and a three-dimensional garment pattern provided in one embodiment of this specification;
[0054] Figure 6a This is a schematic diagram illustrating the placement and sewing of three-dimensional garment patterns provided in one embodiment of this specification;
[0055] Figure 6b This is a schematic diagram illustrating the physical simulation of a three-dimensional garment pattern provided in one embodiment of this specification;
[0056] Figure 7a This is a schematic diagram of a 3D modeled garment before scaling, provided in one embodiment of this specification;
[0057] Figure 7b This is a schematic diagram of a three-dimensional garment pattern provided in one embodiment of this specification being scaled horizontally;
[0058] Figure 7c This is a schematic diagram of a three-dimensional clothing pattern provided in one embodiment of this specification being scaled proportionally;
[0059] Figure 7d yes Figure 7c A schematic diagram of the scaling result;
[0060] Figure 8a This is an enlarged schematic diagram of a two-dimensional garment pattern provided in one embodiment of this specification;
[0061] Figure 8b This is a schematic diagram of pre-scaled three-dimensional mesh data provided in one embodiment of this specification;
[0062] Figure 9 This is a schematic diagram illustrating the abnormal display of a scaled 3D package model provided in one embodiment of this specification;
[0063] Figure 10a This is a magnified schematic diagram of a buckle provided in one embodiment of this specification;
[0064] Figure 10b This is a schematic diagram of the positioning position when the buckle and the plate are scaled simultaneously, according to one embodiment of this specification;
[0065] Figure 11a This is a schematic diagram illustrating the selection of the package body according to an embodiment of this specification;
[0066] Figure 11b This is a scaled-down schematic diagram of a two-dimensional plate of the package body provided in one embodiment of this specification;
[0067] Figure 11c This is a scaled-down schematic diagram of the bag body and bag buckle provided in one embodiment of this specification;
[0068] Figure 12 This is a hardware structure diagram of a scaling device for 3D modeling clothing provided in one embodiment of this specification;
[0069] Figure 13 This is a module of the scaling device for a three-dimensional modeled garment provided in one embodiment of this specification. Detailed Implementation
[0070] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this specification. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this specification as detailed in the appended claims.
[0071] The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of this specification. The singular forms “a,” “the,” and “the” as used in this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0072] It should be understood that although the terms first, second, third, etc., may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this specification, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0073] In the process of clothing simulation modeling, it is usually necessary to scale the size of the simulated 3D clothing model. During scaling, the 3D clothing model is treated as a whole, and the proportions are adjusted through scaling transformations.
[0074] In related technologies, the general approach is to convert the 3D modeled clothing into a .obj format and then scale the model.
[0075] In fashion design software, there is often a need to scale 3D modeled garments. This could involve scaling the entire 3D modeled garment or scaling individual 3D garment components. Generally, both overall scaling and individual scaling can be done by modifying the corresponding garment pattern.
[0076] The garment pattern refers to a template or pattern used in garment production. Garment patterns can be made based on design drawings and are used to guide the cutting and sewing of garments. Garment patterns are typically two-dimensional, or they can be three-dimensional patterns derived from two-dimensional garment patterns.
[0077] However, related technologies have already converted 3D modeled clothing into OBJ models. Because information related to the clothing pattern pieces (such as the stitching relationship of the pattern pieces, the physical parameters of the fabric, rendering parameters, etc.) is discarded during the conversion, it can lead to abnormal display of scaled 3D clothing parts.
[0078] like Figure 1a As shown, after scaling the garment pattern, the 3D modeled garment displays incorrectly, requiring a re-simulation based on the scaled 3D garment pattern to achieve the desired result. Figure 1b The image shown displays a normal 3D model of clothing. However, simulation takes a long time, resulting in a poor user experience.
[0079] To address the aforementioned issues, this specification aims to provide a scaling scheme for 3D modeled clothing. After a user scales the garment pattern corresponding to a 3D garment component, it ensures that the scaled 3D garment component maintains the original shape of the 3D modeled clothing, eliminating the need for a re-simulation of the 3D modeled clothing. Specifically, by pre-scaling the 3D mesh data corresponding to the garment pattern and mapping the old position of the 3D garment component to the latest position in the 3D modeled clothing based on the pre-scaling mesh data, the shape of the 3D modeled clothing remains consistent before and after scaling, preventing display chaos on the 3D modeled clothing due to the scaled 3D garment component's inability to locate its position.
[0080] The following combination Figure 2 The flowchart shown illustrates a method for scaling 3D modeled clothing, which may include the following steps:
[0081] Step 110: In response to the selection operation of at least one 3D garment component in the 3D modeled garment, determine the target 3D garment component to be operated on.
[0082] In this manual, "3D modeled clothing" can refer to all possible clothing, clothing accessories, and attachments in 3D.
[0083] like Figure 3 As shown, clothing, pants, skirts, hats, bags, gloves, etc., that can be sewn together from garment patterns can all be considered part of the concept of clothing; garment accessories include appliqués (prints), zippers, buttons, and accessories (such as metal buckles, cords, etc.).
[0084] The 3D modeled clothing described in this specification can be obtained through simulation modeling in the following ways:
[0085] In response to the operation request to perform three-dimensional modeling on a two-dimensional garment pattern, the two-dimensional garment pattern is meshed to obtain three-dimensional mesh data;
[0086] First, based on the stitching relationship between different two-dimensional garment patterns, set stitching constraints for the three-dimensional garment components corresponding to the two-dimensional garment patterns, and then perform physical simulation modeling based on the fabric physical parameters to obtain an unrendered three-dimensional modeled garment.
[0087] Then, based on the fabric rendering parameters, the unrendered 3D modeled garment is rendered to display the rendered 3D modeled garment.
[0088] Among them, the fabric physical parameters and fabric rendering parameters are attributes of the garment pattern. Such attributes can be attributed to either two-dimensional garment patterns or three-dimensional garment components corresponding to two-dimensional garment patterns.
[0089] like Figure 4 This is a schematic diagram of an exemplary meshing process. Figure 4 Two-dimensional garment patterns may include, but are not limited to, edge outlines, endpoints, and geometric lines (such as fold lines, gather lines, seam lines, mirror lines, etc.).
[0090] Figure 4 The yellow borders shown represent the outline edges, the white dots represent the endpoints of the outline edges, and the dashed lines in the middle represent the mirror lines of this two-dimensional clothing pattern.
[0091] Several contour edges can form a closed edge contour line. Since the closed area formed by the edge contour line usually only contains some geometric line data, in order to simulate the physical form of clothing fabric, this specification proposes the above-mentioned method of meshing two-dimensional clothing patterns, thereby filling the closed area of the two-dimensional clothing pattern with polygons of uniform mesh density.
[0092] The polygons in this manual can be triangles, quadrilaterals, etc. Of course, the shape of the polygons can be flexibly configured according to actual needs, and this manual does not limit it.
[0093] like Figure 4 Taking the right-hand diagram as an example, it is a schematic diagram of a local topological structure of a grid filled with triangles. The pink dots are the vertices of the grid. The line segment connecting two vertices is called a grid edge. Three grid edges formed by connecting three vertices can form a surface.
[0094] In one exemplary embodiment, the step of meshing the two-dimensional garment pattern to obtain three-dimensional mesh data may include:
[0095] A polygonal mesh is filled in the closed area of the edge outline of the two-dimensional garment pattern to obtain two-dimensional mesh data of relevant information of the filled polygonal mesh;
[0096] A three-dimensional garment pattern is created in three-dimensional space corresponding to the two-dimensional garment pattern, so as to transform the two-dimensional mesh data into three-dimensional mesh data of the three-dimensional garment pattern; wherein the three-dimensional mesh data and the two-dimensional mesh data have the same topological structure.
[0097] like Figure 5 As shown, the left side represents a two-dimensional clothing pattern and its two-dimensional mesh in two-dimensional space; the right side represents the corresponding three-dimensional clothing pattern and its three-dimensional mesh in three-dimensional space. Creating a three-dimensional clothing pattern in three-dimensional space is equivalent to copying two-dimensional mesh data into three-dimensional space, and based on the mapping relationship from two-dimensional space to three-dimensional space, the two-dimensional mesh data can be converted into three-dimensional mesh data.
[0098] By establishing a one-to-one correspondence between the 3D mesh data and the 2D mesh data, both possess the same topological structure, such as the same number of vertices, the same number of faces, and the same vertices forming the same faces. This facilitates scaling the 3D clothing pattern in conjunction with the corresponding 2D clothing pattern, based on this one-to-one correspondence.
[0099] After introducing the meshing process, let's return to the simulation modeling process of 3D modeled clothing. After obtaining the 3D mesh data, as shown in the previous example, we can set stitching constraints for the 3D clothing components corresponding to the 2D clothing patterns based on the stitching relationships between different 2D clothing patterns, and perform physical simulation modeling based on the fabric physical parameters to obtain the unrendered 3D modeled clothing.
[0100] like Figure 6aAs shown, by arranging and sewing the three-dimensional garment patterns together, stitching constraints can be set for the three-dimensional garment components corresponding to the two-dimensional garment patterns (the colored lines in three-dimensional space represent the stitching relationships). Then, as... Figure 6b As shown, by performing physical simulation based on the fabric's physical parameters, an unrendered 3D model of the garment can be obtained. Finally, based on the fabric's rendering parameters, the unrendered 3D model of the garment can be rendered to obtain the rendered 3D model of the garment.
[0101] Step 120: In response to the scaling operation of the garment pattern corresponding to the target three-dimensional garment component, determine the scaling ratio.
[0102] After identifying the target 3D clothing component that needs to be scaled, the user can further initiate a scaling operation on the clothing pattern corresponding to the target 3D clothing component. Specifically, this scaling operation can refer to setting the scaling ratio to be scaled on the clothing pattern.
[0103] Assuming the current size of the garment pattern is taken as 100%, to shrink it, you can set a percentage value less than 100% and greater than 0. For example, setting 70% means shrinking the garment pattern to 70% of its current size. Similarly, to enlarge it, you can set a percentage value greater than 100%. For example, setting 120% means enlarging the garment pattern to 120% of its current size.
[0104] In this specification, the scaling operation targets a garment pattern that can be a two-dimensional garment pattern corresponding to the target three-dimensional garment component, or a three-dimensional garment pattern obtained by converting the two-dimensional garment pattern.
[0105] Accordingly, step 120 above may include:
[0106] In response to a scaling operation performed on a two-dimensional garment pattern corresponding to the target three-dimensional garment component, the scaling ratio of the scaling operation is determined;
[0107] Alternatively, in response to a scaling operation performed on a three-dimensional garment pattern corresponding to the target three-dimensional garment component, the scaling ratio of the scaling operation is determined.
[0108] In this embodiment, since there is a mapping relationship between the two-dimensional clothing pattern and the three-dimensional clothing pattern, the user can scale either the two-dimensional clothing pattern or the three-dimensional clothing pattern.
[0109] Furthermore, due to the correspondence between the 2D and 3D clothing patterns, when a user scales the 2D clothing pattern, the 3D clothing pattern can be scaled synchronously; conversely, when a user scales the 3D clothing pattern, the 2D clothing pattern can be scaled synchronously. This allows for synchronized scaling of both 3D and 2D clothing patterns.
[0110] It should be noted that this manual not only supports setting the scaling ratio, but also supports proportional scaling, horizontal scaling, and vertical scaling. Proportional scaling ensures that the 3D clothing parts are scaled around the center point of the overall mesh, thus maintaining their shape after subsequent pre-scaled meshing.
[0111] Please refer to the following. Figures 7a to 7d The diagram shows a scaled representation. Wherein, Figure 7a The image shown is a schematic diagram of the 3D modeled clothing before scaling. Figure 7b This diagram illustrates the horizontal scaling of a three-dimensional clothing component. Figure 7c The diagram shows a 3D clothing component scaled proportionally. Figure 7d What is shown is Figure 7c The diagram shows the scaling result of a 3D clothing component scaled proportionally.
[0112] Step 130: Prescale the three-dimensional mesh data corresponding to the garment pattern according to the scaling ratio; wherein the three-dimensional mesh data is the mesh data obtained by meshing the garment pattern.
[0113] For example, if a user wants to zoom in on the generated 3D model of clothing, such as... Figure 7a As shown, you can set magnification parameters for the 2D garment pattern corresponding to the 3D modeled garment, thereby enlarging the 2D garment pattern to the size corresponding to the magnification parameter.
[0114] Furthermore, since the two-dimensional mesh data of the enlarged two-dimensional clothing pattern has changed, it is necessary to re-perform the aforementioned meshing process based on the changed two-dimensional mesh data to generate new three-dimensional mesh data.
[0115] In related technologies, after enlarging the two-dimensional clothing pattern, it is necessary to simulate the new three-dimensional clothing again to avoid display abnormalities in the three-dimensional clothing.
[0116] In this manual, after generating new 3D mesh data (because the new 3D mesh generated by the same meshing is also planar), the 3D modeled clothing can be modified without modification. Instead, the latest position of the scaled target 3D clothing component can be calculated based on the scaled 3D mesh data (i.e., subsequent step 140).
[0117] This scaling method, which does not modify the 3D modeled clothing, can be called pre-scaling. Pre-scaling involves the old 3D mesh. After scaling the 2D clothing pattern, a new 2D clothing pattern is generated by re-meshing, and a new 3D clothing pattern is also generated accordingly. However, this new 3D clothing pattern is also derived from the 2D mesh data of the scaled 2D clothing pattern. Therefore, in 3D space, this newly generated 3D clothing pattern is planar, and its latest position in 3D space needs to be calculated or mapped based on the old mesh data before scaling.
[0118] Pre-scaling preserves the original simulation effect, allowing the continued use of 3D modeled clothing whose shape was already simulated before scaling.
[0119] Step 140: Based on the pre-scaled 3D mesh data, determine the latest position of the target 3D clothing component in the 3D modeled clothing, and display the scaled target 3D clothing component constructed from the 3D mesh data at the latest position.
[0120] Since the mesh density of the 2D clothing pattern remains unchanged before and after scaling, the number of triangles in the mesh increases after scaling up, and the number of faces decreases after scaling down. Therefore, the mesh topology of the clothing pattern is completely changed after scaling. It is no longer possible to directly map the original positions using topological relationships. Instead, it is necessary to map the newest position of the target 3D clothing component in 3D space to the pre-scaled 3D mesh data based on the old 3D mesh data before scaling.
[0121] In an exemplary embodiment, determining the latest scaled position of the three-dimensional garment component corresponding to the target garment pattern based on the pre-scaled three-dimensional mesh data may include:
[0122] Obtain the original position of the target 3D clothing component in the 3D modeled clothing before scaling;
[0123] Based on the old position and the pre-scaled 3D mesh data, the latest position of the target 3D clothing component in the 3D modeled clothing is determined.
[0124] like Figure 8a As shown, assuming the user sets the scaling ratio for all 2D clothing patterns in the image to 120%, not only will the size of these 2D clothing patterns be enlarged, but the corresponding 3D mesh data for each 2D clothing pattern will also be pre-enlarged by 120%. Combined with the old positions of each 3D clothing component in 3D space, the latest positions of each 3D clothing component after 120% enlargement will be mapped. The latest positions are as follows: Figure 8bAs shown by the yellow outline. After determining the latest position, the various magnified 3D clothing parts composed of pre-magnified 3D mesh data can be displayed at these latest positions, thereby realizing the magnification of 3D modeled clothing (the shrinking process is similar, and the scaling process only applies to the mesh).
[0125] In summary, this specification provides a scaling scheme for 3D modeled clothing. After a user scales the clothing pattern corresponding to a 3D clothing component, it ensures that the scaled 3D clothing component maintains the original shape of the 3D modeled clothing, thus eliminating the need for a re-simulation of the 3D modeled clothing. Specifically, by pre-scaling the 3D mesh data corresponding to the clothing pattern and mapping the old position of the 3D clothing component in the 3D modeled clothing based on the pre-scaling mesh data, the scheme ensures that the shape of the 3D modeled clothing remains consistent before and after scaling, preventing display chaos on the 3D modeled clothing due to the inability to locate the scaled 3D clothing component.
[0126] In actual clothing design, considering both aesthetics and practicality, relevant garment accessories are usually added during the design process. Some of these accessories are added to three-dimensional garment components, such as printed patterns, while others exist as separate attachments, such as buttons and zippers.
[0127] When scaling 3D modeled clothing, these garment accessories face similar problems to 3D clothing components, all exhibiting display abnormalities after scaling. For example... Figure 9 As shown, because the buckle is independent and does not have a corresponding garment pattern, the size of the buckle remains unchanged after scaling, while the three-dimensional parts of the main body of the bag in the bag model are displayed in a disordered manner.
[0128] In an exemplary embodiment, when the target three-dimensional garment component has associated garment accessories, the method further includes:
[0129] According to the scaling ratio, the clothing accessories related to the target three-dimensional clothing component are scaled.
[0130] Based on the pre-scaled 3D mesh data, calculate the position of the scaled garment accessories in the 3D modeled garment.
[0131] Accordingly, when displaying the scaled target 3D clothing component constructed from the 3D mesh data, the method further includes:
[0132] The scaled-down version of the garment accessory is displayed at the garment accessory location.
[0133] The following example uses a 3D modeled garment as a bag, with the bag's buckle as the accessory. Unlike other garment accessories, buckles can be attached to the bag's pattern or suspended in 3D space. Buckles suspended in 3D space are independent of the bag's pattern, and the attached accessory has a positioning point on the pattern. Other garment accessories, such as prints and appliqués, are located inside the pattern (and can be considered part of it), so the prints and appliqués can scale with the pattern itself.
[0134] Since the buckle is not located inside the pattern, it cannot be positioned according to the scaling of the pattern. Therefore, the buckle needs to be scaled separately to achieve synchronous scaling of the buckle and the pattern to maintain the integrity of the bag.
[0135] For 3D modeling packages, attachments are essentially models in formats such as .obj. Unlike the scaling of the aforementioned 3D clothing parts, the scaling process of attachments does not involve meshing, physical simulation, or other similar procedures.
[0136] Therefore, scaling such clothing accessories differs from scaling the aforementioned three-dimensional clothing components.
[0137] Taking the aforementioned buckle as an example, the buckle is scaled with respect to the center of the buckle model, while the bag body is scaled with respect to the center of the three-dimensional garment pattern of the bag. That is, the buckle and the bag body are scaled separately.
[0138] In this embodiment, the clothing accessories related to the target three-dimensional clothing component may include clothing accessories located in the target three-dimensional clothing component, such as printed patterns, or clothing accessories not in the target three-dimensional clothing component but related to the target three-dimensional clothing component, such as zippers, buckles, and other accessories.
[0139] After scaling the target 3D clothing parts and accessories individually, the latest position of the scaled clothing accessories in the 3D modeled clothing can be recalculated based on the relative positional relationship between the clothing accessories and the target 3D clothing parts.
[0140] In one exemplary embodiment, calculating the location of garment accessories may specifically include:
[0141] Obtain the difference in relative position between the garment accessories before scaling and the target 3D garment component before scaling;
[0142] Based on the latest position of the target 3D clothing component in the 3D modeled clothing, the difference in the relative positions is superimposed to obtain the scaled position of the clothing accessory in the 3D modeled clothing.
[0143] Taking the aforementioned bag buckle as an example, after scaling the buckle and the bag body separately, as shown... Figure 10a The relative position of the buckle and the bag body will change. There is a difference in the relative position between the buckle and the bag body before scaling. To ensure that the relative position of the buckle and the bag body is consistent before and after scaling, as shown... Figure 10b As shown, the scaled bag buckle needs to be moved by the difference in distance to the position corresponding to the scaled bag body.
[0144] Through the above embodiments, clothing accessories can also be scaled synchronously. Moreover, by recalculating the position of the scaled clothing accessories, the previous positional relationship and size with the three-dimensional clothing components are maintained, thereby achieving consistency in the display effect of clothing accessories before and after scaling.
[0145] like Figure 11a As shown, when the user selects the 3D model of the package body, the corresponding 3D panel (the yellow part in the figure) is displayed.
[0146] Next, after the user sets the scaling parameters for the 3D image of the main body of the package, such as... Figure 11b As shown, the two-dimensional plates that constitute the main body of the package can be scaled down, and the three-dimensional mesh data of the two-dimensional plates can be pre-scaled down.
[0147] Then, as Figure 11c As shown, the corresponding 3D pattern (the reduced bag body formed by yellow line segments) is adjusted based on the pre-scaled 3D mesh data. Furthermore, during the adjustment of the 3D pattern, all buckles on the bag body are scaled down around the center of their own model, and the relative positions between the scaled-down buckles and the scaled-down bag body are calculated. The scaled-down buckles are then repositioned in 3D space (maintaining a consistent positional relationship with the scaled-down bag body). Thus, the final displayed positional relationship between the scaled-down bag body and the buckles is consistent with the positional relationship before scaling down. Figure 11c (See the diagram on the right).
[0148] Corresponding to the aforementioned embodiments of the scaling method for 3D modeled clothing, this specification also provides embodiments of a scaling device for 3D modeled clothing. These devices can be implemented in software, hardware, or a combination of both. Taking software implementation as an example, as a logical device, it is formed by the processor of its device reading the corresponding computer program from non-volatile memory into memory and running it. From a hardware perspective, such as... Figure 12 The diagram shown is a hardware structure diagram of the device containing the scaling mechanism for the 3D modeled clothing described in this manual. (Except for...) Figure 12 In addition to the processor, network interface, memory, and non-volatile memory shown, the device in the embodiment may also include other hardware depending on the actual communication function, which will not be described in detail here.
[0149] Please see Figure 13 This is a block diagram of a scaling device for a 3D modeled garment provided in one embodiment of this specification. The device corresponds to... Figure 2 The illustrated embodiment shows that the apparatus includes:
[0150] The first response unit 810, in response to a selection operation on at least one three-dimensional garment component in a three-dimensional modeled garment, determines the target three-dimensional garment component to be operated on.
[0151] The second response unit 820 determines the scaling ratio in response to the scaling operation of the garment pattern corresponding to the target three-dimensional garment component;
[0152] The pre-scaling unit 830 pre-scales the three-dimensional mesh data corresponding to the garment pattern according to the scaling ratio; wherein, the three-dimensional mesh data is mesh data obtained by meshing the garment pattern.
[0153] The scaling unit 840 determines the latest position of the target three-dimensional clothing component in the three-dimensional modeled clothing based on the pre-scaled three-dimensional mesh data, and displays the scaled target three-dimensional clothing component constructed from the three-dimensional mesh data at the latest position.
[0154] Optionally, the scaling unit 840 is further configured to obtain the old position of the target three-dimensional clothing component in the three-dimensional modeled clothing before scaling; determine the latest position of the target three-dimensional clothing component in the three-dimensional modeled clothing based on the old position and the pre-scaled three-dimensional mesh data, and display the scaled target three-dimensional clothing component constructed from the three-dimensional mesh data at the latest position.
[0155] Optionally, the second response unit 820 is further configured to determine the scaling ratio of the scaling operation in response to a scaling operation performed on a two-dimensional garment pattern corresponding to the target three-dimensional garment component; or, in response to a scaling operation performed on a three-dimensional garment pattern corresponding to the target three-dimensional garment component, determine the scaling ratio of the scaling operation.
[0156] Optionally, when the target three-dimensional garment component has related garment accessories, the device further includes:
[0157] The calculation unit scales the clothing accessories related to the target three-dimensional clothing component according to the scaling ratio; and calculates the position of the scaled clothing accessories in the three-dimensional modeled clothing according to the pre-scaled three-dimensional mesh data.
[0158] Accordingly, the scaling unit 840 is also used to display the scaled-down garment accessory at the garment accessory location.
[0159] Optionally, when the calculation unit calculates the position of the scaled clothing accessory in the 3D modeled garment based on the pre-scaled 3D mesh data, it is further used to obtain the difference between the relative positions of the clothing accessory before scaling and the target 3D garment component before scaling; and to obtain the position of the scaled clothing accessory in the 3D modeled garment by superimposing the difference between the relative positions based on the latest position of the target 3D garment component in the 3D modeled garment.
[0160] Optionally, the garment accessories include at least one of appliqués, zippers, prints, buttons, and attachments.
[0161] Optionally, the device further includes:
[0162] The synchronization unit scales the two-dimensional garment pattern corresponding to the target three-dimensional garment component according to the scaling ratio.
[0163] Optionally, the 3D modeled clothing is modeled using simulation in the following ways:
[0164] The meshing unit, in response to an operation request to perform three-dimensional modeling on a two-dimensional garment pattern, performs meshing processing on the two-dimensional garment pattern to obtain three-dimensional mesh data;
[0165] The simulation unit sets stitching constraints for the three-dimensional garment components corresponding to the two-dimensional garment patterns based on the stitching relationships between different two-dimensional garment patterns, and performs physical simulation modeling based on fabric physical parameters to obtain unrendered three-dimensional modeled garments.
[0166] The rendering unit renders the unrendered 3D modeled garment according to the fabric rendering parameters, and displays the rendered 3D modeled garment.
[0167] Optionally, the meshing unit is further used to fill the inner region closed by the edge contour line of the two-dimensional garment pattern with a polygonal mesh to obtain two-dimensional mesh data with relevant information of the filled polygonal mesh; and to create a three-dimensional garment pattern corresponding to the two-dimensional garment pattern in three-dimensional space to convert the two-dimensional mesh data into three-dimensional mesh data of the three-dimensional garment pattern; wherein the three-dimensional mesh data and the two-dimensional mesh data have the same topological structure.
[0168] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which can take the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email sending and receiving device, game console, tablet computer, wearable device, or any combination of these devices.
[0169] The specific implementation process of the functions and roles of each unit in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.
[0170] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of the solution in this specification according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0171] above Figure 13 The diagram describes the internal functional modules and structure of a scaling device for 3D modeled clothing. Its core execution mechanism can be an electronic device, including:
[0172] processor;
[0173] Memory used to store processor-executable instructions;
[0174] The processor is configured to execute any of the above-described scaling methods for 3D modeled clothing.
[0175] In the embodiments of the above-described electronic device, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor, and the aforementioned memory can be read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or solid-state drive. The steps of the method disclosed in the embodiments of this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
[0176] A computer-readable storage medium having computer instructions stored thereon that, when executed by a processor, implement the steps of any of the scaling methods for three-dimensional modeled garments described above.
[0177] A computer program product, including a computer program, which, when executed by a processor, implements the steps of scaling methods for any of the above-described three-dimensional modeled garments.
[0178] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the electronic device embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0179] Other embodiments of this specification will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations that follow the general principles of this specification and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this specification are indicated by the following claims.
[0180] It should be understood that this specification is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this specification is limited only by the appended claims.
Claims
1. A scaling method for 3D modeled clothing, characterized in that, The method includes: In response to a selection operation on at least one 3D garment component in a 3D modeled garment, the target 3D garment component to be operated on is determined. In response to a scaling operation on the garment pattern corresponding to the target three-dimensional garment component, a scaling ratio is determined; According to the scaling ratio, the three-dimensional mesh data corresponding to the garment pattern is pre-scaled; wherein, the three-dimensional mesh data is mesh data obtained by meshing the garment pattern; Based on the pre-scaled 3D mesh data, the latest position of the target 3D clothing component in the 3D modeled clothing is determined, and the scaled target 3D clothing component constructed from the 3D mesh data is displayed at the latest position.
2. The method according to claim 1, characterized in that, The step of determining the latest position of the 3D garment component corresponding to the target garment pattern in the scaled state based on the pre-scaled 3D mesh data includes: Obtain the original position of the target 3D clothing component in the 3D modeled clothing before scaling; Based on the old position and the pre-scaled 3D mesh data, the latest position of the target 3D clothing component in the 3D modeled clothing is determined.
3. The method according to claim 1, characterized in that, The process of determining the scaling ratio in response to a scaling operation on the garment pattern corresponding to the target three-dimensional garment component includes: In response to a scaling operation performed on a two-dimensional garment pattern corresponding to the target three-dimensional garment component, the scaling ratio of the scaling operation is determined; Alternatively, in response to a scaling operation performed on a three-dimensional garment pattern corresponding to the target three-dimensional garment component, the scaling ratio of the scaling operation is determined.
4. The method according to claim 1, characterized in that, When the target three-dimensional garment component contains related garment accessories, the method further includes: According to the scaling ratio, the clothing accessories related to the target three-dimensional clothing component are scaled. Based on the pre-scaled 3D mesh data, calculate the position of the scaled garment accessories in the 3D modeled garment. Accordingly, when displaying the scaled target 3D clothing component constructed from the 3D mesh data, the method further includes: The scaled-down version of the garment accessory is displayed at the garment accessory location.
5. The method according to claim 4, characterized in that, The step of calculating the scaled position of the garment accessories in the 3D modeled garment based on the pre-scaled 3D mesh data includes: Obtain the difference in relative position between the garment accessories before scaling and the target 3D garment component before scaling; Based on the latest position of the target 3D clothing component in the 3D modeled clothing, the difference in the relative positions is superimposed to obtain the scaled position of the clothing accessory in the 3D modeled clothing.
6. The method according to claim 4, characterized in that, The garment accessories include at least one of the following: appliqués, zippers, prints, buttons, and attachments.
7. The method according to claim 3, characterized in that, For a target three-dimensional clothing component, the method further includes: According to the scaling ratio, the two-dimensional clothing pattern corresponding to the target three-dimensional clothing component is scaled.
8. The method according to claim 1, characterized in that, The 3D modeled clothing is simulated and modeled using the following methods: In response to the operation request to perform three-dimensional modeling on a two-dimensional garment pattern, the two-dimensional garment pattern is meshed to obtain three-dimensional mesh data; Based on the stitching relationship between different two-dimensional garment patterns, stitching constraints are set for the three-dimensional garment components corresponding to the two-dimensional garment patterns, and physical simulation modeling is performed based on the physical parameters of the fabric to obtain an unrendered three-dimensional modeled garment. Based on the fabric rendering parameters, the unrendered 3D modeled garment is rendered, and the rendered 3D modeled garment is displayed.
9. The method according to claim 8, characterized in that, The process of meshing the two-dimensional garment pattern to obtain three-dimensional mesh data includes: A polygonal mesh is filled in the closed area of the edge outline of the two-dimensional garment pattern to obtain two-dimensional mesh data of relevant information of the filled polygonal mesh; A three-dimensional garment pattern is created in three-dimensional space corresponding to the two-dimensional garment pattern, so as to transform the two-dimensional mesh data into three-dimensional mesh data of the three-dimensional garment pattern; wherein the three-dimensional mesh data and the two-dimensional mesh data have the same topological structure.
10. A scaling device for three-dimensional modeled clothing, characterized in that, The device includes: The first response unit, in response to a selection operation on at least one three-dimensional garment component in a three-dimensional modeled garment, determines the target three-dimensional garment component to be operated on. The second response unit determines the scaling ratio in response to the scaling operation of the garment pattern corresponding to the target three-dimensional garment component. The pre-scaling unit pre-scales the three-dimensional mesh data corresponding to the garment pattern according to the scaling ratio; wherein the three-dimensional mesh data is mesh data obtained by meshing the garment pattern. The scaling unit determines the latest position of the target 3D clothing component in the 3D modeled clothing based on the pre-scaled 3D mesh data, and displays the scaled target 3D clothing component constructed from the 3D mesh data at the latest position.
11. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to perform the method according to any one of claims 1-9.
12. A computer-readable storage medium storing computer instructions thereon, characterized in that, When executed by the processor, this instruction implements the steps of the method as described in any one of claims 1-9.
13. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the method according to any one of claims 1-9.