CN114816156A - Model detection method and device, terminal device and storage medium - Google Patents

Model detection method and device, terminal device and storage medium Download PDF

Info

Publication number
CN114816156A
CN114816156A CN202210517915.4A CN202210517915A CN114816156A CN 114816156 A CN114816156 A CN 114816156A CN 202210517915 A CN202210517915 A CN 202210517915A CN 114816156 A CN114816156 A CN 114816156A
Authority
CN
China
Prior art keywords
virtual object
object model
error
model
constraint condition
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.)
Pending
Application number
CN202210517915.4A
Other languages
Chinese (zh)
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202210517915.4A priority Critical patent/CN114816156A/en
Publication of CN114816156A publication Critical patent/CN114816156A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/66Analysis of geometric attributes of image moments or centre of gravity

Landscapes

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

Abstract

The invention provides a model detection method, a model detection device, terminal equipment and a storage medium, and relates to the technical field of data processing. The method comprises the following steps: in the process of drawing the virtual object model, detecting the virtual object model by adopting at least one preset constraint condition to obtain a detection result; and if the indication information indicates that the virtual object model has drawing errors, generating error prompt information according to the detection result, wherein the error prompt information is used for indicating the drawing errors of the virtual object model. In the process of drawing the virtual object model, the virtual object model is detected by adopting the constraint condition, and when the indication information of the detection result indicates that the virtual object model has drawing errors, error prompt information is generated according to the detection result to prompt the drawing errors of the virtual object model, so that the errors of the virtual object model can be found in time when the virtual object model is drawn, the virtual object model can be modified in time, and the manufacturing efficiency of the virtual object model is improved.

Description

