VR scene anti-mold penetration method and system based on virtual substitution motion

By generating undisplayed temporary reference objects in the VR scene and following the peripheral hardware movement, and adding physical engine components to the captured objects, the problem of objects penetrating obstacles in the virtual scene is solved, improving user experience and simulation effects. Ensure that the physical laws of the virtual environment are consistent with reality.

CN118710856BActive Publication Date: 2024-11-26JIANGXI KMAX IND CO LTD
View PDF 15 Cites 0 Cited by

Patent Information

Application Number
CN202411215167.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-11-26
Estimated Expiration
2044-09-02

AI Technical Summary

Technical Problem

In an immersive VR environment, the direct mapping of object positions in the virtual scene may penetrate obstacles due to the capture of objects, affecting the simulation effect and user experience.

Method used

By generating an undisplayed temporary reference object in the VR scene and controlling the captured object to follow the reference object to move, avoiding the phenomenon of mold penetration with the obstacle. This temporary reference ensures a real collision with the obstacle by obtaining the position and angle information of the peripheral hardware and adding collision components and rigid body components to the captured object, so that it is affected under the physical engine.

Benefits of technology

Effectively avoid the phenomenon of cutting objects and obstacles through molds, enhance the user experience's realism and immersion, and ensure that the virtual environment follows physical laws similar to the real world, especially when in contact with movable obstacles, Correctly simulate mechanical reactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710856B_ABST
    Figure CN118710856B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for preventing penetration of VR scenes based on virtual substitutional motion, wherein when a user grabs an object through a hardware peripheral, a temporary reference object that is not displayed is generated in the VR scene to follow the movement of the peripheral hardware and control the grabbed object to follow the movement of the temporary reference object, so that when the grabbed object encounters an obstacle in the VR scene, it is blocked by the obstacle and avoids penetration with the obstacle. The present invention can accurately simulate physical interactions between objects, especially avoid the occurrence of "penetration", effectively improve the user interaction experience, and has the advantages of simple implementation and strong immersion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of virtual simulation technology, and in particular to a VR scene anti-mold penetration method and system based on virtual substitution motion. Background Art

[0002] With the rapid development of virtual reality (VR) technology, user interaction experience has become one of the key factors in measuring the quality of VR applications. In an immersive VR environment, users interact with objects in the virtual world through peripheral hardware such as handles. The authenticity of this interaction directly affects the user's immersion and experience satisfaction. In virtual reality, since the position of the captured object in the virtual scene is a mapping of the position of the peripheral hardware in reality, when there are obstacles in the virtual scene and no corresponding obstacles in reality, the captured objects in the virtual scene often penetrate other models, thus affecting the simulation effect of VR. In a 3D engine, when an object with a rigid body and a collider component moves at a given speed, it will be affected by the rules of the physics engine, so that there will be no penetration. However, in order to make the object follow the movement of the peripheral hardware, it is usually only possible to match the corresponding position by directly changing its coordinates. This method of directly changing the coordinates of the object will not be affected by the physics engine, which may cause penetration.

[0003] In order to avoid the above-mentioned penetration, the prior art will perform collision detection in advance, that is, first place a collision object of the same shape and size as the grasped object at the position mapped by the peripheral hardware. If the collision object does not collide with other objects, the grasped object is assigned to the position. If the collision object collides with other objects, the grasped object remains motionless. This method of performing collision detection in advance can avoid the grasped object from penetrating the model, but when the grasped object moves very fast, the distance between the grasped object in the previous and next frames will be quite different. Since the grasped object remains motionless when the collision object contacts the obstacle, the grasped object stops moving without actually contacting the obstacle. Summary of the invention

[0004] The technical problem to be solved by the present invention is as follows: In view of the above-mentioned problems in the prior art, a method and system for preventing mold penetration in VR scenes based on virtual substitutional motion which is simple to implement and has a strong sense of immersion is provided, which can effectively improve user satisfaction.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0006] A VR scene anti-piercing method based on virtual substitution motion includes, when a user grabs an object through a hardware peripheral, following the movement of the peripheral hardware through a temporary reference object that is not displayed generated in the VR scene and controlling the grasped object to follow the movement of the temporary reference object, so that when the grasped object encounters an obstacle in the VR scene, it is blocked by the obstacle and avoids penetrating the obstacle. Following the movement of the peripheral hardware through a temporary reference object that is not displayed generated in the VR scene includes obtaining a mapping position and angle of the hardware peripheral in the VR scene, assigning the mapping position and angle to the temporary reference object, so that the temporary reference object follows the movement of the peripheral hardware.

