CN117115805B - Random irregular object identification method and device under Unreal Engine platform - Google Patents

Random irregular object identification method and device under Unreal Engine platform Download PDF

Info

Publication number
CN117115805B
CN117115805B CN202311384410.6A CN202311384410A CN117115805B CN 117115805 B CN117115805 B CN 117115805B CN 202311384410 A CN202311384410 A CN 202311384410A CN 117115805 B CN117115805 B CN 117115805B
Authority
CN
China
Prior art keywords
model
target
decal
decal material
dimensional object
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.)
Active
Application number
CN202311384410.6A
Other languages
Chinese (zh)
Other versions
CN117115805A (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.)
Yuance Information Technology Co ltd
Original Assignee
Yuance Information 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 Yuance Information Technology Co ltd filed Critical Yuance Information Technology Co ltd
Priority to CN202311384410.6A priority Critical patent/CN117115805B/en
Publication of CN117115805A publication Critical patent/CN117115805A/en
Application granted granted Critical
Publication of CN117115805B publication Critical patent/CN117115805B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/64Three-dimensional objects
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method for identifying any irregular object under a Unreal Engine platform, which comprises the following steps: determining a grid model corresponding to a target three-dimensional object to be identified; the grid body model wraps the target three-dimensional object; the target three-dimensional object is any irregular object; constructing a target decal material based on a preset decal material attribute; the decal material attribute comprises a color attribute and a transparency attribute; and constructing a marker for uniformly marking all objects in the grid model based on the target decal material and the grid model. Therefore, the labeling body for uniformly labeling all objects in the grid body model by using the decal technology is not related to the hierarchical structure of the three-dimensional object, so that the omission of labeling the local position in the three-dimensional object can be avoided.

Description

Random irregular object identification method and device under Unreal Engine platform
Technical Field
The invention relates to a decal material rendering technology and a marker construction technology, belongs to the technical field of digital twinning, and particularly relates to a method and a device for marking any irregular object under a Unreal Engine platform.
Background
With the continuous progress of digital twin technology, three-dimensional applications of various business types emerge in a profound direction, such as games, architecture, education, and the like. In a digital twin scene, the layout and the setting of various objects are often involved, and in order to identify a specific object in the scene, the digital twin scene is used for improving the expression weight of the object, so that more convenient and visual interaction and operation guidance are provided for a user.
Currently, for the identification process of a specific object in a digital twin scene, a material ball is generally required to be prefabricated through a three-dimensional modeling editor, the specific object in a search scene is traversed through a unique identifier (id) of the object, and the material ball of the object is replaced by the prefabricated material ball, so that the effect of identifying the object is achieved.
However, the object identification process has strong limitation that only the monomer model can be identified, and the identification range depends on the hierarchical structure of the monomer model, so that the local space irrelevant to the hierarchical structure of the model in the monomer model cannot be identified. In addition, when all model objects in the scene need to be traversed, the objects to be identified are matched through the unique identifiers of the model objects, and when the body quantity of the internal objects of the three-dimensional scene reaches a certain level, the efficiency of the method is low, and the performance and rendering performance of the three-dimensional scene can be affected.
In view of the above problems, currently, no preferred solution is proposed.
Disclosure of Invention
The invention provides a method, a device, terminal equipment and a storage medium for identifying any irregular object under a Unreal Engine platform, which are used for at least solving the defect that the local position of a three-dimensional object irrelevant to a model hierarchical structure cannot be identified in the prior art.
The invention provides a method for identifying any irregular object under a Unreal Engine platform, which comprises the following steps: determining a grid model corresponding to a target three-dimensional object to be identified; the grid body model wraps the target three-dimensional object; the target three-dimensional object is any irregular object; constructing a target decal material based on a preset decal material attribute; the decal material attribute comprises a color attribute and a transparency attribute; constructing a marker based on the target decal material and the mesh model; the identification body is used for uniformly identifying all objects in the grid body model.
Optionally, the constructing a logo based on the target decal material and the mesh model includes: constructing a marker in the grid model based on the target decal material; the marker body is used for emitting projection light rays to the grid body center so as to render the target three-dimensional object; the light effect of the projected light is matched with the decal material attribute.
Optionally, the method further comprises: acquiring updated decal material properties corresponding to an update operation under the condition that the update operation for the decal material properties is determined to be detected; updating the target decal material based on the updated decal material attribute.
Optionally, the determining the mesh body model corresponding to the target three-dimensional object to be identified includes: acquiring an object point cloud model corresponding to a target three-dimensional object to be identified; extracting a centroid and a main direction corresponding to the object point cloud model; determining a grid model for wrapping the target three-dimensional object according to a preset model three-dimensional type, the centroid and the main direction; the model stereo type defines a stereo type adopted by the grid body model.
Optionally, the determining a mesh model for wrapping the target three-dimensional object according to the preset model stereo type, the centroid and the main direction includes: converting the object point cloud model based on a preset reference coordinate system so that the main direction of the object point cloud model coincides with a reference coordinate axis in the reference coordinate system; determining a top point set according to the model stereo type and the position of the contour edge point in the object point cloud model; the set of vertices defining a plurality of vertices of the model stereo type having a minimum stereo volume; based on the vertex set, a mesh body model is determined.
Optionally, the constructing a marker in the grid model based on the target decal material includes: acquiring a minimum object of the identifier corresponding to the target decal material; determining a central position coordinate corresponding to a central point of the grid body model according to the vertex set; determining deformation coefficients of the minimum object of the identifier relative to the coordinate axis directions aiming at the coordinate axis directions of the reference coordinate system; the deformation coefficient defines a scaling deformation coefficient of the minimum unit object of the identifier relative to the corresponding coordinate axis direction; and constructing a marker in the grid model based on the deformation coefficients and the central position coordinates.
Optionally, the model stereo type includes at least one selected from the group consisting of: polygonal columns, cylinders, and polygonal pyramids.
In another aspect, an embodiment of the present invention further provides a device for identifying a three-dimensional object, where the device includes: the grid model determining unit is used for determining a grid model corresponding to the target three-dimensional object to be identified; the grid body model wraps the target three-dimensional object; the decal material construction unit is used for constructing a target decal material based on preset decal material attributes; the decal material attribute comprises a color attribute and a transparency attribute; a marker building unit for building a marker based on the target decal material and the mesh model; the identification body is used for uniformly identifying all objects in the grid body model.
In still another aspect, an embodiment of the present invention further provides a terminal device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the program to implement the steps of any irregular object identification method under the above-mentioned universal Engine platform.
Yet another aspect of an embodiment of the present invention provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of any irregular object identification method under a universal Engine platform as described above.
The invention provides a method, a device, terminal equipment and a storage medium for identifying any irregular object under a Unreal Engine platform, which are used for determining a grid model for wrapping a target three-dimensional object to be identified, constructing a target applique material by using an applique material attribute, and constructing an identifier for uniformly identifying all objects in the grid model by using the target applique material and the grid model. Therefore, the grid body model wrapping the target three-dimensional object is determined, and the labeling body for uniformly labeling all objects in the grid body model is used, so that the labeling process of the three-dimensional object is irrelevant to the hierarchical structure of the three-dimensional object, the local position in the three-dimensional object can be labeled, and uniform and accurate labeling of various irregular three-dimensional objects is realized. In addition, all objects in the three-dimensional scene do not need to be traversed, and the identification efficiency of the three-dimensional objects is improved. In addition, the label body is constructed based on the color attribute and the transparency attribute of the decal material, so that the three-dimensional object can realize diversified label effects.
Drawings
In order to more clearly illustrate the invention or the technical solutions in the related art, the drawings used in the description of the embodiments or the related art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 illustrates a flowchart of one example of a method of arbitrary irregular object identification under a Unreal Engine platform according to an embodiment of the present invention;
FIG. 2 illustrates an effect diagram of an example of a logo constructed in a mesh model according to an embodiment of the present invention;
FIG. 3 illustrates a flowchart of one example of a method of arbitrary irregular object identification under a Unreal Engine platform according to an embodiment of the present invention;
FIG. 4 illustrates an operational flow diagram of an example of building a marker within a mesh body model in any irregular object identification method under a Unreal Engine platform according to an embodiment of the present invention;
FIG. 5 illustrates an effect diagram of an example of a mesh volume model according to an embodiment of the invention;
FIG. 6 shows a block diagram of an example of an identification device of a three-dimensional object according to an embodiment of the invention;
fig. 7 illustrates an entity structure diagram of a terminal device.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
FIG. 1 illustrates a flowchart of one example of a method of arbitrary irregular object identification under a Unreal Engine platform according to an embodiment of the present invention. Here, the Unreal Engine platform is a illusion Engine that provides an industry leading real-time 3D authoring platform. The execution subject of the method of the embodiment of the invention can be any controller or processor with calculation or processing capability to realize the aim of accurately identifying various regular or irregular three-dimensional objects in the three-dimensional space. In some examples, it may be integrally configured in the terminal device by means of software, hardware or a combination of software and hardware, and the type of the terminal device may be diversified, such as a desktop, a notebook, a smart phone, etc., to which no limitation should be made.
As shown in fig. 1, in step S110, a mesh body model corresponding to the target three-dimensional object to be identified is determined, and the mesh body model wraps the target three-dimensional object.
In combination with the application scene, a three-dimensional scene is operated on the terminal equipment, and the terminal equipment monitors the selection operation of a user on the three-dimensional object in the three-dimensional scene, so as to determine the target three-dimensional object to be identified.
Here, the shape of the mesh body model may be diversified, and it should be able to wrap the three-dimensional object. In some embodiments, the shape of the mesh volume model may be matched to the shape of the three-dimensional object, which is adaptively determined by the shape of the three-dimensional object, e.g., the mesh volume model is a sphere when the three-dimensional object is a sphere, and the mesh volume model is a cube when the three-dimensional object is a cube. In some alternative or alternative embodiments, the shape of the mesh body model may be preset, for example, the type of mesh body model for various types of three-dimensional objects is a sphere or cube.
In step S120, a target decal material is constructed based on the preset decal material attribute.
Here, the decal material attribute includes a color attribute and a transparency attribute. In one example of an embodiment of the present invention, decal material properties may be set by default in the system to achieve unified identification of various objects in the system. In another example of an embodiment of the invention, the decal material properties may also be set or adjusted by the user.
It should be noted that, the decal material is created by a material editor in the three-dimensional modeling engine, and the material needs to include color and transparency settings, where the color settings are mainly used for marking effects, and different marking weights can be expressed by setting combinations of colors and transparency. At the same time, setting transparency also prevents the texture of the surface of the marked object from being completely obscured.
In some embodiments, the terminal device has been configured with a decal module, and decoration of a particular three-dimensional object in a three-dimensional scene may be achieved by the decal module.
In step S130, a marker is constructed based on the target decal material and the mesh model, and the marker is used for uniformly identifying all objects in the mesh model.
In some embodiments, the object contours in the mesh model are identified to extract the entirety of the three-dimensional object in the mesh model, and the entirety of the three-dimensional object is identified with the target decal material, e.g., decal material is configured for the entirety of the surface of the three-dimensional object. Therefore, the local position in the three-dimensional object is prevented from being missed, and the whole irregular three-dimensional object can be uniformly and accurately marked.
According to the embodiment of the invention, any irregular object in the scene is identified by using the decal material technology, so that the identification range can be free from dependence on the model hierarchical structure. In addition, through using applique material technique, can directly mark the object through special material effect on irregular object surface, realize more direct pleasing to the eye marking effect.
In some examples of embodiments of the invention, the identifier is built inside the mesh model based on the target decal material. Specifically, the sign body is used for emitting projection light rays to the grid body center so as to render the target three-dimensional object, and the light ray effect of the projection light rays is matched with the decal material attribute.
FIG. 2 illustrates an effect diagram of an example of a logo constructed in a mesh model according to an embodiment of the present invention.
As shown in fig. 2, the logo 220 is built inside the mesh model 210, and the logo 220 is built based on the decal material, so that when the logo 220 projects light outwards, the light has a light effect matched with the decal material attribute, and the three-dimensional rendering effect on the three-dimensional object can be realized while the object identification is completed.
In some examples of embodiments of the present invention, a user may adjust the texture properties of the decal texture, for example, default values for the color parameter and the transparency parameter exist in the texture setting, and then the two parameters may be dynamically modified to achieve different rendering effects when the texture is applied in a subsequent step.
Illustratively, in the event that it is determined that an update operation for a decal texture attribute is detected, an updated decal texture attribute corresponding to the update operation is obtained, and the target decal texture is updated based on the updated decal texture attribute. Therefore, aiming at different three-dimensional objects in the three-dimensional scene, a user can distribute personalized decal materials by adjusting decal material properties, and personalized rendering patterns are realized for the different three-dimensional objects.
FIG. 3 illustrates a flowchart of one example of a method of arbitrary irregular object identification under a Unreal Engine platform according to an embodiment of the present invention.
As shown in fig. 3, in step S310, an object point cloud model corresponding to the target three-dimensional object to be identified is acquired.
Illustratively, the target three-dimensional object is subjected to point cloud conversion to obtain a corresponding object point cloud model.
In some embodiments, a set of three-dimensional points of the marker vertices is constructed. In this step, a model, typically obj or other format of data, is first acquired. And then, all vertex coordinates of the model are read, the axial directions of all vertices are calculated through a principal component analysis method, and the model is rotated according to the axial directions. And secondly, acquiring the bounding box coordinates in the axial direction, wherein the coordinates are 8 vertexes. And finally, converting the axial bounding box coordinates into model coordinates. These 8 vertices are the three-dimensional point set of the model's logo.
In step S320, the centroid and the main direction corresponding to the object point cloud model are extracted.
Here, the centroid and the principal direction of the object point cloud model are determined from the shape of the object point cloud model and the orientation in the three-dimensional scene.
In step S330, a mesh body model for wrapping the target three-dimensional object is determined according to a preset model stereo type, a centroid and a main direction, wherein the model stereo type defines a stereo type adopted by the mesh body model.
In some embodiments, the centroid of the mesh body model is determined as the centroid of the object point cloud model, and the principal direction of the mesh body model is determined as the principal direction of the object point cloud model, increasing the degree of fit between the mesh body model and the target three-dimensional object.
By the identification method, any irregular object in the space can be identified, and the object does not need to be of a single structure on a model hierarchical structure. In addition, real-time identification can be performed, all objects in the scene do not need to be traversed, and the accuracy and reliability of the identification process are ensured. Further, different identification effects are rendered according to the attribute of the identified object and the identification requirement, and identification information grading is completed.
Here, the model stereo type includes at least one selected from: polygonal columns, cylinders, and polygonal pyramids. In some cases, the model stereo type can be adaptively adjusted according to the shape of the target three-dimensional object, for example, when the target three-dimensional object adopts a polygonal prism, the model stereo type of the grid model can also adopt a polygonal prism so as to improve the fit degree between the grid model and the target three-dimensional object.
It should be noted that, in order to implement distinguishing and identifying for each three-dimensional object in the three-dimensional scene, there should not be any intersection between the mesh models corresponding to different three-dimensional objects. In some cases, three-dimensional objects in the three-dimensional scene are densely distributed, so that the grid body model should be attached to the grid body model as much as possible.
In some examples of embodiments of the present invention, the object point cloud model is converted based on a preset reference coordinate system such that a main direction of the object point cloud model coincides with a reference coordinate axis in the reference coordinate system. A set of vertices defining a plurality of vertices of the model stereo type having a minimum stereo volume is determined from the model stereo type and the locations of contour edge points in the object point cloud model. Based on the set of vertices, a mesh body model is determined.
Specifically, when the terminal device runs the three-dimensional software program, the terminal device dynamically constructs the identifier in the scene according to the output three-dimensional point set data of the vertices of the identifier, and gives the identifier a decal material to the identifier, and all objects in the space range of the identifier in the scene are given an identifying effect.
Therefore, the grid body model which is used for wrapping the target three-dimensional object and corresponds to the minimum three-dimensional volume is obtained through the vertex set, the maximum sealing between the grid body model and the target three-dimensional object is realized, the accurate identification of the high-density three-dimensional object in the three-dimensional scene can be realized, and the problem of inaccurate identification results caused by the fact that a plurality of constructed identification bodies possibly have nesting conditions is solved as much as possible.
FIG. 4 illustrates an operational flow diagram of an example of building a marker within a mesh body model in any irregular object identification method under a Unreal Engine platform according to an embodiment of the present invention.
As shown in fig. 4, in step S410, a logo minimum object corresponding to the target decal material is acquired.
By way of example, the identifier minimum object may be an object composed of minimum size units in a three-dimensional modeling system platform (e.g., a Unreal Engine platform, etc.), such as a cube model with a side length of 1.
In step S420, center position coordinates corresponding to the center points of the mesh body model are determined according to the vertex set.
Illustratively, the position coordinates corresponding to the body center of the cube model are determined as center position coordinates.
FIG. 5 illustrates an effect diagram of an example of a mesh volume model according to an embodiment of the invention. As shown in fig. 5, a cube model is built for a three-dimensional object of the fire hydrant, 8 vertexes of the cube model are calculated, and the cube formed by the 8 vertexes is required to meet the following two conditions: firstly, the point cloud model processed in the step 1.3 can be completely wrapped; second, the cube volume formed by these 8 vertices is minimal.
The vertex data of the mesh body model is then returned in the form of a service call. Specifically, the data structure of the three-dimensional point set is a two-dimensional array of A8, 3, representing 8 vertices of values x, y, z. Furthermore, the vertex order definition meets the following limitations: the 12 edges of the marker are formed by the line segments 0-1, 0-3, 0-4, 4-5, 4-7, 7-1, 7-6, 6-5, 6-2, 2-1, 2-3 and 3-5.
The line segment 0-6 is a diagonal edge of the marker, and the midpoint of the line segment 0-6 is taken as the center point of the marker and is marked as A'. When generating the minimum unit object of the identifier in the scene, the center point of the identifier is designated as the coordinate value of A'.
In step S430, for each coordinate axis direction of the reference coordinate system, a deformation coefficient of the identifier minimum object with respect to the coordinate axis direction is determined, and the deformation coefficient defines a scaling deformation coefficient of the identifier minimum unit object with respect to the corresponding coordinate axis direction.
Because of the diversity of the orientations of the target three-dimensional object in the three-dimensional scene, the orientations of the mesh model closely attached to the target three-dimensional object are also diversified, and it is necessary to deform the marker in different coordinate axis directions with respect to the orientations of the mesh model.
In step S440, a marker is built inside the mesh model based on the respective deformation coefficients and the center position coordinates.
In some embodiments, the minimum object of the marker is set in the central position coordinate, and deformation scaling is performed on each coordinate axis direction based on each deformation coefficient, so that the constructed marker and the grid model have consistency in scene azimuth.
In combination with the example shown in fig. 5, the constructed minimum unit object of the identifier is dynamically generated during the three-dimensional scene running, the scene coordinates of the minimum unit object of the identifier are calculated by using 8 vertex coordinates, and the deformation coefficients in 3 axial directions are calculated at the same time, and the minimum unit object of the identifier is scaled by the coefficients, so that all the surfaces of the object in the space range of the identifier in the scene are overlapped with the decal material effect after the construction of the object of the identifier is completed, thereby achieving the purpose of identification.
Specifically, the calculation formula of the minimum unit object scene coordinates of the identifier is as follows:
formula (1)
In the formula, A0 and A6 respectively represent the position coordinates of the vertex 0 and the vertex 6 in FIG. 5, which form a body diagonal of the marker, and the point obtained by the formula is actually the center point of the marker, which is the scene coordinate point representing the minimum unit object.
The sign body direction vector calculation formula is:
formula (2)
Formula (3)
Formula (4)
Wherein A1, A3 and A4 represent the position coordinates of vertex 1, vertex 3 and vertex 4, respectively, in FIG. 5.
The calculation formula of the scaling coefficient of the identifier is as follows:
formula (5)
Formula (6)
Formula (7)
Wherein,is->Length of vector, ++>Is->The length of the vector is such that,is->Length of vector, ++>Representing the length of the mesh volume model in the x-axis, < >>Representing the length of the mesh volume model in the y-axis, < >>Representing the length of the mesh volume model in the z-axis.
Therefore, after the marker is constructed, all object surfaces in the spatial range of the marker in the three-dimensional scene can be overlapped with the decal material effect due to the projection of the light rays of the marker, so that the purpose of marking the three-dimensional object is achieved.
By the embodiment of the invention, any irregular model in a three-dimensional scene can be identified, and the model hierarchy structure is not required. In addition, real-time identification can be carried out, the identification body is dynamically constructed according to the calculation result of the identification body algorithm, the identification effect is extremely attached to the identified object, and unnecessary rendering cost when the decal material is used is reduced. In addition, the color, transparency and other attributes of the decal material are set according to the attribute information of the marked object, and different marking effects are displayed, so that the marking weights of the marked object are distinguished, and the information grading effect is achieved.
In some examples of embodiments of the invention, the manner in which the space to be identified is defined is converted from a foreground definition to a background definition policy. The foreground definition means that the model needs to be subjected to individuation division according to the identification requirement when the three-dimensional scene is manufactured, the identification requirement is perceived through clicking monitoring of the model, and the background definition used by the method is that the space range to be identified is determined through a background service using an identification body algorithm, so that the three-dimensional scene manufacturing time is saved, and the identification space range can be flexibly changed.
According to the embodiment of the invention, the identification body is accurately embedded into the three-dimensional object body to be identified based on scene coordinate conversion, any irregular object is dynamically identified, the identification effect is direct and attractive, and the bonding degree of the identification and the three-dimensional object is extremely high. In addition, the embodiment of the invention has wide application prospects in the directions of digital twinning, three-dimensional visualization and the like, particularly in the fields of building simulation, virtual education, game development and the like, and can realize the identification of any irregular three-dimensional object in a three-dimensional scene by using decal materials in a virtual reality environment.
The three-dimensional object identification device provided by the invention is described below, and the three-dimensional object identification device described below and any irregular object identification method under the Unreal Engine platform described above can be correspondingly referred to each other.
FIG. 6 illustrates a block diagram of an example of an arbitrary irregular object identification device under a Unreal Engine platform according to an embodiment of the present invention.
As shown in fig. 6, the arbitrary irregular object identification device 600 under the Unreal Engine platform includes a mesh body model determination unit 610, a decal material construction unit 620, and a marker construction unit 630.
The grid model determining unit 610 is configured to determine a grid model corresponding to a target three-dimensional object to be identified; the grid body model wraps the target three-dimensional object; the target three-dimensional object is any irregular object.
The decal material construction unit 620 is configured to construct a target decal material based on a preset decal material attribute; the decal material attributes include a color attribute and a transparency attribute.
A logo construction unit 630 for constructing a logo based on the target decal material and the mesh model; the identification body is used for uniformly identifying all objects in the grid body model.
Fig. 7 illustrates an entity structure diagram of a terminal device, and as shown in fig. 7, the terminal device may include: processor 710, communication interface (Communications Interface) 720, memory 730, and communication bus 740, wherein processor 710, communication interface 720, memory 730 communicate with each other via communication bus 740. Processor 710 may invoke logic instructions in memory 730 to perform any irregular object identification method under the un real Engine platform, the method comprising: determining a grid model corresponding to a target three-dimensional object to be identified; the grid body model wraps the target three-dimensional object; the target three-dimensional object is any irregular object; constructing a target decal material based on a preset decal material attribute; the decal material attribute comprises a color attribute and a transparency attribute; constructing a marker based on the target decal material and the mesh model; the identification body is used for uniformly identifying all objects in the grid body model.
Further, the logic instructions in the memory 730 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method 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, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, are capable of performing any irregular object identification method under a Unreal Engine platform provided by the methods described above, the method comprising: determining a grid model corresponding to a target three-dimensional object to be identified; the grid body model wraps the target three-dimensional object; the target three-dimensional object is any irregular object; constructing a target decal material based on a preset decal material attribute; the decal material attribute comprises a color attribute and a transparency attribute; constructing a marker based on the target decal material and the mesh model; the identification body is used for uniformly identifying all objects in the grid body model.
In yet another aspect, the present invention further provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform any irregular object identification method under the above-provided un real Engine platform, the method comprising: determining a grid model corresponding to a target three-dimensional object to be identified; the grid body model wraps the target three-dimensional object; the target three-dimensional object is any irregular object; constructing a target decal material based on a preset decal material attribute; the decal material attribute comprises a color attribute and a transparency attribute; constructing a marker based on the target decal material and the mesh model; the identification body is used for uniformly identifying all objects in the grid body model.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for identifying any irregular object under a urealengine platform, the method comprising:
determining a grid model corresponding to a target three-dimensional object to be identified; the grid body model wraps the target three-dimensional object; the target three-dimensional object is any irregular object;
constructing a target decal material based on a preset decal material attribute; the decal material attribute comprises a color attribute and a transparency attribute;
constructing a marker based on the target decal material and the mesh model; the identifier is used for uniformly identifying all objects in the grid model; the constructing a logo based on the target decal material and the mesh model includes:
constructing a marker in the grid model based on the target decal material; the marker body is used for emitting projection light rays to the grid body center so as to render the target three-dimensional object; the light effect of the projected light is matched with the decal material attribute.
2. The method for identifying any irregular object under a un-realngine platform according to claim 1, further comprising:
acquiring updated decal material properties corresponding to an update operation under the condition that the update operation for the decal material properties is determined to be detected;
updating the target decal material based on the updated decal material attribute.
3. The method for identifying any irregular object under a un-realngine platform according to claim 1, wherein the determining a mesh model corresponding to the target three-dimensional object to be identified includes:
acquiring an object point cloud model corresponding to a target three-dimensional object to be identified;
extracting a centroid and a main direction corresponding to the object point cloud model;
determining a grid model for wrapping the target three-dimensional object according to a preset model three-dimensional type, the centroid and the main direction; the model stereo type defines a stereo type adopted by the grid body model.
4. A method for identifying any irregular object under a uinalengine platform according to claim 3, wherein the determining a mesh model for wrapping the target three-dimensional object according to a preset model stereo type, the centroid and the main direction comprises:
converting the object point cloud model based on a preset reference coordinate system so that the main direction of the object point cloud model coincides with a reference coordinate axis in the reference coordinate system;
determining a top point set according to the model stereo type and the position of the contour edge point in the object point cloud model; the set of vertices defining a plurality of vertices of the model stereo type having a minimum stereo volume;
based on the vertex set, a mesh body model is determined.
5. The method for identifying any irregular object under a un-realngine platform according to claim 4, wherein said constructing a marker inside the mesh model based on the target decal material comprises:
acquiring a minimum object of the identifier corresponding to the target decal material;
determining a central position coordinate corresponding to a central point of the grid body model according to the vertex set;
determining deformation coefficients of the minimum object of the identifier relative to the coordinate axis directions aiming at the coordinate axis directions of the reference coordinate system; the deformation coefficient defines a scaling deformation coefficient of the minimum unit object of the identifier relative to the corresponding coordinate axis direction;
and constructing a marker in the grid model based on each deformation coefficient and the central position coordinate.
6. The method of any irregular object identification under a un realngine platform according to any one of claims 3-5, wherein the model stereo type comprises at least one selected from the group consisting of: polygonal columns, cylinders, and polygonal pyramids.
7. An apparatus for identifying any irregular object under a urealengine platform, the apparatus comprising:
the grid model determining unit is used for determining a grid model corresponding to the target three-dimensional object to be identified; the grid body model wraps the target three-dimensional object; the target three-dimensional object is any irregular object;
the decal material construction unit is used for constructing a target decal material based on preset decal material attributes; the decal material attribute comprises a color attribute and a transparency attribute;
a marker building unit for building a marker based on the target decal material and the mesh model; the identifier is used for uniformly identifying all objects in the grid model; the constructing a logo based on the target decal material and the mesh model includes: constructing a marker in the grid model based on the target decal material; the marker body is used for emitting projection light rays to the grid body center so as to render the target three-dimensional object; the light effect of the projected light is matched with the decal material attribute.
8. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of any irregular object identification method under the un-realngine platform according to any of claims 1-6 when the program is executed.
9. A non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of any irregular object identification method under the un-real Engine platform of any one of claims 1-6.
CN202311384410.6A 2023-10-25 2023-10-25 Random irregular object identification method and device under Unreal Engine platform Active CN117115805B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311384410.6A CN117115805B (en) 2023-10-25 2023-10-25 Random irregular object identification method and device under Unreal Engine platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311384410.6A CN117115805B (en) 2023-10-25 2023-10-25 Random irregular object identification method and device under Unreal Engine platform

Publications (2)

Publication Number Publication Date
CN117115805A CN117115805A (en) 2023-11-24
CN117115805B true CN117115805B (en) 2024-02-09

Family

ID=88795165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311384410.6A Active CN117115805B (en) 2023-10-25 2023-10-25 Random irregular object identification method and device under Unreal Engine platform

Country Status (1)

Country Link
CN (1) CN117115805B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113559518A (en) * 2021-07-30 2021-10-29 网易(杭州)网络有限公司 Interaction detection method and device of virtual model, electronic equipment and storage medium
CN115512030A (en) * 2022-09-15 2022-12-23 网易(杭州)网络有限公司 Model mapping method and device, electronic equipment and storage medium
CN115731369A (en) * 2022-11-24 2023-03-03 北京蔚领时代科技有限公司 Post-processing material obtaining method based on illusion engine and using method
CN116883610A (en) * 2023-09-07 2023-10-13 园测信息科技股份有限公司 Digital twin intersection construction method and system based on vehicle identification and track mapping

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11875456B2 (en) * 2021-09-30 2024-01-16 Ephere, Inc. System and method of generating graft surface files and graft groom files and fitting the same onto a target surface to provide an improved way of generating and customizing grooms

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113559518A (en) * 2021-07-30 2021-10-29 网易(杭州)网络有限公司 Interaction detection method and device of virtual model, electronic equipment and storage medium
CN115512030A (en) * 2022-09-15 2022-12-23 网易(杭州)网络有限公司 Model mapping method and device, electronic equipment and storage medium
CN115731369A (en) * 2022-11-24 2023-03-03 北京蔚领时代科技有限公司 Post-processing material obtaining method based on illusion engine and using method
CN116883610A (en) * 2023-09-07 2023-10-13 园测信息科技股份有限公司 Digital twin intersection construction method and system based on vehicle identification and track mapping

