A method, system and device for providing entity interaction for virtual objects
By calculating the basic composition information of virtual objects and using control devices to build entity modules in real time, the problem of insufficient interactivity of virtual objects in the virtual environment is solved, real-time and automatic entity interaction is achieved, and user immersion and interaction efficiency are improved.
Patent Information
- Application Number
- CN202111564482.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-20
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2041-12-20
AI Technical Summary
Existing technology is difficult to provide real-time, automatic physical interaction for virtual objects, resulting in reduced interactivity of objects in the virtual environment and insufficient user immersion. Moreover, traditional methods require users to assemble in advance and cannot adapt to changes in multiple virtual objects.
By obtaining the characteristics of the virtual object, calculating its basic body composition information, and using the control device to build the physical basic body in real time, the non-prefabricated entity corresponding to the virtual object is realized, and entity interaction is provided. The method includes using reinforcement learning and convolutional neural networks to calculate primitive combinations, automatically assemble entity modules, and update interaction status in real time.
It achieves real-time entity feedback for different virtual objects, improves user immersion and interaction efficiency, reduces entity construction costs and manual combination costs, and provides rich tactile interactions.
Smart Images

Figure CN114415827B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of virtual reality technology, and in particular to a method, system and device for providing entity interaction for virtual objects. Background Art
[0002] The paper: Robotic Assembly of Haptic Proxy Objects for Tangible Interaction and Virtual Reality discloses the use of small robots for real-time assembly to provide physical interaction for virtual objects in a virtual environment. The small robot equipped with small wheels detects its real-time position and direction through a 2.4G radio controller position and optical tracking through a high-speed DLP structure light projector. The small robot is assembled by adsorption through magnets. By introducing a 2.5D robot shell to form a specific shape entity, and by adding a ramp device, the assembly of two layers of objects is achieved. This small robot can only move and assemble in a plane space, and a ramp device can only be used to assemble two layers of objects at most. Secondly, the article only implements the robot assembly method, which can provide physical interaction for objects, and the robot's movement mode needs to be pre-defined according to the virtual object.
[0003] Paper: TanGi: Tangible Proxies for Embodied Object Exploration and Manipulation in Virtual Reality discloses that users can manually assemble primitive shapes including cubes, triangles, hemispheres and sticks to provide physical interaction for objects in a virtual environment. Among them, Velcro straps can be used to combine primitive shapes into larger composite objects the size of a basketball. This technology requires users to manually assemble basic shapes based on virtual images, and the assembly needs to be done before immersing in the virtual environment, and automatic assembly cannot be achieved.
[0004] In a virtual environment, virtual objects generally only have virtual images but no physical entities. When users interact with them, due to the lack of force feedback, the interactivity of the objects is reduced, which can easily break the user's immersion. At present, entity modules have been commonly used to provide force feedback for virtual objects. One way is to provide force feedback for corresponding virtual objects through one-to-one physical props. Because the number of props is limited, but there are many types of virtual objects and physical properties such as shape and size are easy to change, this method is not suitable for providing physical entities for a large number of virtual objects. One way is to provide force feedback for different virtual objects by combining basic shapes, but currently users are usually required to assemble and preset them in advance, which is not real-time and difficult to adapt to virtual scenes with different virtual objects. Summary of the invention
[0005] In view of this, the present invention provides a method, system and device for providing physical interaction for virtual objects. The technology proposed in the present invention can provide physical feedback for different virtual objects in real time, and automatically assemble basic bodies using mobile devices to form non-prefabricated entities corresponding to virtual objects to provide physical interaction.
[0006] To achieve the above object, the technical solution of the present invention - a method for providing entity interaction for a virtual object comprises the following steps:
[0007] Step 1) Acquire virtual object features according to the virtual object specified by the user.
[0008] Step 2) Calculate virtual basic volume composition information of the virtual object based on the virtual object features.
[0009] Step 3) Determine the physical basic body according to the virtual basic body information constituting the virtual object, and use the control device to build the physical basic body in real time.
[0010] Step 4) Construct a corresponding virtual scene based on the virtual scene of the terminal device and the real scene to realize the entity interaction between the user and the virtual object.
[0011] Furthermore, the virtual object features are obtained according to the virtual object specified by the user, specifically:
[0012] The virtual object comes from other terminal devices or servers and is stored in the server. After receiving the instruction to obtain the virtual object, the terminal device loads the virtual object from the server to the terminal device.
[0013] Virtual objects are created by users in real time. RGB images or image information of remote objects are obtained through cameras or scanners, and 3D virtual models are constructed through real-time reconstruction methods.
[0014] The virtual object features are obtained according to the virtual object model information. The virtual object features include the size, direction, and surface texture information of the virtual object. The virtual object information is stored using voxels, three-dimensional point clouds, Mesh grids, octree representations, and TSDF methods.
[0015] Furthermore, the basic body composition information of the virtual object entity is calculated based on the virtual object features, specifically:
[0016] The type, size, quantity and posture information of the primitives required for calculation are calculated according to the features of the virtual object. The features of the virtual object include the size, direction and surface texture information of the virtual object. The primitives include cubes, cuboids, spheres, hemispheres and cones. The entity corresponding to a virtual object is composed of more than one primitive body. The primitive bodies have multiple sizes. The primitive bodies of the entity and the primitive bodies of the virtual object have the same size.
[0017] Furthermore, the category, size, quantity and posture information of the basic body required for virtual object feature calculation are calculated using the following reinforcement learning method:
[0018] First, a combinatorial library containing all virtual primitives is built based on the existing primitives.
[0019] Then at the beginning, the virtual environment does not contain virtual primitives. The agent performs the action of adding, adds a virtual primitive in any virtual primitive combination library, adds a virtual primitive in the virtual environment, and calculates the reward or penalty; the agent performs actions according to the virtual primitives in the current virtual environment. The actions are to add, delete, move left, move right, move up, move down, move forward, and move backward for each virtual primitive in the virtual environment. The current virtual environment is the number, type, posture, and size of the existing virtual bodies. A new state is obtained and a reinforcement signal is generated. The reinforcement signal is a reward or a penalty. The agent selects the next action based on the current environment and the reinforcement signal.
[0020] The specific calculation method of the reinforcement signal, that is, the reward and penalty, is to calculate the degree of volume overlap based on the posture and size of the selected virtual primitive and the size of the virtual object. A higher degree of overlap than before the action is executed is recorded as a reward, otherwise it is recorded as a penalty; if it is a reward, the next action is one of add, move left, move right, move up, move down, move forward, and move backward; if it is a penalty, the next action is one of delete, move left, move right, move up, move down, move forward, and move backward; add is a virtual primitive in the primitive combination library, and other actions act on existing virtual primitives in an environment.
[0021] The action is executed until the size and volume of the selected and placed virtual primitive overlap with the virtual object to the greatest extent. At this time, the type, posture and other information of the selected and placed virtual primitive is the virtual object virtual primitive information.
[0022] Furthermore, the category, size, quantity and posture information of the basic body required for virtual object feature calculation are calculated using the convolutional neural network learning method:
[0023] First, we construct training samples. The input of the training network is the voxel or point cloud information of various objects. After the convolutional network, we predict the type and posture of the required virtual primitives. Then, we calculate the loss based on the prediction results, perform back propagation, and update the network parameters. The loss includes: the size overlap between the predicted virtual primitives and the virtual objects; the physical rationality of the combination of virtual primitives, for example, the virtual primitives cannot be suspended in the air and need to be placed on the ground or other virtual primitives. We train the network and stop when the loss no longer decreases.
[0024] When in use, the virtual object features, i.e., voxel or point cloud information, are input, and the type and posture of the predicted virtual primitive obtained through the convolutional network are the virtual primitive information of the virtual object.
[0025] Furthermore, according to the virtual basic body information constituting the virtual object, the control device constructs the physical basic body in real time, specifically:
[0026] According to the existing virtual scene, the virtual objects of the constructed entity are rendered into the virtual scene. The user sees the virtual objects through the display device and interacts with the entities corresponding to the virtual objects in the real environment to form force feedback.
[0027] During the interaction, if the virtual object moves, it will be updated in real time and some entities will be reassembled.
[0028] The interaction with the entity is performed by installing sensors on the entity or by acquiring images of the actual environment to detect the user's interaction.
[0029] Another embodiment of the present invention provides a system for providing entity interaction for a virtual object, including a computing module, a control module, a display module and an interaction module.
[0030] The calculation module includes a virtual object feature acquisition module, a virtual primitive extraction module, a physical primitive control information calculation module, and a virtual scene control module. The virtual object feature acquisition module is used to obtain the features of the virtual object according to the virtual object specified by the user, and transmit it to the virtual primitive extraction module. The virtual primitive extraction module is used to calculate the virtual primitive information of the virtual object based on the virtual features of the virtual object and transmit it to the physical primitive control information calculation module. The physical primitive control information calculation module is used to calculate the determination, combination order and combination path planning of the assembled physical primitives according to the virtual primitive information constituting the virtual object, and transmit it to the control module. The virtual scene control module is used to calculate the information of other virtual scenes and virtual objects with physical entities, and transmit it to the display module for rendering and display.
[0031] The control module assembles the entity basic body modules according to the determination of the assembly entity basic body, the assembly order and the assembly path planning information.
[0032] The display module is used to display the virtual scene information, including the original virtual scene information and the virtual objects with entity.
[0033] The interaction module is used to obtain the user's interaction information and transmit it to the calculation module.
[0034] Another embodiment of the present invention provides a system device for providing entity interaction for virtual objects, the system device includes a processor, a control device, a display device, an interaction device and a memory; the various parts of the system device are connected by wire or wirelessly.
[0035] The processor is connected to the memory; the memory stores processor-readable instructions, and the instructions can be executed by the processor to complete the functions of the above system.
[0036] The memory is a non-volatile computer-readable medium on which a computer program is stored; the memory is a local memory or a cloud memory, and the processor is a local processor or a cloud memory.
[0037] The display device is used to display the virtual environment and the virtual objects therein, and is connected to the processor; the processor and the memory are located in the display device or separately.
[0038] Control devices are used to control the combination of entities, and can use external fixed devices and mobile devices.
[0039] The interactive device is composed of a device for detecting the user's interaction intention, which is composed of at least one detection device. The interactive device is located on the display device or in the actual environment, including but not limited to eye movement detection equipment, head movement detection equipment, gesture detection equipment, pressure sensor and temperature sensor.
[0040] Beneficial effects:
[0041] 1. The present invention proposes a method, system and device for providing interactive entities for virtual objects, which can use a limited number of basic bodies to combine into entities corresponding to different virtual objects, provide force feedback for virtual objects in the virtual environment, and improve the user's immersion, entertainment, and interaction efficiency in the virtual environment. Reduce the cost of entity construction, the entity basic body can be reused for different virtual objects, avoiding the problem that objects printed by 3D printing technology can only provide force feedback for a single virtual object; improve the efficiency of entity construction, the processor can automatically extract the basic body construction information according to the virtual object information, and automatically complete the construction process through the control device, without the need for manual construction for different virtual objects. The method proposed by the present invention can create a physical entity module corresponding to the current virtual object for the user in real time, provide an interactive entity for the virtual object, and provide rich tactile interaction.
[0042] 2. The present invention can abstract virtual objects into forms composed of basic modules in real time according to virtual object information through a neural network. The mobile device controls the assembly of physical basic modules according to the form information, thereby providing physical feedback for the virtual objects.
[0043] 3. The present invention uses different combinations of a limited number of basic bodies to provide force feedback for different virtual objects; uses algorithms to automatically calculate basic body construction information rather than traditional manual construction methods to improve combination efficiency; and automatically completes the combination of basic bodies through control devices such as robotic arms and robots, thereby reducing manual combination costs and improving combination efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is a schematic diagram of an example of a basic body in an embodiment of the present invention;
[0045] Figure 2 It is a schematic diagram of a system structure for providing entity interaction for virtual objects provided by the present invention;
[0046] Figure 3 It is a flow chart of a system for providing entity interaction for virtual objects provided by the present invention;
[0047] Figure 4 is an example schematic diagram of a single basic body structure in an embodiment of the present invention; wherein: Figure 4 (a) Schematic diagram of the robot arm completing the assembly of a single corresponding entity of a virtual object; Figure 4 (b) Schematic diagram of the implementation of a virtual object with single entity feedback;
[0048] Figure 5 is an exemplary schematic diagram of various basic body structures in an embodiment of the present invention; wherein: Figure 5 (a) Schematic diagram of the robot arm completing the assembly of the corresponding entities of multiple virtual objects; Figure 5 (b) Schematic diagram of the implementation of a virtual object with multiple entity feedback. DETAILED DESCRIPTION
[0049] The present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0050] The present invention can abstract virtual objects into forms composed of basic modules in real time according to virtual object information through a neural network, and a mobile device controls the assembly of physical basic modules according to the form information, thereby providing physical feedback for the virtual objects.
[0051] The present invention provides a method, system and device for providing entity interaction for virtual objects in a virtual environment.
[0052] The specific method is: 1) obtaining virtual object features according to the virtual object specified by the user; 2) calculating the virtual object entity basic body composition information based on the virtual object features; 3) according to the virtual basic body information constituting the virtual object, the control device constructs the entity basic body in real time; 4) constructing a corresponding virtual scene according to the virtual scene of the terminal device and the real scene to realize the entity interaction between the user and the virtual object.
[0053] 1) Acquire the characteristics of the virtual object according to the specified virtual object.
[0054] Virtual objects can come from other terminal devices or servers and be stored in the server. After receiving the instruction to obtain virtual objects, the terminal device can load the virtual objects from the server to the terminal device. Virtual objects can also be created by users in real time, for example, by obtaining RGB images or image information of remote objects through cameras or scanners, and completing the construction of 3D virtual models through real-time reconstruction methods.
[0055] The feature information of the virtual object is obtained according to the virtual object model information, and is used for the next step of generating the corresponding basic body of the virtual object. The feature information may include the size, direction, surface texture information, etc. of the virtual object, and the virtual object information can be stored using methods such as voxels, 3D point clouds, Mesh grids, octree representation, TSDF, etc.
[0056] Virtual objects can have different sizes and shapes, for example, a shooting gun and a desk.
[0057] 2) Calculate the virtual basic body information of the virtual object based on the virtual features of the virtual object.
[0058] The type, size, quantity, position and other information of the required primitives are calculated based on the size, direction, texture and other information of the virtual object. The primitives are composed of cubes, cuboids, spheres, hemispheres, cones, etc. In actual use, one or more primitives may be included, such as Figure 1 As shown. Primitives have different sizes and are divided into physical primitives and virtual primitives. Physical primitives and virtual primitives have the same size.
[0059] In addition, additional modules can be added to the basic body module, for example, adding wheels under the module so that the module can move in a real environment; adding a vibration module to provide active force feedback.
[0060] The calculation method can use traditional calculation methods, or it can use reinforcement learning and deep learning methods based on neural networks. The entity primitive is the actual entity module in the real scene. The number and size of the existing entity modules need to be input into the calculation as constraints to ensure that the required virtual primitive obtained by calculation is an existing primitive. In addition, the physical properties of the entity combination need to be considered and constraints need to be imposed. For example, the primitive cannot exist in the air. The required virtual primitive composition information obtained by calculation includes the type and number of primitives to be used and the six-degree-of-freedom posture information of each primitive.
[0061] One of the ways is that the user directly specifies the category, quantity, position and direction of each basic body of the entity modules to be assembled.
[0062] One of the traditional calculation methods is that the user performs intersection and union calculations on a certain number of small basic virtual blocks and virtual objects to obtain intersecting virtual blocks, and then merges the virtual blocks to calculate the different basic virtual bodies that can be formed.
[0063] One of them is based on reinforcement learning, which is a decision-making framework in which the agent interacts with the environment by performing actions to bring it to a new state and obtain rewards or penalties, thereby deciding to update the environment. The calculation of rewards and penalties is based on the characteristics of virtual objects and combined primitives.
[0064] In the invention, specifically: first, a combination library containing all virtual primitives is constructed based on the existing primitives. Then, at the beginning, the virtual environment does not contain virtual primitives, and the agent performs an action of adding, adding a virtual primitive in any virtual primitive combination library, adding a virtual primitive in the virtual environment, and calculating a reward or penalty. The agent performs actions based on the virtual primitives in the current environment, and the actions are to add, delete, move left, move right, move up, move down, move forward, and move backward for each virtual primitive in the environment. The current virtual environment is the number, type, posture, and size of the existing virtual bodies, and a new state is obtained, and a reinforcement signal (reward or penalty) is generated at the same time. The agent selects the next action based on the current virtual environment and the reinforcement signal.
[0065] The specific calculation method of rewards and penalties is to calculate the volume overlap degree according to the posture and size of the selected virtual primitive and the size of the virtual object. If the overlap degree is higher than before the action is executed, it is recorded as a reward, otherwise it is recorded as a penalty. If it is a reward, the next action is one of adding, moving left, moving right, moving up, moving down, moving forward, and moving backward. If it is a penalty, the next action is one of deleting, moving left, moving right, moving up, moving down, moving forward, and moving backward. Adding is a virtual primitive in the primitive combination library, and other actions act on virtual primitives that already exist in an environment.
[0066] The action is executed until the size and volume of the selected and placed virtual primitive overlap with the virtual object to the greatest extent. At this time, the type, posture and other information of the selected and placed virtual primitive is the virtual object virtual primitive information.
[0067] One of the deep learning methods is the learning method based on convolutional neural network.
[0068] First, construct training samples. The input of the training network is the voxel or point cloud information of various objects. After passing through the convolutional network, predict the type and posture of the required virtual primitives. Then calculate the loss based on the prediction results, perform back propagation, and update the network parameters. The loss includes: the degree of overlap between the predicted virtual primitives and the virtual objects; the physical rationality of the combination of virtual primitives, for example, the virtual primitives cannot be suspended in the air and need to be placed on the ground or other virtual primitives. Train the network and stop when the loss no longer decreases.
[0069] When in use, the voxel or point cloud information of the object is input, and the type and posture of the predicted virtual primitive body obtained through the convolutional network are the virtual primitive body information of the virtual object.
[0070] 3) According to the information of the virtual basic bodies constituting the virtual object, the physical basic body is determined, and the physical basic body is constructed in real time by using the control device to construct a combined entity, wherein the control information of the physical basic body is obtained according to the information of the virtual basic body.
[0071] The control device determines the physical basic bodies that need to be assembled according to the types, quantities and six-degree-of-freedom information of the virtual basic bodies corresponding to the virtual objects generated in the above steps, plans the combination sequence and combination path, and controls the movement and combination of the physical basic bodies.
[0072] Each step of determining the basic bodies of the assembled entities, the combination order, and the combination path planning can be specified by the user or automatically. In the user-specified method, the user directly specifies the basic bodies to be assembled and the construction order and path of each basic body. In the automatic method, the basic bodies can be determined by collecting RGB or RGBD images or other information of all entity basic bodies, and after calculation, the size of each basic body is first obtained, and the basic body to be used is determined based on the information generated in the previous step; the combination order in the automatic method can be determined by calculating the combination order of the basic bodies according to certain rules based on the information generated in the previous step, such as placing the bottom layer objects first, placing large objects on the bottom layer objects first, etc.; the path planning in the automatic method can be calculated based on the existing posture of each entity basic body and the posture of the entity in the combination.
[0073] The solid primitives need to be able to be effectively connected. For example, the solid primitives have magnetic force and can be connected more stably.
[0074] 4) Construct corresponding virtual scenes according to the existing virtual scenes and real scenes of the terminal device, realize the entity interaction between the user and the virtual object, and construct the basic body according to the movement of the virtual object.
[0075] Based on the existing virtual scene, the virtual objects of the constructed entity are rendered into the virtual scene. The user can see the virtual object through the display device and can interact with the entity corresponding to the virtual object in the real environment to form force feedback. If the virtual object moves during the interaction process, it can be updated in real time and some entities can be reassembled.
[0076] In addition, user interaction can cause changes in virtual objects or entities. For example, when a user interacts with a specific object position, the color of the virtual object changes, or the virtual object moves. When the virtual object moves, the entity needs to be reassembled in real time. User interaction can be detected through virtual interaction information or entity interaction information. Virtual interaction information includes information such as the user's virtual hand, head rays, eye movements, etc. Entity interaction can be detected by installing sensors (such as pressure sensors, temperature sensors, etc.) on the entity or by acquiring images of the actual environment.
[0077] The embodiment of the present invention also provides a system for providing entity interaction for virtual objects in a virtual environment, the system comprising: a computing module, a control module, a display module, an interaction module, such as Figure 2 shown.
[0078] The calculation module includes a virtual object feature acquisition module, a virtual primitive extraction module, a physical primitive control information calculation module, and a virtual scene control module. The virtual object feature acquisition module is used to obtain the features of the virtual object according to the virtual object specified by the user, and transmit it to the virtual primitive extraction module. The virtual primitive extraction module is used to calculate the virtual primitive information of the virtual object based on the virtual features of the virtual object and transmit it to the physical primitive control information calculation module. The physical primitive control information calculation module is used to calculate the determination, combination order and combination path planning of the assembled physical primitives according to the virtual primitive information constituting the virtual object, and transmit it to the control module. The virtual scene control module is used to calculate the information of other virtual scenes and virtual objects with physical entities, and transmit it to the display module for rendering and display.
[0079] The control module assembles the entity basic body modules according to the determination of the assembly entity basic body, the assembly order and the assembly path planning information.
[0080] The display module is used to display the virtual scene information, including the original virtual scene information and the virtual objects with entity.
[0081] The interaction module is used to obtain the user's interaction information and transmit it to the calculation module.
[0082] The system workflow diagram is as follows: Figure 3As shown: first, the virtual objects that need to be physically interacted with are determined from the virtual environment, and then the virtual object features of the virtual objects are extracted. The information of the virtual basic body required for construction is calculated based on the extracted information, and then the category, quantity, combination order and combination path of the corresponding entity are calculated. According to the calculation results, entities can be combined, and the combined entities correspond to the selected virtual objects in the virtual environment. The virtual objects and the virtual environment are displayed to the user through the display device; the user can interact with the virtual environment including the selected virtual objects, and can also interact with the combined entities corresponding to the selected virtual objects. The interaction results will act on the virtual environment including the selected virtual objects.
[0083] The system device includes a processor, a control device, a display device, an interaction device, and a memory. The system devices are connected via wired or wireless connections.
[0084] The processor is connected to the memory. The memory stores processor-readable instructions, which can be executed by the processor to complete the functions of the above system. The memory is a non-volatile computer-readable medium on which a computer program is stored. The memory can be a local memory or a cloud memory, and the processor can be a local processor or a cloud memory.
[0085] The display device is used to display the virtual environment and the virtual objects therein, and is connected to the processor. The processor and the memory may be located in the display device or may be separated.
[0086] The control device is used to control the combination of entities, and can use external fixed devices and mobile devices, such as mobile robots, robotic arms, etc.
[0087] The interactive device is a device for detecting the user's interaction intention, which is composed of more than or equal to one detection device. It can be located on the display device or in the actual environment, including but not limited to eye movement detection equipment, head movement detection equipment, gesture detection equipment, pressure sensors, temperature sensors, etc.
[0088] Figure 4 Shows an example consisting of a single primitive, in this case a cube. Figure 4 In (a), the robot arm is used as a control device to assemble the existing entity primitives into the corresponding entity of the virtual object according to the information of the corresponding entity calculated by the virtual object. Figure 4 As shown in (b), the user can interact with the entity in the real environment, and the entity provides force feedback to the corresponding virtual object.
[0089] Figure 5 Shows an example consisting of multiple primitives. In the example, the primitives are composed of a cube, a cuboid, and a hemisphere.
[0090] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for providing entity interaction for a virtual object, characterized in that: The steps include: Step 1) obtaining virtual object features according to the virtual object specified by the user; Step 2) calculating virtual basic body composition information of the virtual object based on the virtual object features; Step 3) determining a physical basic body according to the virtual basic body information constituting the virtual object, and constructing the physical basic body in real time using a control device; Step 4) constructing a corresponding virtual scene according to the virtual scene of the terminal device and the real scene to realize the entity interaction between the user and the virtual object; The virtual basic body composition information of the virtual object is calculated based on the virtual object features, specifically: The type, size, quantity and posture information of the basic bodies required for calculation are calculated according to the virtual object features, wherein the virtual object features include the size, direction and surface texture information of the virtual object; the basic bodies include cubes, cuboids, spheres, hemispheres and cones, and a virtual object corresponding entity is composed of more than one basic body, and the basic body has multiple sizes, and the basic body of the entity and the basic body of the virtual object have the same size; The type, size, quantity and posture information of the basic body required for calculating the virtual object features are calculated using the following reinforcement learning method: First, a combination library containing all virtual primitives is constructed based on the existing primitives; Then at the beginning, the virtual environment does not contain virtual primitives, the agent performs the action of adding, adds a virtual primitive from any virtual primitive combination library, adds a virtual primitive to the virtual environment, and calculates rewards or penalties; the agent performs actions according to the virtual primitives in the current virtual environment, the actions are to add, delete, move left, move right, move up, move down, move forward, and move backward for each virtual primitive in the virtual environment, the current virtual environment is the number, type, posture, and size of the existing virtual bodies, and a new state is obtained, and a reinforcement signal is generated at the same time, the reinforcement signal is a reward or a penalty, and the agent selects the next action according to the current environment and the reinforcement signal; The specific calculation method of the reinforcement signal, that is, the reward and penalty, is to calculate the volume overlap degree according to the posture and size of the selected virtual primitive and the size of the virtual object. If the overlap degree is higher than that before the action is executed, it is recorded as a reward, otherwise it is recorded as a penalty; if it is a reward, the next action is one of adding, moving left, moving right, moving up, moving down, moving forward, and moving backward; if it is a penalty, the next action is one of deleting, moving left, moving right, moving up, moving down, moving forward, and moving backward; adding is a virtual primitive in the primitive combination library, and other actions act on virtual primitives that already exist in an environment; The action is executed until the size and volume of the selected and placed virtual primitive overlap with the virtual object to the greatest extent. At this time, the type, posture and other information of the selected and placed virtual primitive is the virtual object virtual primitive information.
2. The method according to claim 1, characterized in that The step of obtaining the virtual object features according to the virtual object specified by the user is as follows: The virtual object comes from other terminal devices or servers and is stored in the server. After receiving the instruction to obtain the virtual object, the terminal device loads the virtual object from the server to the terminal device; Virtual objects are created by users in real time. RGB images or image information of remote objects are obtained through cameras or scanners, and 3D virtual models are constructed through real-time reconstruction methods. The virtual object features are obtained according to the virtual object model information. The virtual object features include the size, direction, and surface texture information of the virtual object. The virtual object information is stored using voxels, three-dimensional point clouds, Mesh grids, octree representations, and TSDF methods.
3. The method according to claim 1, characterized in that The type, size, quantity and posture information of the basic body required for the calculation of the virtual object features are calculated using a convolutional neural network learning method: First, training samples are constructed. The input of the training network is the voxel or point cloud information of various objects. After passing through the convolutional network, the type and posture of the required virtual primitives are predicted. Then, the loss is calculated based on the prediction results, and back propagation is performed to update the network parameters. The loss includes: the degree of overlap between the predicted virtual primitives and the virtual objects; the physical rationality of the combination of virtual primitives, for example, the virtual primitives cannot be suspended in the air and need to be placed on the ground or other virtual primitives. The network is trained and stopped when the loss no longer decreases. When in use, the virtual object features, i.e., voxel or point cloud information, are input, and the type and posture of the predicted virtual primitive obtained through the convolutional network are the virtual primitive information of the virtual object.
4. The method according to claim 1 or 3, characterized in that The method of determining the physical body according to the virtual body information constituting the virtual object and constructing the physical body in real time by using the control device is specifically as follows: According to the existing virtual scene, the virtual object of the constructed entity is rendered into the virtual scene, and the user sees the virtual object through the display device and interacts with the entity corresponding to the virtual object in the real environment to form force feedback; During the interaction, if the virtual object moves, it will be updated in real time and some entities will be reassembled; The interaction with the entity is performed by installing sensors on the entity or by acquiring images of the actual environment to detect the user's interaction.
5. A system for providing entity interaction for virtual objects based on the method of claim 1, characterized in that: It includes a calculation module, a control module, a display module and an interaction module; The calculation module includes a virtual object feature acquisition module, a virtual basic body extraction module, a physical basic body control information calculation module, and a virtual scene control module; the virtual object feature acquisition module is used to obtain the features of the virtual object according to the virtual object specified by the user, and transmit it to the virtual basic body extraction module; the virtual basic body extraction module is used to calculate the virtual basic body information of the virtual object based on the virtual features of the virtual object and transmit it to the physical basic body control information calculation module; the physical basic body control information calculation module is used to calculate the determination, combination order and combination path planning of the assembled physical basic bodies according to the virtual basic body information constituting the virtual object, and transmit it to the control module; the virtual scene control module is used to calculate the information of other virtual scenes and virtual objects with physical entities, and transmit it to the display module for rendering and display; The control module assembles the entity basic body modules according to the determination of the assembly entity basic body, the assembly order and the assembly path planning information; The display module is used to display the virtual scene information, including the original virtual scene information and the virtual objects with entity; The interaction module is used to obtain the user's interaction information and transmit it to the calculation module.
6. A system device for providing entity interaction for virtual objects based on the method of claim 1, characterized in that: The system device includes a processor, a control device, a display device, an interactive device and a memory; each part of the system device is connected by wire or wirelessly; The processor is connected to the memory; the memory stores processor-readable instructions, which can be executed by the processor to complete the functions of the above system; The memory is a non-volatile computer-readable medium on which a computer program is stored; the memory is a local memory or a cloud memory, and the processor is a local processor or a cloud memory; The display device is used to display the virtual environment and the virtual objects therein, and is connected to the processor; the processor and the memory are located in the display device or are separated separately; The control device is used to control the combination of entities, and external fixed devices and mobile devices can be used; The interactive device is composed of a device for detecting the user's interaction intention, which is composed of at least one detection device. The interactive device is located on the display device or in the actual environment, including but not limited to eye movement detection equipment, head movement detection equipment, gesture detection equipment, pressure sensor and temperature sensor.