[0007] Furthermore, before the user grabs the object through the hardware peripheral, it also includes adding a collision component and a rigid body component to the grabbed object in the VR scene to give it a physical engine function. If the obstacle is a fixed obstacle, a collision component is added to the obstacle; if the obstacle is a movable obstacle, a collision component and a rigid body component are added to the obstacle to give it a physical engine function.

[0008] Furthermore, the temporary reference object that is not displayed is generated by an empty object node that does not perform rendering but only records position information.

[0009] Furthermore, the controlling the grasped object to follow the temporary reference object includes: calculating the position difference and angle difference between the temporary reference object and the grasped object according to the three-dimensional coordinates of the temporary reference object and the grasped object, and the position difference calculation formula is:

[0010] ,

[0011] Where D is the three-dimensional vector of position difference, , , is the coordinate value of the grasped object in the three-dimensional space of x, y, and z axes, , , The coordinate values ​​of the temporary reference object on the x, y, and z axes in three-dimensional space;

[0012] The angle difference calculation formula is:

[0013] ,

[0014] in, is the quaternion of the angle difference, is the quaternion of the angle of the object being grasped, is the quaternion of the temporary reference object angle, The quaternion The inverse of

[0015] If the position difference or angle difference between the temporary reference object and the grasped object is greater than a preset threshold, the displacement speed and angular velocity in the three-dimensional direction required for the grasped object to follow the temporary reference object are determined according to the position difference and angle difference between the temporary reference object and the grasped object, and the speed in the three-dimensional direction is assigned to the grasped object so that the grasped object moves toward the temporary reference object under the action of the physical engine to achieve the movement of following the temporary reference object. The calculation formula of the displacement speed and angular velocity is:

[0016] ,

[0017] ,

[0018] in, is the displacement speed, is the angular velocity, D is the three-dimensional vector of position difference, is the quaternion of the angle difference, is the preset threshold of position difference, is the preset threshold for the angle difference.

[0019] Furthermore, when determining the speed in the three-dimensional direction required for the grasped object to follow the temporary reference object based on the position difference and angle difference between the temporary reference object and the grasped object, it includes evenly dividing the position difference and angle difference between the temporary reference object and the grasped object into N equal parts, and selecting the first part of the position difference and angle difference to determine the speed in the three-dimensional direction required for the grasped object to follow the temporary reference object to prevent rebound during the movement of the grasped object when following the temporary reference object.

[0020] Furthermore, when the grasped object encounters an obstacle in the VR scene, the type of obstacle is determined. If the obstacle is a movable obstacle, the force F acting on the obstacle is calculated according to F=ma, so that the obstacle forms a collision response under the action of the physical engine, wherein m is the mass of the grasped object, and a is the acceleration of the grasped object, and the acceleration of the grasped object is calculated based on the differential of the velocity of the grasped object with respect to time.

[0021] A VR scene anti-mold penetration system based on virtual substitution motion comprises a microprocessor and a memory connected to each other, wherein the microprocessor is programmed or configured to execute the VR scene anti-mold penetration method based on virtual substitution motion.

[0022] A computer-readable storage medium stores a computer program / instruction, which is programmed or configured to execute the VR scene anti-mold penetration method based on virtual substitution motion through a processor.

[0023] A computer program product includes a computer program / instruction, which is programmed or configured to execute the VR scene anti-mold penetration method based on virtual substitution motion through a processor.

[0024] Compared with the prior art, the advantages of the present invention are:

