Real-time dynamic physical simulation method and cloud rendering method based on rendering optimization

Through the real-time dynamic physics simulation method based on rendering optimization, combined with dynamic mesh collision detection and fluid flow principles, the problem of low performance of traditional simulation methods is solved, and efficient and reliable dynamic physics simulation and rendering is achieved, suitable for games and virtual reality and other fields.

CN118941686APending Publication Date: 2024-11-12SHENZHEN RENDERBUS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411020246.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

Traditional dynamic physics simulation methods reduce performance and visual delay when dealing with physical effects such as collision, friction, elasticity of complex objects, resulting in low efficiency of real-time dynamic physics simulation.

Method used

Using a real-time dynamic physical simulation method based on rendering optimization, the continuous medium mechanics principle of dynamic mesh collision detection and fluid flow, combined with real-time rendering technology, realizes rapid calculation and visualization of simulated objects, including receiving scene parameters and establishing a physical simulation environment , perform dynamic mesh algorithms, mesh shape updates and real-time rendering.

Benefits of technology

It improves the real-time and reliability of dynamic physical simulation, reduces the time complexity of collision detection and simulation calculation, realizes accurate simulation and rendering of complex scenes, and improves simulation efficiency and sense of reality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118941686A_ABST
    Figure CN118941686A_ABST
Patent Text Reader

Abstract

The invention discloses a real-time dynamic physical simulation method based on rendering optimization and a cloud rendering method. According to the method, the real-time rendering technology is applied, the physical simulation algorithm is combined, rapid calculation and visualization of the simulated object are achieved, the simulation result is more accurate, and the simulation efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud rendering technology, and in particular to a real-time dynamic physics simulation method and a cloud rendering method based on rendering optimization. Background Art

[0002] At present, real-time dynamic physics simulation is widely used in games, virtual reality, simulation and other fields. However, traditional dynamic physics simulation methods are limited by computing power and efficiency, and often lead to performance degradation and visualization delay when dealing with physical effects such as collision, friction, elasticity, etc. of complex objects. Therefore, how to optimize real-time dynamic physics simulation has become a technical problem that needs to be solved urgently.

[0003] Therefore, the prior art has defects and needs to be improved. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a real-time dynamic physics simulation method and a cloud rendering method based on rendering optimization, so as to realize efficient and reliable dynamic physics simulation and be able to render and display the simulation results in real time.

[0005] The technical solution of the present invention is as follows: a real-time dynamic physics simulation method based on rendering optimization is provided, comprising the following steps.

[0006] S1: Receive scene parameters of objects in the scene as input.

[0007] S2: Establish a physical simulation environment based on the input scene parameters.

[0008] S3: Pass dynamic mesh collision detection and read dynamic mesh algorithm.

[0009] S4: Execute the selected dynamic mesh algorithm to perform computational simulation on the objects in the scene, including collision detection, force calculation, and state update.

[0010] S5: Based on the dynamic mesh collision detection, taking into account the deformation of the dynamic simulation object, the mesh shape update operation is performed on the dynamic object in the collision detection stage.

[0011] S6: Based on the continuum mechanics principle of fluid flow, the fluid mesh algorithm is used to solve the Navier-Stokes equations to simulate the movement and interaction of fluids, obtain realistic fluid dynamic effects, and enhance physical interaction effects.

[0012] S7: Based on the results of the physical simulation, the simulation scene is dynamically rendered using real-time rendering technology and displayed in real time.

[0013] In step S1, the scene parameters include the geometric shape, mass, and material of the object.

[0014] Furthermore, dynamic mesh collision detection includes: collision detection and collision response.

[0015] The collision detection includes: first, determining whether the boundary of the sphere intersects with the polygons in the grid, which is achieved by calculating the shortest distance from the center of the sphere to the polygon plane. If this distance is less than the radius of the sphere, it is determined to be a possible collision; next, a more precise judgment is made, including detecting the distance from the center of the sphere to the boundary edge of the polygon, and whether the sphere intersects with the polygon vertices, to confirm the actual collision state.

