Control method and device for converting first-person game into VR game and electronic equipment

By acquiring and transforming the operation data of the game controller and head-mounted display device to generate binocular parallax images, it solves the problem of first-person game images being limited to fixed displays and improves the VR game experience.

CN118787945APending Publication Date: 2024-10-18CHINA MOBILE GRP GUANGDONG CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410777125.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The current first-person games use external game controllers to input the perspective and movement direction, which results in the game screen being limited to a fixed display screen, affecting the user's gaming experience.

Method used

The operation data of the game controller and the head-mounted display device are obtained through the signal receiver, and the data is converted into a control quantity based on the preset mapping relationship, and a binocular parallax image is generated and sent to the head-mounted display device for display to achieve a VR gaming experience.

Benefits of technology

Convert the original monocular game screen into a binocular 3D stereoscopic screen, providing a new gaming experience and improving user experience and immersion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118787945A_ABST
    Figure CN118787945A_ABST
Patent Text Reader

Abstract

The invention relates to a control method and device for converting a first-person game into a VR game and electronic equipment. The method comprises the following steps: starting game driving software of a first-person game; gamepad operation data of the gamepad and head-mounted display operation data of the head-mounted display device are obtained through the signal receiver; converting the handle operation data into a handle operation control quantity based on a preset mapping relation, and converting the head-mounted display operation data into a head-mounted display operation control quantity based on the preset mapping relation; a game picture generated by running of the first-person game is obtained, and the game picture is generated by controlling running of the first-person game based on the handle operation control quantity and the head-mounted display operation control quantity; generating a binocular parallax image based on the game picture; and sending the binocular parallax image to the head-mounted display device through the signal receiver for display. By adopting the method provided by the embodiment of the invention, the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and in particular to a control method, device and electronic device for converting a first-person game to a VR game. Background Art

[0002] In the related art, a first-person game refers to a game played from the user's subjective perspective. The user can experience the visual impact of the game in an immersive way, which greatly enhances the initiative and realism of the game. At present, the game character's viewing direction and movement direction are usually input through an external game controller to achieve input and control of the game. However, in this way, the game screen is limited to a fixed display screen, and the user can only rotate the viewing angle through a mouse or button, which will affect the user's gaming experience. Summary of the invention

[0003] The present disclosure provides a control method, device and electronic device for converting a first-person game to a VR game. The technical solution of the present disclosure is as follows:

[0004] According to a first aspect of an embodiment of the present disclosure, a control method for converting a first-person game to a VR game is provided, comprising:

[0005] Game driver software to enable first-person games;

[0006] Acquire the handle operation data of the game controller and the head display operation data of the head display device through the signal receiver;

[0007] Converting the handle operation data into a handle operation control amount based on a preset mapping relationship, and converting the head display operation data into a head display operation control amount based on the preset mapping relationship;

[0008] Acquire a game screen generated by running the first-person game, wherein the game screen is generated by controlling the running of the first-person game based on the handle operation control amount and the head display operation control amount;

[0009] Generate a binocular parallax image based on the game screen;

[0010] The binocular parallax image is sent to the head display device through the signal receiver for display.

[0011] In a possible implementation, generating a binocular parallax image based on the game screen includes:

[0012] The game screen is converted into a binocular parallax image through a deep learning method.

[0013] In a possible implementation, converting the game screen into a binocular parallax image by a deep learning method includes:

[0014] Using the game screen as a first display screen; wherein the first display screen is a left-eye display screen or a right-eye display screen;

[0015] Performing prediction processing on the game screen by a deep learning method to obtain a predicted depth image of the game screen;

[0016] Performing an offset process on the game screen according to the predicted depth image;

[0017] The depth image after the offset processing is interpolated and cropped to obtain the second display picture; wherein the second display picture is the display picture of the other eye.

[0018] In a possible implementation manner, the offset amount of the offset processing performed on the game screen according to the predicted depth image is calculated as follows:

[0019] Q=C·arctan(A / L) (1)

[0020] Among them, Q represents the offset of the pixel, C is a constant, A represents the user's eye distance, and L identifies the depth prediction value of the pixel.

[0021] In a possible implementation, the head display operation data includes data of a gyroscope, an accelerometer, and an electronic compass; and converting the head display operation data into a head display operation control amount based on the preset mapping relationship includes:

[0022] Perform Kalman fusion filtering on the data from gyroscope, accelerometer and electronic compass;

[0023] Calculating the attitude angle of the head display device based on the data of the gyroscope after Kalman fusion filtering; wherein the attitude angle includes yaw angle, pitch angle and roll angle;

[0024] Correcting the pitch angle and the roll angle based on the data of the accelerometer after Kalman fusion filtering; and correcting the yaw angle based on the data of the electronic compass;

[0025] Mapping the corrected posture angle to a head display operation control amount based on the preset mapping relationship;

[0026] The preset mapping relationship includes a mapping control corresponding to the game controller in the game driving software; and converting the controller operation data into a controller operation control amount based on the preset mapping relationship includes:

[0027] The handle operation data is mapped to a handle operation control amount for the mapping control based on the preset mapping relationship.

