The content of the invention
The technical problem to be solved in the present invention is, in view of the deficiencies of the prior art, provides one kind and is set based on carrouselStandby reality-virtualizing game platform and its control method are unable to depth with special type game station to solve existing VR game and are combined,The two is lack of consistency, the problem of so as to influence game effect.
In order to solve the above-mentioned technical problem, the technical solution adopted in the present invention is as follows:
A kind of reality-virtualizing game platform based on carrousel, including:Carrousel equipment sets for detecting carrouselThe first sensor of the rotation angle of standby center pillar, at least one second sensor for carrousel lifting height, serviceDevice and at least one virtual reality device for being used to show game picture, the server send for receiving first sensorRotation angle and the lifting height that sends of the second sensor, and controlled according to the rotation angle and lifting heightVirtual reality device shows corresponding game picture.
The reality-virtualizing game platform based on carrousel, wherein, the first sensor is arranged at the rotationOn the center pillar of wooden horse, the first sensor uses rotary encoder.
The reality-virtualizing game platform based on carrousel, wherein, the second sensor is arranged at carrouselSaddle horse below bearing on, the second sensor is using stretching encoder.
The reality-virtualizing game platform based on carrousel, wherein, the carrousel equipment passes through shielded cableIt is connected with the server, and startup/stop signal is transmitted to by server by the shielded cable.
A kind of control method of the reality-virtualizing game platform based on carrousel, including:
When carrousel opening of device, first sensor detects rotation angle in real time, and several second sensors detect it in real timeThe lifting height of corresponding carrousel;
The rotation angle detected is sent to server by the first sensor, and several second sensors will detectDetection information is sent to server, wherein, the detection information includes lifting height and device identification;
Device identification of the server respectively in each detection information determines the corresponding carrousel of each lifting height, and rootAccording to the rotation angle and the corresponding lifting height of each carrousel the corresponding virtual reality device of each carrousel is controlled to showShow corresponding game picture.
The control method of the reality-virtualizing game platform based on carrousel, wherein, server basis respectivelyDevice identification in each detection information determines the corresponding carrousel of each lifting height, and according to the rotation angle and each rotationTurning the corresponding lifting height of wooden horse controls the corresponding virtual reality device of each carrousel to show that corresponding game picture specifically wrapsIt includes:
The server receives the rotation angle and detection information, and the device identification in each detection information determines respectivelyThe corresponding carrousel of each lifting height;
It is searched according to the rotation angle and each lifting height and corresponds to game picture;
The game picture found is respectively sent to the corresponding virtual reality device of each carrousel, so that virtual reality devicePlay corresponding game picture.
The control method of the reality-virtualizing game platform based on carrousel, wherein, it is described according to the anglec of rotationDegree and each lifting height are searched its correspondence game picture and are specifically included:
Its corresponding sets of video frames is determined according to the rotation angle;
It searches the corresponding video frame of each lifting height in the sets of video frames, and is respectively sent to each video frame correspondingVirtual reality device, so that each virtual reality device plays the corresponding game picture of the video frame.
The control method of the reality-virtualizing game platform based on carrousel, wherein, server basis respectivelyDevice identification in each detection information determines the corresponding carrousel of each lifting height, and according to the rotation angle and each rotationTurning the corresponding lifting height of wooden horse controls the corresponding virtual reality device of each carrousel to be gone back after showing corresponding game pictureIncluding:
Server monitors the stop signal that the carrousel equipment is sent, and the virtual reality device is controlled when listening toPlay default acquiescence game picture.
The control method of the reality-virtualizing game platform based on carrousel, wherein, described when carrousel is setAfter during standby unlatching, the first sensor detects rotation angle in real time, and several second sensors detect its corresponding rotation in real timeTurn to further include before the lifting height of wooden horse:
The carrousel equipment sends enabling signal to server;
When the server receives the enabling signal, the first sensor and several second sensors is controlled to open,And the virtual reality device is controlled to play default acquiescence game picture.
Advantageous effect:Compared with prior art, the present invention provides a kind of reality-virtualizing games based on carrousel to put downPlatform and its control method, the reality-virtualizing game platform include carrousel equipment, for detecting in carrousel equipmentThe first sensor of the rotation angle of column, at least one second sensor for carrousel lifting height, server andAt least one virtual reality device for being used to show game picture, the server are used to receive the rotation of first sensor transmissionThe lifting height that angle and the second sensor are sent, and it is virtual existing according to the rotation angle and lifting height controlReal equipment shows corresponding game picture.The present invention passes through the rotation angle for detecting the center pillar of carrousel equipment and each rotation woodThe lifting height of horse so that server controls the corresponding virtual reality of each carrousel to set according to rotation angle and lifting heightIt is standby to show corresponding game picture, it is achieved thereby that VR game is combined with the depth of extraordinary game station so that VR game picturesMovement with carrousel is adapted, so as to enhance the game effect of immersion.
Specific embodiment
The present invention provides a kind of reality-virtualizing game platform and its control method based on carrousel equipment, to make this hairBright purpose, technical solution and effect are clearer, clear and definite, and the embodiment that develops simultaneously referring to the drawings is to of the invention further detailedExplanation.It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
In the present invention, using for representing the suffix of such as " module ", " component " or " unit " of element only for favourableIn the explanation of the present invention, there is no specific meanings for itself.Therefore, module ", " component " or " unit " can mixedly makeWith.
Below in conjunction with the accompanying drawings, by the description of the embodiment, being described further to the content of the invention.
Fig. 1 is refer to, Fig. 1 is the structure principle chart of the preferred embodiment of reality-virtualizing game platform provided by the invention.The reality-virtualizing game platform includes carrousel equipment 100, the anglec of rotation for detecting the center pillar of carrousel equipment 100The first sensor 200 of degree passes for detecting several second of the lifting height of each carrousel in carrousel equipment 100The number of sensor 300, server 400 and several virtual reality devices, the second sensor 300 and virtual reality device 500Amount is identical with the quantity of the carrousel;The server 400 be used for according to first sensor 200 send rotation angle withAnd the lifting height that several second sensors 300 are sent controls the corresponding virtual reality device 500 of each carrousel to showCorresponding game picture;The game picture that the virtual reality device 500 receives for display.The present embodiment passes through in center pillarUpper setting first sensor 200 simultaneously sets second sensor 300 for each carrousel, with each detection rotation angle and risingHighly, so as to which subsequent server 400 can determine that each carrousel is corresponding according to the rotation angle and lifting height detectedGame picture, and the game picture for controlling the display of virtual reality device 500 definite realize VR game pictures and carrouselMovement is adapted, so that VR game is combined with extraordinary game station depth, enhances the game effect of immersion.
In the present embodiment, as shown in Fig. 2, the carrousel equipment 100 includes chassis 104, center pillar 103, umbrella disk 101And several carrousels 102.The center pillar 103 is arranged at the center on the chassis 104, is supported with the umbrella disk 101 thereon.The center pillar 103 rotates under the drive of motor, so as to which the chassis 104 and umbrella disk 101 be driven to rotate.Several rotation woodHorse 102 is arranged on the chassis 104, and is rotated under the drive on the chassis 104 around the center pillar 103.In this implementationIn example, the first sensor 200 is arranged on the center pillar 103, since the center pillar 103 is synchronous with each carrousel 102Rotation, therefore need to only detect the rotation angle of the center pillar 103, you can obtain the rotation angle of several carrousels 102.Further, as shown in figure 3, since each carrousel 102 corresponds to a drive shaft, and compared with chassis under the drive of drive shaft104 move up and down, and therefore, second sensor 300 are installed on the bearing below the saddle horse of the carrousel 102, so logicalCross the lifting height that the second sensor 300 detects each carrousel 102.In practical applications, the first sensor200 may be employed rotary encoder, and drawstring encoder may be employed in the second sensor 300.After platform is powered, drawstring is compiledUnder process of the code device according to seat oscilaltion, I/O signals are generated, and signal issues signal by microcontroller and routerThe program of the VR helmets is used for calibrating the current elevation information of role.
In the present embodiment, the carrousel equipment 100 passes through shielded cable with the server 400(For example, modelFor KVVR-4 × 1mm2)It is connected, when the start button of the carrousel equipment 100 is pressed, i.e., described carrousel equipmentDuring 100 startup, the carrousel equipment 100 passes through the shielded cable transmission start signal to the server 400;TogetherReason, when carrousel equipment 100 is out of service, transmission stop signal to the server 400.In this way, server 400 can be withThe virtual reality device 500 is controlled according to the startup/stop signal.In practical applications, the server 400 can withinIn the virtual reality device 500, so that each virtual reality device 500 is respectively provided with independent data processing function;The server 400 can also be independent equipment, so can control multiple virtual realities simultaneously by a server 400Equipment 500 so that the corresponding game picture of video frame that 500 display server 400 of virtual reality device is sent.
Based on reality-virtualizing game platform described above, the present invention also provides a kind of based on the virtual of carrousel equipmentThe control method of reality game platform, as shown in figure 4, the control method includes:
S10, when carrousel opening of device, first sensor 200 in real time detection rotation angle, several second sensors 300The lifting height of its corresponding carrousel is detected in real time;
Specifically, when carrousel opening of device, the center pillar 103 of the carrousel equipment starts to rotate, each rotation woodHorse moves up and down simultaneously, at this point, the first sensor 200 and several second sensors 300 start to detect the rotation of center pillar 103The distance that gyration and each carrousel move up and down.In the present embodiment, due to the server and first sensor200 and several second sensors 300 communication connection, and server is connected with carrousel equipment by shielded cable, becauseThis described first sensor 200 and second sensor 300 start or stop by receiving the control signal of server.CauseThis, it is described when carrousel opening of device when after, the first sensor 200 detects the center pillar 103 in real timeRotation angle, several second sensors 300 further include before detecting the lifting height of its corresponding carrousel in real time:
S01, the carrousel equipment send enabling signal to server;
When S02, the server receive the enabling signal, the first sensor and several second sensors is controlled to openIt opens, and the virtual reality device 500 is controlled to play default acquiescence game picture.
Specifically, switch button is provided in the carrousel equipment, when the switch button is pressed, the rotationTurn wooden horse equipment transmission start signal to server.Correspondingly, be mounted with executive program on the server, come receive whetherStart the games of virtual reality device, the flogic system that executive program is developed by C++ mainly judges whether to start gameProgram, and play the role of receiving positioning end signal and send unlatching or stop the signal of virtual reality.When server receivesDuring to the enabling signal, first sensor and several second sensors is controlled to open, and sends enabled instruction to instituteState virtual reality device.The virtual reality receives the enabled instruction and boots up startup, and by pre-stored acquiescence pictureFace is shown on display screen, and game is prompted to prepare to start.
The rotation angle detected is sent to server by S20, the first sensor, and several second sensors willThe detection information detected is sent to server, wherein, the detection information includes lifting height and device identification;
Specifically, the device identification can be the device identification of each second sensor for identifying each lifting height.It is corresponding, the correspondence between second sensor, carrousel and virtual reality device is pre-set in the serverRelation each carrousel and its device identification of corresponding second sensor and virtual reality device will be associated guarantorIt deposits.For example, carrousel 1- second sensor A- virtual reality devices a.In this way, carried by each lifting height second passesThe device identification of sensor can determine its corresponding carrousel and virtual reality device.
The device identification of S30, the server respectively in each detection information determines the corresponding rotation of each lifting heightWooden horse, and control each carrousel corresponding virtual existing according to the rotation angle and the corresponding lifting height of each carrouselReal equipment shows corresponding game picture.
Specifically, what the rotation angle and several second sensors that server reception first sensor is sent were sentLifting height, and the corresponding game picture of a carrousel is determined according to one group of rotation angle and lifting height, then by instituteIt states game picture and is sent to virtual reality device.
Illustratively, the server controls each carrousel corresponding according to the rotation angle and lifting height receivedVirtual reality device shows that corresponding game picture can specifically include:
S31, the server receive the rotation angle and detection information, and the device identification in each detection information respectivelyDetermine the corresponding carrousel of each lifting height;
S32, its correspondence game picture is searched according to the rotation angle and each lifting height;
S33, the game picture found is respectively sent to the corresponding virtual reality device of each carrousel, so that virtual realityThe corresponding game picture of device plays.
Specifically, in the step S31, the server receives the lifting height that each second sensor is sentWhen, the device identification that each lifting height carries is obtained respectively, and its corresponding carrousel is determined according to the device identificationAnd virtual reality device.Its corresponding game picture is determined further according to rotation angle and lifting height, have in the step S21Body process includes:
S321, its corresponding sets of video frames is determined according to the rotation angle;
S322, the corresponding video frame of each lifting height is searched in the sets of video frames, and is respectively sent to each video frameCorresponding virtual reality device, so that each virtual reality device plays the corresponding game picture of the video frame.
In the step S321, the default sets of video frames refers to pre-set sets of video frames, in this realityIt applies in example, pre-sets the correspondence between default sets of video frames and rotation angle in the server.I.e. one rotationAngle corresponds to a sets of video frames, for example, when carrousel turns to 2 °, corresponding second video frame will be gathered, carrouselWhen turning to N and spending, corresponding N sets of video frames.Then it is true according to lifting height in the default sets of video frames found againDetermine the corresponding video frame of each lifting height.Due to having determined that the corresponding carrousel of each lifting height and virtual in S321Real world devices, therefore the video frame of lookup is respectively sent to play out in its corresponding virtual reality device.In this way,The process that its corresponding game picture is determined according to the rotation angle and lifting height of each carrousel is completed, so thatWhen obtaining user in carrousel equipment, synchronous VR game pictures can be experienced, improve the game effect of immersion.
Further, can also be that the multiple game picture configures corresponding voice data, wherein, in the voice dataIncluding at least there is the data such as the background music and aside that are adapted, dialogue.So in each game picture in playing processCorresponding sound effect can be exported, so as to enhance the immersion game experiencing of user.
S40, server monitor the stop signal that the carrousel equipment is sent, and control when listening to described virtualReal world devices play default acquiescence game picture.
Specifically, when carrousel equipment is out of service, the carrousel equipment is sent by shielded cable to be stoppedSignal after server receives stop signal, controls the broadcasting of virtual reality device Exit Game picture, and cuts to serverAcquiescence game picture is shifted to, can so prompt user's game over.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;AlthoughThe present invention is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:It still may be usedTo modify to the technical solution recorded in foregoing embodiments or carry out equivalent substitution to which part technical characteristic;And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical solution spirit andScope.