[0016] The collision response is as follows: once a collision is detected, the actual collision point and collision normal are calculated; the collision point is located at the contact point between the sphere surface and the Mesh, and the collision normal is perpendicular to the outside of the Mesh plane; based on the result of the collision detection, the position of the sphere is adjusted to prevent penetration of the Mesh or unnatural embedding.

[0017] Furthermore, dynamic mesh collision detection adopts Sphere-Mesh collision detection; Sphere-Mesh collision detection includes: calculating the shortest distance from the center of the sphere to each polygonal plane in the mesh; if the shortest distance is less than the radius of the sphere, further detecting the distance from the center of the sphere to the boundary edge of the polygon; if the distance from the center of the sphere to the boundary edge is also less than the radius of the sphere, it is determined to be a collision.

[0018] Furthermore, the present invention also provides a cloud rendering method, comprising the following steps:

[0019] A1: Get the scene parameters on the client and upload them to the script system.

[0020] A2: The script system receives scene parameters and executes steps S1-S6 of the real-time dynamic physics simulation method based on rendering optimization.

[0021] A3: The cloud rendering platform executes S7.

[0022] By adopting the above scheme, the present invention provides a real-time dynamic physical simulation method and a cloud rendering method based on rendering optimization. By using real-time rendering technology and combining it with a physical simulation algorithm, rapid calculation and visualization of simulated objects are achieved, making the simulation results more accurate and improving the simulation efficiency.

[0023] Compared with the existing technical solutions, it has the following technical effects:

[0024] 1. The real-time performance and reliability of dynamic physical simulation are improved, and the simulation results can be rendered quickly and displayed in real time.

[0025] 2. Through optimization strategies, the time complexity of collision detection and simulation calculations is reduced, and the simulation efficiency is improved.

[0026] 3. The simulation and rendering of complex scenes are realized, making the simulation results more accurate and realistic.

[0027] 4. It can be widely used in games, virtual reality, simulation and other fields, providing an efficient and reliable dynamic physics simulation solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0029] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0030] See also Figure 1 The present invention provides a cloud rendering method, comprising the following steps:

[0031] A1: Get the scene parameters on the client and upload them to the script system.

[0032] A2: The script system receives scene parameters and executes steps S1-S6 of the real-time dynamic physics simulation method based on rendering optimization.

[0033] A3: The cloud rendering platform executes S7.

[0034] In this embodiment, the real-time dynamic physics simulation method based on rendering optimization includes the following steps.

[0035] S1: Receive scene parameters of objects in the scene as input.

[0036] S2: Establish a physical simulation environment based on the input scene parameters.

[0037] S3: Pass dynamic mesh collision detection and read dynamic mesh algorithm.

[0038] S4: Execute the selected dynamic mesh algorithm to perform computational simulation on the objects in the scene, including collision detection, force calculation, and state update.

[0039] S5: Based on the dynamic mesh collision detection, taking into account the deformation of the dynamic simulation object, the mesh shape update operation is performed on the dynamic object in the collision detection stage.

[0040] S6: Based on the continuum mechanics principle of fluid flow, the fluid mesh algorithm is used to solve the Navier-Stokes equations to simulate the movement and interaction of fluids, obtain realistic fluid dynamic effects, and enhance physical interaction effects.

[0041] S7: Based on the results of the physical simulation, the simulation scene is dynamically rendered using real-time rendering technology and displayed in real time.

[0042] In step S1, the scene parameters include the geometric shape, mass, and material of the object.

[0043] In this embodiment, dynamic mesh collision detection includes: collision detection and collision response.

[0044] The collision detection includes: first, determining whether the boundary of the sphere intersects with the polygons in the grid, which is achieved by calculating the shortest distance from the center of the sphere to the polygon plane. If this distance is less than the radius of the sphere, it is determined to be a possible collision; next, a more precise judgment is made, including detecting the distance from the center of the sphere to the boundary edge of the polygon, and whether the sphere intersects with the polygon vertices, to confirm the actual collision state.

[0045] The collision response is as follows: once a collision is detected, the actual collision point and collision normal are calculated; the collision point is located at the contact point between the sphere surface and the Mesh, and the collision normal is perpendicular to the outside of the Mesh plane; based on the result of the collision detection, the position of the sphere is adjusted to prevent penetration of the Mesh or unnatural embedding.