[0028] According to a second aspect of an embodiment of the present disclosure, a control system for converting a first-person game to a VR game includes a head display device, a game controller, a signal receiver, and a computer PC. The head display device and the game controller are connected to the signal receiver via a wireless network, and the signal receiver is connected to the PC. The PC is installed with game driver software for the first-person game; wherein:

[0029] The PC is used to start the game driver software of the first-person game;

[0030] The game controller is used to transmit the controller operation data to the game driver software;

[0031] The head display device is used to transmit the head display operation data to the game driver software;

[0032] The game driving software is used to convert the handle operation data into the handle operation control amount based on a preset mapping relationship, and to convert the head display operation data into the head display operation control amount based on the preset mapping relationship;

[0033] The game driver software is further configured to obtain a game screen generated by the operation of the first-person game, wherein the game screen is generated by controlling the operation of the first-person game based on the handle operation control amount and the head display operation control amount; and to generate a binocular parallax image based on the game screen; and send the binocular parallax image to the head display device;

[0034] The head display device is also used to display the binocular parallax image.

[0035] According to a third aspect of an embodiment of the present disclosure, a control device for converting a first-person game to a VR game is provided, characterized in that it includes:

[0036] A game startup module is used to start the game driver software of the first-person game;

[0037] A data acquisition module, used to acquire the handle operation data of the game controller and the head display operation data of the head display device through a signal receiver;

[0038] A data conversion module, used to convert the handle operation data into a handle operation control amount based on a preset mapping relationship, and to convert the head display operation data into a head display operation control amount based on the preset mapping relationship;

[0039] A screen generation module, used to obtain a game screen generated by the operation of the first-person game, wherein the game screen is generated by controlling the operation of the first-person game based on the handle operation control amount and the head display operation control amount;

[0040] An image generation module, used to generate a binocular parallax image based on the game screen;

[0041] An image display module is used to send the binocular parallax image to the head display device through the signal receiver for display.

[0042] According to a fourth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0043] processor;

[0044] a memory for storing instructions executable by the processor;

[0045] The processor is configured to execute the instructions to implement the method as described in any one of the first aspects.

[0046] According to a fifth aspect of an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute a method as described in any one of the first aspects.

[0047] According to a sixth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the method as described in any one of the first aspects is implemented.

[0048] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0049] In the disclosed embodiment, the game driver software of the first-person game is started; the handle operation data of the game controller and the head display operation data of the head display device are obtained through the signal receiver; the handle operation data is converted into the handle operation control amount based on the preset mapping relationship, and the head display operation data is converted into the head display operation control amount based on the preset mapping relationship; the game screen generated by the operation of the first-person game is obtained, wherein the game screen is generated based on the handle operation control amount and the head display operation control amount to control the operation of the first-person game; a binocular parallax image is generated based on the game screen; and the binocular parallax image is sent to the head display device through the signal receiver for display. In this way, the original monocular perspective game screen can be converted into a binocular 3D stereoscopic screen through the conversion of the game screen to the binocular parallax image, and the VR game effect can be achieved, that is, the native first-person game can be converted into a VR game, providing a new game experience, thereby improving the user experience.

[0050] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0052] Figure 1 It is a schematic diagram of a control system for converting a first-person game to a VR game provided by an embodiment of the present disclosure.

[0053] Figure 2 It is a flow chart of a control method for converting a first-person game to a VR game provided by an embodiment of the present disclosure.

[0054] Figure 3 This is a system operation diagram of a control system for converting a first-person game to a VR game provided by an embodiment of the present disclosure.

[0055] Figure 4 It is a schematic diagram of a head-mounted display device provided in an embodiment of the present disclosure.

[0056] Figure 5 It is a schematic diagram of a display screen of a head-mounted display device provided in an embodiment of the present disclosure.

[0057] Figure 6 It is a schematic diagram of an attitude angle of a head display device provided in an embodiment of the present disclosure.

[0058] Figure 7 It is a schematic diagram of a game controller provided in an embodiment of the present disclosure.

[0059] Figure 8 It is a schematic diagram of a game driver software UI provided by an embodiment of the present disclosure.

[0060] Fig. 9 It is a flow chart of a control method for converting a first-person game to a VR game provided by an embodiment of the present disclosure.

[0061] Fig.10 It is a block diagram of a control device for converting a first-person game to a VR game provided by an embodiment of the present disclosure.

[0062] Fig.11 It is a block diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0063] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0064] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure 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 data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0065] The control method, device and electronic device for converting a first-person game to a VR game provided by the embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0066] Figure 2 It is a flow chart of a control method for converting a first-person game to a VR game provided in an embodiment of the present disclosure. The control method for converting a first-person game to a VR game can be applied to the control system for converting a first-person game to a VR game provided in an embodiment of the present disclosure. Figure 1 Schematic diagram of a control system for converting a first-person game to a VR game provided by an embodiment of the present disclosure. Figure 1 As shown, the control system for converting the first-person game to a VR game (Virtual reality game) includes a head display device, a game controller, a signal receiver, and a game driver software for the first-person game installed on a computer PC. The head display device and the game controller are connected to the signal receiver via a wireless network, and the game controller can be one or two. The signal receiver is connected to the PC (Personal Computer) via a USB (Universal Serial Bus) interface, and the game driver software for the first-person game is installed on the PC.

