Virtual character control switching method and related equipment

By using the pose conversion relationship in VR streaming technology to convert the current pose of the first user into the target pose, the pose discontinuity problem of virtual characters in multi-person interactive scenarios is solved, and the continuous smooth control of virtual characters is realized , improves the user experience.

CN119455391APending Publication Date: 2025-02-18HISENSE VISUAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410452547.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-16
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The existing VR streaming technology cannot achieve continuous smooth control of virtual characters in multi-person interactive scenarios, resulting in discontinuous positional changes of virtual characters, which in turn affects the user experience.

Method used

When the first user takes over the second user to control the virtual role in the VR space, the position conversion relationship is determined using the exit position of the second user, and the current position of the first user is obtained periodically, and the position conversion relationship is performed through the position conversion relationship Pose conversion, obtains the target pose, and is sent to the target device to control the virtual character.

Benefits of technology

It realizes continuous smooth control of virtual characters during user interaction, avoids position jumps and improves user interaction experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119455391A_ABST
    Figure CN119455391A_ABST
Patent Text Reader

Abstract

The invention provides a virtual character control switching method and related equipment, which are used for realizing continuous and smooth control on a virtual character when a new first user is invited to replace a second user to control the virtual character in a VR space, and the position picture jump of the virtual character in the replacement process is avoided. Comprising the steps that after a first user confirms to accept an invitation request sent by a target device through a first VR device and establishes connection with the target device, a first current pose of the first user is acquired periodically, and the invitation request is to request the first user using the first VR device to replace a second user using a second VR device to control a virtual role in a VR space; for any first current pose, converting the first current pose by using the pose conversion relation to obtain a target pose of the first user; and sending the target pose of the first user to the target device, so that the target device controls a virtual character in the VR space by using the target pose of the first user.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] VR (Virtual Reality) streaming refers to projecting applications (e.g., games) on computers and other devices to VR devices for display in a wireless or mobile network environment. In this way, VR devices can use computers and other devices to run large applications. One of the benefits of this is that it eliminates the need to store large application entities on VR devices. VR devices interact with devices through streaming, making full use of device resources, making up for the lack of VR device performance and the problem that applications cannot be cross-platform due to differences in system platforms.

[0003] The current VR streaming products in the industry are based on 3D (three-dimensional) images and the SDK (Software Development Kit) of the SteamVR platform. The terminal device streaming interface and solutions provided by SteamVR only provide image output and data interaction. Figure 1 As shown in the figure, the SDK provided by SteamVR itself only supports one audio and video output, that is, the output of audio data and video data in the application, and one control data input, that is, the input of control data of the head display and the handle. There is no multi-person multi-channel interface, and there is no ready-made open interface. Therefore, only single-player scenes can be realized, and multi-player scenes cannot be realized.

[0004] In order to further expand the usage scenarios and increase interactivity, some developers have proposed multi-person interaction solutions that can achieve the following effects: When a user invites other users to take over the control of a virtual character in a VR space, when the first user's VR device is disconnected from the terminal device, its VR device will no longer send position data to the terminal device. At this time, the virtual character in the VR space will remain in the current position, and when the second user's VR device is connected, it will transmit its own position data to the terminal device. Because the position data source is obtained by different VR devices, the position of the virtual character in the VR scene is discontinuous and jumpy, and the picture in the VR interface will also jump. The following takes a game as an example to illustrate. Figure 2 As shown in the figure, when the first user's VR device is disconnected from the terminal device, its VR device no longer sends posture data to the terminal device. At this time, the virtual character in the VR space will stay in the current posture and wait for the position to be refreshed, that is, Figure 2When the second user's VR device is connected, its own posture data will be transmitted to the terminal device. Because the posture data source is obtained by different VR devices, the posture obtained when the game is switched is discontinuous and jumps, that is, the virtual character in the VR scene jumps from posture a to posture b. As a result, the interface screen will also jump, and the virtual character cannot return to the position when the first user exits the VR scene, and the second user's experience will be relatively poor. Summary of the invention

[0005] The present application provides a control switching method for a virtual character and related equipment, which are used to achieve continuous and smooth control of the virtual character when inviting a new first user to replace the second user to control the virtual character in the VR space, and the position of the virtual character will not jump during the succession process, thereby improving the user interaction experience.

[0006] In a first aspect, an embodiment of the present application provides a control switching method for a virtual character, which is applied to a first VR device, and the method includes:

[0007] When the first user confirms acceptance of the invitation request sent by the target device through the first VR device and establishes a connection with the target device, periodically obtaining the first current posture of the first user, wherein the invitation request is used to request the first user using the first VR device to replace the second user using the second VR device to control the virtual character in the VR space;

[0008] For any first current posture, perform posture transformation on the first current posture using a posture transformation relationship to obtain a target posture of the first user, wherein the posture transformation relationship is determined using an exit posture of the second user using the second VR device when the second user ends controlling the virtual character in the VR space;

[0009] The target posture of the first user is sent to a target device, so that the target device controls the virtual character in the VR space using the target posture of the first user.

[0010] A second aspect of the present application provides a control switching method for a virtual character, which is applied to a target device, and the method includes:

[0011] When receiving a virtual character control switching instruction, determining a first VR device based on the virtual character control switching instruction;

[0012] Sending an invitation request to the first VR device, and after receiving a confirmation of acceptance of the invitation request sent by the first VR device, obtaining an exit posture of a second user using a second VR device when ending control of a virtual character in the VR space, wherein the invitation request is used to request the first user of the first VR device to replace the second user of the second VR device to control the virtual character in the VR space;

[0013] The exit posture is sent to the first VR device, so that the first VR device obtains a posture conversion relationship by using the exit posture, and after establishing a connection with the target device, obtains a first current posture of a first user using the first VR device for any period, and performs posture conversion on the first current posture by using the posture conversion relationship to obtain a target posture of the first user;