[0025] The present invention generates a temporary reference object that is not displayed in the VR scene and follows the movement of the peripheral hardware, and controls the grasped object to follow the temporary reference object, so that when the grasped object encounters an obstacle in the VR scene, it is blocked by the obstacle and avoids the phenomenon of penetrating the obstacle. In addition, the present invention avoids the appearance of a gap between the grasped object and the obstacle through the real collision between the grasped object and the obstacle, ensuring that the virtual environment follows physical laws similar to those in the real world, and enhancing the realism and immersion of the user experience. Furthermore, when the grasped object contacts the movable obstacle, the grasped object will stay on the surface of the obstacle. According to the mechanical formula, the grasped object will exert a force on the movable obstacle, so that the obstacle in the virtual environment will undergo the same movement as in the real world. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 The present invention is a flowchart of a method for preventing VR scene penetration based on virtual substitution motion according to an embodiment of the present invention.

[0027] Figure 2 This is a VR scene simulation diagram of an embodiment of the present invention.

[0028] Figure 3 This is a schematic diagram of the movement of a grasped object toward a temporary reference object according to an embodiment of the present invention.

[0029] Figure 4 The present invention is a flowchart of the simulation process of the VR scene anti-mold penetration method based on virtual substitution motion according to an embodiment of the present invention.

[0030] Figure 5 This is a schematic diagram of a collision between a grasped object and an immovable obstacle according to an embodiment of the present invention.

[0031] Figure 6 Schematic diagram of the collision between the grasped object and the movable obstacle according to an embodiment of the present invention.

[0032] Legend

[0033] 101. Grasped object; 102. Temporary reference object; 103. Fixed obstacle; 104. Movable obstacle; 105. Ray of the external hardware pen. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] like Figure 1 As shown, the VR scene anti-penetration method based on virtual substitution movement in this embodiment includes, when a user grabs an object through a hardware peripheral, generating a non-displayed temporary reference object 102 in the VR scene to follow the movement of the peripheral hardware and controlling the grasped object 101 to follow the movement of the temporary reference object 102, so that the grasped object 101 is blocked by the obstacle when encountering the obstacle in the VR scene to avoid penetration with the obstacle.

[0036] In this embodiment, before the user grabs an object through a hardware peripheral, a collision component and a rigid body component are added to the grabbed object 101 in the VR scene to give it a physical engine function. If the obstacle is a fixed obstacle 103, a collision component is added to the obstacle; if the obstacle is a movable obstacle 104, a collision component and a rigid body component are added to the obstacle to give it a physical engine function.

[0037] In this embodiment, following the movement of the peripheral hardware by generating a non-displayed temporary reference object 102 in the VR scene includes obtaining the mapping position and angle of the hardware peripheral in the VR scene, and assigning the mapping position and angle to the temporary reference object 102, so that the temporary reference object 102 follows the movement of the peripheral hardware.

[0038] The temporary reference object 102 that is not displayed is generated by an empty object node that does not render but only records position information.

[0039] In a specific application embodiment, Figure 2 As shown, the ground, obstacles and the grasped object 101 are set in the scene. When the grasping operation is performed, a temporary reference object 102 that is not displayed is generated at the position of the grasped object 101. For intuitive expression, the engine's own model ball is used to represent the temporary reference object 102 that is not displayed. A temporary reference object 102 is generated. Since the SDK of the peripheral hardware (such as a handle or pen, etc.) can map the position to the virtual scene through infrared positioning, the mapped position is assigned to the temporary reference object 102, so that the temporary reference object 102 moves with the peripheral hardware. Figure 2The ray 105 of the peripheral hardware pen in the figure represents grabbing an object through the ray. When the temporary reference object 102 moves, the gravity of the grabbed object 101 is turned off, and a velocity in the direction of the temporary reference object 102 is given to the grabbed rigid body. Under the action of the physics engine, the grabbed object 101 can move with the temporary reference object 102, thereby achieving a visual effect that the grabbed object 101 moves with the peripheral hardware.

[0040] In this embodiment, controlling the grasped object 101 to follow the temporary reference object 102 includes: calculating the position difference and angle difference between the temporary reference object 102 and the grasped object 101 according to the three-dimensional coordinates of the temporary reference object 102 and the grasped object 101. The position difference calculation formula is:

[0041] , (1)

[0042] Where D is the three-dimensional vector of position difference, , , is the coordinate value of the grasped object in the three-dimensional space of x, y, and z axes, , , It is the coordinate value of the temporary reference object in the three-dimensional space of x, y, and z axes.

