Invention content
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 children pulley
Standby 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 children pulley, including children pulley equipment, is set to children pulley equipment
On detection device, server and several virtual reality devices for playing default game video, it is described several virtual existing
Real equipment and the seat of the children pulley correspond, and the detection device is used to detect the movable information of the car body, and
The movable information detected is sent to server;The server calibrates the virtual reality according to the movable information received
The velocity of shot in game video played in equipment.
The reality-virtualizing game platform based on children pulley, wherein, the detection device includes being set to the youngster
If several detection plates on the track of virgin tackle rigging, be set to it is described for detecting on the car body of the children pulley equipment
The first sensor of dry detection plate and the second sensor being set on the wheel of the car body;It is detected by first sensor
Several detection plates are detected respectively to obtain the fixed position information of car body, and the turning collar of wheel is detected by second sensor
Number, to obtain the movable information comprising fixed position information and turnning circle.
The reality-virtualizing game platform based on children pulley, wherein, the first sensor is passed using nodal test
Sensor.
The reality-virtualizing game platform based on children pulley, wherein, the second sensor uses rotary encoder.
The reality-virtualizing game platform based on children pulley, wherein, the children pulley equipment passes through shielded cable
It is connected with the server, and startup/stop signal is transmitted to by the server by the shielded cable.
A kind of control method of the reality-virtualizing game platform based on children pulley equipment, wherein, including:
When children's tackle rigging is opened, virtual reality device plays preset video, and positioning device detects the children pulley
The movable information of the car body of equipment, and the movable information is sent to server, wherein, the movable information includes wheel
The fixed position information of turnning circle and car body;
Server calibrates the velocity of shot in the game video of the virtual reality device broadcasting according to the movable information received.
The control method of the reality-virtualizing game platform based on children pulley, wherein, the server is according to reception
To movable information calibrate the velocity of shot in the game video that the virtual reality device plays and specifically include:
Server receives the movable information, and the operating range of car body is calculated according to the turnning circle;
The operating range is converted into the first operating range of the camera lens in the game video using preset conversion coefficient;
First velocity of shot is calculated, and use first camera lens according to first operating range and its corresponding running time
Speed updates velocity of shot.
The control method of the reality-virtualizing game platform based on children pulley, wherein, described in the server reception
Movable information, and specifically included according to the operating range of turnning circle calculating car body:
Server receives the movable information, and judges whether the fixed position information included in the movable information is empty;
When fixed position information is empty, the operating range of car body is calculated according to the turnning circle.
The control method of the reality-virtualizing game platform based on children pulley, wherein, it is described to work as fixed position information
During for sky, the operating range that car body is calculated according to the turnning circle specifically includes:
When fixed position information is empty, preset wheel diameter is obtained;
The operating range of car body is calculated according to the wheel diameter and turnning circle.
The control method of the reality-virtualizing game platform based on children pulley, wherein, described in the server reception
Movable information, and according to the turnning circle calculate car body operating range its further include:
When fixed position information is not empty, the triggering serial number of the fixed position information is recorded, and according to the triggering serial number
Search its corresponding preset travel time and preset travel distance;
The current driving time is obtained, and the preset travel time and the current driving time are compared;
When the preset travel time and current driving time are unequal, during according to the preset travel distance and current driving
Between calculate the second velocity of shot, and velocity of shot is updated using the second velocity of shot.
Advantageous effect:Compared with prior art, the present invention provides a kind of virtual reality trips based on children pulley equipment
Play platform and its control method, the reality-virtualizing game platform include children pulley equipment, are set in children pulley equipment
Detection device, server and several virtual reality devices for playing default game video, the virtual reality device
It is corresponded with the seat of the children pulley, the detection device is used to detect the movable information of the car body, and will detection
To movable information be sent to server;The server is calibrated according to the movable information received in the virtual reality device
Velocity of shot in the game video of broadcasting.The present invention is by detecting the movable information of children pulley equipment so that server root
Different game pictures is switched to according to movable information control virtual reality device, it is achieved thereby that VR game is played with extraordinary
The depth of equipment combines so that the movement of VR game pictures and children pulley is adapted, so as to enhance the game of immersion effect
Fruit.
Specific embodiment
The present invention provides a kind of reality-virtualizing game platform and its control method based on children pulley equipment, to make this hair
Bright 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 detailed
Explanation.It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
Below in conjunction with the accompanying drawings, by the description of the embodiment, being described further to invention content.
Fig. 1 is please referred 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 children pulley equipment 100, detection device 200, server 300 and several for playing
The virtual reality device 400 of default game video.Several virtual reality devices 400 and the children pulley equipment 100
Seat corresponds, and the detection device 200 is used to detect the movable information of children pulley equipment 100, and the fortune that will be detected
Dynamic information is sent to server 300;The server 300 is used to be set according to the movable information calibration virtual reality received
The velocity of shot in game video played in standby 400.The present embodiment detects children pulley equipment in real time by detection device 200
The movable information of 100 car body 101, and the movable information detected is sent to server 300, by server 300 according to institute
The velocity of shot of game video played in movable information calibration virtual reality device 400 is stated, so that the fortune of children pulley
Dynamic characteristic matches with game picture, realizes that the depth of the two combines.
In the present embodiment, as shown in Fig. 2, the children pulley equipment 100 includes car body 101 and track 102.Work as equipment
During energization, toward front slide, the passenger on car body 101 can experience in the process for motor pushing car body 101 on track 102
Speed sense.Around the kinetic characteristic of children pulley equipment 100, the present embodiment lays the detection device 200 on children pulley.
The detection device 200 includes several detection plates 202 being set on the track 102, be set on the car body 101 the
One sensor 203.The first sensor 203 passes through several detection plates 202 for detecting several detection plates 202
Cooperation between first sensor 203 detects 101 fixed position information of car body.Wherein, the fixed position information refers to
When being that first sensor 203 detects detection plate 202, what first sensor 203 generated arrives partitioned signal, and subsequent server 300 can
To record the serial number for each arriving partitioned signal, to obtain the distance of the operation of car body 101.In practical applications, the first sensor
203 may be used junction sensor, and each detection plate 202 is touched with nodal test sensor, and junction sensor can all have I/O letters
It number generates, which can be given to server 300.
As shown in figure 3, the track 102 is the circular orbit 102 being closed, if being laid on the circular orbit 102
Dry detection plate 202, the first sensor 203 do not detect a detection plate 202, will arrive partitioned signal and be sent to server
300, when the server 300 receives partitioned signal, record the triggering serial number of the detection plate 202.Such as the track 102
On be provided with 4 pieces of detection plates 202, when first sensor 203 detects 4 pieces of detection plates 202 successively, the server
300 respectively according to the triggering serial number for each family's detection plate 202 of journal for receiving partitioned signal, when car body 101 is examined again
When measuring first piece of detection plate 202, server 300 accumulative triggering serial number, will second of triggering, first piece of detection plate 202 touch
Hair serial number is denoted as 5, and so on, until car body 101 is out of service.Certainly, in practical applications, the track 102 may be
Line style track 102, cross track 102 etc. lays detection plate 202 using identical principle, and the present invention is to track 102
Structure is not restricted.
In the present embodiment, as shown in Fig. 2, the detection device 200 further includes the second sensor being set on wheel
201, the second sensor 201 is used to detect the number of turns of wheel rotation, so as to which subsequent server 300 can be converted by the number of turns
Go out the distance of wheel operation.Rotary encoder may be used in the second sensor 201.
In the present embodiment, the children pulley equipment 100 passes through shielded cable with the server 300(For example, model
For KVVR-4 × 1mm2)It is connected, when the start button of the children pulley equipment 100 is pressed, i.e., described children pulley equipment
During 100 startup, the children pulley equipment 100 passes through the shielded cable transmission start signal to the server 300;Together
Reason, when children's tackle rigging 100 is out of service, transmission stop signal to the server 300.In this way, server 300 can be with
The virtual reality device 400 is controlled according to the signal of the startup/stopping.In practical applications, the server 300 can be with
It is embedded in the virtual reality device 400, so that each virtual reality device 400 is respectively provided with independent data processing work(
Energy;The server can also be independent equipment, multiple virtual realities can be controlled to set simultaneously by a server in this way
Standby 400 so that the corresponding game picture of video frame that 400 display server 300 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 children pulley equipment
The control method of reality game platform, as shown in figure 4, the control method includes:
S10, when children's tackle rigging is opened, virtual reality device plays preset game video, described in positioning device detection
The movable information of the car body of children pulley equipment, and the movable information is sent to server, wherein, the movable information packet
Include the turnning circle of wheel and the fixed position information of car body;
Specifically, the motor message includes the operating range of car body and fixed position information, wherein, what the operating range referred to
It is actual range of the car body from startup operation, the fixed position information includes the corresponding location information of each detection plate.In this reality
It applies in example, when setting several detection plates in orbit, and being detected according to each detection plate, what first sensor was sent out believes to plate
Number triggering serial number pre-set the corresponding preset travel distance of each detection plate and preset travel time.In the present embodiment,
Since the server 300 is after children pulley equipment startup, the movement that ability receiving detection device 200 acquires is believed
Breath, and virtual reality device 400 is controlled to carry out the switching of game picture, thus it is described when children's tackle rigging is opened it
Afterwards, the detection device detects the movable information of the children pulley equipment in real time, and the movable information is sent to service
It is further included before device:
S01, the children pulley equipment send enabling signal to the server;
When S02, the server receive the enabling signal, the detection device is controlled to open, and controlled described virtual existing
Real device plays give tacit consent to game picture.
Specifically, the children pulley equipment is provided with switch button, when the switch button is pressed, the children
Tackle rigging transmission start signal is to the server.Correspondingly, executive program has been disposed in the server-side, to receive to be
The no games for starting virtual reality device, the flogic system that executive program is developed by C++ mainly judge whether to start trip
Play program, and play the role of receiving positioning end signal and send out unlatching or stop the signal of virtual reality.When server connects
When receiving the enabling signal, enabled instruction is sent out to the virtual reality device.The virtual reality receives the startup and refers to
Order boots up startup, and pre-stored default frame is shown on display screen, and game is prompted to prepare to start.
S20, server are calibrated according to the movable information received in the game video of the virtual reality device broadcasting
Velocity of shot.
Specifically, since the second sensor is the operating range of real-time detection car body, the first sensor only has
When detecting detection plate, partitioned signal is just sent to server.Therefore it is described when detection plate is not detected in first sensor
The fixed position information included in movable information is sky.Meanwhile in the present embodiment, using fixed position information calibration camera lens speed
The priority of degree is higher than calibrates velocity of shot using real time running distance.Therefore, the server is according to the movement received
The velocity of shot that information is calibrated in the game video that the virtual reality device plays can specifically include:
S21, server receive the movable information, and the operating range of car body is calculated according to the turnning circle;
S22, the operating range is converted into the game video using preset conversion coefficient the first of camera lens are travelled
Distance;
S22, the first velocity of shot is calculated, and use described first according to first operating range and its corresponding running time
Velocity of shot updates velocity of shot.
Specifically, in the step S21, server is according to the turnning circle and pre-stored wheel received
Diameter calculates the operating range of car body, simultaneously because using the priority of fixed position information calibration velocity of shot higher than adopting
Velocity of shot is calibrated with real time running distance, therefore whether also to first determine whether the fixed position information included in movable information
For sky, detailed process is:
S211, server receive the movable information, and judge the fixed position information included in the movable information whether be
It is empty;
S212, when fixed position information is empty, the operating range of car body is calculated according to the turnning circle.
Specifically, when the fixed position information that server receives is empty, illustrate under present case, first on car body passes
Detection plate is not detected in sensor, calculates the operating range of car body using the turnning circle detected at this time, and performs step
S22.In the step S22, the preset conversion coefficient refer to calculating in advance the car body actual travel distance come with
Conversion coefficient between camera lens displacement distance.It can be obtained by the conversion coefficient and the collected operating range of first sensor
To the displacement distance of camera lens.That is, the operating range received to be converted into the first operating range of camera lens, and obtain described first
The corresponding running time of operating range obtains the first camera lens speed using first operating range divided by the running time
Degree, is then adjusted to first velocity of shot, it is achieved thereby that the calibration of velocity of shot by current velocity of shot.
Further, when first sensor detects detection plate, i.e., fixed position information is not empty, the first sensor
Partitioned signal is sent to server, when the server receives partitioned signal, timer adds up to add 1, to generate corresponding touch
When sending out serial number, and its corresponding preset travel distance and preset travel searched from presetting database according to the triggering serial number
Between, then using the preset travel distance and preset travel time calibration velocity of shot, detailed process is:
S213, when fixed position information is not empty, record the triggering serial number of the fixed position information, and according to the triggering
Serial number searches its corresponding preset travel time and preset travel distance;
S214, the current driving time is obtained, and the preset travel time and the current driving time is compared;
S215, when the preset travel time and unequal current driving time, according to the preset travel distance and current
Running time calculates the second velocity of shot, and updates velocity of shot using the second velocity of shot.
S216, when the preset travel time is equal with the current driving time, keep current velocity of shot.
Specifically, when the corresponding preset travel distance of each triggering serial number and preset travel are pre-set in server
Between.That is, wherein, when the preset travel distance is that car body is travelled to the position of each detection plate, mirror in VR game videos
The distance of head traveling, is given value.The preset travel time is to be pre-set to plate time, i.e., each detection plate correspondence
One is arrived the plate time, and when car body touches each detection plate, each detection plate corresponds to a time.Then the reality of car body is obtained
Time(Current time), and current time preset time corresponding with the triggering serial number is compared, when the two is equal,
Illustrate it is currently practical to the plate time with preset identical to the plate time, i.e., the travel speed of current lens and the traveling of car body are fast
Degree matches.When the two differs, illustrate it is currently practical to the plate time with it is preset to arrive the plate time different, i.e. current lens
Speed is mismatched with preset velocity of shot and the speed of service of car body reality, at this point, using the preset travel distance and institute
It states current run time and calculates the second velocity of shot, and velocity of shot is adjusted to the second velocity of shot.
Further, can also be that corresponding audio data is configured in the multiple game picture, wherein, in the audio data
Including at least there is the data such as the background music and aside that are adapted, dialogue.In this way in each game picture in playing process
Corresponding sound effect can be exported, so as to enhance the immersion game experiencing of user.
In the present embodiment, the server calibrates what the virtual reality device played according to the movable information received
It is further included after velocity of shot in game video:
S30, server monitor the stop signal that the children pulley is sent, and the virtual reality device is controlled when listening to
Play preset acquiescence game picture.
Specifically, when children's tackle rigging is out of service, stop signal is sent to server, service by shielded cable
After device receives stop signal, the broadcasting of virtual reality device Exit Game video is controlled, and switches to acquiescence game picture,
User's game over can be prompted in this way.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The 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 used
To modify to the technical solution recorded in foregoing embodiments or carry out equivalent replacement to which part technical characteristic;
And these modification or replace, various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution spirit and
Range.