[0014] Receive the target posture of the first user sent by the first VR device, and use the target posture of the first user to control the virtual character in the VR space.

[0015] A third aspect of the present application provides a method for controlling and switching a virtual character, which is applied to a first VR device, and the method includes:

[0016] When the first user confirms acceptance of the invitation request sent by the target device through the first VR device and establishes a connection with the target device, periodically obtaining the first current posture of the first user, wherein the invitation request is used to request the first user using the first VR device to replace the second user using the second VR device to control the virtual character in the VR space;

[0017] For any first current posture, the first current posture is sent to the target device, so that the target device uses a posture conversion relationship to perform posture conversion on the first current posture, and after obtaining the target posture of the first user, the target posture of the first user is used to control the virtual character in the VR space; wherein the posture conversion relationship is determined by the exit posture of the second user using the second VR device when the control of the virtual character in the VR space ends.

[0018] A fourth aspect of the present application provides a method for controlling switching of a virtual character, which is applied to a target device, and the method includes:

[0019] When receiving a virtual character control switching instruction, determining a first VR device based on the virtual character control switching instruction;

[0020] Sending an invitation request to the first VR device, and after receiving a confirmation of acceptance of the invitation request sent by the first VR device, obtaining an exit posture of the second user using the second VR device when ending control of the virtual character in the VR space, wherein the invitation request is used to request the first user using the first VR device to replace the second user using the second VR device to control the virtual character in the VR space;

[0021] Sending the exit posture to the first VR device so that the first VR device can obtain a posture conversion relationship using the exit posture;

[0022] The posture conversion relationship sent by the first VR device is received, and when the first current posture sent by the first VR device is received, the first current posture is transformed by using the posture conversion relationship, and after obtaining the target posture of the first user, the target posture of the first user is used to control the virtual character in the VR space.

[0023] In a fifth aspect, the present application provides a first VR device, including a processor and a memory, wherein the processor and the memory are connected via a bus;

[0024] The memory stores a computer program, and the processor is configured to perform the following operations based on the computer program:

[0025] When the first user confirms acceptance of the invitation request sent by the target device through the first VR device and establishes a connection with the target device, periodically obtaining the first current posture of the first user, wherein the invitation request is used to request the first user using the first VR device to replace the second user using the second VR device to control the virtual character in the VR space;

[0026] For any first current posture, perform posture transformation on the first current posture using a posture transformation relationship to obtain a target posture of the first user, wherein the posture transformation relationship is determined using an exit posture of the second user using the second VR device when the second user ends controlling the virtual character in the VR space;

[0027] The target posture of the first user is sent to a target device, so that the target device controls the virtual character in the VR space using the target posture of the first user.

[0028] A sixth aspect of the present application provides a target device, including a processor and a memory, wherein the processor and the memory are connected via a bus;

[0029] The memory stores a computer program, and the processor is configured to perform the following operations based on the computer program:

[0030] When receiving a virtual character control switching instruction, determining a first VR device based on the virtual character control switching instruction;

[0031] Sending an invitation request to the first VR device, and after receiving a confirmation of acceptance of the invitation request sent by the first VR device, obtaining an exit posture of a second user using a second VR device when ending control of a virtual character in the VR space, wherein the invitation request is used to request the first user of the first VR device to replace the second user of the second VR device to control the virtual character in the VR space;

[0032] The exit posture is sent to the first VR device, so that the first VR device obtains a posture conversion relationship by using the exit posture, and after establishing a connection with the target device, obtains a first current posture of a first user using the first VR device for any period, and performs posture conversion on the first current posture by using the posture conversion relationship to obtain a target posture of the first user;

[0033] Receive the target posture of the first user sent by the first VR device, and use the target posture of the first user to control the virtual character in the VR space.

[0034] A seventh aspect of the present application provides a first VR device, including a processor and a memory, wherein the processor and the memory are connected via a bus;

[0035] The memory stores a computer program, and the processor is configured to perform the following operations based on the computer program:

[0036] When the first user confirms acceptance of the invitation request sent by the target device through the first VR device and establishes a connection with the target device, periodically obtaining the first current posture of the first user, wherein the invitation request is used to request the first user using the first VR device to replace the second user using the second VR device to control the virtual character in the VR space;

[0037] For any first current posture, the first current posture is sent to the target device, so that the target device uses a posture conversion relationship to perform posture conversion on the first current posture, and after obtaining the target posture of the first user, the target posture of the first user is used to control the virtual character in the VR space; wherein the posture conversion relationship is determined by the exit posture of the second user using the second VR device when the control of the virtual character in the VR space ends.

[0038] In an eighth aspect, the present application provides a target device, including a processor and a memory, wherein the processor and the memory are connected via a bus;

[0039] The memory stores a computer program, and the processor is configured to perform the following operations based on the computer program:

[0040] When receiving a virtual character control switching instruction, determining a first VR device based on the virtual character control switching instruction;

[0041] Sending an invitation request to the first VR device, and after receiving a confirmation of acceptance of the invitation request sent by the first VR device, obtaining an exit posture of the second user using the second VR device when ending control of the virtual character in the VR space, wherein the invitation request is used to request the first user using the first VR device to replace the second user using the second VR device to control the virtual character in the VR space;

[0042] Sending the exit posture to the first VR device so that the first VR device can obtain a posture conversion relationship using the exit posture;

[0043] The posture conversion relationship sent by the first VR device is received, and when the first current posture sent by the first VR device is received, the first current posture is transformed by using the posture conversion relationship, and after obtaining the target posture of the first user, the target posture of the first user is used to control the virtual character in the VR space.

[0044] According to a ninth aspect provided by an embodiment of the present invention, a computer storage medium is provided, wherein the computer storage medium stores a computer program, and the computer program is used to execute the method as described in any one of the first aspect to the fourth aspect.

[0045] In the above embodiment of the present application, when the first user confirms to accept the invitation request sent by the target device through the first VR device and establishes a connection with the target device, the first current posture of the first user is periodically obtained, and then the posture conversion relationship determined by the exit posture of the second user of the second VR device when ending the control of the virtual character in the VR space is used to convert the first current posture to obtain the target posture of the first user, and finally the target posture is sent to the target device, so that the target device uses the target posture of the first user to control the virtual character in the VR space. Therefore, when the first user in the embodiment of the present application takes over the control of the virtual character in the VR space from the second user, the posture conversion matrix is ​​used to convert the posture of the virtual character in the VR space controlled by the first user to the posture of the virtual character in the VR space controlled by the second user, and in the subsequent VR scenes, the first user always uses the posture conversion relationship to convert the posture of the first user. Therefore, in the embodiment of the present application, when inviting a new first user to take over the control of the virtual character in the VR space from the second user, it is possible to realize continuous and smooth control of the virtual character, and there will be no jump in the position of the virtual character in the process of taking over, which improves the user interaction experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0047] Figure 1 The schematic diagram of the structure of SteamVR provided in the embodiment of the present application is exemplarily shown;

[0048] Figure 2 A schematic diagram of a VR scene interface provided by an embodiment of the present application is exemplified;

[0049] Figure 3 The schematic diagram of the structure of the VR streaming provided by the embodiment of the present application is exemplified;

[0050] Figure 4 The following is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0051] Figure 5 A schematic diagram exemplarily shows the control switching of a virtual character provided in an embodiment of the present application;

[0052] Figure 6 One of the flowcharts of the control switching method of the virtual character provided in the embodiment of the present application is exemplarily shown;

[0053] Figure 7 The schematic diagram of the process of determining the posture conversion relationship provided by the embodiment of the present application is exemplarily shown;

[0054] Figure 8 The second flowchart of the control switching method for a virtual character provided in an embodiment of the present application is exemplarily shown;

[0055] Fig. 9 One of the schematic diagrams of the control switching device of the virtual character provided in the embodiment of the present application is exemplarily shown;

[0056] Fig.10 A second schematic diagram of a control switching device for a virtual character provided in an embodiment of the present application is exemplarily shown;

[0057] Fig.11 A third schematic diagram of the control switching device for a virtual character provided in an embodiment of the present application is exemplarily shown;

[0058] Fig.12 A fourth schematic diagram of the control switching device for a virtual character provided in an embodiment of the present application is exemplarily shown;

[0059] Fig.13 The hardware structure diagram of the electronic device provided in the embodiment of the present application is exemplified. DETAILED DESCRIPTION

[0060] In order to make the purpose, implementation mode and advantages of the present application clearer, the exemplary implementation mode of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0061] Based on the exemplary embodiments described in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the claims attached to this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of the disclosure can also constitute a complete implementation method separately.

[0062] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0063] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a series of components is not necessarily limited to those components clearly listed, but may include other components not clearly listed or inherent to these products or devices.

[0064] The term "module" as used in this application refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0065] The idea of ​​the embodiments of the present application is summarized below.

[0066] According to the prior art, when another user is invited to take over the control of a virtual character in a VR space, the position of the virtual character in the VR scene cannot return to the position when the first user exits the VR scene, so the virtual character is discontinuous and jumps, and the picture in the VR interface also jumps, resulting in a poor user experience. The embodiment of the present application provides a control switching method for a virtual character, specifically: when a first user confirms acceptance of an invitation request sent by a target device through a first VR device and establishes a connection with the target device, the first current posture of the first user is periodically obtained, and then the posture conversion relationship determined by the exit posture of the second user of the second VR device when ending the control of the virtual character in the VR space is used to perform posture conversion on the first current posture to obtain the target posture of the first user, and finally the target posture is sent to the target device, so that the target device uses the target posture of the first user to control the virtual character in the VR space. Therefore, when the first user in the embodiment of the present application takes over from the second user to control the virtual character in the VR space, the posture of the virtual character in the VR space controlled by the first user is converted to the posture of the virtual character in the VR space controlled by the second user using the posture conversion matrix, and in subsequent VR scenes, the first user always uses the posture conversion relationship to convert the posture of the first user. Therefore, in the embodiment of the present application, when a new first user is invited to take over from the second user to control the virtual character in the VR space, continuous and smooth control of the virtual character can be achieved, and there will be no jump in the position of the virtual character in the screen during the succession process, thereby improving the user interaction experience.

[0067] Before introducing the control switching method of the virtual character in the embodiment of the present application, the scheme for implementing VR streaming is first described. The following is an introduction from the two aspects of audio and video and virtual character control:

[0068] Audio and video: Figure 3 As shown, SteamVR is running in the target device (computer or other device), and the streaming assistant is installed in both the target device and the VR device in the embodiment of the present application. After the streaming assistant of the target device establishes a connection with the streaming assistant of the VR device, the video image in the VR scene is obtained from the SDK interface of SteamVR and the sound in the VR scene is collected, and the video image and the sound of the VR scene are encoded and sent to the VR device. After receiving the video image, the VR device performs video decoding, renders the video images of the left and right eyes onto the left and right screens of the VR device respectively, and inputs the received sound of the VR scene into the audio device of the VR device for playback. In this way, the user can see the images in the VR scene and hear the sounds in the VR scene.

[0069] Virtual character control: In the process of controlling the virtual character in the VR scene, the target device sends the 6Dof pose information obtained by the pose acquisition module in the VR device and the pose information of the VR controller to the control service of the target device. After receiving the pose information, the control service inputs it into the SDK according to the interface requirements of Steam, and realizes the input of control signaling to the VR scene to realize the control of the virtual character in the VR scene.

[0070] The following is a detailed description of the control switching method of the virtual character in the embodiment of the present application in conjunction with the accompanying drawings.

[0071] like Figure 4 As shown, an application scenario of a control switching method for a virtual character, the application scenario includes a first VR device 410, a second VR device 420, and a terminal device 430. In the embodiment of the present application, the target device is described as a terminal device, but the target device is not limited. The target device in the embodiment of the present application can be a physical terminal device or a virtual device. The embodiment of the present application does not limit the target device. And in the application scenario, the first VR device 410 is used as an example to determine the target posture.

[0072] In a possible application scenario, after the second user enters the VR scene through the second VR device 420 to control the virtual character, if the second user wants to invite the first user to take over the control of the virtual character, the second user can send a virtual character control switching instruction to the terminal device 430 through the second VR device 420. After receiving the virtual character control switching instruction, the terminal device 430 determines the first VR device 410 based on the virtual character control switching instruction. The terminal device 430 sends an invitation request to the first VR device 410, and after receiving the confirmation of accepting the invitation request sent by the first VR device 410, the terminal device 430 obtains the exit posture of the second user who uses the second VR device 420 when ending the control of the virtual character in the VR space. The terminal device 430 sends the exit posture to the first VR device 410. The first VR device 410 obtains a posture conversion relationship using the exit posture, and after establishing a connection with the terminal device 430, obtains a first current posture of a first user using the first VR device 410 for any period, performs posture conversion on the first current posture using the posture conversion relationship, obtains a target posture of the first user, and sends the target posture to the terminal device 430. After receiving the target posture sent by the first VR device 410, the terminal device 430 uses the target posture to control the virtual character in the VR space.

[0073] in, Figure 4 The first VR device 410 and the second VR device 420 can exchange information with the terminal device 430 through a communication network, wherein the communication mode adopted by the communication network can be divided into a wireless communication mode or a wired communication mode.

[0074] Exemplarily, the terminal device 430 can access the network through cellular mobile communication technology to communicate with the first VR device 410 and the second VR device 420 respectively, wherein the cellular mobile communication technology, for example, includes the fifth generation mobile communication (5th Generation Mobile Networks, 5G) technology.

[0075] Optionally, the terminal device 430 can access the network through short-range wireless communication to communicate with the first VR device 410 and the second VR device 420 respectively, wherein the short-range wireless communication method, for example, includes Wireless Fidelity (Wi-Fi) technology.

[0076] Among them, the description in this application only details a single first VR device 410, a single second VR device 420, and a terminal device 430, but those skilled in the art should understand that the illustrated first VR device 410, the second VR device 420, and the terminal device 430 are intended to represent the operations of the first VR device 410, the second VR device 420, and the terminal device 430 involved in the technical solution of this application. It does not imply a limitation on the number, type, or location of the first VR device 410, the second VR device 420, and the terminal device 430. It should be noted that if additional modules are added to the illustrated environment or individual modules are removed therefrom, the underlying concepts of the exemplary embodiments of this application will not be changed.

[0077] It should be noted that the virtual character control switching method proposed in this application is not only applicable to Figure 4 The application scenario shown is also applicable to any control switching device with a virtual character.

[0078] The following describes the control switching method of the virtual character in the exemplary implementation of the present application in combination with the application scenarios described above and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the methods and principles of the present application, and the implementation of the present application is not limited in this respect.

[0079] First, a brief introduction is given to the control switching method of the virtual character in the embodiment of the present application. Figure 5 As shown, it is a schematic diagram of the control switching of the virtual character, specifically: after user 1 establishes a connection with the target device through VR device 1, he opens SteamVR in the target device and enters the VR scene to control the virtual character. When user 1 wants user 2 to take over the control of the virtual character in the VR scene, user 1 sends an invitation to user 2 through the target device, inviting user 2 to take over the control of the virtual character in the VR scene. The target device establishes a connection with the VR device 2 of user 2, that is, a new audio and video, and posture control connection channel is established. User 2 takes over the control of the virtual character from user 1. The target device transmits the audio and video stream of user 2 in the VR scene to the audio and video data service, and the target device is disconnected from the VR device 1 of user 1. VR device 1 can establish a connection with the audio and video data service to receive the audio and video data of user 2 in the VR scene, that is, switch to the viewing mode.

[0080] Next, the control switching method of the virtual character in the embodiment of the present application is introduced. Figure 6 FIG. 1 is a flow chart of a method for controlling and switching a virtual character, which may include the following steps:

[0081] Step 600: the second VR device responds to the virtual character control switching instruction sent by the user and sends the virtual character control switching instruction to the target device;

[0082] Step 601: When the target device receives a virtual character control switching instruction, a first VR device is determined based on the virtual character control switching instruction;

[0083] The virtual character control switching instruction in the embodiment of the present application includes the user identification of the invited user, and the VR device used by the user corresponding to the user identification is determined as the first VR device.

[0084] Step 602: The target device sends an invitation request to the first VR device; wherein the invitation request is used to request the first user using the first VR device to replace the second user using the second VR device to control the virtual character in the VR space;

[0085] Step 603: After receiving the invitation request, the first VR device sends a confirmation message to the target device to accept the invitation request;

[0086] Step 604: the target device sends an instruction to the second VR device to obtain an exit posture of the second user who uses the second VR device when ending control of the virtual character in the VR space;

[0087] Step 605: After receiving the instruction, the second VR device sends the exit posture to the target device;

[0088] Step 606: After receiving the exit posture, the target device sends the exit posture to the first VR device;

[0089] In one embodiment, after receiving the exit posture, the target device disconnects from the second VR device and stops updating the second user's control over the virtual character in the VR scene.

[0090] In the embodiment of the present application, the target device stops updating the posture information to SteamVR, and SteamVR will use the exit posture to refresh the picture in the VR scene. At this time, the picture in the VR scene will remain in place.

[0091] Step 607: The first VR device obtains a posture conversion relationship using the exit posture;

[0092] Next, the method for determining the posture conversion relationship in the embodiment of the present application is described. Figure 7 As shown, it is a schematic diagram of a process for determining a posture conversion relationship, which may include the following steps:

[0093] Step 701: After the first VR device receives the exit posture sent by the target device, the second current posture of the first user is obtained;

[0094] Step 702: Utilize the second current posture and the exit posture to obtain the posture conversion relationship.

[0095] The posture conversion relationship can be obtained by formula (1):

[0096] P W =T×P C ……(1);

[0097] Among them, P C is the second current pose, P W is the exit posture, and T is the posture conversion relationship.

[0098] The exit posture in the embodiment of the present application is the actual physical posture or virtual posture of the second user in the world coordinate system corresponding to the VR space when the second user ends the control of the virtual character in the VR space; and the second current posture is the current actual physical posture or current virtual posture of the first user in the world coordinate system corresponding to the VR space.

[0099] In one implementation, the posture conversion relationship can be obtained by the following four methods:

[0100] Method 1: Utilize the actual physical posture of the second user in the world coordinate system corresponding to the VR space when the second user ends controlling the virtual character in the VR space and the current actual physical posture of the first user in the world coordinate system corresponding to the VR space to obtain the posture conversion relationship.

[0101] Method 2: Utilize the virtual posture of the second user in the world coordinate system corresponding to the VR space when the second user ends the control of the virtual character in the VR space and the current actual physical posture of the first user in the world coordinate system corresponding to the VR space to obtain the posture conversion relationship.

[0102] Method three: Utilize the virtual posture of the second user in the world coordinate system corresponding to the VR space when the second user ends controlling the virtual character in the VR space and the current virtual posture of the first user in the world coordinate system corresponding to the VR space to obtain the posture conversion relationship.

[0103] Method 4: Utilize the actual physical posture of the second user in the world coordinate system corresponding to the VR space when the second user ends controlling the virtual character in the VR space and the current virtual posture of the first user in the world coordinate system corresponding to the VR space to obtain the posture conversion relationship.

[0104] It should be noted that the contents in Methods 1 to 4 can all obtain the corresponding posture transformation relationship based on formula (1).

[0105] Step 608: The first VR device establishes a connection with the target device, and periodically obtains the first current posture of the first user;

[0106] The duration of the period acquisition in the embodiment of the present application may be 0.1 second or 1 second, etc. The specific value may be set according to the actual situation, and the embodiment of the present application does not limit the specific value of the period.

[0107] Step 609: for any first current posture, the first VR device performs posture transformation on the first current posture using the posture transformation relationship to obtain a target posture of the first user;

[0108] In the embodiment of the present application, the first current posture is the current actual physical posture or the current virtual posture of the first user in the world coordinate system corresponding to the VR space, and the first current posture is of the same type as the second current posture.

[0109] In one embodiment, step 609 can be specifically implemented in the following four ways:

[0110] Method 1: If the posture conversion relationship is obtained by using the actual physical posture of the second user in the world coordinate system corresponding to the VR space when the second user ends the control of the virtual character in the VR space and the current actual physical posture of the first user in the world coordinate system corresponding to the VR space, then the first current posture is transformed by using the posture conversion relationship to obtain the intermediate posture of the first user, and the intermediate posture of the first user is transformed by using a pre-set standard posture conversion matrix of the actual physical posture and virtual posture corresponding to the same user to obtain the target posture.

[0111] Since the first current posture and the second current posture are of the same type, and the second current posture of method one is an actual physical posture, the first current posture in this method is the actual physical posture in the world coordinate system corresponding to the VR space, and the intermediate posture is the actual physical posture.

[0112] In one embodiment, the matrix corresponding to the posture conversion relationship is multiplied with the matrix corresponding to the first current posture to obtain the intermediate posture of the first user, and the standard posture conversion matrix is ​​multiplied with the matrix corresponding to the intermediate posture to obtain the target posture.

[0113] Method 2: If the posture conversion relationship is obtained by using the actual physical posture of the second user in the world coordinate system corresponding to the VR space when the second user ends the control of the virtual character in the VR space and the current virtual posture of the first user in the world coordinate system corresponding to the VR space, then the first current posture is transformed by using the posture conversion relationship to obtain the intermediate posture of the first user, and the intermediate posture of the first user is transformed by using a pre-set standard posture conversion matrix of the actual physical posture and virtual posture corresponding to the same user to obtain the target posture.

[0114] Since the second current posture in the second method is a virtual posture, the first current posture in the second method is a virtual position. The intermediate posture is the actual physical posture.

[0115] The method of determining the intermediate posture and determining the target position in the embodiment of the present application is the same as the method in method one, and the embodiment of the present application will not be repeated here.

[0116] Method three: If the posture conversion relationship utilizes the virtual posture of the second user in the world coordinate system corresponding to the VR space when the second user ends the control of the virtual character in the VR space and the current actual physical posture of the first user in the world coordinate system corresponding to the VR space, then the first current posture is transformed using the posture conversion relationship to obtain the target posture of the first user.

[0117] Since the second current posture in the method three is the actual physical posture, the first current posture in the method three is the actual physical posture.

[0118] In one embodiment, a matrix corresponding to the posture conversion relationship is multiplied by a matrix corresponding to the first current posture to obtain a target posture of the first user.

[0119] Method 4: If the posture conversion relationship is obtained by using the virtual posture of the second user in the world coordinate system corresponding to the VR space when the second user ends the control of the virtual character in the VR space and the current virtual posture of the first user in the world coordinate system corresponding to the VR space, then the first current posture is transformed by using the posture conversion relationship to obtain the target posture of the first user.

[0120] Since the second current posture in method four is a virtual posture, the first current posture in method four is a virtual position.

[0121] The method of determining the target posture in the implementation of this application is the same as that in method three, and the embodiment of this application will not be repeated here.

[0122] Step 610: The first VR device sends the target posture to the target device;

[0123] Step 611: After receiving the target posture sent by the first VR device, the target device uses the target posture of the first user to control the virtual character in the VR space.

[0124] The target device in the embodiment of the present application continues to send posture information (target posture) to SteamVR, and SteamVR updates the picture in the VR scene according to the target posture.

[0125] Based on the same inventive concept, the embodiment of the present application also provides a virtual character switching control method, such as Figure 8 FIG. 1 is a flow chart of a virtual character switching control method, which may specifically include the following steps:

[0126] Step 801: the second VR device sends the virtual character control switching instruction to the target device in response to the virtual character control switching instruction sent by the user;

[0127] Step 802: When the target device receives the virtual character control switching instruction, the target device determines the first VR device based on the virtual character control switching instruction;

[0128] Step 803: the target device sends an invitation request to the first VR device; wherein the invitation request is used to request the first user using the first VR device to replace the second user using the second VR device to control the virtual character in the VR space;

[0129] Step 804: After receiving the invitation request, the first VR device sends a confirmation message to the target device to accept the invitation request;

[0130] Step 805: The target device sends an instruction to the second VR device to obtain an exit posture of the second user using the second VR device when ending control of the virtual character in the VR space.

[0131] Step 806: The second VR device sends the exit posture to the target device;

[0132] Step 807: The target device sends the exit posture to the first VR device;

[0133] Step 808: The first VR device obtains a posture conversion relationship using the exit posture;

[0134] Step 809: The first VR device sends the posture conversion relationship to the target device;

[0135] Step 810: The first VR device establishes a connection with the target device, and periodically obtains the first current posture of the first user;

[0136] Step 811: The first VR device sends the first current posture to the target device;

[0137] Step 812: When the target device receives the first current posture sent by the first VR device, the first current posture is transformed using the posture transformation relationship, and after obtaining the target posture of the first user, the target posture of the first user is used to control the virtual character in the VR space.

[0138] The method in steps 801 to 812 in the embodiment of the present application is the same as the method in steps 600 to 611 described above except that the execution entities of some steps are different. The rest of the methods are the same as the methods in steps 600 to 611. Therefore, the embodiment of the present application will not be repeated here.

[0139] Based on the same inventive concept, the virtual character control switching method disclosed above can also be implemented by a virtual character control switching device. The effect of the virtual character control switching device is similar to that of the aforementioned method, and will not be described in detail here.

[0140] Fig. 9 The figure is a schematic diagram of the structure of a control switching device for a virtual character according to an embodiment of the present disclosure.

[0141] like Fig. 9 As shown, the control switching device 900 of the virtual character disclosed in the present invention may include a first pose acquisition module 910 , a first pose conversion module 920 and a first target pose sending module 930 .

[0142] The first posture acquisition module 910 is used to periodically acquire the first current posture of the first user after the first user confirms to accept the invitation request sent by the target device through the first VR device and establishes a connection with the target device, wherein the invitation request is used to request the first user using the first VR device to replace the second user using the second VR device to control the virtual character in the VR space;

[0143] A first posture conversion module 920 is used to perform posture conversion on any first current posture using a posture conversion relationship to obtain a target posture of the first user, wherein the posture conversion relationship is determined by using an exit posture of the second user using the second VR device when the second user ends controlling the virtual character in the VR space;

[0144] The first target posture sending module 930 is used to send the target posture of the first user to a target device, so that the target device uses the target posture of the first user to control the virtual character in the VR space.

[0145] like Fig.10 As shown, it is another structural schematic diagram of the control switching device of a virtual character according to an embodiment of the present disclosure. The control switching device 1000 of the virtual character of the present disclosure may include a first device determination module 1010, a first exit posture acquisition module 1020, a first exit posture sending module 1030 and a control module 1040.

[0146] A first device determining module 1010 is configured to determine a first VR device based on a virtual character control switching instruction when receiving the virtual character control switching instruction;

[0147] The first exit posture acquisition module 1020 is used to send an invitation request to the first VR device, and after receiving a confirmation of acceptance of the invitation request sent by the first VR device, obtain an exit posture of the second user using the second VR device when ending control of the virtual character in the VR space, wherein the invitation request is used to request the first user of the first VR device to replace the second user of the second VR device to control the virtual character in the VR space;

[0148] A first exit posture sending module 1030 is used to send the exit posture to the first VR device, so that the first VR device obtains a posture conversion relationship using the exit posture, and after establishing a connection with the target device, obtains a first current posture of a first user using the first VR device for any period, and performs posture conversion on the first current posture using the posture conversion relationship to obtain a target posture of the first user;

[0149] The control module 1040 is used to receive the target posture of the first user sent by the first VR device, and use the target posture of the first user to control the virtual character in the VR space.

[0150] like Fig.11 , which is another structural diagram of a control switching device for a virtual character according to an embodiment of the present disclosure, the control switching device 1100 for a virtual character of the present disclosure may include a second posture acquisition module 1110 and a current posture sending module 1120 .

[0151] The second posture acquisition module 1110 is used to periodically acquire the first current posture of the first user after the first user confirms acceptance of the invitation request sent by the target device through the first VR device and establishes a connection with the target device, wherein the invitation request is used to request the first user using the first VR device to replace the second user using the second VR device to control the virtual character in the VR space;

[0152] The current posture sending module 1120 is used to send the first current posture to the target device for any first current posture, so that the target device uses the posture conversion relationship to perform posture conversion on the first current posture, and after obtaining the target posture of the first user, the target posture of the first user is used to control the virtual character in the VR space; wherein the posture conversion relationship is determined by the exit posture of the second user using the second VR device when the control of the virtual character in the VR space ends.