[0067] In the embodiments of the present disclosure, wherein:

[0068] PC side, game driver software for launching first-person games;

[0069] A game controller, used to transmit the controller operation data to the game driver software;

[0070] A head-mounted display device, used to transmit head-mounted display operation data to the game driver software;

[0071] Game driver software, used to convert the handle operation data into the handle operation control amount based on a preset mapping relationship, and to convert the head display operation data into the head display operation control amount based on a preset mapping relationship;

[0072] The game driver software is further used to obtain a game screen generated by running a first-person game, wherein the game screen is generated by controlling the running of the first-person game based on the amount of handle operation control and the amount of head display operation control; and to generate a binocular parallax image based on the game screen; and send the binocular parallax image to the head display device;

[0073] The head-mounted display device is also used to display binocular parallax images.

[0074] In the embodiments of the present disclosure, see Figure 3 The system operation diagram of the control system for converting a first-person game to a VR game is shown. When the first-person game is started, the PC runs the game driver software, and the driver software checks whether the mouse, keyboard and other drivers are started normally, and waits for the device to be connected. The head display device and the game controller are powered on and detected and connected by the PC game driver software through the signal receiver. The driver software creates or loads an existing game mapping scheme (that is, a preset mapping relationship). After the PC starts the game, the game controller is started in the driver software to start the game. During the game, the sensor data and key signals (handle operation data and head display operation data) of the game controller and the head display device are transmitted to the PC game driver software (that is, the driver software) through the receiving module of the signal receiver. After the driver converter is converted into the game control amount (handle operation control amount and head display operation control amount) based on the preset mapping relationship through the mapping module, the driver converter controls the game through the driver module, for example, the game is controlled by the keyboard and mouse signal, such as the keyboard signal and the mouse signal. The PC game driver software then uses the image capture module to capture the game screen in real time, and uses the binocular parallax processing module to generate binocular parallax images in real time, which are then sent to the head-mounted display device for display through the signal receiver's sending module. If the control amount is found to be abnormal, the head-mounted display device can be removed at any time to adjust the control amount and mapping scheme.

[0075] As an example, a schematic diagram of a head mounted display device may be as follows: Figure 4 As shown, the head display device may include a display screen, a speaker, an optical lens module, a motion sensor, a switch button, a central processing unit, a data transmission module, and a power module.

[0076] When displaying the game screen, that is, when displaying the binocular parallax image, the display screen receives the game screen (i.e., binocular parallax image) from the PC in real time for display through the data transmission module. The speaker receives the PC audio data through the data transmission module and plays it in real time. There is an optical lens module in front of both eyes of the user to display the game screen (i.e., binocular parallax image) to the user. The game screen (i.e., binocular parallax image) displayed on the display screen forms an enlarged virtual image suitable for human eye observation through the optical lens module. The optical lens module can adjust the position of the virtual image, the eye axis distance, etc. to adapt to users with different vision or different eye distances. There are two display screens in the head display device, corresponding to the left eye screen and the right eye screen respectively. Among them, the screen of one eye can use the original game screen, and the screen of the other eye can use the processed game screen. For example, the left eye screen uses the original game screen, and the right eye screen uses the processed game screen.

[0077] In one possible implementation, the game driver software is used to convert the game screen into a binocular parallax image through a deep learning method.

[0078] In a further possible implementation, the game driver software is used to:

[0079] Using the game screen as the first display screen; wherein the first display screen is the left eye display screen or the right eye display screen;

[0080] Predicting the game screen by using a deep learning method to obtain a predicted depth image of the game screen;

[0081] Offset the game screen according to the predicted depth image;

[0082] The depth image after the offset processing is interpolated and cropped to obtain a second display picture; wherein the second display picture is a display picture of the other eye.

[0083] The calculation method of the offset amount of the game screen according to the predicted depth image is as follows:

[0084] Q=C·arctan(A / L) (1)

[0085] Among them, Q represents the offset of the pixel, C is a constant, A represents the user's eye distance, and L identifies the depth prediction value of the pixel.

[0086] In the embodiments of the present disclosure, the game screen can be converted into a binocular parallax image by a deep learning method. For example, the game screen can be used as the first display screen, the first display screen is the left eye display screen or the right eye display screen, and the display screen of the other eye can be obtained by the following method, see Figure 5, taking the production method of the right eye picture as an example, it can be as follows:

[0087] (1) Predicting a depth image of the game screen through deep learning, that is, predicting the game screen through a deep learning method to obtain a predicted depth image of the game screen.

[0088] (2) The game screen is offset according to the predicted depth image. For example, pixels that are close are offset to the left by a larger margin, and pixels that are far away are offset to the left by a smaller margin. The offset Q of a specific pixel can be calculated using formula (1).

[0089] Q=C·arctan(A / L) (1)

[0090] Among them, Q represents the offset of the pixel, C is a constant, A represents the user's eye distance, and L identifies the depth prediction value of the pixel.

[0091] (3) Interpolate and crop the offset image to form a complete right eye image.

[0092] In one possible implementation, the head display operation data includes data of a gyroscope, an accelerometer, an electronic compass, and game driver software, which is used to:

[0093] Perform Kalman fusion filtering on the data from gyroscope, accelerometer and electronic compass;

[0094] Calculate the attitude angle of the head-mounted display device based on the data of the gyroscope after Kalman fusion filtering; wherein the attitude angle includes yaw angle, pitch angle and roll angle;

[0095] Correcting the pitch angle and roll angle based on the data of the accelerometer after Kalman fusion filtering; and correcting the yaw angle based on the data of the electronic compass;

[0096] Mapping the corrected posture angle to a head display operation control amount based on a preset mapping relationship;

[0097] And, based on a preset mapping relationship, the handle operation data is mapped to a handle operation control amount for the mapped control.

[0098] In the disclosed embodiment, the posture data collected by the head-mounted display device, that is, the head-mounted display operation data, may include data from a gyroscope, an accelerometer, and an electronic compass. When converting the head-mounted display operation data into the head-mounted display operation control quantity based on a preset mapping relationship, it is considered that the noise of the electronic compass and the accelerometer is relatively large, the sensitivity is relatively low, and there is a certain delay, but there is no cumulative error; and the gyroscope has a higher real-time rotation, a higher motion sensitivity, and less noise, but the angle obtained by integrating the gyroscope has a certain cumulative error, that is, as the angle is integrated, the error continues to accumulate, also known as zero drift. Therefore, in order to reduce the jitter and error of the posture data, the data of the gyroscope, the accelerometer, and the electronic compass can be subjected to Kalman fusion filtering, and the posture angle of the head-mounted display device, that is, the yaw angle (Yaw), pitch angle (Pitch) and roll angle (Roll) are calculated, such as Figure 6 As shown. Exemplarily, the attitude angle of the head display device is calculated based on the data of the gyroscope after Kalman fusion filtering, that is, the yaw angle, pitch angle and roll angle are calculated. Then, the pitch angle and roll angle are corrected based on the data of the accelerometer after Kalman fusion filtering, and the yaw angle is corrected based on the data of the electronic compass.

[0099] When the corrected attitude angle is mapped to the head display operation control amount based on the preset mapping relationship, the yaw angle can be mapped to the operation of rotating the viewing angle left and right in the game. Taking the first-person game with the mouse controlling the viewing angle as an example, the differential of the yaw angle is mapped to the displacement of the mouse in the X-axis direction and input into the game to realize the left and right viewing angle rotation. When the yaw angle is rotated 360° through calibration, the game screen rotates in the same direction for one circle. Among them, the pitch angle is mapped to the operation of rotating the viewing angle up and down in the game. Taking the first-person game with the mouse controlling the viewing angle as an example, the differential of the pitch angle is mapped to the displacement of the mouse in the Y-axis direction and input into the game to realize the up and down viewing angle rotation. When the pitch angle is rotated from -90° to 90° through calibration, the game viewing angle rotates from vertical downward to vertical upward. Among them, the roll angle is used as the rotation angle of the screen in the head display device to display the game screen. When the head display device rotates clockwise, the screen in the head display device rotates counterclockwise by the same angle. Through the above scheme, the game character perspective can be matched with the real perspective, and the user can be substituted into the perspective of the game character to achieve the effect of simulating VR. In this way, the game process can be made more suitable for natural human behavior, such as lowering the head, raising the head, turning the head, etc., to achieve a perspective control scheme consistent with the changes in the real perspective, and non-VR games can achieve the effect of simulating VR games.

[0100] like Figure 7As shown, the game controller (i.e., a handheld game controller) includes buttons, motion sensors, a data transmission module, a switch button, and a battery module. After the game controller is turned on, it is held by the user and can support the simultaneous connection of two handles. Each game controller has a certain number of custom buttons, and the corresponding mapping buttons can be set after connecting the driver software. The motion sensor includes sensors such as gyroscopes, accelerometers, and electronic compasses that can detect behaviors such as handle rotation and hand shaking. After connecting the driver software, corresponding mapping buttons or other operation behaviors can be set for rotation and hand shaking behaviors. When mapping the handle operation data to the handle operation control amount of the mapped control based on the preset mapping relationship, taking the first-person game on the PC side operated by the keyboard and mouse as an example, there are usually operations to evoke the mouse, such as clicking the interface UI, operating the backpack, etc. When performing these operations, the perspective of the game character is fixed. If the head display device continues to be used to rotate the mouse, the user will need to turn his head frequently, which may cause nausea, dizziness, etc. The game controller of the disclosed embodiment can be set by buttons, and the mouse control source can be switched to the head display device or the handheld game controller with one click. If you need to wake up the mouse, switch to handle control. You can rotate the handle up, down, left, and right in the air to control the mouse more simply without having to frequently turn your head to move the mouse, which is more in line with user operating habits.

[0101] In the disclosed embodiment, the signal receiver may include a USB interface and a data transmission module. The signal receiver is connected to the PC via the USB interface. After being inserted into the PC, it automatically searches for the head display device and the game controller when it is powered on. The matching head display device and the game controller ID (Identity document, unique code) are preset internally to prevent the same model of terminals from causing matching confusion. The game driver software has two main functions. The first function is to receive the movement and button signals of the head display device and the game controller, and convert them into game operations through algorithms and mapping relationships. For example, if the head display turns to the right, it is mapped to operation instructions such as sliding the mouse to the right. The operation instructions are then converted into the underlying drive signals of the mouse and keyboard and sent to the game to complete the control of the game. The second function is to capture the game screen and send the game screen to the head display device in real time for display. See Figure 8 As shown in the game driver software UI diagram, the driver software can set the button mapping of the game controller, set the mapping of each button for the two controllers separately, set the sensitivity of shaking the controller and the corresponding operation, and set whether the controllers are enabled separately; the X and Y axis movement sensitivity of the head display device can be set, and whether the XY axis is reversed can be set; the screen capture method can be set, such as window capture, screenshot, area screenshot, etc., and the clarity of the transmitted image can be set.

