CN113610960A - Method and device for preventing die penetration during three-dimensional model merging and storage medium - Google Patents

Method and device for preventing die penetration during three-dimensional model merging and storage medium Download PDF

Info

Publication number
CN113610960A
CN113610960A CN202110811398.7A CN202110811398A CN113610960A CN 113610960 A CN113610960 A CN 113610960A CN 202110811398 A CN202110811398 A CN 202110811398A CN 113610960 A CN113610960 A CN 113610960A
Authority
CN
China
Prior art keywords
model
dimensional model
dimensional
component
auxiliary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110811398.7A
Other languages
Chinese (zh)
Other versions
CN113610960B (en
Inventor
李中冬
陈节省
许荣峰
刘旺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Kaimi Network Science & Technology Co ltd
Original Assignee
Fujian Kaimi Network Science & Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Kaimi Network Science & Technology Co ltd filed Critical Fujian Kaimi Network Science & Technology Co ltd
Priority to CN202110811398.7A priority Critical patent/CN113610960B/en
Publication of CN113610960A publication Critical patent/CN113610960A/en
Application granted granted Critical
Publication of CN113610960B publication Critical patent/CN113610960B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Architecture (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a 3D object merging method, a device and a storage medium, wherein the 3D object merging method comprises the steps of obtaining parts to be merged according to a merging instruction; and replacing the part for the three-dimensional model, and deleting the part covered by the part in the three-dimensional model. According to the technical scheme, when the parts of the three-dimensional model are replaced, the parts covered by the parts in the three-dimensional model are deleted, so that the occurrence of part die penetration during the movement of the three-dimensional model is effectively avoided. And the mode penetration is avoided without calculation of a physical engine, so that the data operation amount is reduced, and the performance requirement on equipment can be greatly reduced.

Description

Method and device for preventing die penetration during three-dimensional model merging and storage medium
Technical Field
The invention relates to the technical field of three-dimensional models, in particular to a method and a device for preventing a three-dimensional model from penetrating a mold during merging and a storage medium.
Background
In order to make the objects have more vivid images, the objects of characters, pets and the like are modeled by three-dimensional models, and corresponding sets of component models are arranged for the objects, so that game players can select different components for the characters or pets according to needs, such as different clothes, ornaments and the like.
Since three-dimensional models (e.g., three-dimensional models of persons and pets) and component models are separately built, the three-dimensional models are prone to die-punching during movement or deformation. For example, a portion of the three-dimensional model of the person that should be covered by the part model is exposed outside the part model, and the dashed portion 11 of the three-dimensional model 1 shown in fig. 1 is exposed outside the part model 2.
In order to solve the problem of die penetration, the prior art mainly adopts the following two solutions:
1. adding rigid bodies to the motion part and the part model of a three-dimensional model such as a character and the like, and calculating the relation between the three-dimensional model and the part model in real time by using a physical engine to enable the part model to follow the three-dimensional model, thereby solving the problem of die penetration;
2. designing the component model into a loose style;
however, the scheme 1 needs a complex physical engine, is very performance-consuming, and as the model fineness and the number of bones are increased, the performance consumption is further and remarkably improved; above-mentioned scheme 2 can not fit or not obey the post in the vision part, influences the image effect of people.
Disclosure of Invention
Therefore, a 3D model merging method needs to be provided to solve the technical problem that the 3D model and the part model are easy to penetrate through in the prior art.
In order to achieve the above object, the inventor provides a method for preventing a three-dimensional model from penetrating when merging, comprising the following steps:
acquiring components to be merged according to the merging instruction;
and replacing the part for the three-dimensional model, and deleting the part covered by the part in the three-dimensional model.
Further, the 3D model merging method further includes the steps of:
presetting a component model corresponding to the component, wherein the component model comprises the component and an auxiliary model covered by the component;
the step of replacing the three-dimensional model with the part and deleting the part covered by the part in the three-dimensional model comprises the following steps:
calculating the same part of the three-dimensional model as the auxiliary model;
deleting the same portion of the three-dimensional model;
and merging the three-dimensional model with the part after the same part is deleted and the part is merged on the three-dimensional model.
Further, the three-dimensional model and the auxiliary model each include coordinate points and a plane formed by the coordinate points; the "calculating the same portion of the three-dimensional model as the auxiliary model" includes:
calculating the same coordinate points of the three-dimensional model and the auxiliary model and a surface consisting of the same coordinate points;
the "deleting the same portion in the three-dimensional model" includes: and deleting the same coordinate points and a surface formed by the same coordinate points in the three-dimensional model.
Further, the surface composed of the same coordinate points is composed of a plurality of triangular surfaces, and each vertex of each triangular surface is the coordinate point.
Further, the step of "presetting a component model corresponding to the component, the component model including the component and an auxiliary model covered by the component" includes the steps of:
presetting the parts, wherein the parts comprise any one or combination of more than one of clothes, ornaments, weapons and decorations, and the clothes comprise any one or combination of more than one of hats, clothes, trousers, shoes, clothes bodies, sleeves and collars;
and acquiring a three-dimensional model or a part corresponding to the component in the three-dimensional model, and deleting the part which is not covered by the component in the three-dimensional model or the part to obtain the auxiliary model.
Further, the three-dimensional model is generated by a 3D physics engine, and the three-dimensional model deleting part uncovered by the part is realized by calling an interface in the 3D physics engine.
Further, the three-dimensional model includes any one or more of a character model, a pet model, and an equipment model in the game.
In order to solve the above technical problem, the present invention further provides another technical solution: the utility model provides a prevent die-cut device when three-dimensional model merges, prevent die-cut device when three-dimensional model merges includes:
the acquisition module is used for acquiring the components to be merged according to the merging instruction; and
and the merging module is used for replacing the parts on the three-dimensional model and deleting the parts covered by the parts in the three-dimensional model.
Further, the merging module includes:
the preset module is used for presetting a component model corresponding to the component, and the component model comprises the component and an auxiliary model covered by the component;
a calculation module for calculating the same portion of the three-dimensional model as the auxiliary model;
a deletion module to delete the same portion of the three-dimensional model; and
and the merging submodule is used for merging the three-dimensional model with the part after the same part is deleted and merging the part on the three-dimensional model.
In order to solve the above technical problem, the present invention further provides another technical solution:
a computer storage medium, on which a computer program is stored, the program, when executed by a processor, implementing a method for preventing mold penetration when merging three-dimensional models according to any one of the above technical solutions.
Different from the prior art, the technical scheme deletes the part covered by the part in the three-dimensional model when replacing parts such as clothes, hair and the like for the three-dimensional model, thereby effectively avoiding the occurrence of die penetration when the three-dimensional model moves. In addition, the technical scheme avoids the die punching through the physical engine calculation, reduces the data operation amount and can greatly reduce the performance requirement on the equipment. Furthermore, the technical scheme deletes part of the three-dimensional model by deleting the same coordinate points in the three-dimensional model and the auxiliary model, so that complex three-dimensional perspective calculation is not needed, and the performance requirement on equipment can be greatly reduced in the model merging step during merging.
Drawings
FIG. 1 is a schematic view of a prior art through mold;
FIG. 2 is a flowchart of a method for preventing mold penetration during merging of three-dimensional models according to an embodiment;
FIG. 3 is a flowchart illustrating the detailed process of removing the portion of the three-dimensional model that is obscured by the component according to one embodiment;
FIG. 4 is a schematic diagram of a three-dimensional model merging process according to an embodiment;
FIG. 5 is a block diagram of an apparatus for merging three-dimensional models according to an embodiment;
FIG. 6 is a block diagram of a specific module of the merge module in accordance with the detailed description;
FIG. 7 is a schematic diagram of a computer storage medium according to an embodiment.
Description of reference numerals:
1. a 3D model;
11. a dotted line portion;
2. a part model;
10. a three-dimensional model;
21. a garment;
22. an auxiliary model;
400. the mold penetration preventing device is used for combining the three-dimensional models;
410. an acquisition module;
420. a merging module;
421. presetting a module;
422. a calculation module;
423. a deletion module;
424. merging the submodules;
700. a computer storage medium;
Detailed Description
To explain technical contents, structural features, and objects and effects of the technical solutions in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Referring to fig. 2 to 4, the present embodiment provides a method for preventing mold penetration during merging of three-dimensional models. The method for preventing the three-dimensional model from penetrating the model during merging can be applied to replacing parts such as clothes, heads and the like for different three-dimensional models in games, can effectively avoid the three-dimensional model from penetrating the model without calculation of a physical engine, reduces the data operation amount, and can greatly reduce the performance requirement on equipment.
As shown in fig. 2, the method for preventing mold penetration during merging of three-dimensional models includes the following steps:
and S101, acquiring the parts to be merged according to the merging instruction.
The system is internally stored with a three-dimensional model and more than two different components, and the merging instruction can be input from the outside through an input device or can be automatically produced by the system.
S102, replacing the parts for the three-dimensional model, and deleting the parts covered by the parts in the three-dimensional model.
Wherein the three-dimensional model comprises a plurality of parts, each part in the three-dimensional model is combinable, and the part is combined with the minimum granularity. The three-dimensional model may be a character model in a game that may be generated by a 3D physics engine, such as a character model generated from a Spine skeleton model in one embodiment, which may include parts of the head, body, arms, legs, etc. The parts may also comprise a plurality of different parts, for example, the parts of the character model may comprise any one or more combinations of clothing, jewelry, weapons, ornaments, including any one or more combinations of hats, clothing, pants, shoes, bodies, sleeves, collars, the top may be subdivided into bodies (top bodies), sleeves, etc., and the pants may be subdivided into sub-units such as trouser legs, waist of trousers, etc., as desired. The ornament may be a piece of jewelry worn, such as a bracelet, necklace, ring, or may be a flower worn on the head, etc. When the component is a garment, the garment may be a full body garment comprising the three-dimensional model, for example garments including headwear, tops, trousers and shoes. In other embodiments the garment may also be a partial garment of a different part of the three-dimensional model, for example the garment is only a sleeve, a belt or a hat.
In some embodiments, the three-dimensional model may also be a pet model or an equipment model in a game, and the component may be a wig, an accessory, and a decoration for decorating the pet model or the equipment model.
In step S102, replacing the component for the three-dimensional model is to merge the component into the three-dimensional model, for example, putting on a garment for the three-dimensional model (i.e., merging). The removing of the portion of the three-dimensional model that is covered by the component may be performed after replacing the component for the three-dimensional model. In some embodiments, the part to be covered by the component after the three-dimensional model is merged may be calculated, the part to be covered by the component in the three-dimensional model may be deleted, and finally the three-dimensional model and the component may be merged to merge the component onto the three-dimensional model.
In the embodiment, when the part is replaced for the three-dimensional model, the part covered by the part in the three-dimensional model is deleted, so that the occurrence of die penetration of the part during the movement of the three-dimensional model is effectively avoided. In addition, the technical scheme avoids the die punching through the physical engine calculation, reduces the data operation amount and can greatly reduce the performance requirement on the equipment.
As shown in fig. 3, in one embodiment, it is provided how to replace the component with the three-dimensional model, and delete the part of the three-dimensional model covered by the component, which includes the steps of:
s201, presetting a component model corresponding to the component, wherein the component model comprises the component and an auxiliary model covered by the component.
Wherein the auxiliary model is provided for corresponding components, each component is provided with a corresponding auxiliary model, the auxiliary model is located inside the corresponding component (i.e. the garment is worn on the auxiliary model), and the auxiliary model is completely covered by the component. The three-dimensional model and the auxiliary model each include coordinate points and a plane composed of the coordinate points. For example, the component is a garment, and the garment model includes the garment and an auxiliary model covered by the garment, the auxiliary model being located within and completely covered by the garment.
S202, calculating the same part of the three-dimensional model as the auxiliary model.
Wherein the auxiliary model is the same as a part of the three-dimensional model, and therefore the same part of the auxiliary model and the three-dimensional model can be found by comparing the coordinate points.
S203, deleting the same part in the three-dimensional model.
S204, merging the three-dimensional model with the deleted same part and the part to merge the part on the three-dimensional model.
In this embodiment, the part of the three-dimensional model covered by the part is deleted by deleting the same coordinate point, so that a complicated three-dimensional perspective calculation is not required, and the performance requirement on the device can be greatly reduced in the model merging operation at the merging time in step S204.
In one embodiment, the three-dimensional model and the auxiliary model each include coordinate points and a plane formed by the coordinate points; the "calculating the same portion of the three-dimensional model as the auxiliary model" includes: and calculating the same coordinate points of the three-dimensional model and the auxiliary model and a surface consisting of the same coordinate points.
The "deleting the same portion in the three-dimensional model" includes: and deleting the same coordinate points and a surface formed by the same coordinate points in the three-dimensional model.
The surface formed by the same coordinate points can adopt three adjacent coordinate points to form a triangular surface. In other embodiments, the surface composed of the same coordinate points may also be a quadrilateral surface formed by four adjacent coordinate points.
In the above embodiments, the component comprises any one or more of a garment, a piece of jewelry, a weapon, and a decoration, and the garment comprises any one or more of a hat, a garment, a pair of trousers, a shoe, a body, a sleeve, and a collar.
In some embodiments, the component is an outfit, and the three-dimensional model when combined is combined with the outfit (i.e., the component), i.e., the three-dimensional model is worn or exchanged for an outfit that includes a coat and pants (and in some cases, may also include hats, shoes). In this case, therefore, the auxiliary model may be obtained by fitting the garment (i.e. the suit) on the three-dimensional model and then removing the parts of the three-dimensional model not covered by the garment.
In other embodiments, the component may be a more subdivided partial garment, for example, the coat may be subdivided into a body (i.e., a main body portion of the coat), a collar, sleeves, a waistband, etc., and the garment may be any one of a body, a collar, sleeves, a waistband, or a combination of a body and any one of a collar, sleeves, or a waistband. In this case, when the auxiliary model is created, a portion corresponding to the garment may be obtained from the three-dimensional model, and then a portion of the portion that is not covered by the garment may be deleted to obtain the auxiliary model. For example, when the garment is a sleeve, only the arm model at the position corresponding to the sleeve in the three-dimensional model is obtained, then the sleeve is put on the arm model, and the part of the arm model which is not covered by the sleeve is deleted, so that the remaining part of the model in the sleeve is the auxiliary model.
In some embodiments, the part combined with the three-dimensional model can also be hair, jewelry, luggage, weapons, or the like, so that the hair (i.e., hairstyle), jewelry, or different weapons carried by the three-dimensional model can be replaced by selecting different parts. The three-dimensional model can be a character object in a game, so that the character object can play different roles in the game by combining the three-dimensional model of the character object with different parts, and clothes, bags, hairs, ornaments, weapons and the like of the character object can be replaced.
Before combination, auxiliary models for making auxiliary models, such as three-dimensional models for wearing hats, shoes, trousers, various clothes, hair, jewelry, cases, weapons and the like, are preset. These pre-made auxiliary models are directly invoked when merging is required.
As shown in fig. 4, an arm is taken as the three-dimensional model 10, and a sleeve is taken as a garment 21 (i.e., a component). The three-dimensional arm model 10 includes coordinate points a, b, c, d, e, f, g, and h, and triangular surfaces (a, b, e), (b, e, f), (e, f, g), (f, g, h), (g, h, c), and (h, c, d) formed by these coordinate points. Sleeve garment 21 includes an auxiliary model 22 located within garment 21, auxiliary model 22 including coordinate points e, f, g, h, and triangular faces (e, f, g) and (f, g, h) made up of these coordinate points. The auxiliary model 22 is located inside the garment 21 and is completely covered by the garment 21. In step S202, coordinate points e, f, g, h of the auxiliary model 22 and the three-dimensional arm model 10 are found by comparing the coordinate points, and triangular surfaces (e, f, g) and (f, g, h) composed of the coordinate points e, f, g, h.
In step S203, coordinate points e, f, g, h in the three-dimensional arm model 10 and the composed triangular surfaces (e, f, g) and (f, g, h) may be deleted; coordinate points e, f, g, h and the composed triangular faces (e, f, g) and (f, g, h) deletions may proceed through the interface of the 3D physics engine.
In step S204, the three-dimensional arm model 10 from which the same portion has been deleted and the garment 21 are combined, so that the garment 21 is combined with the three-dimensional arm model 10. As shown in fig. 3, the combined garment 21 is worn on the arm three-dimensional model 10, and the part of the arm three-dimensional model 10 covered by the garment 21 is deleted, so that the phenomenon of mold penetration does not occur when the arm three-dimensional model moves.
The embodiment shown in fig. 4 is also applicable to parts such as hair, jewelry, weapons, etc., and the parts such as hair, jewelry, weapons, etc. also include corresponding auxiliary models. For example, when the component is hair, the hair component includes hair and an auxiliary model of hair that is a model of the head where it is covered by (or in contact with) the hair (the auxiliary model may also include a neck model when the hair is longer); when the component is a weapon, the weapon component comprises a weapon body and a weapon auxiliary model, and the weapon auxiliary model is a body model covered by the model. When non-clothing parts such as hair, jewelry, weapons and the like are combined with the three-dimensional model (namely when the parts are replaced or worn), the method is the same as the method for replacing sleeve parts, the same parts of the auxiliary model of the non-clothing parts and the three-dimensional model are calculated, then the parts of the three-dimensional model, which are the same as the auxiliary model, are deleted, and finally the non-clothing parts are combined on the three-dimensional model.
As shown in fig. 5, in one embodiment, a mold break-through prevention apparatus 400 is provided when three-dimensional models are merged. The anti-die-punching device 400 can be applied to replacing parts for different three-dimensional models in games when the three-dimensional models are combined, the anti-die-punching device 400 can effectively avoid die punching of the three-dimensional models when the three-dimensional models are combined, the die punching is avoided without physical engine calculation, the data operation amount is reduced, and the performance requirement on equipment can be greatly reduced. The three-dimensional model merging anti-punch device 400 comprises an obtaining module 410 and a merging module 420. The obtaining module 410 is configured to obtain a component to be merged according to a merging instruction. The merging module 420 is used for replacing the part for the three-dimensional model and deleting the part covered by the part in the three-dimensional model.
The system is internally stored with a three-dimensional model and more than two different components, and the merging instruction can be input from the outside through an input device or can be automatically produced by the system.
And the three-dimensional model includes a plurality of parts, each part in the three-dimensional model being mergeable, the parts being of a smallest granularity of merger. The three-dimensional model may be a character model in a game that may be generated by a 3D physics engine, such as a character model generated from a Spine skeleton model in one embodiment, which may include parts of the head, body, arms, legs, etc. The parts may also comprise a plurality of different parts, for example, the parts of the character model may comprise any one or more combinations of clothing, jewelry, weapons, ornaments, including any one or more combinations of hats, clothing, pants, shoes, bodies, sleeves, collars, the top may be subdivided into bodies (top bodies), sleeves, etc., and the pants may be subdivided into sub-units such as trouser legs, waist of trousers, etc., as desired. When the component is a garment, the garment may be a full body garment comprising the three-dimensional model, for example garments including headwear, tops, trousers and shoes. In other embodiments the garment may also be a partial garment of a different part of the three-dimensional model, for example the garment is only a sleeve, a belt or a hat.
In some embodiments, the three-dimensional model may also be a pet model or an equipment model in a game, and the garment is an ornament for decorating the pet model or the equipment model.
In the above embodiments, the component comprises any one or more of a garment, a piece of jewelry, a weapon, and a decoration, and the garment comprises any one or more of a hat, a garment, a pair of trousers, a shoe, a body, a sleeve, and a collar.
In some embodiments, the three-dimensional models are combined with the outfit (i.e., the component) when combined, i.e., the three-dimensional models are worn or replaced with an outfit that includes a coat and pants (and in some cases may also include hats, shoes). In this case, therefore, the auxiliary model may be obtained by fitting the garment (i.e. the suit) on the three-dimensional model and then removing the parts of the three-dimensional model not covered by the garment.
In other embodiments, the garment may be a more subdivided partial garment, for example, the coat may be subdivided into a body (i.e., a main body portion of the coat), a collar, sleeves, a waistband, etc., the garment may be any one of a body, a collar, sleeves, a waistband, or a combination of a body and any one of a collar, sleeves, or a waistband. In this case, when the auxiliary model is created, a portion corresponding to the garment may be obtained from the three-dimensional model, and then a portion of the portion that is not covered by the garment may be deleted to obtain the auxiliary model. For example, when the garment is a sleeve, only the arm model at the position corresponding to the sleeve in the three-dimensional model is obtained, then the sleeve is put on the arm model, and the part of the arm model which is not covered by the sleeve is deleted, so that the remaining part of the model in the sleeve is the auxiliary model.
In some embodiments, the component incorporated with the three-dimensional model may be hair, jewelry, luggage, weapons, or the like.
Before combination, auxiliary models for making auxiliary models, such as three-dimensional models for wearing hats, shoes, trousers, various clothes, hair, jewelry, cases, weapons and the like, are preset. These pre-made auxiliary models are directly invoked when merging is required.
As shown in fig. 6, in an embodiment, the merging module 420 includes a presetting module 421, a calculating module 422, a deleting module 423, and a merging submodule 424.
The presetting module 421 is configured to preset a component model corresponding to the component, where the component model includes the component and an auxiliary model covered by the component.
Wherein the auxiliary model is provided for corresponding components, each component is provided with a corresponding auxiliary model, the auxiliary model is located inside the corresponding component (i.e. the garment is worn on the auxiliary model), and the auxiliary model is completely covered by the component. The three-dimensional model and the auxiliary model each include coordinate points and a plane composed of the coordinate points.
The calculation module 422 is used to calculate the same part of the three-dimensional model as the auxiliary model. Wherein the auxiliary model is the same as a part of the three-dimensional model, and therefore the same part of the auxiliary model and the three-dimensional model can be found by comparing the coordinate points.
The deletion module 423 is configured to delete the same portion of the three-dimensional model.
The merge sub-module 424 is configured to merge the three-dimensional model from which the identical portion is deleted with the component to merge the component on the three-dimensional model.
In this embodiment, the part of the three-dimensional model covered by the part is deleted by deleting the same coordinate point, so that a complicated three-dimensional perspective calculation is not required, and the performance requirement on the device can be greatly reduced in the model merging operation at the merging time in step S204.
As shown in fig. 4, the three-dimensional model 10 is described with arms as an example and with sleeves as a garment 21. The presetting module 421 presets the three-dimensional arm model 10 and the sleeve garment 21, and the sleeve garment 21 includes an auxiliary model 22 inside the garment. The three-dimensional arm model 10 includes a, b, c, d, e, f, g, h coordinate points, and triangular surfaces (a, b, e), (b, e, f), (e, f, g), (f, g, h), (g, h, c), and (h, c, d) composed of these coordinate points. The auxiliary model 22 includes coordinate points e, f, g, h, and triangular faces (e, f, g) and (f, g, h) composed of these coordinate points. The auxiliary model 22 is located inside the garment 21 and is completely covered by the garment 21.
The calculating module 422 is configured to find out coordinate points e, f, g, and h of the auxiliary model 22 and the arm three-dimensional model 10, and triangle surfaces (e, f, g) and (f, g, and h) formed by the coordinate points e, f, g, and h through coordinate point comparison.
The deleting module 423 can delete the coordinate points e, f, g, h in the three-dimensional arm model 10 and the triangular surfaces (e, f, g) and (f, g, h) formed by the coordinate points e, f, g, h; coordinate points e, f, g, h and the composed triangular faces (e, f, g) and (f, g, h) deletions may proceed through the interface of the 3D physics engine.
The merge sub-module 424 performs a merge operation on the three-dimensional arm model 10 and the garment 21 from which the same portion is deleted, so that the garment 21 is merged on the three-dimensional arm model 10. As shown in fig. 3, the combined garment 21 is worn on the arm three-dimensional model 10, and the part of the arm three-dimensional model 10 covered by the garment 21 is deleted, so that the phenomenon of mold penetration does not occur when the arm three-dimensional model moves.
In this embodiment, when the merging module 420 replaces a component for the three-dimensional model, the part covered by the component in the three-dimensional model is deleted, so that the occurrence of die penetration of the component during the movement of the three-dimensional model is effectively avoided. In addition, the technical scheme avoids the die punching through the physical engine calculation, reduces the data operation amount and can greatly reduce the performance requirement on the equipment.
The embodiment shown in fig. 4 is also applicable to parts such as hair, jewelry, weapons, etc., and the parts such as hair, jewelry, weapons, etc. also include corresponding auxiliary models. For example, when the component is hair, the hair component includes hair and an auxiliary model of hair that is a model of the head where it is covered by (or in contact with) the hair (the auxiliary model may also include a neck model when the hair is longer); when the component is a weapon, the weapon component comprises a weapon body and a weapon auxiliary model, and the weapon auxiliary model is a body model covered by the model. When non-clothing parts such as hair, jewelry, weapons and the like are combined with the three-dimensional model (namely when the parts are replaced or worn), the method is the same as the method for replacing sleeve parts, the same parts of the auxiliary model of the non-clothing parts and the three-dimensional model are calculated, then the parts of the three-dimensional model, which are the same as the auxiliary model, are deleted, and finally the non-clothing parts are combined on the three-dimensional model.
As shown in fig. 7, in an embodiment, a computer storage medium 700 is provided, on which a computer program is stored, and when the program is executed by a processor, the method for preventing a mold break when merging three-dimensional models according to any one of the above embodiments is implemented.
When the computer program in the computer storage medium replaces the part for the three-dimensional model, the part covered by the part in the three-dimensional model is deleted, so that the occurrence of part die penetration during the movement of the three-dimensional model is effectively avoided. In addition, the technical scheme avoids the die punching through the physical engine calculation, reduces the data operation amount and can greatly reduce the performance requirement on the equipment. Furthermore, the technical scheme deletes part of the three-dimensional model by deleting the same coordinate points in the three-dimensional model and the auxiliary model, so that complex three-dimensional perspective calculation is not needed, and the performance requirement on equipment can be greatly reduced in the model merging step during merging. And the part of the three-dimensional model covered by the part is deleted by deleting the same coordinate point, so that complex three-dimensional perspective calculation is not needed, and the performance requirement on the equipment can be greatly reduced in the model merging operation during merging in the step S204.
It should be noted that, although the above embodiments have been described herein, the invention is not limited thereto. Therefore, based on the innovative concepts of the present invention, the technical solutions of the present invention can be directly or indirectly applied to other related technical fields by making changes and modifications to the embodiments described herein, or by using equivalent structures or equivalent processes performed in the content of the present specification and the attached drawings, which are included in the scope of the present invention.

Claims (10)

1. A method for preventing a three-dimensional model from penetrating during merging is characterized by comprising the following steps:
acquiring components to be merged according to the merging instruction;
and replacing the part for the three-dimensional model, and deleting the part covered by the part in the three-dimensional model.
2. The method for preventing the mold penetration during the combination of the three-dimensional models according to claim 1, further comprising the steps of:
presetting a component model corresponding to the component, wherein the component model comprises the component and an auxiliary model covered by the component;
the step of replacing the three-dimensional model with the part and deleting the part covered by the part in the three-dimensional model comprises the following steps:
calculating the same part of the three-dimensional model as the auxiliary model;
deleting the same portion of the three-dimensional model;
and merging the three-dimensional model with the part after the same part is deleted and the part is merged on the three-dimensional model.
3. The method for preventing mold penetration when three-dimensional models are combined according to claim 2, wherein the three-dimensional model and the auxiliary model each include coordinate points and a plane formed by the coordinate points; the "calculating the same portion of the three-dimensional model as the auxiliary model" includes:
calculating the same coordinate points of the three-dimensional model and the auxiliary model and a surface consisting of the same coordinate points;
the "deleting the same portion in the three-dimensional model" includes: and deleting the same coordinate points and a surface formed by the same coordinate points in the three-dimensional model.
4. The method for preventing the mold from being penetrated when the three-dimensional models are combined according to claim 3, wherein the surface composed of the same coordinate points is composed of a plurality of triangular surfaces, and each vertex of each triangular surface is the coordinate point.
5. The method for preventing the die from penetrating when the three-dimensional models are combined according to claim 2, wherein the step of presetting the part model corresponding to the part, wherein the part model comprises the part and an auxiliary model covered by the part, comprises the following steps:
presetting the parts, wherein the parts comprise any one or combination of more than one of clothes, ornaments, weapons and decorations, and the clothes comprise any one or combination of more than one of hats, clothes, trousers, shoes, clothes bodies, sleeves and collars;
and acquiring a three-dimensional model or a part corresponding to the component in the three-dimensional model, and deleting the part which is not covered by the component in the three-dimensional model or the part to obtain the auxiliary model.
6. The method for preventing the model from being penetrated when the three-dimensional models are combined according to the claim 5, wherein the three-dimensional models are generated by a 3D physical engine, and the three-dimensional models are deleted by calling an interface in the 3D physical engine, wherein the part which is not covered by the parts is deleted.
7. The method for preventing the model from being penetrated when the three-dimensional models are combined according to the claim 1, wherein the three-dimensional models comprise any one or more of character models, pet models and equipment models in games.
8. The utility model provides a prevent die-cut device when three-dimensional model merges which characterized in that includes:
the acquisition module is used for acquiring the components to be merged according to the merging instruction; and
and the merging module is used for replacing the parts on the three-dimensional model and deleting the parts covered by the parts in the three-dimensional model.
9. The device for preventing the three-dimensional models from penetrating into the mold during the combination of the three-dimensional models according to claim 8, wherein the combination module comprises:
the preset module is used for presetting a component model corresponding to the component, and the component model comprises the component and an auxiliary model covered by the component;
a calculation module for calculating the same portion of the three-dimensional model as the auxiliary model;
a deletion module to delete the same portion of the three-dimensional model; and
and the merging submodule is used for merging the three-dimensional model with the part after the same part is deleted and merging the part on the three-dimensional model.
10. A computer storage medium on which a computer program is stored, which program, when executed by a processor, implements a method of preventing puncturing when merging three-dimensional models according to any one of claims 1 to 7.
CN202110811398.7A 2021-07-19 2021-07-19 Method, device and storage medium for preventing mold penetration during three-dimensional model merging Active CN113610960B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110811398.7A CN113610960B (en) 2021-07-19 2021-07-19 Method, device and storage medium for preventing mold penetration during three-dimensional model merging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110811398.7A CN113610960B (en) 2021-07-19 2021-07-19 Method, device and storage medium for preventing mold penetration during three-dimensional model merging

Publications (2)

Publication Number Publication Date
CN113610960A true CN113610960A (en) 2021-11-05
CN113610960B CN113610960B (en) 2024-04-02

Family

ID=78337822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110811398.7A Active CN113610960B (en) 2021-07-19 2021-07-19 Method, device and storage medium for preventing mold penetration during three-dimensional model merging

Country Status (1)

Country Link
CN (1) CN113610960B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115147324A (en) * 2022-08-01 2022-10-04 聚好看科技股份有限公司 Human body model and clothes model fusion method and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101785033A (en) * 2007-08-24 2010-07-21 株式会社岛精机制作所 Layering simulation apparatus, simulation method, simulation program
CN107609946A (en) * 2017-09-19 2018-01-19 北京优时尚科技有限责任公司 A kind of display control method and computing device
CN109584360A (en) * 2018-12-03 2019-04-05 西安数文科技有限公司 A kind of inscription rubbing method and device
US20190272671A1 (en) * 2016-10-17 2019-09-05 Hangzhou Hikvision Digital Technology Co., Ltd. Method and device for constructing 3d scene model
CN112862956A (en) * 2021-02-05 2021-05-28 南京大学 Human body and garment model collision detection and processing method based on HRBFs

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101785033A (en) * 2007-08-24 2010-07-21 株式会社岛精机制作所 Layering simulation apparatus, simulation method, simulation program
US20190272671A1 (en) * 2016-10-17 2019-09-05 Hangzhou Hikvision Digital Technology Co., Ltd. Method and device for constructing 3d scene model
CN107609946A (en) * 2017-09-19 2018-01-19 北京优时尚科技有限责任公司 A kind of display control method and computing device
CN109584360A (en) * 2018-12-03 2019-04-05 西安数文科技有限公司 A kind of inscription rubbing method and device
CN112862956A (en) * 2021-02-05 2021-05-28 南京大学 Human body and garment model collision detection and processing method based on HRBFs

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115147324A (en) * 2022-08-01 2022-10-04 聚好看科技股份有限公司 Human body model and clothes model fusion method and equipment
CN115147324B (en) * 2022-08-01 2024-03-22 聚好看科技股份有限公司 Fusion method and device of human body model and clothing model

Also Published As

Publication number Publication date
CN113610960B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN110021061B (en) Collocation model construction method, clothing recommendation method, device, medium and terminal
JP7403534B2 (en) Methods and systems for generating 3D reconstructions of humans
US7409259B2 (en) Computer-assisted method for designing garments
US10582733B2 (en) Methods for producing garments and garment designs
CN109934613A (en) A kind of virtual costume system for trying
Stecker The fashion design manual
Tadjimatova LINGUISTIC FEATURES OF THE WORDS RELATED TO FASHION IN ENGLISH AND UZBEK
CN106952318A (en) A kind of dress designing method of Design System of Garment and the application system
CN106600375A (en) Design making platform of visual costume cutting sheet
CN113610960A (en) Method and device for preventing die penetration during three-dimensional model merging and storage medium
CN107622428A (en) A kind of method and device for realizing virtually trying
CN111476908A (en) Dress designing system
CN103324810A (en) Personalized ornament matching system
CN109624574A (en) A kind of engraving path generating method and device for leaf carving
CN111383068A (en) Method and system for matching style of clothing style
CN109198741A (en) Star one-piece dress and its clothing method
KR20020019335A (en) System and controlling method for fitting clothes
Okadigwe Blending Eclecticism and Specificity: The Art of Nollywood Epic Film Costumes
CN113837835B (en) Role model-based wearable product display method and device
Marion et al. Comics and films
JP7418677B1 (en) Information processing system, information processing method, and information processing program
CN112580652A (en) Virtual decoration method and device, electronic equipment and storage medium
TWI783908B (en) Integrated production system and method of wearing garments
Janssen The dressmaker
Morsi et al. Visual Analysis of Sekhmet’s Costumes and Attributes in Marvel Comic Book

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant