Disclosure of Invention
In order to solve the problem of cloud game VR compatibility, the application provides a cloud game VR control method. The application also relates to a VR controlling means of cloud recreation.
The application provides a VR control method of a cloud game, which comprises the following steps:
determining the type of equipment, establishing virtual VR equipment at a server according to the type of the equipment, and starting a cloud game based on the virtual VR equipment;
acquiring control data of a client, performing protocol conversion on the control data according to the equipment type, sending the control data to the cloud game, and performing game control;
and obtaining game feedback according to the game manipulation, and returning the feedback to the client.
Optionally, the determining the device type includes:
and determining whether the equipment is VR equipment or ordinary equipment, judging the type of the VR equipment if the equipment is VR equipment, and judging the type of the ordinary equipment if the equipment is ordinary equipment.
Optionally, after determining the type of the generic device, the method further includes: and creating a virtual key, and using the virtual key as a VR control key.
Optionally, the input device of the general device includes: a handle, a mouse, or a keyboard.
Optionally, before returning the feedback to the client, the method further includes:
and judging whether the client supports the feedback, if so, performing feedback operation according to the feedback, and if not, not processing the feedback.
The application also provides a VR controlling means of cloud recreation, includes:
the determining module is used for determining the type of equipment, establishing virtual VR equipment at a server according to the type of the equipment, and starting a cloud game based on the virtual VR equipment;
the control module is used for acquiring control data of a client, performing protocol conversion on the control data according to the equipment type, sending the control data to the cloud game and performing game control;
and the feedback module is used for obtaining game feedback according to the game control and returning the feedback to the client.
Optionally, the determining the device type includes:
and determining whether the equipment is VR equipment or ordinary equipment, judging the type of the VR equipment if the equipment is VR equipment, and judging the type of the ordinary equipment if the equipment is ordinary equipment.
Optionally, after determining the type of the generic device, the method further includes: and creating a virtual key, and using the virtual key as a VR control key.
Optionally, the input device of the general device includes: a handle, a mouse, or a keyboard.
Optionally, before returning the feedback to the client, the method further includes:
and judging whether the client supports the feedback, if so, performing feedback operation according to the feedback, and if not, not processing the feedback.
Compared with the prior art, the application has the advantages that:
the application provides a VR control method of a cloud game, which comprises the following steps: determining the type of equipment, establishing simulated VR equipment at a server according to the type of the equipment, and starting a cloud game based on the simulated VR equipment; acquiring control data of a client, performing protocol conversion on the control data according to the equipment type and the simulated VR equipment, sending the control data to the cloud game, and performing game control; and obtaining game feedback according to the game control, and returning the feedback to the client. This application is through simulation VR equipment and protocol conversion for different kind VR equipment, ordinary input device can carry out VR game control even, has greatly expanded the operation suitability of VR cloud recreation.
Detailed Description
The following is an example of specific implementation procedures provided for explaining the technical solutions to be protected in the present application in detail, but the present application may also be implemented in other ways than those described herein, and a person skilled in the art may implement the present application by using different technical means under the guidance of the idea of the present application, so that the present application is not limited by the following specific embodiments.
The application provides a VR control method of a cloud game, which comprises the following steps: determining the type of equipment, establishing simulated VR equipment at a server according to the type of the equipment, and starting a cloud game based on the simulated VR equipment; acquiring control data of a client, performing protocol conversion on the control data according to the equipment type and the simulated VR equipment, sending the control data to the cloud game, and performing game control; and obtaining game feedback according to the game manipulation, and returning the feedback to the client. This application is through simulation VR equipment and protocol conversion for different kind VR equipment, ordinary input device can carry out VR game control even, has greatly expanded the operation suitability of VR cloud recreation.
Fig. 1 is a flowchart of VR control for cloud games.
Referring to fig. 1, in S101, a device type is determined, a simulated VR device is established at a server according to the device type, and a cloud game is started based on the simulated VR device.
The device type refers to a device type of a client, and the client may be a VR device or a general device, such as a computer, a smart phone, or a tablet. When the device type is a normal device, a virtual VR device type needs to be selected. The virtual VR device type is preset, that is, when the VR device is a general device, it is determined that the device type is a preset virtual VR device type.
The difference in the types of devices may result in a difference in control input instructions, which may also be referred to as control data.
Specifically, whether equipment is VR equipment or ordinary equipment is determined, if the equipment is the VR equipment, the type of the VR equipment is judged, and if the equipment is the ordinary equipment, the type of the ordinary equipment is judged. The input device of the general apparatus includes: a handle, a mouse, or a keyboard.
When the equipment is VR equipment, determining the calling mode and the format of the operation data of the VR equipment according to the type of the VR equipment, and acquiring equipment information such as keys, electric quantity and positions of the VR equipment. The device information of the location is used to match the real location with a location in the VR. And then uploading the equipment information to a server.
If the equipment is ordinary equipment, determining the type of the virtual VR equipment according to the ordinary equipment, creating a virtual control key, determining equipment information such as the key, the electric quantity and the position of the virtual VR equipment type, and uploading the equipment information to a server.
And the server acquires the type information of the VR equipment or the virtual VR equipment, then creates a simulated VR equipment according to the type information, and finally starts and runs a VR game. Specifically, a plurality of simulated VR devices are created according to the amount of the type information.
Referring to fig. 1, in S102, control data of a client is obtained, and the control data is subjected to protocol conversion according to the device type and the simulated VR device, and is sent to the cloud game for game manipulation.
The client comprises the VR equipment or common equipment, and receives control data input by a user and sends the control data to the server. The control data is input into the game after protocol conversion in the server, and the control of the game is realized.
Fig. 2 is a schematic diagram of client device type determination in the present application.
Referring to fig. 2, specifically, one cloud game can satisfy the use of multiple clients at the same time. In the application, each type of client creates a corresponding simulated VR device in the server, and the same type of client can be realized by running a plurality of processes through one simulated VR device. In this embodiment, an implementation manner is further provided, where each user side correspondingly creates one virtual VR device.
In the application, when each simulation VR device runs the VR game, the game progress can be read according to the account information of the user, so that the actual progress of the game cannot be influenced by the conversion login among different devices.
And when the simulated VR equipment runs a game, the control data sent by the client can be received by the server, and the control data carries out protocol conversion according to the client and the simulated VR equipment corresponding to the client. Preferably, a protocol conversion algorithm is further provided between each client and the corresponding analog VR device, and the algorithm performs protocol conversion on the received control data and sets a control instruction corresponding to the control data. The specific operation mode is that control data is input through the client key, and after protocol conversion is carried out on the control data, the control data is associated with the control instruction of the cloud game, so that the mapping relation between the control data and the control instruction can be customized, and the customized function is realized, and the customized function can be expressed as follows:
where B is a control instruction for the game,
is control data after protocol conversion, a is a tag of the virtual VR device, U is an instruction set of the control data before protocol conversion, and W is an instruction set of the control data after conversion. The above-mentioned
=
The x is a control instruction input by a user, the d is a game operation instruction label which can be customized, and after protocol conversion is carried out, the x is converted into the x according to the d
And deleting the d to realize protocol conversion.
And finally, executing a program task by the game according to the control instruction.
Referring to fig. 1, in S103, game feedback is obtained according to the game manipulation, and the feedback is returned to the client.
The game feedback includes: vibration and/or sound, and the like, when the game program executes the control instruction, feedback information is sent out, and the feedback information is returned to the client side to carry out corresponding feedback operation.
Specifically, the server performs reverse protocol conversion on the feedback information, and then determines whether the client has a feedback execution capability, if so, performs a feedback operation according to the feedback, and if not, does not process the feedback.
The application also provides a VR controlling means of cloud recreation, includes: adetermination module 301, acontrol module 302, and afeedback module 303.
Fig. 3 is a schematic diagram of a VR controller of a cloud game in the present application.
Referring to fig. 3, the determiningmodule 301 is configured to determine a device type, establish a simulated VR device at a server according to the device type, and start a cloud game based on the simulated VR device.
The device type refers to a device type of a client, and the client may be a VR device or a general device, such as a computer, a smart phone, or a tablet. When the device type is a normal device, a virtual VR device type needs to be selected. The virtual VR device type is preset, that is, when the VR device is a general device, it is determined that the device type is a preset virtual VR device type.
The difference in the types of devices may result in a difference in control input instructions, which may also be referred to as control data.
Specifically, whether the equipment is VR equipment or ordinary equipment is determined, if the equipment is VR equipment, the type of the VR equipment is judged, and if the equipment is ordinary equipment, the type of the ordinary equipment is judged. The input device of the general apparatus includes: a handle, a mouse, or a keyboard.
When the equipment is VR equipment, determining the calling mode and the format of the operation data of the VR equipment according to the type of the VR equipment, and acquiring equipment information such as keys, electric quantity and positions of the VR equipment. The device information of the location is used to match the real location with a location in the VR. And then uploading the equipment information to a server.
If the equipment is ordinary equipment, determining the type of the virtual VR equipment according to the ordinary equipment, creating a virtual control key, determining equipment information such as the key, the electric quantity and the position of the virtual VR equipment type, and uploading the equipment information to a server.
And the server acquires the type information of the VR equipment or the virtual VR equipment, then creates a simulated VR equipment according to the type information, and finally starts and runs a VR game. Specifically, a plurality of simulated VR devices are created according to the amount of the type information.
Referring to fig. 3, thecontrol module 302 is configured to obtain control data of a client, perform protocol conversion on the control data according to the device type and the simulated VR device, and send the control data to the cloud game for game control.
The client comprises the VR equipment or common equipment, and receives control data input by a user and sends the control data to the server. The control data is input into the game after protocol conversion in the server, and the control of the game is realized.
Fig. 2 is a schematic diagram of client device type determination in the present application.
Referring to fig. 2, specifically, one cloud game can satisfy the use of multiple clients at the same time. In the application, each type of client creates a corresponding simulated VR device in the server, and the same type of client can be realized by running a plurality of processes through one simulated VR device. In this embodiment, an implementation manner is further provided, where each user side correspondingly creates one virtual VR device.
In the application, when each simulation VR device runs the VR game, the game progress can be read according to the account information of the user, so that the actual progress of the game cannot be influenced by the conversion login among different devices.
And when the simulation VR equipment runs a game, the control data sent by the client can be received through the server, and the control data carries out protocol conversion according to the client and the simulation VR equipment corresponding to the client. Preferably, a protocol conversion algorithm is further provided between each client and the corresponding analog VR device, and the algorithm performs protocol conversion on the received control data and sets a control instruction corresponding to the control data. The specific operation mode is that control data is input through the client-side keys, and after protocol conversion is carried out on the control data, the control data is associated with the control instruction of the cloud game, so that the mapping relation between the control data and the control instruction can be customized, and the customized function is realized.
And finally, executing a program task by the game according to the control instruction.
Referring to fig. 1, thefeedback module 303 is configured to obtain game feedback according to the game manipulation and return the feedback to the client.
The game feedback includes: vibration and/or sound, and the like, when the game program executes the control instruction, feedback information is sent out, and the feedback information is returned to the client side to carry out corresponding feedback operation.
Specifically, the server performs reverse protocol conversion on the feedback information, and then determines whether the client has feedback execution capability, if so, performs feedback operation according to the feedback, and if not, does not process the feedback.