[0043] The angle difference calculation formula is:

[0044] , (2)

[0045] in, is the quaternion of the angle difference, is the quaternion of the angle of the object being grasped, is the quaternion of the temporary reference object angle, The quaternion The inverse of.

[0046] If any of the position difference and angle difference between the temporary reference object 102 and the grasped object 101 is greater than a preset threshold, the displacement speed and angular velocity in the three-dimensional direction required for the grasped object 101 to follow the temporary reference object 102 are determined according to the position difference and angle difference between the temporary reference object 102 and the grasped object 101, and the speed in the three-dimensional direction is assigned to the grasped object 101 so that the grasped object 101 moves toward the temporary reference object 102 under the action of the physical engine to achieve the movement following the temporary reference object 102. The calculation formulas for the displacement speed and angular velocity are:

[0047] , (3)

[0048] , (4)

[0049] in, is the displacement speed, is the angular velocity, D is the three-dimensional vector of position difference, is the quaternion of the angle difference, is the preset threshold of position difference, is the preset threshold for the angle difference.

[0050] like Figure 3 As shown, in actual application, when the grasped object moves toward the temporary reference object 102, a speed is given to the grasped object 101 in the direction of the temporary reference object 102, which will cause the grasped object 101 to move toward the temporary reference object again from the opposite direction after exceeding the position of the temporary reference object 102, thereby causing a rebound movement phenomenon of swinging back and forth multiple times and gradually approaching the temporary reference object 102.

[0051] To solve the above rebound motion problem, Figure 4 As shown, in this embodiment, when determining the speed in the three-dimensional direction required for the grasped object 101 to follow the temporary reference object 102 based on the position difference and angle difference between the temporary reference object 102 and the grasped object 101, it includes evenly dividing the position difference and angle difference between the temporary reference object 102 and the grasped object 101 into N equal parts, and selecting the first part of the position difference and angle difference to determine the speed in the three-dimensional direction required for the grasped object 101 to follow the temporary reference object 102 to prevent rebound during the movement of the grasped object when following the temporary reference object.

[0052] Specifically, the position difference and angle difference between the grasped object and the temporary reference object are equally divided into n parts, the first part of the position difference and angle difference is selected and assigned to the grasped object 101, and the position difference and angle difference between the grasped object 101 and the temporary reference object 102 are recalculated in the next frame and divided into n parts again, and the cycle is repeated so that the grasped object 101 is infinitely close to the temporary reference object 102. When the position difference and angle difference between the grasped object 101 and the temporary reference object 102 are less than the set critical value, the motion calculation is stopped to save performance overhead.

[0053] In the process of dividing the position difference and angle difference between the grasped object 101 and the temporary reference object 102, the more parts are divided, the smaller the amplitude of the rebound movement, but the higher the sense of motion delay; the fewer parts are divided, the lower the sense of motion delay, but the larger the rebound amplitude. For example, in experimental tests, it is found that the motion rebound is also related to the movement speed when grasping the object, so the movement speed that produces the smallest rebound that can be captured by the naked eye is taken as a reference. When the speed is divided into five parts, the delay is about 0.1 seconds, and the movement speed that produces the smallest rebound that can be captured by the naked eye is about 20 meters per second; when divided into 10 parts, the delay is about 0.2 seconds, and the movement speed that produces the smallest rebound that can be captured by the naked eye is about 80 meters per second; when divided into 20 parts, the delay is about 1 second, and the movement speed that produces the smallest rebound that can be captured by the naked eye is about 300 meters per second. In actual operation, the movement speed of grasping objects will not exceed 80 meters per second, and the smaller the movement delay, the better the experience. Therefore, as a preferred embodiment, the position difference and angle difference between the grasped object and the temporary reference object are divided into ten parts, so as to achieve the best effect of balancing the rebound motion and the sense of motion delay.