Also Published As

Publication number Publication date
CN117115805A (en) 2023-11-24

Similar Documents

Publication Publication Date Title
CN108648269B (en) Method and system for singulating three-dimensional building models
CN109523621B (en) Object loading method and device, storage medium and electronic device
US10137646B2 (en) Preparing a polygon mesh for printing
US8154544B1 (en) User specified contact deformations for computer graphics
CN106780709B (en) A kind of method and device of determining global illumination information
Greß et al. GPU‐based collision detection for deformable parameterized surfaces
CN112933597B (en) Image processing method, image processing device, computer equipment and storage medium
US6806876B2 (en) Three dimensional rendering including motion sorting
US20130257856A1 (en) Determining a View of an Object in a Three-Dimensional Image Viewer
CN110503718B (en) Three-dimensional engineering model lightweight display method
CN109308734B (en) 3D character generation method and device, equipment and storage medium thereof
US8698799B2 (en) Method and apparatus for rendering graphics using soft occlusion
CN111583381B (en) Game resource map rendering method and device and electronic equipment
CN108154553A (en) The seamless integration method and device of a kind of threedimensional model and monitor video
JP2023029984A (en) Method, device, electronic apparatus, and readable storage medium for generating virtual image
CN106898040A (en) Virtual resource object rendering intent and device
CN111583398B (en) Image display method, device, electronic equipment and computer readable storage medium
CN112717414A (en) Game scene editing method and device, electronic equipment and storage medium
CN112206528A (en) Vegetation model rendering method, device, equipment and storage medium
CN109976827B (en) Model loading method, server and terminal
CN106445445B (en) Vector data processing method and device
CN106530384B (en) A kind of the appearance texture synthesis method and device of threedimensional model
CN117115805B (en) Random irregular object identification method and device under Unreal Engine platform
CN116109803A (en) Information construction method, device, equipment and storage medium
US11361477B2 (en) Method for improved handling of texture data for texturing and other image processing tasks

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