[0046] Dynamic mesh collision detection uses Sphere-Mesh collision detection; Sphere-Mesh collision detection includes: calculating the shortest distance from the center of the sphere to each polygonal plane in the mesh; if the shortest distance is less than the radius of the sphere, further detecting the distance from the center of the sphere to the polygonal boundary edge; if the distance from the center of the sphere to the boundary edge is also less than the radius of the sphere, it is determined to be a collision.

[0047] In summary, the present invention provides a real-time dynamic physical simulation method and a cloud rendering method based on rendering optimization. By using real-time rendering technology and combining physical simulation algorithms, rapid calculation and visualization of simulated objects are achieved, making simulation results more accurate and improving simulation efficiency. Compared with existing technical solutions, it has the following technical effects:

[0048] 1. The real-time performance and reliability of dynamic physical simulation are improved, and the simulation results can be rendered quickly and displayed in real time.

[0049] 2. Through optimization strategies, the time complexity of collision detection and simulation calculations is reduced, and the simulation efficiency is improved.

[0050] 3. The simulation and rendering of complex scenes are realized, making the simulation results more accurate and realistic.

[0051] 4. It can be widely used in games, virtual reality, simulation and other fields, providing an efficient and reliable dynamic physics simulation solution.

[0052] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A real-time dynamic physics simulation method based on rendering optimization, characterized in that: The following steps are involved: S1: receives scene parameters of objects in the scene as input; S2: Establish a physical simulation environment based on the input scene parameters; S3: Through dynamic mesh collision detection, and read dynamic mesh algorithm; S4: Execute the selected dynamic mesh algorithm to perform computational simulation on the objects in the scene, including collision detection, force calculation, and state update; S5: Based on the dynamic mesh collision detection, considering the deformation of the dynamic simulation object, the mesh shape update operation is performed on the dynamic object in the collision detection stage; S6: Based on the continuum mechanics principle of fluid flow, the fluid mesh algorithm is used to solve the Navier-Stokes equations to simulate the movement and interaction of fluids and obtain realistic fluid dynamic effects; S7: Based on the results of the physical simulation, the simulation scene is dynamically rendered using real-time rendering technology and displayed in real time.

2. A real-time dynamic physical simulation method based on rendering optimization according to claim 1, characterized in that: In step S1, the scene parameters include the geometric shape, mass, and material of the object.

3. The real-time dynamic physical simulation method based on rendering optimization according to claim 1, characterized in that: Dynamic mesh collision detection includes: collision detection and collision response; The collision detection includes: first, determining whether the boundary of the sphere intersects with each polygon in the grid by calculating the shortest distance from the center of the sphere to the polygon plane. If this distance is less than the radius of the sphere, it is determined that there is a possible collision; next, a more accurate judgment is made, including detecting the distance from the center of the sphere to the boundary edge of the polygon, and whether the sphere intersects with the vertices of the polygon, to confirm the actual collision state; The collision response is as follows: once a collision is detected, the actual collision point and collision normal are calculated; the collision point is located at the contact point between the sphere surface and the Mesh, and the collision normal is perpendicular to the outside of the Mesh plane; based on the result of the collision detection, the position of the sphere is adjusted to prevent penetration of the Mesh or unnatural embedding.

4. A real-time dynamic physical simulation method based on rendering optimization according to claim 3, characterized in that: Dynamic mesh collision detection uses Sphere-Mesh collision detection; Sphere-Mesh collision detection includes: calculating the shortest distance from the center of the sphere to each polygonal plane in the mesh; if the shortest distance is less than the radius of the sphere, further detecting the distance from the center of the sphere to the boundary edge of the polygon; if the distance from the center of the sphere to the boundary edge is also less than the radius of the sphere, it is determined to be a collision.

5. A cloud rendering method, characterized in that: The following steps are involved: A1: Get scene parameters on the client and upload them to the script system; A2: The script system receives scene parameters and executes steps S1-S6 of a real-time dynamic physical simulation method based on rendering optimization according to any one of claims 1-4; A3: The cloud rendering platform executes S7.