Model detection method and device, terminal device and storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to a model detection method, a model detection device, terminal equipment and a storage medium.
Background
With the development of scientific technology, various applications are increasing, and in some applications, a model is needed to be used during implementation so that the model is displayed to a user when the application runs, and the model is controlled based on the operation of the user, so that the development of the application also becomes a research hotspot.
In the related art, an art worker makes a model in a model making application program, then submits the model, then a research and development worker runs the model in the application program, and if the model has a problem in the running process, the model is fed back to the art worker for modification.
However, in the related art, when the model is run in the game application program, the problem of the model is found and then the model is modified, so that the efficiency of obtaining the model is reduced.
Disclosure of Invention
The present invention aims to provide a model detection method, device, terminal device and storage medium to solve the problem in the related art that when a model is run in a game application program, the problem of model existence is found and then modified, thereby reducing the efficiency of model acquisition.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a model detection method, where the method includes:
in the process of drawing a virtual object model, detecting the virtual object model by adopting at least one preset constraint condition to obtain a detection result, wherein the detection result comprises: indication information for indicating whether the virtual object model has a drawing error;
and if the indication information indicates that the virtual object model has drawing errors, generating error prompt information according to the detection result, wherein the error prompt information is used for indicating the drawing errors of the virtual object model.
Optionally, in the process of drawing the virtual object model, before detecting the virtual object model by using at least one preset constraint condition and obtaining a detection result, the method further includes:
and responding to the input first selection operation of the constraint control, and determining that the constraint condition corresponding to the target constraint control selected by the first selection operation is the at least one constraint condition.
Optionally, if the indication information indicates that the virtual object model has a drawing error, the detection result further includes: drawing error data; the generating of the error prompt information according to the detection result includes:
and generating the error prompt information according to the drawing error data.
Optionally, the method further includes:
if the indication information indicates that the virtual object model has a drawing error, displaying an error mark on the virtual object model, wherein the error mark is used for indicating the position of the drawing error in the virtual object model and the type of the drawing error.
Optionally, the method further includes:
responding to the input second selection operation of the error display control, and determining a target error display control selected by the second selection operation;
the displaying of error markers on the virtual object model comprises:
and displaying an error mark on the virtual object model according to the error display type corresponding to the target error display control.
Optionally, the at least one constraint condition includes: a normal roll-over constraint condition; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
determining the normal orientation of each triangle according to the vertex drawing sequence of each triangle in the virtual object model by adopting the normal turning constraint condition;
if the normal directions of the triangles are not consistent, the indication information indicates that the virtual object model has the problem of collision body penetrating or display error.
Optionally, the at least one constraint condition includes: an overlap constraint condition; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
sequentially traversing two triangles in the virtual object model by adopting the overlapping constraint condition, and judging whether any two edges of the two triangles are intersected;
if the virtual object models are intersected, the indication information indicates that the virtual object models have the problem of overlapping;
if the intersection does not exist, judging whether one of the two triangles is in the other triangle;
if yes, the indication information indicates that the virtual object models have the overlapping problem.
Optionally, the at least one constraint condition includes: same plane constraint conditions; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
determining triangles corresponding to all planes in the virtual object model by adopting the same plane constraint condition;
judging whether the dot product of the normals of the triangles in the same target plane is a preset threshold value or not;
if the virtual object model is not the preset threshold, the indication information indicates that triangles in the target plane in the virtual object model are not in the same plane.
Optionally, the at least one constraint condition includes: virtual object model and collision volume constraints; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
determining a first bounding box area of a rendering model of the virtual object model and a second bounding box area of a collision body model of the virtual object model by using the virtual object model and a collision body constraint condition;
judging whether the ratio of the area of the first enclosure box to the area of the second enclosure box is within a preset range;
if not, the indication information indicates that the sizes of the rendering model and the collision body model have errors.
In a second aspect, an embodiment of the present invention further provides a model detection apparatus, where the apparatus includes:
the detection module is used for detecting the virtual object model by adopting at least one preset constraint condition in the process of drawing the virtual object model to obtain a detection result, and the detection result comprises: indication information for indicating whether the virtual object model has a drawing error;
and the generating module is used for generating error prompt information according to the detection result if the indication information indicates that the virtual object model has the drawing error, wherein the error prompt information is used for indicating the drawing error of the virtual object model.
Optionally, the apparatus further comprises:
and the first determining module is used for responding to the input first selection operation of the constraint control, and determining the constraint condition corresponding to the target constraint control selected by the first selection operation as the at least one constraint condition.
Optionally, the generating module is further configured to generate the error prompt information according to the drawing error data.
Optionally, the apparatus further comprises:
and the display module is used for displaying an error mark on the virtual object model if the indication information indicates that the virtual object model has the drawing error, wherein the error mark is used for indicating the position of the drawing error in the virtual object model and the type of the drawing error.
Optionally, the apparatus further comprises:
the second determining module is used for responding to the input second selection operation of the error display control and determining the target error display control selected by the second selection operation;
and the display module is further used for displaying an error mark on the virtual object model according to the error display type corresponding to the target error display control.
Optionally, the at least one constraint condition includes: a normal roll-over constraint condition; the detection module is further configured to determine, according to a vertex drawing sequence of each triangle in the virtual object model, a normal direction of each triangle by using the normal roll-over constraint condition; if the normal directions of the triangles are not consistent, the indication information indicates that the virtual object model has the problem of collision body penetrating or display error.
Optionally, the at least one constraint condition includes: an overlap constraint condition; the detection module is further configured to sequentially traverse two triangles in the virtual object model by using the overlap constraint condition, and determine whether any two edges of the two triangles intersect; if the virtual object models are intersected, the indication information indicates that the virtual object models have the problem of overlapping; if the intersection does not exist, judging whether one of the two triangles is in the other triangle;
if yes, the indication information indicates that the virtual object models have the overlapping problem.
Optionally, the at least one constraint condition includes: same plane constraint conditions; the detection module is further configured to determine a triangle corresponding to each plane in the virtual object model by using the same plane constraint condition; judging whether the dot product of the normals of the triangles in the same target plane is a preset threshold value or not; if the virtual object model is not the preset threshold, the indication information indicates that triangles in the target plane in the virtual object model are not in the same plane.
Optionally, the at least one constraint condition includes: virtual object model and collision volume constraints; the detection module is further configured to determine a first bounding box area of a rendering model of the virtual object model and a second bounding box area of a collision body model of the virtual object model by using the virtual object model and a collision body constraint condition; judging whether the ratio of the area of the first enclosure box to the area of the second enclosure box is within a preset range; if not, the indication information indicates that the sizes of the rendering model and the collision body model have errors.
In a third aspect, an embodiment of the present invention further provides a terminal device, including: a memory storing a computer program executable by the processor, and a processor implementing the method of any of the first aspects when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the storage medium, and when the computer program is read and executed, the computer program implements the method described in any one of the first aspect.
The invention has the beneficial effects that: the embodiment of the invention provides a model detection method, which comprises the following steps: in the process of drawing the virtual object model, detecting the virtual object model by adopting at least one preset constraint condition to obtain a detection result, wherein the detection result comprises the following steps: indication information for indicating whether the virtual object model has a drawing error; and if the indication information indicates that the virtual object model has drawing errors, generating error prompt information according to the detection result, wherein the error prompt information is used for indicating the drawing errors of the virtual object model. In the process of drawing the virtual object model, the virtual object model is detected by adopting the constraint condition, and when the indication information of the detection result indicates that the virtual object model has drawing errors, error prompt information is generated according to the detection result to prompt the drawing errors of the virtual object model, so that the errors of the virtual object model can be found in time in the process of drawing the virtual object model, the virtual object model can be modified in time, and the manufacturing efficiency of the virtual object model is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a model detection method according to an embodiment of the present invention;
FIG. 2 is a schematic illustration of a graphical user interface provided by an embodiment of the present invention;
fig. 3 is a schematic flowchart of a model detection method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a model detection method according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of a model detection method according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of a model detection method according to an embodiment of the present invention;
FIG. 7 is a schematic flow chart of a model detection method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a model detection apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it should be noted that if the terms "upper", "lower", etc. are used for indicating the orientation or positional relationship based on the orientation or positional relationship shown in the drawings or the orientation or positional relationship which is usually arranged when the product of the application is used, the description is only for convenience of describing the application and simplifying the description, but the indication or suggestion that the referred device or element must have a specific orientation, be constructed in a specific orientation and operation, and thus, cannot be understood as the limitation of the application.
Furthermore, the terms "first," "second," and the like in the description and in the claims, as well as in the drawings, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
The following explains terms related to the embodiments of the present application.
3ds Max: a specialized 3D (three-dimensional) computer graphics program for making 3D animations, models, etc.
Bug: a program bug.
UI (user interface): user interface (user interface).
C + + SDK: c + + (a programming language) Software Development Kit (SDK) for customizing and extending specified applications.
2 UV: a second set of texture coordinates for the 3D model.
With the development of scientific technology, various applications are increasing, and in some applications, a model is needed to be used during implementation so that the model is displayed to a user when the application runs, and the model is controlled based on the operation of the user, so that the development of the application also becomes a research hotspot.
In the related art, an art worker makes a model in a model making application program, then submits the model, then a research and development worker runs the model in the application program, and if the model has a problem in the running process, the model is fed back to the art worker for modification. However, in the related art, when the model is run in the game application program, the problem of the model is found and then the model is modified, so that the efficiency of obtaining the model is reduced.
In order to solve the technical problems in the related art, embodiments of the present application provide a model detection method, where a constraint condition is used to detect a virtual object model during a process of drawing the virtual object model, and when indication information of a detection result indicates that a drawing error exists in the virtual object model, an error prompt message is generated according to the detection result to prompt the drawing error existing in the virtual object model, so that the error existing in the virtual object model can be found in time during the process of drawing the virtual object model, thereby facilitating timely modification of the virtual object model and improving the production efficiency of the virtual object model.
In the model detection method provided in the embodiment of the present application, the execution subject may be a terminal device, and in practical application, the terminal device may be any one of the following: desktop computers, notebook computers, tablet computers, smart phones, and the like.
The following explains a model detection method provided in the embodiments of the present application, with a terminal as an execution subject.
Fig. 1 is a schematic flow chart of a model detection method according to an embodiment of the present invention, as shown in fig. 1, the method may include:
s101, in the process of drawing the virtual object model, detecting the virtual object model by adopting at least one preset constraint condition to obtain a detection result.
Wherein, the detection result includes: and indication information for indicating whether the virtual object model has a drawing error.
In some embodiments, the terminal may render the virtual object model in response to an input rendering operation; the terminal can store at least one constraint condition, each constraint condition can be used for detecting one corresponding type of drawing error, and the terminal detects the virtual object model by adopting at least one preset constraint condition to obtain a detection result.
In practical applications, the drawn virtual object model may be applied in a game application, for example, the virtual object model may be a virtual object in the game application; optionally, the virtual character, the virtual building, the virtual article, the virtual weapon, and the like in the virtual object are not particularly limited in this application. Of course, the virtual object model may also be a type of application program, and the specific form of the virtual object model may be drawn according to the actual requirements in the application program.
In addition, if the indication information of the detection result indicates that no drawing error occurs in the virtual object model.
It should be noted that the terminal may modify the virtual object model in response to the input modification operation, so as to check and modify the virtual object model in time during the process of drawing the virtual object model.
And S102, if the indication information indicates that the virtual object model has drawing errors, generating error prompt information according to the detection result.
Wherein, the error prompt information can be used for indicating the drawing error of the virtual object model.
In the embodiment of the application, the error prompt information generated according to the detection result can be used for prompting an art worker that an error occurs in the process of drawing the virtual object model, and can also prompt a specific position of the error and a specific type of the error.
In addition, the terminal can present a graphical user interface, the graphical user interface has a virtual object model being drawn in the process of drawing the virtual object model, and error prompt information can be displayed on the graphical user interface after the error prompt information is generated.
It should be noted that the terminal may display the error prompt information in the error prompt area in the graphical user interface, may also error prompt information in a pop-up window manner, and may also error prompt information in other manners, which is not specifically limited in this embodiment of the present application.
In practical application, batch detection processing of a plurality of virtual object models can be supported, and error checking efficiency for the plurality of virtual object models can be improved.
In summary, an embodiment of the present invention provides a model detection method, including: in the process of drawing the virtual object model, detecting the virtual object model by adopting at least one preset constraint condition to obtain a detection result, wherein the detection result comprises the following steps: indication information for indicating whether the virtual object model has a drawing error; and if the indication information indicates that the virtual object model has drawing errors, generating error prompt information according to the detection result, wherein the error prompt information is used for indicating the drawing errors of the virtual object model. In the process of drawing the virtual object model, the virtual object model is detected by adopting the constraint condition, and when the indication information of the detection result indicates that the virtual object model has drawing errors, error prompt information is generated according to the detection result to prompt the drawing errors of the virtual object model, so that the errors of the virtual object model can be found in time in the process of drawing the virtual object model, the virtual object model can be modified in time, and the manufacturing efficiency of the virtual object model is improved.
It should be noted that constraint codes corresponding to each constraint condition may be stored in the extensible constraint library of the terminal, and if the number of the constraint conditions is multiple, the constraint codes corresponding to each constraint condition may be sequentially executed according to a preset sequence.
In the process of drawing the virtual object model in S101, before detecting the virtual object model by using at least one preset constraint condition and obtaining a detection result, the method may further include:
and responding to the input first selection operation of the constraint control, and determining that the constraint condition corresponding to the target constraint control selected by the first selection operation is at least one constraint condition.
The terminal comprises a graphical user interface, a plurality of constraint controls and a plurality of constraint conditions, wherein the graphical user interface of the terminal can display the plurality of constraint controls, and the constraint conditions corresponding to the constraint controls can be stored in the terminal.
In some embodiments, in response to inputting a first selection operation for at least one target constraint control in the plurality of constraint controls, determining at least one target constraint control selected by the first selection operation; and then determining a target constraint condition corresponding to the at least one target constraint control, and taking the target constraint condition as the at least one constraint condition.
Fig. 2 is a display schematic diagram of a graphical user interface according to an embodiment of the present invention, as shown in fig. 2, each constraint control may have a corresponding selection box, and a first selection operation may act on the selection box of the target constraint control to select the target constraint control.
As shown in fig. 2, constraint prompt information may be displayed on the constraint control, for example, the constraint control corresponding to the normal flipping constraint condition may be a normal flipping condition; constraint control corresponding to the overlapping constraint condition, wherein the corresponding constraint prompt information can be a model overlapping surface; constraint control parts corresponding to the same plane constraint conditions, wherein the corresponding constraint prompt information can be the surface of a non-same plane; and constraint prompt information corresponding to the constraint controls corresponding to the virtual object model and the constraint conditions of the collision volume can be the sizes of the original model and the collision volume.
In some embodiments, as shown in fig. 2, the graphical user interface may further include a UV channel number control, a surface number check control, a delete dead point control, a material control, a 2U inversion control, a non-four-sided surface and smooth group control, a broken surface and leakage surface control, a threshold control, a delete unused material control, an LOD3, a 4 smooth group control, a model surface number per level control, and a 2UV range control, so as to perform drawing and checking of the virtual object model.
Optionally, if the indication information indicates that the virtual object model has a drawing error, the detection result further includes: drawing error data; the process of generating the error prompt information according to the detection result in S102 may include: and generating error prompt information according to the drawing error data.
The terminal can extract drawing error data from the detection result, then generates error prompt information according to the drawing error data, can call an interface of a display point/line/surface, displays the error prompt information, and then enables art workers to obtain the error prompt information.
In this embodiment of the present application, the virtual object model may be drawn in the 3ds Max application, and the virtual object model may be detected, and the interface of the point/line/surface may be an interface of a point/line/surface in the 3ds Max application.
Optionally, the method may further include: and if the indication information indicates that the virtual object model has drawing errors, displaying an error mark on the virtual object model.
Wherein the error flag may be used to indicate a location in the virtual object model where the drawing error exists, and a type of the drawing error.
In some embodiments, the virtual object model may be displayed on the graphical user interface, and if the indication information indicates that the virtual object model has a drawing error, an error mark is displayed on the virtual object model, so that an error position and an error type can be more intuitively indicated, and an art worker can quickly know the problem existing in the virtual object model.
Optionally, fig. 3 is a schematic flow chart of a model detection method provided in an embodiment of the present invention, and as shown in fig. 3, the method may further include:
s301, responding to the input second selection operation of the error display control, and determining a target error display control selected by the second selection operation.
In some embodiments, a plurality of error display controls are displayed in a graphical user interface presented by the terminal, and a target error display control selected by a second selection operation is determined from the plurality of error display controls in response to the input second selection operation of the error display controls.
The process of displaying the error mark on the virtual object model in S102 may include:
and S302, displaying an error mark on the virtual object model according to the error display type corresponding to the target error display control.
And each error display control has a corresponding error display type.
In the embodiment of the application, the terminal may display an error mark corresponding to the error display type of the target error display control on the virtual object model according to the error data in the detection result. The method and the device can flexibly and visually display the error marks on the virtual object model, so that art workers can quickly know the drawing errors aiming at the specific error display type.
In this embodiment of the application, as shown in fig. 2, a utility tool is additionally integrated in the graphical user interface, and the control corresponding to the utility tool may be: LOD check tool control, reset transform and collapse control, FBX export tool control.
In the embodiment of the application, the logic of the UI interface and the checking method can be split, the UI interface only calls the corresponding constraint condition or the standard checking interface, and the logic is not realized. Different detection contents are split into a plurality of interfaces, different combined detection schemes can be selected according to needs, and calling is carried out through the unified module. The function of displaying the error position is provided aiming at the inspection that part of the text content is difficult to review. And aiming at a high-overhead inspection method, C + + SDK is used for assisting development.
For example, the implementation code of the checking method may be as follows:
+check function 1()
+check function 2()
+check function 3()
+check function 4()
+check function n()
+button function 1()
+button function 2()
+button function 3()
accordingly, the implementation code of the UI interface may be as follows:
+check:Button
+button 1:Button
+button 2:Button
+button n:Button
+function 1:checkbox
+function 2:checkbox
+function 3:checkbox
+function 4:checkbox
+on_check_presson()
+on buttoni presson()
optionally, the at least one constraint includes: a normal flip constraint. Fig. 4 is a schematic flow chart of a model detection method according to an embodiment of the present invention, and as shown in fig. 4, the step of detecting the virtual object model by using at least one preset constraint condition in S101 to obtain a detection result may include:
s401, determining the normal direction of each triangle according to the drawing sequence of the vertexes of each triangle in the virtual object model by adopting a normal overturning constraint condition.
If the vertex drawing orders of all the triangles are all anticlockwise or clockwise, the normal directions of all the triangles are the same direction.
In some embodiments, the terminal may adopt a normal inversion constraint condition, calculate a cross product result of two adjacent edges of each triangle according to a vertex drawing sequence of the triangle, and determine a normal direction of each triangle according to the cross product result; if the two triangles are triangles with a common side, the terminal can determine the drawing sequence of the common side according to the drawing sequence of the vertexes of the triangles, and then determine the normal direction of each triangle.
It should be noted that there may be points with very close distances in the virtual object model making process, and such points may split two adjacent triangles into two non-adjacent triangles, which may cause skipping of detection of the two triangles during detection, resulting in an error in the result. Therefore, the vertexes need to be combined into the same vertex initially, and the accuracy of the result is guaranteed.
S402, if the normal directions of the triangles are not consistent, the indication information indicates that the virtual object model has the problems of collision body penetrating or display errors.
In the embodiment of the application, if the normal directions of the triangles are not consistent, the problem of die penetration can occur, when the normal directions of some triangles face outwards, correct blocking can be realized, and when the normal directions of some triangles face inwards, correct blocking cannot be realized, so that the die penetration is caused. Also, the normal orientation of the triangle is illumination dependent. Triangles with the normal lines facing the right directions can be normally illuminated by light, and triangle rows with the normal lines facing the wrong directions cannot be illuminated by light, so that display errors occur, and the situation of threading exists.
Optionally, the at least one constraint includes: an overlap constraint. Fig. 5 is a schematic flow chart of a model detection method according to an embodiment of the present invention, and as shown in fig. 5, the step of detecting the virtual object model by using at least one preset constraint condition in S101 to obtain a detection result may include:
s501, traversing two triangles in the virtual object model in sequence by adopting an overlapping constraint condition, and judging whether any two edges of the two triangles are intersected.
And S502, if the virtual object models are intersected, the indication information indicates that the virtual object models have the overlapping problem.
S503, if no intersection exists, judging whether one of the two triangles is in the other triangle.
And S504, if yes, the indication information indicates that the virtual object models have the overlapping problem.
In the above-described processes of S501 to S504, it may be detected whether or not the triangles of the 2UV module of the virtual object model overlap, and if there is overlap, an error occurs in which two triangles display the same content.
It should be noted that the time complexity of the algorithm of the above-mentioned processes from S501 to S504 is O (n ^2), and the implementation process of the algorithm also adopts c + +.
Optionally, the at least one constraint includes: same plane constraint conditions; fig. 6 is a schematic flow chart of a model detection method according to an embodiment of the present invention, and as shown in fig. 6, the step of detecting the virtual object model by using at least one preset constraint condition in S101 to obtain a detection result may include:
s601, determining triangles corresponding to all planes in the virtual object model by adopting the same plane constraint condition.
S602, judging whether the dot product of the normals of the triangles in the same target plane is a preset threshold value.
And S603, if the target plane is not the preset threshold, indicating that the triangles in the target plane in the virtual object model are not in the same plane by the indicating information.
In practical application, the model is constructed in 3DS MAX, and more modes of polygons are used, so that in the manufacturing process, under the condition of some misoperation of polygons, split triangles are not in the same plane, and therefore whether triangles of each plane are in the same plane needs to be separately detected, and when the triangles of each plane are not in the same plane, the situation of mode crossing occurs with probability.
In some embodiments, the terminal calculates normal data of each triangle in the same target plane, performs normalization processing on the normal data to obtain normalized normal data, calculates a dot product of the normalized normal data of the triangles in the same target plane, and determines whether the dot product is a preset threshold, and if not, the indication information indicates that the triangles in the target plane in the virtual object model are not in the same plane.
Optionally, the preset threshold may be 0 or 0.1.
Optionally, the at least one constraint includes: virtual object model and collision volume constraints; fig. 7 is a schematic flow chart of a model detection method according to an embodiment of the present invention, and as shown in fig. 7, the step of detecting the virtual object model by using at least one preset constraint condition in S101 to obtain a detection result may include:
s701, determining the area of a first surrounding box of a rendering model of the virtual object model and the area of a second surrounding box of a collision body model of the virtual object model by adopting the virtual object model and the collision body constraint conditions.
S702, judging whether the ratio of the area of the first surrounding box to the area of the second surrounding box is within a preset range.
S703, if not, indicating that the sizes of the rendering model and the collision body model have errors by the indication information.
The virtual object model can be split into a rendering model and a collision body model, the number of the faces of the collision body model is far smaller than that of the rendering model, the collision body model is an invisible object in a game, and the movement of a virtual character is blocked and limited, so that the sizes of the virtual object model and the collision body model are required to be ensured, and the shapes of the virtual object model and the collision body model are almost consistent.
In some embodiments, the terminal may calculate the first enclosure box area and the second enclosure box area for the three views, respectively, that is, calculate the first enclosure box area and the second enclosure box area for the front view, the top view, and the side view, respectively, calculate a first ratio of the first enclosure box area and the second enclosure box area of the front view, a second ratio of the first enclosure box area and the second enclosure box area of the top view, and a third ratio of the first enclosure box area and the second enclosure box area of the side view; if the first ratio, the second ratio and the third ratio are all within a preset range, the indication information indicates that no error exists in the sizes of the rendering model and the collision body model; if any ratio of the first ratio, the second ratio and the third ratio is not in a preset range, the indication information indicates that errors exist in sizes of the rendering model and the collision body model.
In summary, an embodiment of the present invention provides a model detection method, including: in the process of drawing the virtual object model, detecting the virtual object model by adopting at least one preset constraint condition to obtain a detection result, wherein the detection result comprises the following steps: indication information for indicating whether the virtual object model has a drawing error; and if the indication information indicates that the virtual object model has drawing errors, generating error prompt information according to the detection result, wherein the error prompt information is used for indicating the drawing errors of the virtual object model. In the process of drawing the virtual object model, the virtual object model is detected by adopting the constraint condition, and when the indication information of the detection result indicates that the virtual object model has drawing errors, error prompt information is generated according to the detection result to prompt the drawing errors of the virtual object model, so that the errors of the virtual object model can be found in time in the process of drawing the virtual object model, the virtual object model can be modified in time, and the manufacturing efficiency of the virtual object model is improved.
Moreover, the communication cost between the art personnel and the programmers is reduced, the working efficiency of the art personnel and the programmers is improved, the inspection can be expanded, the low-coupling characteristic is realized, and the automatic repair function can be carried out aiming at some drawing errors.
The following describes a model detection apparatus, a terminal device, a storage medium, and the like for executing the model detection method provided in the present application, and for specific implementation processes and technical effects, reference is made to relevant contents of the above method, and details are not described below.
Fig. 8 is a schematic structural diagram of a model detection apparatus according to an embodiment of the present invention, and as shown in fig. 8, the apparatus may include:
a detection module 801, configured to detect a virtual object model by using at least one preset constraint condition in a process of drawing the virtual object model, to obtain a detection result, where the detection result includes: indication information for indicating whether a drawing error exists in the virtual object model;
a generating module 802, configured to generate error prompt information according to the detection result if the indication information indicates that the virtual object model has a drawing error, where the error prompt information is used to indicate that the virtual object model has the drawing error.
Optionally, the apparatus further comprises:
and the first determining module is used for responding to the input first selection operation of the constraint control, and determining the constraint condition corresponding to the target constraint control selected by the first selection operation as the at least one constraint condition.
Optionally, the generating module 802 is further configured to generate the error prompt information according to the drawing error data.
And the display module is used for displaying an error mark on the virtual object model if the indication information indicates that the virtual object model has the drawing error, wherein the error mark is used for indicating the position of the drawing error in the virtual object model and the type of the drawing error.
Optionally, the apparatus further comprises:
the second determining module is used for responding to the input second selection operation of the error display control and determining the target error display control selected by the second selection operation;
and the display module is further used for displaying an error mark on the virtual object model according to the error display type corresponding to the target error display control.
Optionally, the at least one constraint condition includes: a normal roll-over constraint condition; the detection module 801 is further configured to determine, according to the vertex drawing sequence of each triangle in the virtual object model, a normal direction of each triangle by using the normal flipping constraint condition; if the normal directions of the triangles are not consistent, the indication information indicates that the virtual object model has the problem of collision body penetrating or display error.
Optionally, the at least one constraint condition includes: an overlap constraint condition; the detecting module 801 is further configured to sequentially traverse two triangles in the virtual object model by using the overlap constraint condition, and determine whether any two edges of the two triangles intersect; if the virtual object models are intersected, the indication information indicates that the virtual object models have the problem of overlapping; if the intersection does not exist, judging whether one of the two triangles is in the other triangle;
if yes, the indication information indicates that the virtual object models have the overlapping problem.
Optionally, the at least one constraint condition includes: same plane constraint conditions; the detecting module 801 is further configured to determine a triangle corresponding to each plane in the virtual object model by using the same plane constraint condition; judging whether the dot product of the normals of the triangles in the same target plane is a preset threshold value or not; if the virtual object model is not the preset threshold, the indication information indicates that triangles in the target plane in the virtual object model are not in the same plane.
Optionally, the at least one constraint condition includes: virtual object model and collision volume constraints; the detecting module 801 is further configured to determine, by using the virtual object model and the collision volume constraint condition, a first bounding box area of a rendering model of the virtual object model and a second bounding box area of a collision volume model of the virtual object model; judging whether the ratio of the area of the first enclosure box to the area of the second enclosure box is within a preset range; if not, the indication information indicates that the sizes of the rendering model and the collision body model have errors.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, and as shown in fig. 9, the terminal device may include: a processor 901, a memory 902.
Wherein, the memory 902 is used for storing programs, and the processor 901 calls the programs stored in the memory 902 to execute the above method embodiments.
By way of example, the method may comprise:
in the process of drawing a virtual object model, detecting the virtual object model by adopting at least one preset constraint condition to obtain a detection result, wherein the detection result comprises: indication information for indicating whether the virtual object model has a drawing error;
and if the indication information indicates that the virtual object model has drawing errors, generating error prompt information according to the detection result, wherein the error prompt information is used for indicating the drawing errors of the virtual object model.
Optionally, in the process of drawing the virtual object model, before detecting the virtual object model by using at least one preset constraint condition and obtaining a detection result, the method further includes:
and responding to the input first selection operation of the constraint control, and determining that the constraint condition corresponding to the target constraint control selected by the first selection operation is the at least one constraint condition.
Optionally, if the indication information indicates that the virtual object model has a drawing error, the detection result further includes: drawing error data; the generating of the error prompt information according to the detection result includes:
and generating the error prompt information according to the drawing error data.
Optionally, the method further includes:
and if the indication information indicates that the virtual object model has drawing errors, displaying an error mark on the virtual object model, wherein the error mark is used for indicating the position of the drawing errors in the virtual object model and the type of the drawing errors.
Optionally, the method further includes:
responding to the input second selection operation of the error display control, and determining a target error display control selected by the second selection operation;
the displaying of error markers on the virtual object model comprises:
and displaying an error mark on the virtual object model according to the error display type corresponding to the target error display control.
Optionally, the at least one constraint condition includes: a normal roll-over constraint condition; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
determining the normal orientation of each triangle according to the vertex drawing sequence of each triangle in the virtual object model by adopting the normal turning constraint condition;
if the normal directions of the triangles are not consistent, the indication information indicates that the virtual object model has the problem of collision body penetrating or display error.
Optionally, the at least one constraint condition includes: an overlap constraint condition; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
sequentially traversing two triangles in the virtual object model by adopting the overlapping constraint condition, and judging whether any two edges of the two triangles are intersected;
if the virtual object models are intersected, the indication information indicates that the virtual object models have the problem of overlapping;
if the intersection does not exist, judging whether one of the two triangles is in the other triangle;
if yes, the indication information indicates that the virtual object models have the overlapping problem.
Optionally, the at least one constraint condition includes: same plane constraint conditions; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
determining triangles corresponding to all planes in the virtual object model by adopting the same plane constraint condition;
judging whether the dot product of the normals of the triangles in the same target plane is a preset threshold value or not;
if the virtual object model is not the preset threshold, the indication information indicates that triangles in the target plane in the virtual object model are not in the same plane.
Optionally, the at least one constraint condition includes: virtual object model and collision volume constraints; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
determining a first bounding box area of a rendering model of the virtual object model and a second bounding box area of a collision body model of the virtual object model by using the virtual object model and a collision body constraint condition;
judging whether the ratio of the area of the first enclosure box to the area of the second enclosure box is within a preset range;
if not, the indication information indicates that the sizes of the rendering model and the collision body model have errors.
In summary, in the process of drawing the virtual object model, the constraint condition is adopted to detect the virtual object model, and when the indication information of the detection result indicates that the virtual object model has a drawing error, error prompt information is generated according to the detection result to prompt the drawing error of the virtual object model, so that the error of the virtual object model can be found in time in the process of drawing the virtual object model, the virtual object model can be modified in time, and the virtual object model production efficiency is improved.
Optionally, the invention also provides a program product, for example a computer-readable storage medium, comprising a program which, when being executed by a processor, is adapted to carry out the above-mentioned method embodiments.
By way of example, the method may comprise:
in the process of drawing a virtual object model, detecting the virtual object model by adopting at least one preset constraint condition to obtain a detection result, wherein the detection result comprises: indication information for indicating whether the virtual object model has a drawing error;
and if the indication information indicates that the virtual object model has drawing errors, generating error prompt information according to the detection result, wherein the error prompt information is used for indicating the drawing errors of the virtual object model.
Optionally, in the process of drawing the virtual object model, before detecting the virtual object model by using at least one preset constraint condition and obtaining a detection result, the method further includes:
and responding to the input first selection operation of the constraint control, and determining that the constraint condition corresponding to the target constraint control selected by the first selection operation is the at least one constraint condition.
Optionally, if the indication information indicates that the virtual object model has a drawing error, the detection result further includes: drawing error data; the generating of the error prompt information according to the detection result includes:
and generating the error prompt information according to the drawing error data.
Optionally, the method further includes:
and if the indication information indicates that the virtual object model has drawing errors, displaying an error mark on the virtual object model, wherein the error mark is used for indicating the position of the drawing errors in the virtual object model and the type of the drawing errors.
Optionally, the method further includes:
responding to the input second selection operation of the error display control, and determining a target error display control selected by the second selection operation;
the displaying of error markers on the virtual object model comprises:
and displaying an error mark on the virtual object model according to the error display type corresponding to the target error display control.
Optionally, the at least one constraint condition includes: a normal roll-over constraint condition; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
determining the normal orientation of each triangle according to the vertex drawing sequence of each triangle in the virtual object model by adopting the normal turning constraint condition;
if the normal directions of the triangles are not consistent, the indication information indicates that the virtual object model has the problem of collision body penetrating or display error.
Optionally, the at least one constraint condition includes: an overlap constraint condition; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
sequentially traversing two triangles in the virtual object model by adopting the overlapping constraint condition, and judging whether any two edges of the two triangles are intersected;
if the virtual object models are intersected, the indication information indicates that the virtual object models have the problem of overlapping;
if the intersection does not exist, judging whether one of the two triangles is in the other triangle;
if yes, the indication information indicates that the virtual object models have the overlapping problem.
Optionally, the at least one constraint condition includes: same plane constraint conditions; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
determining triangles corresponding to all planes in the virtual object model by adopting the same plane constraint condition;
judging whether the dot product of the normals of the triangles in the same target plane is a preset threshold value or not;
if the virtual object model is not the preset threshold, the indication information indicates that triangles in the target plane in the virtual object model are not in the same plane.
Optionally, the at least one constraint condition includes: virtual object model and collision volume constraints; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
determining a first bounding box area of a rendering model of the virtual object model and a second bounding box area of a collision body model of the virtual object model by using the virtual object model and a collision body constraint condition;
judging whether the ratio of the area of the first enclosure box to the area of the second enclosure box is within a preset range;
if not, the indication information indicates that the sizes of the rendering model and the collision body model have errors.
In summary, in the process of drawing the virtual object model, the constraint condition is adopted to detect the virtual object model, and when the indication information of the detection result indicates that the virtual object model has a drawing error, error prompt information is generated according to the detection result to prompt the drawing error of the virtual object model, so that the error of the virtual object model can be found in time in the process of drawing the virtual object model, the virtual object model can be modified in time, and the virtual object model production efficiency is improved.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The present invention has been described in terms of the preferred embodiment, and it is not intended to be limited to the embodiment. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for model detection, the method comprising:
in the process of drawing a virtual object model, detecting the virtual object model by adopting at least one preset constraint condition to obtain a detection result, wherein the detection result comprises the following steps: indication information for indicating whether the virtual object model has a drawing error;
and if the indication information indicates that the virtual object model has drawing errors, generating error prompt information according to the detection result, wherein the error prompt information is used for indicating the drawing errors of the virtual object model.
2. The method according to claim 1, wherein during the process of drawing the virtual object model, before detecting the virtual object model by using at least one preset constraint condition and obtaining a detection result, the method further comprises:
and responding to the input first selection operation of the constraint control, and determining that the constraint condition corresponding to the target constraint control selected by the first selection operation is the at least one constraint condition.
3. The method according to claim 1, wherein if the indication information indicates that there is a rendering error in the virtual object model, the detection result further includes: drawing error data; the generating of the error prompt information according to the detection result includes:
and generating the error prompt information according to the drawing error data.
4. The method of claim 1, further comprising:
if the indication information indicates that the virtual object model has a drawing error, displaying an error mark on the virtual object model, wherein the error mark is used for indicating the position of the drawing error in the virtual object model and the type of the drawing error.
5. The method of claim 4, further comprising:
responding to the input second selection operation of the error display control, and determining a target error display control selected by the second selection operation;
the displaying of error markers on the virtual object model comprises:
and displaying an error mark on the virtual object model according to the error display type corresponding to the target error display control.
6. The method of claim 1, wherein the at least one constraint comprises: a normal roll-over constraint condition; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
determining the normal orientation of each triangle according to the vertex drawing sequence of each triangle in the virtual object model by adopting the normal turning constraint condition;
if the normal directions of the triangles are not consistent, the indication information indicates that the virtual object model has the problem of collision body penetrating or display error.
7. The method of claim 1, wherein the at least one constraint comprises: an overlap constraint condition; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
sequentially traversing two triangles in the virtual object model by adopting the overlapping constraint condition, and judging whether any two edges of the two triangles are intersected;
if the virtual object models are intersected, the indication information indicates that the virtual object models have the problem of overlapping;
if the intersection does not exist, judging whether one of the two triangles is in the other triangle;
if yes, the indication information indicates that the virtual object models have the overlapping problem.
8. The method of claim 1, wherein the at least one constraint comprises: same plane constraint conditions; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
determining triangles corresponding to all planes in the virtual object model by adopting the same plane constraint condition;
judging whether the dot product of the normals of the triangles in the same target plane is a preset threshold value or not;
if the target plane is not the preset threshold value, the indication information indicates that the triangles in the target plane in the virtual object model are not in the same plane.
9. The method of claim 1, wherein the at least one constraint comprises: virtual object model and collision volume constraints; the detecting the virtual object model by using at least one preset constraint condition to obtain a detection result includes:
determining a first bounding box area of a rendering model of the virtual object model and a second bounding box area of a collision body model of the virtual object model by using the virtual object model and a collision body constraint condition;
judging whether the ratio of the area of the first enclosure box to the area of the second enclosure box is within a preset range;
if not, the indication information indicates that the sizes of the rendering model and the collision body model have errors.
10. A model detection apparatus, characterized in that the apparatus comprises:
the detection module is used for detecting the virtual object model by adopting at least one preset constraint condition in the process of drawing the virtual object model to obtain a detection result, and the detection result comprises: indication information for indicating whether the virtual object model has a drawing error;
and the generating module is used for generating error prompt information according to the detection result if the indication information indicates that the virtual object model has the drawing error, wherein the error prompt information is used for indicating the drawing error of the virtual object model.
11. A terminal device, comprising: a memory storing a computer program executable by the processor, and a processor implementing the method of any of the preceding claims 1-9 when executing the computer program.
12. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when read and executed, implements the method of any of the preceding claims 1-9.
CN202210517915.4A 2022-05-12 2022-05-12 Model detection method and device, terminal device and storage medium Pending CN114816156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210517915.4A CN114816156A (en) 2022-05-12 2022-05-12 Model detection method and device, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210517915.4A CN114816156A (en) 2022-05-12 2022-05-12 Model detection method and device, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN114816156A true CN114816156A (en) 2022-07-29