[0102] Based on the same inventive concept, the disclosed embodiment also provides a control method for converting a first-person game to a VR game, which can be applied to the control system for converting a first-person game to a VR game, such as Figure 2 As shown, including:

[0103] S201, starting the game driver software of the first-person game.

[0104] In the disclosed embodiment, the user can operate the PC to start the game driver software of the first-person game to start the game. It is understandable that after the PC runs the game driver software, the game driver software can check whether the mouse, keyboard and other drivers are started normally and wait for the device to be connected. The head display device and the game controller are powered on and detected and connected by the PC game driver software through the signal receiver to provide support for subsequent game operation.

[0105] S202, obtaining the handle operation data of the game handle and the head display operation data of the head display device through the signal receiver.

[0106] In the disclosed embodiment, the sensor data and button signals of the game controller (i.e., the handle operation data) and the sensor data and button signals of the head display device (i.e., the head display operation data, such as lowering the head, raising the head, and turning the head) are transmitted to the PC-side game driver software through the signal receiver, so that the PC-side game driver software can receive the handle operation data of the game controller and the head display operation data of the head display device through the signal receiver.

[0107] It is understandable that the game controller may be replaced by other control methods, such as gesture recognition, somatosensory gloves, etc. This embodiment proposes access through a signal receiver, or can also be accessed through wireless methods such as WiFi, Bluetooth, etc.

[0108] S203: converting the handle operation data into the handle operation control amount based on a preset mapping relationship, and converting the head display operation data into the head display operation control amount based on a preset mapping relationship.

[0109] In the embodiment of the present disclosure, the preset mapping relationship may include a mapping relationship between handle operation data and the handle operation of the corresponding mapping control, and a mapping relationship between head display operation data and view rotation. After receiving the handle operation data of the game controller and the head display operation data of the head display device, the handle operation data may be converted into a handle operation control amount based on the preset mapping relationship, and the head display operation data may be converted into a head display operation control amount based on the preset mapping relationship. The specific implementation method of this step is similar to the above embodiment and will not be repeated here.

[0110] In a possible implementation, the head display operation data includes data of a gyroscope, an accelerometer, and an electronic compass; converting the head display operation data into a head display operation control amount based on a preset mapping relationship includes:

[0111] Perform Kalman fusion filtering on the data from gyroscope, accelerometer and electronic compass;

[0112] Calculate the attitude angle of the head-mounted display device based on the data of the gyroscope after Kalman fusion filtering; wherein the attitude angle includes yaw angle, pitch angle and roll angle;

[0113] Correcting the pitch angle and roll angle based on the data of the accelerometer after Kalman fusion filtering; and correcting the yaw angle based on the data of the electronic compass;

[0114] Mapping the corrected posture angle to a head display operation control amount based on a preset mapping relationship;

[0115] The preset mapping relationship includes the mapping controls corresponding to the game controller in the game driver software; based on the preset mapping relationship, the controller operation data is converted into the controller operation control amount, including:

[0116] The handle operation data is mapped to the handle operation control amount of the mapped control based on the preset mapping relationship.

[0117] In the disclosed embodiment, the data of the gyroscope, accelerometer, and electronic compass can be subjected to Kalman fusion filtering, and the attitude angle of the head display device, namely, the yaw angle, pitch angle, and roll angle, can be calculated. The attitude angle of the head display device is calculated based on the data of the gyroscope after the Kalman fusion filtering, that is, the yaw angle, pitch angle, and roll angle are calculated. The pitch angle and roll angle are then corrected based on the data of the accelerometer after the Kalman fusion filtering, and the yaw angle is corrected based on the data of the electronic compass. When the corrected attitude angle is mapped to the head display operation control amount based on the preset mapping relationship, the yaw angle can be mapped to the operation of turning the viewing angle left and right in the game. Taking the first-person game in which the viewing angle is controlled by the mouse as an example, the differential of the yaw angle is mapped to the displacement of the mouse in the X-axis direction and input into the game to realize the left and right viewing angle rotation. When the yaw angle is rotated 360° through calibration, the game screen rotates one circle in the same direction. Among them, the pitch angle is mapped to the operation of rotating the viewing angle up and down in the game. Taking the first-person game in which the mouse controls the viewing angle as an example, the differential of the pitch angle is mapped to the displacement of the mouse in the Y-axis direction and input into the game to realize the rotation of the viewing angle in the up and down directions. When the pitch angle is calibrated to rotate from -90° to 90°, the game viewing angle rotates from vertical downward to vertical upward. Among them, the roll angle is used as the rotation angle of the picture in the head display device to display the game screen. When the head display device rotates clockwise, the picture in the head display device rotates counterclockwise by the same angle. Through the above scheme, the perspective of the game character can be matched with the real perspective, and the user can be substituted into the perspective of the game character to achieve the effect of simulating VR. In this way, the game process can be made more suitable for natural human behavior, that is, lowering the head, raising the head, turning the head, etc., to achieve a perspective control scheme consistent with the changes in the real perspective, and non-VR games can achieve the effect of simulating VR games. In this way, the disclosed embodiment can utilize user perspective direction data as a game perspective control variable by using a head-mounted display device, and can convert native first-person games into VR games. The game screen is not limited to a fixed or handheld display terminal, but is directly presented in front of the user, providing a new gaming experience.

[0118] The game controller has a certain number of custom buttons, and the corresponding mapping buttons can be set after connecting to the driver software. When the controller operation data is mapped to the controller operation control amount of the mapped control based on the preset mapping relationship, the gyroscope, accelerometer, electronic compass and other sensors can be used to detect the controller rotation, hand shaking and other behaviors. After connecting to the game driver software, the corresponding mapping buttons or other operation behaviors can be set for the rotation and hand shaking behaviors.

[0119] S204, obtaining a game screen generated by running the first-person game.

[0120] Among them, the game screen is generated by controlling the operation of the first-person game based on the control amount of the handle operation and the head display operation.

[0121] In the embodiment of the present disclosure, after converting the handle operation data into the handle operation control amount based on the preset mapping relationship, and converting the head display operation data into the head display operation control amount based on the preset mapping relationship, the operation of the first-person game can be controlled based on the handle operation control amount and the head display operation control amount, and the game screen during the game operation can be captured in real time.

[0122] S205, generating a binocular parallax image based on the game screen.

[0123] In the embodiment of the present disclosure, after obtaining the game screen generated by the first-person game running, a binocular parallax image can be generated based on the game screen. Exemplarily, a binocular parallax image can be generated based on the game screen by a deep learning method.

[0124] As an example, converting the game screen into a binocular parallax image by a deep learning method may include:

[0125] Using the game screen as the first display screen; wherein the first display screen is the left eye display screen or the right eye display screen;

[0126] Predicting the game screen by using a deep learning method to obtain a predicted depth image of the game screen;

[0127] Offset the game screen according to the predicted depth image;

[0128] The depth image after the offset processing is interpolated and cropped to obtain a second display picture; wherein the second display picture is a display picture of the other eye.

[0129] In the disclosed embodiment, the game screen can be used as the first display screen, that is, the original game screen is used as the first display screen. The first display screen can be a left-eye display screen or a right-eye display screen, such as a left-eye screen. Then, the game screen can be predicted by a deep learning method to obtain a predicted depth image of the game screen, and then the game screen can be offset based on the predicted depth image. For example, taking the first display screen as the left-eye screen as an example, the pixels that are close can be offset to the left by a large margin, and the pixels that are far can be offset to the left by a small margin, wherein the offset of a specific pixel can be calculated by formula (1). The depth image after the offset processing is interpolated and cropped to obtain a second display screen; wherein the second display screen is the display screen of the other eye, such as the right-eye screen. It can be understood that the process of interpolating and cropping the depth image after the offset processing is similar to the related art and will not be repeated here. In this way, the disclosed embodiment uses a deep learning method to convert the original monocular perspective game screen into a binocular 3D stereoscopic screen, thereby achieving a better 3D immersion, rather than directly streaming the game screen to realize the conversion of native first-person games into VR games. At the same time, the addition of perspective stabilization and control switching functions makes user interaction more friendly and improves user experience. Moreover, the operating methods of different games can be matched and adjusted through the driver, without the need to match and develop for different games, and has good versatility and compatibility.

[0130] Q=C·arctan(A / L) (1)

[0131] Among them, Q represents the offset of the pixel, C is a constant, A represents the user's eye distance, and L identifies the depth prediction value of the pixel.

[0132] S206: Send the binocular parallax image to a head-mounted display device via a signal receiver for display.

[0133] In the embodiment of the present disclosure, after the binocular parallax image is generated based on the game screen, the binocular parallax image can be sent to the head display device through the signal receiver. After the head display device receives the binocular parallax image, the binocular parallax image can be displayed. The implementation method of this step is similar to the above embodiment and will not be repeated here.

[0134] In the disclosed embodiment, the game driver software of the first-person game is started; the handle operation data of the game controller and the head display operation data of the head display device are obtained through the signal receiver; the handle operation data is converted into the handle operation control amount based on the preset mapping relationship, and the head display operation data is converted into the head display operation control amount based on the preset mapping relationship; the game screen generated by the operation of the first-person game is obtained, wherein the game screen is generated based on the handle operation control amount and the head display operation control amount to control the operation of the first-person game; a binocular parallax image is generated based on the game screen; and the binocular parallax image is sent to the head display device through the signal receiver for display. In this way, the original monocular perspective game screen can be converted into a binocular 3D stereoscopic screen through the conversion of the game screen to the binocular parallax image, and the VR game effect can be achieved, that is, the native first-person game can be converted into a VR game, providing a new game experience, thereby improving the user experience.