[0153] like Fig.12 As shown, it is another structural schematic diagram of the control switching device of the virtual character according to an embodiment of the present disclosure. The control switching device 1200 of the virtual character of the present disclosure may include a second device determination module 1210, a second exit posture acquisition module 1220, a first exit posture sending module 1230 and a second posture conversion module 1240.

[0154] The second device determination module 1210 is configured to determine the first VR device based on the virtual character control switching instruction when receiving the virtual character control switching instruction;

[0155] The second exit posture acquisition module 1220 is used to send an invitation request to the first VR device, and after receiving a confirmation of acceptance of the invitation request sent by the first VR device, obtain an exit posture of the second user using the second VR device when ending control of the virtual character in the VR space, wherein the invitation request is used to request the first user using the first VR device to replace the second user using the second VR device to control the virtual character in the VR space;

[0156] A first exit posture sending module 1230, configured to send the exit posture to the first VR device, so that the first VR device can obtain a posture conversion relationship using the exit posture;

[0157] The second posture conversion module 1240 is used to receive the posture conversion relationship sent by the first VR device, and when receiving the first current posture sent by the first VR device, use the posture conversion relationship to perform posture conversion on the first current posture, and after obtaining the target posture of the first user, use the target posture of the first user to control the virtual character in the VR space.

[0158] After introducing a method and device for controlling switching of a virtual character according to an exemplary embodiment of the present invention, an electronic device according to another exemplary embodiment of the present invention is introduced next. The electronic device in the embodiment of the present application includes a VR device or a terminal device.

[0159] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".

[0160] In some possible implementations, the electronic device according to the present invention may include at least one processor and at least one computer storage medium. The computer storage medium stores program code, and when the program code is executed by the processor, the processor executes the steps of the control switching method of the virtual character according to various exemplary embodiments of the present invention described above in this specification. For example, the processor may execute the following steps: Figure 6 Steps 600-611 and / or Figure 8 Steps 801-812 shown in .

[0161] Refer to the following Fig.13 An electronic device 1300 according to this embodiment of the present invention is described. Fig.13 The electronic device 1300 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0162] like Fig.13 As shown, the electronic device 1300 is in the form of a general electronic device. The components of the electronic device 1300 may include but are not limited to: the at least one processor 1301, the at least one computer storage medium 1302, and a bus 1303 connecting different system components (including the computer storage medium 1302 and the processor 1301).

[0163] Bus 1303 represents one or more of several types of bus structures, including a computer storage media bus or computer storage media controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.

[0164] Computer storage media 1302 may include readable media in the form of volatile computer storage media, such as random access computer storage media (RAM) 1321 and / or cache storage media 1322 , and may further include read-only computer storage media (ROM) 1323 .

[0165] The computer storage medium 1302 may also include a program / utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0166] The electronic device 1300 may also communicate with one or more external devices 1304 (e.g., keyboards, pointing devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1300, and / or communicate with any device that enables the electronic device 1300 to communicate with one or more other electronic devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1305. Furthermore, the electronic device 1300 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 1306. As shown, the network adapter 1306 communicates with other modules for the electronic device 1300 via a bus 1303. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1300, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0167] In some possible implementations, various aspects of a method for controlling switching a virtual character provided by the present invention may also be implemented in the form of a program product, which includes a program code. When the program product runs on a computer device, the program code is used to enable the computer device to execute the steps of the method for controlling switching a virtual character according to various exemplary embodiments of the present invention described above in this specification.

[0168] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A control switching method for a virtual character, characterized in that: Applied to a first VR device, the method includes: When the first user confirms acceptance of the invitation request sent by the target device through the first VR device and establishes a connection with the target device, periodically obtaining the first current posture of the first user, wherein the invitation request is used to request the first user using the first VR device to replace the second user using the second VR device to control the virtual character in the VR space; For any first current posture, perform posture transformation on the first current posture using a posture transformation relationship to obtain a target posture of the first user, wherein the posture transformation relationship is determined using an exit posture of the second user using the second VR device when the second user ends controlling the virtual character in the VR space; The target posture of the first user is sent to a target device, so that the target device controls the virtual character in the VR space using the target posture of the first user.

2. The method according to claim 1, characterized in that: After the first user confirms acceptance of the invitation request sent by the target device through the first VR device and before establishing a connection with the target device, the method further includes: When the first VR device receives the exit posture sent by the target device, acquiring the second current posture of the first user; The posture conversion relationship is obtained by using the second current posture and the exit posture.

3. The method according to claim 2, characterized in that The exit posture is an actual physical posture or a virtual posture in a world coordinate system corresponding to the VR space when the second user ends controlling the virtual character in the VR space; and the second current posture is a current actual physical posture or a current virtual posture in a world coordinate system corresponding to the VR space of the first user; The step of obtaining the posture conversion relationship by using the second current posture and the exit posture includes: The posture conversion relationship is obtained by using the actual physical posture of the second user in the world coordinate system corresponding to the VR space when the second user ends controlling the virtual character in the VR space and the current actual physical posture of the first user in the world coordinate system corresponding to the VR space; or, The posture conversion relationship is obtained by using the virtual posture of the second user in the world coordinate system corresponding to the VR space when the second user ends controlling the virtual character in the VR space and the current actual physical posture of the first user in the world coordinate system corresponding to the VR space; or, The posture conversion relationship is obtained by using the virtual posture of the second user in the world coordinate system corresponding to the VR space when the second user ends controlling the virtual character in the VR space and the current virtual posture of the first user in the world coordinate system corresponding to the VR space; or, The posture conversion relationship is obtained by using the actual physical posture of the second user in the world coordinate system corresponding to the VR space when the second user ends controlling the virtual character in the VR space and the current virtual posture of the first user in the world coordinate system corresponding to the VR space.

4. The method according to claim 2 or 3, characterized in that: The step of obtaining the posture conversion relationship by using the second current posture and the exit posture includes: The posture conversion relationship is obtained by the following formula: P W =T×P C ; Among them, P C is the second current pose, P W is the exit posture, and T is the posture conversion relationship.

