Search

CN-122023661-A - Interactive three-dimensional convex hull Decal generation and ray interaction detection method based on illusion engine

CN122023661ACN 122023661 ACN122023661 ACN 122023661ACN-122023661-A

Abstract

The invention relates to the technical field of three-dimensional model processing, and discloses an interactive three-dimensional convex hull Decal generation and ray interaction detection method based on a fantasy engine, which comprises the steps of obtaining local grid vertex coordinates and normal vectors of a receptor model; the method comprises the steps of calculating the direction offset of adjacent normal vectors to determine local surface curvature and calculate weight, constructing an initial convex agent body by utilizing coordinates, adjusting the patch density according to the weight, generating a virtual convex agent body matched with the receptor surface topology by driving vertex offset contraction, executing intersection test by utilizing the virtual convex agent body and an interaction ray, and obtaining interaction feedback parameters by interpolating the receptor vertex normal based on the coordinate of the center of gravity of the point of impact.

Inventors

  • HAN DONG
  • LUO GONGLIN

Assignees

  • 北京华清起航科技有限公司

Dates

Publication Date
20260512
Application Date
20260204

Claims (10)

  1. 1. The interactive three-dimensional convex hull Decal generation and ray interaction detection method based on the illusion engine is characterized by comprising the following steps of: Step S1, local grid data of a receptor model in a virtual engine scene space are obtained, and space coordinates of vertexes in the local grid data and corresponding normal vectors are extracted; s2, calculating the normal direction deviation degree between adjacent normal vectors in the local grid data, determining the surface curvature of the local surface of the receptor model by using the normal direction deviation degree, and calculating the subdivision weight of the patch based on the surface curvature; s3, constructing an initial convex proxy body by using space coordinates, and executing non-uniform distribution adjustment on the patch density of the initial convex proxy body according to the patch subdivision weight, wherein the number of subdivided patches is increased in a region with the surface curvature larger than a preset curvature threshold value, the patch vertexes of the initial convex proxy body are driven to move a section of offset contraction distance towards the geometric center direction of local grid data, and patch merging is executed in a region with the surface curvature not larger than the preset curvature threshold value, so as to generate a virtual convex proxy body; s4, acquiring emission parameters of the interaction rays, and executing intersection tests on the interaction rays by using the virtual convex agent to acquire hit points of the interaction rays on the surface of the virtual convex agent; And S5, calculating the barycenter coordinates of the hit points on the virtual convex agent surface patches, and performing weight interpolation on the vertex normals of the receptor model based on the barycenter coordinates to obtain interactive feedback parameters comprising the hit point coordinates and the interpolation normals.
  2. 2. The method for detecting interaction between digital data and radiation, wherein the logic for calculating surface curvature of the local surface in step S2 follows the following calculation rules by using the formula Calculating the center vertex normal Adjacent to Normal of each vertex Of dot product of (2), wherein Is the deviation degree of the normal direction, is used for representing the change gradient of the surface curvature and mapping the change gradient into the subdivision weight of the patch, And Are unit vectors extracted from the local mesh data.
  3. 3. The method for detecting interaction between the generation of the interactive three-dimensional convex hull and the ray based on the illusion engine according to claim 1, wherein in the process of generating the virtual convex proxy in the step S3, boundary points of local grid data are extracted, normal line consistency check is utilized to identify the front normal line orientation of the receptor model, topology elimination is performed on a back surface patch of the initial convex proxy by utilizing the front normal line orientation aiming at the receptor model with the thickness value lower than a preset thickness threshold, and the initial convex proxy is contracted into a single-side open topology grid matched with the front manifold of the receptor model.
  4. 4. The method for detecting interaction between the interactive three-dimensional convex hull Decal generation and the ray based on the illusion engine according to claim 3, wherein the process of executing the intersection test in the step S4 further comprises the following judging rules, namely, calculating the penetrating path step length of the interactive ray in the local space of the receptor model, wherein the penetrating path step length is in mm, establishing an occlusion judging model by combining the surface curvature characteristics of the virtual convex proxy body, comparing the penetrating path step length with an occlusion threshold value preset in the occlusion judging model, and identifying and filtering false-middle signals generated in the self-occlusion structure of the receptor model when the penetrating path step length exceeds the occlusion threshold value.
  5. 5. The method for detecting interaction between the generation of the interactive three-dimensional convex hull and the ray based on the illusion engine according to claim 1 is characterized in that before the local grid data of the receptor model is acquired in the step S1, the method comprises the steps of defining a three-dimensional projection bounding box with a preset geometric center in a coordinate space of the receptor model, detecting intersection states of grid cells of the receptor model and the three-dimensional projection bounding box, and defining a grid cell set with intersection states as the local grid data.
  6. 6. The method for detecting interaction between the generation of the interactive three-dimensional convex hull and the ray based on the illusion engine according to claim 1 is characterized in that after the interaction feedback parameters are obtained in the step S5, vertex displacement vectors of the receptor model under the drive of skeleton deformation are extracted in real time, the barycentric coordinates of the hit points are repeatedly utilized, displacement mapping is carried out on the top of the patch of the virtual convex proxy body according to the vertex displacement vectors, and the virtual convex proxy body carries out synchronous position evolution along with deformation of the receptor model.
  7. 7. The method for detecting interaction between the generation of the interactive three-dimensional convex hull and the ray of claim 6, wherein the process of performing the synchronous position evolution of the virtual convex proxy comprises obtaining mesh deformation of the receptor model before and after deformation, and performing Laplace smoothing on the surface patch of the virtual convex proxy according to the mesh deformation to maintain surface continuity of the virtual convex proxy after deformation.
  8. 8. The method for detecting interaction between a ray and a three-dimensional convex hull decol generation based on a phantom engine according to claim 1, wherein in step S3, the offset contraction distance is proportional to the surface curvature, and the unit of the offset contraction distance is mm.
  9. 9. The method for detecting interaction between the generation of the interactive three-dimensional convex hull and the ray based on the illusion engine according to claim 1, wherein the step S5 of obtaining the interaction feedback parameters further comprises the steps of reconstructing the material rendering parameters of the virtual convex hull by using barycentric coordinates, and fusing the local texture with the surface ambient light shielding data of the receptor model by using the reconstructed material rendering parameters to output the local geometric entity with consistent rendering performance.
  10. 10. The method for detecting interaction between the generation of the interactive three-dimensional convex hull and the ray based on the illusion engine according to claim 1, wherein after the acquisition of the interaction feedback parameters is completed in the step S5, the method further comprises the steps of sending the interaction feedback parameters to an interaction event distribution interface of the illusion engine, triggering a response instruction based on the interaction feedback parameters by utilizing the interaction event distribution interface, wherein the response instruction comprises modifying the material attribute of a receptor model, transmitting physical impulses to the receptor model or calling an audio module to play special effect audio.