Family

ID=82512578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210517915.4A Pending CN114816156A (en) 2022-05-12 2022-05-12 Model detection method and device, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN114816156A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004303063A (en) * 2003-03-31 2004-10-28 Konami Co Ltd Image generation program, image generation device, image generation method and video game device
CN101673200A (en) * 2009-10-15 2010-03-17 中兴通讯股份有限公司 Method and device for detecting user input model
CN109542698A (en) * 2018-10-10 2019-03-29 华东师范大学 A kind of Virtual prototype error-detecting method based on mutation testing
CN111695265A (en) * 2020-06-16 2020-09-22 宁波弘讯软件开发有限公司 Equipment model construction method, device, equipment and readable storage medium
WO2021227645A1 (en) * 2020-05-14 2021-11-18 华为技术有限公司 Target detection method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004303063A (en) * 2003-03-31 2004-10-28 Konami Co Ltd Image generation program, image generation device, image generation method and video game device
CN101673200A (en) * 2009-10-15 2010-03-17 中兴通讯股份有限公司 Method and device for detecting user input model
CN109542698A (en) * 2018-10-10 2019-03-29 华东师范大学 A kind of Virtual prototype error-detecting method based on mutation testing
WO2021227645A1 (en) * 2020-05-14 2021-11-18 华为技术有限公司 Target detection method and device
CN111695265A (en) * 2020-06-16 2020-09-22 宁波弘讯软件开发有限公司 Equipment model construction method, device, equipment and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
匿名: "SketchUp如何检查断线/如何封面", pages 1 - 4, Retrieved from the Internet <URL:https://jingyan.***.com/article/359911f5401b6757ff03066f.html> *