[0054] like Figure 5 As shown, in the process of the grasped object 101 following the temporary reference object 102, the temporary reference object passes through the fixed obstacle 103 from left to right, and it can be seen that the grasped object 101 stays on the surface of the fixed obstacle 103. Because although the temporary reference object 102 passes through the fixed obstacle 103, the position of the grasped object 101 does not change directly, but follows the temporary reference object 102 at a certain speed. Therefore, under the action of the physical engine, the object with a rigid body and a collider will be affected by the collision in the scene, so that the grasped object 101 is blocked on the surface of the object by the fixed obstacle 103, avoiding the occurrence of penetration.

[0055] This embodiment also includes determining the type of obstacle when the grasped object 101 encounters an obstacle in the VR scene. If the obstacle is a movable obstacle 104, then calculating the interaction force between the grasped object 101 and the movable obstacle 104. Figure 6As shown, a movable obstacle 104 with a rigid body collision is placed in the scene, and the temporary reference object 102 is controlled to move from left to right toward the movable obstacle 104. When the grasped object 101 contacts the movable obstacle 104, the grasped object 101 will stay on the surface of the movable obstacle 104. The force F acting on the movable obstacle 104 is calculated according to F=ma, so that the movable obstacle 104 forms a collision response under the action of the physical engine, that is, the grasped object 101 exerts a force on the movable obstacle 104, causing the movable obstacle 104 to move. The magnitude of the force is related to the mass ratio of the grasped object 101 and the movable obstacle 104. Among them, m is the mass of the grasped object 101, a is the acceleration of the grasped object 101, and the acceleration of the grasped object 101 is calculated according to the differential of the velocity of the grasped object 101 with respect to time.

[0056] In this embodiment, the temporary reference object 102 follows the movement of the peripheral hardware and controls the grasped object 101 to follow the temporary reference object 102, thereby achieving that the grasped object 101 in the virtual scene can follow the movement of the peripheral hardware, and the grasped object 101 in the virtual scene will be restricted by obstacles in the virtual scene while following the movement of the peripheral hardware, while ensuring the user's freedom of operation, accurately simulate the physical interaction between objects, especially avoid the "piercing the model" phenomenon. Specifically including:

[0057] 1. When the temporary reference object 102 enters or passes through the obstacle model, the grasped object 101 does not change its position directly, but moves at a speed affected by physical rules, so it stays on the obstacle surface. Compared with the prior art method of performing collision detection in advance, the real collision itself makes it possible for no gap to be generated between the grasped object and the obstacle.

[0058] 2. When the obstacle is an immovable component model, such as a wall or floor, when the grasped object 101 collides with the obstacle, it will stay on the surface of the obstacle, and when the grasped object 101 collides with an inclined surface or an irregular surface, due to the effect of the component velocity on other surfaces, the grasped object 101 slides or rolls along the inclined surface.

[0059] 3. When the obstacle is a movable model with a rigid body component, under the action of the physical engine, the obstacle will move due to the collision with the grasped object 101, and the degree of movement is related to the mass ratio of the two.

[0060] This embodiment also provides a VR scene anti-mold penetration system based on virtual substitutional motion, including a microprocessor and a memory connected to each other, and the microprocessor is programmed or configured to execute a VR scene anti-mold penetration method based on virtual substitutional motion.

[0061] This embodiment also provides a computer-readable storage medium, in which a computer program / instruction is stored. The computer program / instruction is programmed or configured to execute a VR scene anti-mold penetration method based on virtual substitution motion through a processor.

[0062] Those skilled in the art should understand that the above-mentioned embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the process Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The above are only preferred embodiments of the present invention and are not intended to limit the present invention in any form. Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the scope of protection of the technical solution of the present invention.

[0063] This embodiment also provides a computer program product, including a computer program / instruction, which is programmed or configured to execute a VR scene anti-penetration method based on virtual substitution motion through a processor.