5. The method according to claim 3, characterized in that: The first current posture is a current actual physical posture or a current virtual posture of the first user in a world coordinate system corresponding to the VR space, and the first current posture is of the same type as the second current posture; Performing posture transformation on the first current posture by using the posture transformation relationship to obtain a target posture of the first user includes: If the posture conversion relationship is obtained by using the actual physical posture of the second user in the world coordinate system corresponding to the VR space when the second user ends the control of the virtual character in the VR space and the current actual physical posture of the first user in the world coordinate system corresponding to the VR space, or by using the actual physical posture of the second user in the world coordinate system corresponding to the VR space when the second user ends the control of the virtual character in the VR space and the current virtual posture of the first user in the world coordinate system corresponding to the VR space, then the first current posture is posture converted by using the posture conversion relationship to obtain the intermediate posture of the first user, and the intermediate posture of the first user is posture converted by using a preset standard posture conversion matrix of the actual physical posture and virtual posture corresponding to the same user to obtain the target posture; or, If the posture conversion relationship is obtained by using the virtual posture of the second user in the world coordinate system corresponding to the VR space when the control of the virtual character in the VR space is ended and the current actual physical posture of the first user in the world coordinate system corresponding to the VR space, or by using the virtual posture of the second user in the world coordinate system corresponding to the VR space when the control of the virtual character in the VR space is ended and the current virtual posture of the first user in the world coordinate system corresponding to the VR space, then the first current posture is transformed by using the posture conversion relationship to obtain the target posture of the first user.

6. A method for controlling and switching a virtual character, characterized in that: Applied to a target device, the method comprises: When receiving a virtual character control switching instruction, determining a first VR device based on the virtual character control switching instruction; Sending an invitation request to the first VR device, and after receiving a confirmation of acceptance of the invitation request sent by the first VR device, obtaining an exit posture of a second user using a second VR device when ending control of a virtual character in the VR space, wherein the invitation request is used to request the first user of the first VR device to replace the second user of the second VR device to control the virtual character in the VR space; The exit posture is sent to the first VR device, so that the first VR device obtains a posture conversion relationship by using the exit posture, and after establishing a connection with the target device, obtains a first current posture of a first user using the first VR device for any period, and performs posture conversion on the first current posture by using the posture conversion relationship to obtain a target posture of the first user; Receive the target posture of the first user sent by the first VR device, and use the target posture of the first user to control the virtual character in the VR space.

7. A method for controlling and switching a virtual character, characterized in that: Applied to a first VR device, the method includes: When the first user confirms acceptance of the invitation request sent by the target device through the first VR device and establishes a connection with the target device, periodically obtaining the first current posture of the first user, wherein the invitation request is used to request the first user using the first VR device to replace the second user using the second VR device to control the virtual character in the VR space; For any first current posture, the first current posture is sent to the target device, so that the target device uses a posture conversion relationship to perform posture conversion on the first current posture, and after obtaining the target posture of the first user, the target posture of the first user is used to control the virtual character in the VR space; wherein the posture conversion relationship is determined by the exit posture of the second user using the second VR device when the control of the virtual character in the VR space ends.

8. A method for controlling and switching a virtual character, characterized in that: Applied to a target device, the method comprises: When receiving a virtual character control switching instruction, determining a first VR device based on the virtual character control switching instruction; Sending an invitation request to the first VR device, and after receiving a confirmation of acceptance of the invitation request sent by the first VR device, obtaining an exit posture of the second user using the second VR device when ending control of the virtual character in the VR space, wherein the invitation request is used to request the first user using the first VR device to replace the second user using the second VR device to control the virtual character in the VR space; Sending the exit posture to the first VR device so that the first VR device can obtain a posture conversion relationship using the exit posture; The posture conversion relationship sent by the first VR device is received, and when the first current posture sent by the first VR device is received, the first current posture is transformed by using the posture conversion relationship, and after obtaining the target posture of the first user, the target posture of the first user is used to control the virtual character in the VR space.

9. A first VR device, characterized in that: comprising a processor and a memory, wherein the processor and the memory are connected via a bus; The memory stores a computer program, and the processor is configured to perform the following operations based on the computer program: When the first user confirms acceptance of the invitation request sent by the target device through the first VR device and establishes a connection with the target device, periodically obtaining the first current posture of the first user, wherein the invitation request is used to request the first user using the first VR device to replace the second user using the second VR device to control the virtual character in the VR space; For any first current posture, perform posture transformation on the first current posture using a posture transformation relationship to obtain a target posture of the first user, wherein the posture transformation relationship is determined using an exit posture of the second user using the second VR device when the second user ends controlling the virtual character in the VR space; The target posture of the first user is sent to a target device, so that the target device controls the virtual character in the VR space using the target posture of the first user.

10. A device, characterized in that: comprising a processor and a memory, wherein the processor and the memory are connected via a bus; The memory stores a computer program, and the processor is configured to perform the following operations based on the computer program: When receiving a virtual character control switching instruction, determining a first VR device based on the virtual character control switching instruction; Sending an invitation request to the first VR device, and after receiving a confirmation of acceptance of the invitation request sent by the first VR device, obtaining an exit posture of a second user using a second VR device when ending control of a virtual character in the VR space, wherein the invitation request is used to request the first user of the first VR device to replace the second user of the second VR device to control the virtual character in the VR space; The exit posture is sent to the first VR device, so that the first VR device obtains a posture conversion relationship by using the exit posture, and after establishing a connection with the target device, obtains a first current posture of a first user using the first VR device for any period, and performs posture conversion on the first current posture by using the posture conversion relationship to obtain a target posture of the first user; Receive the target posture of the first user sent by the first VR device, and use the target posture of the first user to control the virtual character in the VR space.