Similar Documents

Publication Publication Date Title
US10545643B2 (en) User interface for data comparison
US11106339B2 (en) Designing and resizing graphical user interfaces
KR100954304B1 (en) A process for selecting and handling objects in a computer-aided design system
CN108553894B (en) Display control method and device, electronic equipment and storage medium
CN112307408B (en) Method and device for determining element information in page, electronic equipment and storage medium
US20140129931A1 (en) Electronic apparatus and handwritten document processing method
CN109976614B (en) Method, device, equipment and medium for marking three-dimensional graph
CN106934842B (en) Method and device for identifying closed area
US20230386041A1 (en) Control Method, Device, Equipment and Storage Medium for Interactive Reproduction of Target Object
CN107977342B (en) Document comparison method and device
US20230410452A1 (en) Method for inferring a 3d geometry onto a 2d sketch
CN114115681A (en) Page generation method and device, electronic equipment and medium
CN110427139B (en) Text processing method and device, computer storage medium and electronic equipment
CN114816156A (en) Model detection method and device, terminal device and storage medium
CN111744181A (en) In-game information display method and device, game client and medium
CN107679219B (en) Matching method and device, interactive intelligent panel and storage medium
CN115496860A (en) Flexible rule model construction method and device, terminal equipment and storage medium
CN115794980A (en) Data display method, equipment, device and medium
CN114692240A (en) CAD drawing method and device, storage medium and computer equipment
JP2019082927A (en) Information processing apparatus, information processing method, and program
CN113448473A (en) Visual operation method and device for picture cutting area
US20140375646A1 (en) Dynamic alteration of guides based on resolution changes
US9280840B2 (en) Figure display device, figure display method and storage medium storing a figure display program
CN111783180A (en) Drawing splitting method and related device
CN106919742B (en) Method and device for automatically marking section position

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