[0064] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A VR scene anti-mold penetration method based on virtual substitution motion, characterized in that: The method includes following the movement of the hardware of the peripheral device through a temporary reference object not displayed in the VR scene when the user grabs the object through the hardware peripheral device, and controlling the grabbed object to follow the movement of the temporary reference object, so that the grabbed object is blocked by the obstacle in the VR scene when encountering the obstacle, and avoids the phenomenon of penetrating the obstacle; following the movement of the hardware of the peripheral device through a temporary reference object not displayed in the VR scene includes obtaining the mapping position and angle of the hardware peripheral device in the VR scene, assigning the mapping position and angle to the temporary reference object, so that the temporary reference object follows the movement of the hardware of the peripheral device; The temporary reference object that is not displayed is generated by an empty object node that does not render but only records position information; The controlling the grasped object to follow the temporary reference object includes: calculating the position difference and angle difference between the temporary reference object and the grasped object according to the three-dimensional coordinates of the temporary reference object and the grasped object, and the position difference calculation formula is: , Where D is the three-dimensional vector of position difference, , , is the coordinate value of the grasped object in the three-dimensional space of x, y, and z axes, , , The coordinate values ​​of the temporary reference object on the x, y, and z axes in three-dimensional space; The angle difference calculation formula is: , in, is the quaternion of the angle difference, is the quaternion of the angle of the object being grasped, is the quaternion of the temporary reference object angle, The quaternion The inverse of If the position difference or angle difference between the temporary reference object and the grasped object is greater than a preset threshold, the displacement speed and angular velocity in the three-dimensional direction required for the grasped object to follow the temporary reference object are determined according to the position difference and angle difference between the temporary reference object and the grasped object, and the speed in the three-dimensional direction is assigned to the grasped object so that the grasped object moves toward the temporary reference object under the action of the physical engine to achieve the movement of following the temporary reference object. The calculation formula of the displacement speed and angular velocity is: , , in, is the displacement speed, is the angular velocity, D is the three-dimensional vector of position difference, is the quaternion of the angle difference, is the preset threshold of position difference, is the preset threshold for the angle difference.

2. The VR scene anti-mold penetration method based on virtual substitution motion according to claim 1 is characterized in that: Before the user grabs the object through the hardware peripheral, it also includes adding a collision component and a rigid body component to the grabbed object in the VR scene to give it a physical engine function. If the obstacle is a fixed obstacle, a collision component is added to the obstacle; if the obstacle is a movable obstacle, a collision component and a rigid body component are added to the obstacle to give it a physical engine function.

3. The VR scene anti-mold penetration method based on virtual substitution motion according to claim 1 is characterized in that: When determining the speed in the three-dimensional direction required for the grasped object to follow the temporary reference object based on the position difference and angle difference between the temporary reference object and the grasped object, it includes evenly dividing the position difference and angle difference between the temporary reference object and the grasped object into N equal parts, and selecting the first part of the position difference and angle difference to determine the speed in the three-dimensional direction required for the grasped object to follow the temporary reference object to prevent rebound during the movement of the grasped object following the temporary reference object.

4. The VR scene anti-mold penetration method based on virtual substitution motion according to claim 1 is characterized in that: It also includes determining the type of obstacle when the grasped object encounters an obstacle in the VR scene. If the obstacle is a movable obstacle, the force F acting on the obstacle is calculated according to F=ma, so that the obstacle forms a collision response under the action of the physical engine, where m is the mass of the grasped object, and a is the acceleration of the grasped object, and the acceleration of the grasped object is calculated based on the differential of the velocity of the grasped object with respect to time.

5. A VR scene anti-mold penetration system based on virtual substitution motion, comprising a microprocessor and a memory connected to each other, characterized in that: The microprocessor is programmed or configured to execute the VR scene anti-mold penetration method based on virtual substitution motion as described in any one of claims 1 to 4.

6. A computer-readable storage medium having a computer program / instruction stored therein, characterized in that: The computer program / instruction is programmed or configured to execute the VR scene anti-mold penetration method based on virtual substitution motion as described in any one of claims 1 to 4 through a processor.

7. A computer program product comprising a computer program / instructions, characterized in that The computer program / instruction is programmed or configured to execute the VR scene anti-mold penetration method based on virtual substitution motion as described in any one of claims 1 to 4 through a processor.

Citation Information

Patent Citations

  • An object grabbing interaction method under complex motion constraint in virtual reality

    CN109669538A

  • Direction indication method and device in game, electronic equipment and readable storage medium

    CN113750529A

  • VR simulation training method for machine room maintenance

    CN114495585A

  • Immersive VR interaction scene display method and device and electronic equipment

    CN117994485A

  • Method and device for adjusting position of virtual object, equipment, medium and program product

    CN118022307A