Description

Interactive three-dimensional convex hull Decal generation and ray interaction detection method based on illusion engine Technical Field The invention relates to an interactive three-dimensional convex hull Decal generation and ray interaction detection method based on a illusion engine, and belongs to the technical field of three-dimensional model processing. Background In the process of presenting local attribute mapping on the surface of a three-dimensional model, the industry generally adopts a projection matrix mode, a Decal is defined as a projection box, the combination of the Decal and the surface of a receptor model only exists in pixel mixing of a rendering layer, along with the evolution of high-fidelity graphic interaction requirements, the topological complexity of the receptor model is improved, and the receptor model with high-curvature surface, a porous hole structure or dynamic deformation characteristics is subjected to physical constraint in a straight projection-based mode. In addition, in an industrial digital twin or high-precision game scene, a receptor model is often accompanied with dynamic deformation generated by bone animation or vertex offset, a static projection area is difficult to adapt to the topology evolution, so that the Decal and receptor surface are disjointed, the defect reflection software control logic is insufficient in the aspects of refined geometric perception and real-time response mechanism, for example, the Chinese patent with publication number CN115409956A discloses a three-dimensional reconstruction and self-correction system based on multiple cameras and application thereof, which is used for focusing on the maintenance of the overall environment geometric reduction and long-period pose, processing the surface layer interaction Decal entity which is required to be coupled with the receptor local flow depth is difficult to reconcile, the self-adaptive field of the dynamic deformation generated by bone animation or vertex offset is difficult to adapt to the topology evolution, and the Decal and receptor surface is difficult to be subjected to be disjointed, and the defect of the defect reflection software control logic is insufficient in the aspects of the refined geometric perception and real-time response mechanism, for example, the Chinese patent with publication number CN115409956A discloses a three-dimensional reconstruction and self-correction system based on multiple cameras and application thereof, the method is used for focusing on the maintenance of the overall environment geometric reduction and long-period pose, the method is required to process the surface interaction Decal entity which is difficult to be coupled with the receptor local flow depth, and the dynamic deformation is difficult to adapt to the receptor local flow depth, and the receptor local flow is difficult to be optimized, and the image is difficult to be subjected to be optimal to the physical response to be in response to the geometrical imbalance. Therefore, how to construct a geometric proxy mechanism with topology sensing capability and detection efficiency, so that the Decal is evolved from projection information into a geometric entity isomorphic with the receptor model manifold, and the technical problem to be solved by the invention is solved. Disclosure of Invention In order to solve the problems in the background technology, the technical scheme of the invention is as follows, an interactive three-dimensional convex hull local generation and ray interaction detection method based on a illusion engine comprises the following steps: Step S1, local grid data of a receptor model in a virtual engine scene space are obtained, and space coordinates of vertexes in the local grid data and corresponding normal vectors are extracted; s2, calculating the normal direction deviation degree between adjacent normal vectors in the local grid data, determining the surface curvature of the local surface of the receptor model by using the normal direction deviation degree, and calculating the subdivision weight of the patch based on the surface curvature; s3, constructing an initial convex proxy body by using space coordinates, and executing non-uniform distribution adjustment on the patch density of the initial convex proxy body according to the patch subdivision weight, wherein the number of subdivided patches is increased in a region with the surface curvature larger than a preset curvature threshold value, the patch vertexes of the initial convex proxy body are driven to move a section of offset contraction distance towards the geometric center direction of local grid data, and patch merging is executed in a region with the surface curvature not larger than the preset curvature threshold value, so as to generate a virtual convex proxy body; s4, acquiring emission parameters of the interaction rays, and executing intersection tests on the interaction rays by using the virtual convex age