[0135] To make the control method of converting a first-person game to a VR game provided by the embodiment of the present disclosure clearer, the following is combined with Fig. 9 For explanation. Fig. 9 As shown, the control method for converting a first-person game to a VR game provided by the embodiment of the present disclosure may include: a head display device and a game controller are connected to a signal receiver through a wireless network, the signal receiver is connected to a PC through a USB interface, and the PC installs a game driver software corresponding to the first-person game. When the game starts, the PC runs the game driver software, the driver software checks whether the mouse and keyboard drivers are started normally, and waits for the device to be connected. The head display device and the game controller are powered on and started and detected and connected by the PC game driver software through the signal receiver. The game driver software creates or loads an existing game mapping scheme. After the PC starts the game, the game controller is started in the driver software to start the game. If the control amount is found to be abnormal, the head display device can be removed at any time to adjust the control amount and mapping scheme. The sensor data and key signals of the game controller and the head display device are transmitted to the PC game driver software through the signal receiver, and the game driver is converted into the control amount of the game through the mapping relationship, and then the game is controlled by the driver module. The PC driver software then captures the game screen in real time through the image capture module, generates a binocular parallax image in real time, and sends it to the head display device through the signal receiver for display.

[0136] The specific implementation of each step of this embodiment is similar to that of the above embodiment and will not be repeated here.

[0137] Based on the same inventive concept, the embodiment of the present disclosure also provides a control device for converting a first-person game to a VR game, such as Fig.10 As shown, Fig.10is a block diagram of a control device for converting a first-person game to a VR game according to an exemplary embodiment. Fig.10 The control device 1000 for converting a first-person game to a VR game may include:

[0138] A game startup module 1010 is used to start the game driver software of the first-person game;

[0139] The data acquisition module 1020 is used to acquire the handle operation data of the game controller and the head display operation data of the head display device through the signal receiver;

[0140] A data conversion module 1030, configured to convert the handle operation data into a handle operation control amount based on a preset mapping relationship, and to convert the head display operation data into a head display operation control amount based on the preset mapping relationship;

[0141] A screen generation module 1040 is used to obtain a game screen generated by the running of the first-person game, wherein the game screen is generated based on the control amount of the handle operation and the control amount of the head display operation to control the running of the first-person game;

[0142] An image generation module 1050 is used to generate a binocular parallax image based on the game screen;

[0143] The image display module 1060 is used to send the binocular parallax image to the head display device through the signal receiver for display.

[0144] In a possible implementation, the image generation module 1050 is used to:

[0145] The game screen is converted into a binocular parallax image through a deep learning method.

[0146] In a possible implementation, the image generation module 1050 includes:

[0147] A first screen generating unit, configured to use the game screen as a first display screen; wherein the first display screen is a left-eye display screen or a right-eye display screen;

[0148] A prediction unit, configured to perform prediction processing on the game screen by a deep learning method to obtain a predicted depth image of the game screen;

[0149] An offset unit, configured to perform an offset process on the game screen according to the predicted depth image;

[0150] The second picture generating unit is used to perform interpolation and cropping processing on the depth image after the offset processing to obtain the second display picture; wherein the second display picture is the display picture of the other eye.

[0151] In a possible implementation, the offset amount for performing offset processing on the game screen according to the predicted depth image is calculated as follows:

[0152] Q=C·arctan(A / L) (1)

[0153] Among them, Q represents the offset of the pixel, C is a constant, A represents the user's eye distance, and L identifies the depth prediction value of the pixel.

[0154] In a possible implementation, the head display operation data includes data of a gyroscope, an accelerometer, and an electronic compass; the data conversion module 1030 includes:

[0155] A filtering unit, used to perform Kalman fusion filtering on the data of the gyroscope, accelerometer, and electronic compass;

[0156] A calculation unit, configured to calculate the attitude angle of the head-mounted display device based on the data of the gyroscope after Kalman fusion filtering; wherein the attitude angle includes a yaw angle, a pitch angle, and a roll angle;

[0157] a correction unit, configured to correct the pitch angle and the roll angle based on the data of the accelerometer after Kalman fusion filtering; and to correct the yaw angle based on the data of the electronic compass;

[0158] A first mapping unit, configured to map the corrected posture angle to a head display operation control amount based on the preset mapping relationship;

[0159] The preset mapping relationship includes a mapping control corresponding to the game controller in the game driver software; the data conversion module 1030 includes:

[0160] The second mapping unit is used to map the handle operation data into a handle operation control amount for the mapping control based on the preset mapping relationship.

[0161] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0162] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a storage medium and a computer program product.

[0163] Fig.11A schematic block diagram of an example electronic device 1100 that can be used to implement an embodiment of the present disclosure is shown. The electronic device 500 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0164] like Fig.11 As shown, the electronic device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1102 or a computer program loaded from a storage unit 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the device 1100 can also be stored. The computing unit 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0165] Multiple components in the electronic device 1100 are connected to the I / O interface 1105, including: an input unit 1106, such as a keyboard, a mouse, etc.; an output unit 1107, such as various types of displays, speakers, etc.; a storage unit 1108, such as a disk, an optical disk, etc.; and a communication unit 1109, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1109 allows the electronic device 1100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0166] The computing unit 1101 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1101 performs the various methods and processes described above, such as the control method of converting a first-person game to a VR game. For example, in some embodiments, the control method of converting a first-person game to a VR game may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1108. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 1100 via the ROM 1102 and / or the communication unit 1109. When the computer program is loaded into the RAM 1103 and executed by the computing unit 1101, one or more steps of the control method of converting a first-person game to a VR game described above may be performed. Alternatively, in other embodiments, the computing unit 1101 may be configured to execute the control method for converting a first-person game to a VR game in any other appropriate manner (for example, by means of firmware).

[0167] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0168] The program code of the computer program product for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0169] In the context of the present disclosure, a storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A storage medium may be a machine-readable signal medium or a machine-readable storage medium. Storage media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specific examples of storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0170] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0171] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.

[0172] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0173] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0174] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A control method for converting a first-person game to a VR game, characterized in that: include: Game driver software to enable first-person games; Acquire the handle operation data of the game controller and the head display operation data of the head display device through the signal receiver; Converting the handle operation data into a handle operation control amount based on a preset mapping relationship, and converting the head display operation data into a head display operation control amount based on the preset mapping relationship; Acquire a game screen generated by running the first-person game, wherein the game screen is generated by controlling the running of the first-person game based on the handle operation control amount and the head display operation control amount; Generate a binocular parallax image based on the game screen; The binocular parallax image is sent to the head display device through the signal receiver for display.

2. The control method for converting a first-person game to a VR game according to claim 1, characterized in that: The generating of a binocular parallax image based on the game screen includes: The game screen is converted into a binocular parallax image through a deep learning method.

3. The control method for converting a first-person game to a VR game according to claim 2, characterized in that: The method of converting the game screen into a binocular parallax image by a deep learning method includes: Using the game screen as a first display screen; wherein the first display screen is a left-eye display screen or a right-eye display screen; Performing prediction processing on the game screen by a deep learning method to obtain a predicted depth image of the game screen; Performing an offset process on the game screen according to the predicted depth image; The depth image after the offset processing is interpolated and cropped to obtain the second display picture; wherein the second display picture is the display picture of the other eye.

4. The control method for converting a first-person game to a VR game according to claim 3, characterized in that: The calculation method of the offset amount of the game screen according to the predicted depth image is as follows: Q=C·arctan(A / L) (1) Among them, Q represents the offset of the pixel, C is a constant, A represents the user's eye distance, and L identifies the depth prediction value of the pixel.

5. The control method for converting a first-person game to a VR game according to claim 1, characterized in that: The head display operation data includes data of a gyroscope, an accelerometer, and an electronic compass; and converting the head display operation data into a head display operation control amount based on the preset mapping relationship includes: Perform Kalman fusion filtering on the data from gyroscope, accelerometer and electronic compass; Calculating the attitude angle of the head display device based on the data of the gyroscope after Kalman fusion filtering; wherein the attitude angle includes yaw angle, pitch angle and roll angle; Correcting the pitch angle and the roll angle based on the data of the accelerometer after Kalman fusion filtering; and correcting the yaw angle based on the data of the electronic compass; Mapping the corrected posture angle to a head display operation control amount based on the preset mapping relationship; The preset mapping relationship includes a mapping control corresponding to the game controller in the game driving software; and converting the controller operation data into a controller operation control amount based on the preset mapping relationship includes: The handle operation data is mapped to a handle operation control amount for the mapping control based on the preset mapping relationship.

6. A control system for converting a first-person game to a VR game, characterized in that: It includes a head display device, a game controller, a signal receiver, and a computer PC. The head display device and the game controller are connected to the signal receiver via a wireless network. The signal receiver is connected to the PC. The PC is installed with game driver software for a first-person game. The PC is used to start the game driver software of the first-person game; The game controller is used to transmit the controller operation data to the game driver software; The head display device is used to transmit the head display operation data to the game driver software; The game driving software is used to convert the handle operation data into the handle operation control amount based on a preset mapping relationship, and to convert the head display operation data into the head display operation control amount based on the preset mapping relationship; The game driver software is further configured to obtain a game screen generated by the operation of the first-person game, wherein the game screen is generated by controlling the operation of the first-person game based on the handle operation control amount and the head display operation control amount; and to generate a binocular parallax image based on the game screen; and send the binocular parallax image to the head display device; The head display device is also used to display the binocular parallax image.

7. A control device for converting a first-person game to a VR game, characterized in that: include: A game startup module is used to start the game driver software of the first-person game; A data acquisition module, used to acquire the handle operation data of the game controller and the head display operation data of the head display device through a signal receiver; A data conversion module, used to convert the handle operation data into a handle operation control amount based on a preset mapping relationship, and to convert the head display operation data into a head display operation control amount based on the preset mapping relationship; A screen generation module, used to obtain a game screen generated by the operation of the first-person game, wherein the game screen is generated by controlling the operation of the first-person game based on the handle operation control amount and the head display operation control amount; An image generation module, used to generate a binocular parallax image based on the game screen; An image display module is used to send the binocular parallax image to the head display device through the signal receiver for display.

8. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the control method for converting a first-person game to a VR game as described in any one of claims 1 to 6.

9. A storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the control method for converting a first-person game to a VR game as described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the control method for converting a first-person game to a VR game according to any one of claims 1 to 6 is implemented.