Man-machine fighting system and method of golf simulatorTechnical Field
The present application relates to the field of golf simulators, and more particularly, to a man-machine fighting system and method for a golf simulator.
Background
The golf simulator simulates outdoor golf to do an indoor golf game. The golf simulator mainly utilizes computer graphic image processing technology to load international standard golf course data into the system static memory, when the system is running, the computer can automatically input the course data into the internal dynamic memory of the system, and the course landscape can be vividly projected onto the impact-resistant screen in front of the player by means of super-large screen projector, so that the player can have a feeling of approaching the course. The user communicates with the computer through a software interface of the client, the user swings to hit the golf ball on the impact-resistant screen, the flight track of the golf ball hit from the initial position on the impact-resistant screen is the initial flight track, and the computer simulates the flight track of the golf ball according to the initial flight track of the golf ball and displays the flight track on the impact-resistant screen in real time. The golf simulator has the advantages of small occupied area, relatively low requirements on time, regions and weather, and capability of simulating real golf course environment and hitting fun indoors.
For the related technologies, the inventor thinks that the golf simulator can only provide users with a relatively real playing experience, is difficult to interact with the users, and has a relatively poor man-machine interaction effect.
Disclosure of Invention
In order to increase the man-machine interaction effect of the golf simulator, the application provides a man-machine fighting system and a man-machine fighting method of the golf simulator.
In a first aspect, the present application provides a man-machine battle system of a golf simulator, which adopts the following technical solutions:
a man-machine fight system of a golf simulator comprises a golf ball flight parameter measuring device 1, a golf course three-dimensional simulation device 2 and adisplay device 3, wherein the golf ball flight parameter measuring device 1 is used for collecting batting data; the golf course three-dimensional simulation device 2 comprises acamera device 210 for shooting golf ball flight video and generating image data and a computergraphic processing device 220 for acquiring the image data and analyzing and obtaining golf ball flight coordinate data based on the image data; the computergraphic processing device 220 is further configured to obtain the hitting data, integrate the corresponding hitting data, the golf flight video, and the golf flight coordinate data into hole data, and store the hole data in a preset storage device 4; the computergraphics processing device 220 is used for calling the hole data in the storage device 4 based on the calling instruction, and the hole data synthesis robot displays the hole data through thedisplay device 3 so as to perform opposite typing with the user.
By adopting the technical scheme, after a user drives a golf ball out, the golf ball flight parameter measuring device 1 is responsible for collecting hitting data, thecamera device 210 shoots a golf ball flight video and generates image data, the image data is obtained by the image processing device of the computer image processing device, dynamic parameter analysis is carried out based on the image data, a 3D dynamic golf ball flight trajectory is simulated, golf ball flight coordinate data of each frame in the 3D dynamic flight trajectory is obtained, and the simulated 3D dynamic golf ball flight trajectory is displayed on thedisplay device 3 in real time. The computergraphic processing device 220 integrates the corresponding hitting data, the golf ball flight video and the golf ball flight coordinate data into hole data, and the hole data is stored in a preset storage device 4 after the user finishes hitting each time. After the storage is finished, the computergraphics processing device 220 calls the hole data in the storage device 4 based on the calling instruction, displays the hole data through thedisplay device 3, and makes a match with the user, so that the human-computer interaction effect is improved.
Optionally, a game scene file and a game difficulty mode file are stored in the storage device 4, where the game scene file includes game scene data; the game difficulty mode file is matched with a game difficulty mode selected by a user, and the game difficulty mode file comprises historical hole data of historical users.
By adopting the technical scheme, a large amount of game scene data and historical hole data of historical users are stored in the preset storage device 4, the storage device 4 solves the storage problem of a large amount of data, and the storage requirement of the computergraphic processing device 220 on hardware such as a memory is reduced, so that the computer graphic processing device has wider applicability to device selection and is easy to realize and apply. In addition, the hole data of the user is uploaded to the storage device 4 with a large-capacity storage function for storage, and the computergraphic processing device 220 only needs to store single-shot data of one user each time, so that the phenomenon of blocking caused by excessive storage of the computergraphic processing device 220 is reduced, the processing efficiency of the computergraphic processing device 220 is improved conveniently, and the processing efficiency of the three-dimensional simulation process is improved.
Optionally, the game difficulty mode file includes a simple mode file, a general mode file, a difficult mode file, and an extraordinary mode file; the computergraphic processing device 220 is configured to generate a corresponding hole score based on the flight coordinate data, and the hole score, the corresponding batting data and the flight coordinate data are integrated into the hole data; the storage device 4 is used for storing the hole data in a corresponding mode file according to a preset achievement threshold value when receiving the hole data.
By adopting the technical scheme, the classified storage of the historical hole data can be realized. The game difficulty and easy mode comprises simple, general, difficult and extraordinary grades, the game difficulty and easy mode files correspondingly stored in the storage device 4 comprise simple mode files, general mode files, difficult mode files and extraordinary mode files, the game difficulty and easy mode files are respectively matched with the corresponding grades in the game difficulty and easy mode, and when the files are obtained, only the files need to be downloaded in the corresponding game difficulty and easy mode files, so that data can be conveniently obtained. The golf ball flight parameter data collected by the golf ball flight parameter measuring device 1, the golf ball flight video shot by thecamera device 210, the golf ball flight track simulated by the computer graphic processing device and the golf ball flight coordinate data are integrated by the computer graphic processing device to generate hole data, the hole data are temporarily stored in a memory of the computergraphic processing device 220, and the hole data of the user are uploaded to the storage device 4 for storage after the single shot process of the user is finished. The mass storage function of the storage device 4 solves the data storage problem and helps to reduce the load of the golf course three-dimensional simulation device 2, thereby facilitating the improvement of the efficiency of the three-dimensional simulation process and avoiding the occurrence of the stuck phenomenon. By adopting a threshold segmentation method, the classification storage of the hole data in the storage device 4 is realized by presetting score thresholds, and only corresponding thresholds are required to be set in the storage device 4, so that the classification process is convenient and quick, and the realization process is simple.
Optionally, the hole data further includes swing videos of the user taken by thecamera device 210.
By adopting the technical scheme, the swing video of the user shot by thecamera device 210, the hitting data, the golf ball flight video shot by thecamera device 210, the golf ball flight trajectory simulated by the graphic processing device of the computer graphic processing device and the golf ball flight coordinate data are integrated together to generate hole data.
Optionally, the swing video is played when the hole data is displayed on thedisplay device 3, and the duration of the swing video does not exceed a preset time threshold.
By adopting the technical scheme, the computergraphic processing device 220 displays the hole data through thedisplay device 3, so that the effect of the opposite-hitting between the robot and the user is realized, the robot sequentially executes the swinging video playback, the hitting video playback, the golf track playback and the hole score display actions in the hole data according to the hole data, the human-computer interaction effect is enhanced, and the user has a human-computer opposite-hitting feeling. The length of the played swing video is related to the experience of the user, if the length of the played swing video is too short, the swing motion is too fast, and the user may not see the swing motion; if the length of the swing video is too long, the swing motion is too slow, the interaction process is not real, and the user waits for a long time. Therefore, the time limit for playing the swing video is 5s, so that the human-computer interaction experience of the user is more real.
Optionally, the system further includes a human-computer interaction module, where the human-computer interaction module is configured to obtain a game selection instruction configured by a user, and transmit the game selection instruction to the computergraphics processing device 220, where the game selection instruction includes a scene selection instruction and a difficulty selection instruction, and the computergraphics processing device 220 downloads, based on the difficulty selection instruction, hole data downloaded from the corresponding game difficulty mode file, and downloads, based on the scene selection instruction, game scene data from the corresponding game scene file.
By adopting the technical scheme, the man-machine fight system of the golf simulator has various game difficulty levels and rich game scenes, and a user configures a game selection instruction from the man-machine interaction module and selects the game difficulty level and the game scene which are matched with the user level.
In a second aspect, the present application provides a man-machine fighting method for a golf simulator, which adopts the following technical scheme:
a man-machine fighting method of a golf simulator comprises the following steps:
the user configures a game selection instruction through the human-computer interaction module, and the human-computer interaction module transmits the game selection instruction configured by the user to the computergraphics processing device 220;
the computergraphic processing device 220 enters a resource loading state after receiving the game selection instruction, and when the resource loading state is reached, the computergraphic processing device 220 downloads corresponding game scene data from the storage device 4 according to the configured game selection instruction and stores the game scene data in the memory;
after the resources are loaded, the computergraphic processing device 220 transmits the game mode data acquired from the memory to theprojector 320, theprojector 320 receives the game mode data and then projects the game scene corresponding to the game scene mode onto theprojection screen 310, the user swings to hit the golf ball onto theprojection screen 310, and the golf ball flight parameter measuring device 1 collects hit ball data; meanwhile, the golf course three-dimensional simulation device 2 collects swing videos of the user through thecamera device 210;
the computergraphic processing device 220 performs three-dimensional simulation on the flight process of the golf ball in the 3D scene according to the hitting data and the swing video of the user, wherein the three-dimensional simulation scene is a dynamic flight track from the movement of the golf ball in the 3D scene to the stop of the movement of the golf ball in the 3D scene, and the hole score is output after the golf ball stops moving in the 3D scene; collecting golf ball flight coordinate data of each frame in a 3D scene, integrating the golf ball flight coordinate data, hole scores, batting data and a swing video of a user to generate hole data, and uploading the hole data to a storage device 4;
the storage device 4 receives the hole data and stores the hole data in the corresponding pattern file;
after the computergraphic processing device 220 executes the hole data uploading action, the robot and the user are combined to beat according to the hole data downloaded from the storage device 4.
By adopting the technical scheme, the man-machine fighting method of the golf simulator is presented in the form of computer readable codes and stored in the memory, and is executed when the processor runs the computer readable codes in the memory, so that the man-machine fighting process of a user and the simulator is realized, the user has the feeling of fighting with a real person in a crossing time and space, and the man-machine interaction effect is improved.
Optionally, in the step when the resource is in the loading state, the method further includes: the computergraphics processing device 220 downloads all the historical hole data in the corresponding pattern file from the storage device 4 according to the game selection instruction configured by the user and stores the historical hole data in the memory.
By adopting the technical scheme, once a user determines a game mode, the computergraphic processing device 220 only needs to download data from the storage device 4 once in a resource loading state, and the single-download mode repeatedly acquires the data from the storage device 4 relative to the computergraphic processing device 220, so that the time for acquiring the data in a program is greatly saved, and the game is more convenient and quicker; in addition, the method is also beneficial to the continuity of three-dimensional simulation display, and the experience effect of the user is improved.
Optionally, after the computergraphics processing apparatus 220 performs each hole data uploading action, the method further includes: the computer graphic processing means 220 reads a hole data downloaded from the storage means 4 from the memory, and executes swing video playback, shot video playback, golf ball trajectory playback in the hole data, and hole score display actions in sequence according to the downloaded hole data.
By adopting the technical scheme, after the computergraphic processing device 220 finishes the uploading action once, the computer graphic processing device directly reads one hole data from the memory to give the hole data to the robot, and the robot sequentially executes the actions of track playback, batting video playback, hole score display and the like in the hole data, namely after a batting process is finished by a user, the robot executes a batting process once to finish a man-machine opposite batting, so that the purpose of man-machine interaction is achieved.
Optionally, when the computergraphic processing device 220 synthesizes a robot after performing the hole data uploading step each time, the computergraphic processing device 220 downloads a hole data from the corresponding mode file in the storage device 4 according to a game selection command configured by the user, and performs swing video playback, ball hitting video playback, golf ball trajectory playback in the hole data, and hole score display actions in sequence according to the downloaded hole data.
By adopting the technical scheme, the computergraphic processing device 220 executes a downloading action once after finishing an uploading action, downloads a hole data from the storage device 4 and gives the hole data to the robot, and the robot sequentially executes the actions of track playback, batting video playback, hole score display and the like in the hole data, namely, after a batting process is finished by a user, the robot executes a batting process once to finish a man-machine opposite batting, so that the effect of man-machine interaction is achieved.
In summary, the present application includes at least one of the following beneficial technical effects:
the golf simulator can reproduce the hitting video of the historical real person by collecting the historical real person hitting data to synthesize the robot capable of reproducing the historical real person hitting pictures, so that a user has a feeling of fighting with the real person in a time-space spanning mode, the man-machine fighting effect is realized, and the man-machine interaction process is beneficial to improving the hitting fun of the user;
through gathering historical real person playing data to make up the robot that realizes synthesizing various different ranks with the historical real person playing data, the playing method that can supply the user to select is abundanter, and the robot can undertake the sparring effect, and the sparring of robot helps promoting the user and plays the ball level.
Drawings
Fig. 1 is a block diagram of a man-machine engagement system of a golf simulator according to an embodiment of the present application.
Fig. 2 is a flowchart of a man-machine engagement method of a golf simulator according to an embodiment of the present application.
Fig. 3 is a man-machine typing process according to an embodiment of the present application.
Description of the reference numerals: 1. a golf ball flight parameter measuring device; 2. a golf course three-dimensional simulation device; 3. a display device; 4. a storage device; 210. a camera device; 220. a computer graphics processing device; 310. a projection screen; 320. a projector.
Detailed Description
The present application is described in further detail below with reference to figures 1-3.
The embodiment of the application discloses a man-machine fighting system of a golf simulator. Referring to fig. 1, the man-machine fighting system of the golf simulator includes a golf ball flight parameter measuring device 1, a golf course three-dimensional simulation device 2 and adisplay device 3, the golf ball flight parameter measuring device 1 is disposed in an area in front of thedisplay device 3 for facilitating parameter measurement, and the golf course three-dimensional simulation device 2 is disposed in an area in front of thedisplay device 3 for facilitating parameter measurement and facilitating projection. The golf ball flight parameter measuring device 1 is used for collecting batting data; the golf course three-dimensional simulation device 2 is used for completing three-dimensional simulation display of a golf course and a golf flying process; thedisplay device 3 includes aprojection screen 310 and aprojector 320, thedisplay device 3 is used for projecting a display picture, and theprojection screen 310 may be a projection screen with anti-hit and cushioning effects. The man-machine battle system of the golf simulator of the embodiment of the application further comprises a storage device 4, the storage device 4 and the golf course three-dimensional simulation device 2 complete data interaction through an interface, and the golf course three-dimensional simulation device 2 can upload collected data to the storage device 4 and download the data from the storage device 4.
The golf flight parameter measuring device 1 comprises a sensing device, wherein the sensing device comprises one or more of an infrared sensor, a planar high-speed camera sensor, a radar sensor and a 3D full-space stereoscopic eagle eye.
The golf ball flight parameter measuring device 1 collects hitting data including one or more of ball speed, takeoff angle, right and left slip angle, and spin.
The golf course three-dimensional simulation device 2 comprises acamera device 210 and a computergraphics processing device 220. Thecamera device 210 is installed on the computergraphic processing device 220, thecamera device 210 is further configured to collect swing videos of a user, and thecamera device 210 is configured to capture golf flight videos and generate image data; the computergraphics processing device 220 performs dynamic parameter analysis according to the hitting data and the golf ball flight video to generate a dynamic golf ball flight trajectory displayed in a 3D scene in real time. The computergraphic processing device 220 may collect golf ball flight coordinate data of each frame during a dynamic flight of a golf ball in a 3D scene, generate a corresponding hole score based on the flight coordinate data, and integrate the hole score with the corresponding hitting data, the golf ball flight coordinate data, and the golf ball flight video into the hole data, that is, one hole data including hitting data, a swing video of a user, a dynamic flight trajectory of a golf ball, golf ball flight coordinate data, and a hole score. The computergraphic processing device 220 may upload the generated hole data to the storage device 4, and the computergraphic processing device 220 is responsible for synthesizing a match between the robot and the user according to the hole data downloaded from the storage device 4.
The flight trajectory of a golf ball may be considered as a line consisting of a series of golf ball flight coordinate data recorded at the same interval time, which can embody the flight course of the golf ball.
The computergraphics processing device 220 includes a memory for storing hole data and a processor for running a computer readable program.
The hole score is obtained according to the distance between the position coordinates of the golf ball after stopping the movement in the 3D scene and the hole position coordinates, for example, the closer the golf ball is to the hole, the higher the hole score.
The hitting data collected by the golf ball flight parameter measuring device 1, the data collected by the golf course three-dimensional simulation device 2 and the hole data are temporarily stored in the memory of the computergraphic processing device 220, the hole data of the user are uploaded to the storage device 4 with a large-capacity storage function for storage after the single hitting process of the user is finished, the computergraphic processing device 220 only needs to store the single hitting data of one user in the memory every time, and the processing efficiency of the computergraphic processing device 220 is improved conveniently.
The storage device 4 stores a game scene file and a game difficulty mode file. Wherein the game scene mode comprises game scene data, such as the golf course field type, and the storage device 4 correspondingly stores a game scene file for the golf course three-dimensional simulation device 2 to download. The game difficulty mode file is matched with a game difficulty mode which can be selected by a user, and the game difficulty mode file comprises historical hole data of historical users. The storage device 4 may store the historical hole data in a classified manner by using a clustering method, a threshold segmentation method or other methods capable of realizing data classification.
The game difficulty and easy modes comprise simple, general, difficult and extraordinary grades, and the game difficulty and easy mode files correspondingly stored in the storage device 4 comprise simple mode files, general mode files, difficult mode files and extraordinary mode files which are respectively matched with the corresponding grades in the game difficulty and easy modes. For example, if the game difficulty mode is "simple", the mode file in the storage device 4 adapted to the "simple" mode is a simple mode file, and when the user selects the "simple" mode, the computergraphics processing device 220 downloads the simple mode file corresponding to the "simple" mode from the storage device 4 for the user to practice.
The simple mode file, the general mode file, the difficult mode file and the extraordinary mode file contain a series of historical hole data of historical users, and the storage device 4 divides the hole data into the simple mode file, the general mode file, the difficult mode file and the extraordinary mode file according to hole scores when receiving the hole data.
The storage device 4 can be a cloud server, and a storage unit and a computing unit which are matched with the golf course three-dimensional simulation device 2 are deployed on the cloud server to provide storage service and computing service for the golf course three-dimensional simulation device 2.
The computergraphics processing device 220 calls the hole data in the storage device 4 based on the calling instruction, and displays the hole data on thedisplay device 3, wherein the displaying process comprises the following steps: and the swing video, the golf ball flying coordinate and the hole score are sequentially played, and the batting process with the user is finished, so that the man-machine interaction effect is enhanced, and the user has a man-machine batting feeling. In the display process, the time length of playing the swing video does not exceed a preset time threshold. This is because the length of the playing swing video is related to the experience of the user, and if the length of the playing swing video is too short, the swing motion is too fast, and the user may not see the swing motion; if the length of the swing video is too long, the swing motion is too slow, the interaction process is not real, and the waiting time of the user is longer. Therefore, the duration of the swing video does not exceed a preset time threshold, so that the human-computer interaction experience of a user is more real.
As an embodiment of the present application, the time for playing the swing video is limited to 5s.
The system further comprises a human-computer interaction module, wherein the human-computer interaction module is used for acquiring a game selection instruction configured by a user and transmitting the game selection instruction to the computergraphics processing device 220, the game selection instruction comprises a scene selection instruction and a difficulty selection instruction, the computergraphics processing device 220 downloads hole data from the corresponding game difficulty mode file based on the difficulty selection instruction, and downloads game scene data from the corresponding game scene file based on the scene selection instruction.
The implementation principle of the man-machine battle system of the golf simulator in the embodiment of the application is as follows: and the user configures a game selection instruction from the man-machine interaction module and selects a game mode. After a user drives a golf ball out, the golf ball flight parameter measuring device 1 collects ball hitting data, thecamera device 210 shoots a golf ball flight video and generates image data, the computer graphic processing device obtains the ball hitting data and the golf ball flight video and performs dynamic parameter analysis, a dynamic golf ball flight track is simulated and displayed on thedisplay device 3 in real time, the whole process is closely connected with the ball hitting action without any pause feeling, and the user feels as if the user drives the golf ball in a real golf course. The hitting data collected by the golf ball flight parameter measuring device 1 and the data collected by the golf course three-dimensional simulation device 2 are firstly temporarily stored in a memory of the computergraphic processing device 220, the computergraphic processing device 220 integrates hole data, the hole data of a user is uploaded to the storage device 4 to be stored after the single hitting process of the user is finished, the computergraphic processing device 220 only needs to store the single hitting data of one user every time, and the processing efficiency of the computergraphic processing device 220 is improved conveniently. The mass storage function of the storage device 4 solves the data storage problem and helps to reduce the load of the golf course three-dimensional simulation device 2, thereby facilitating the improvement of the efficiency of the three-dimensional simulation process and avoiding the occurrence of the stuck phenomenon.
The embodiment of the application also discloses a man-machine fighting method of the golf simulator. Referring to fig. 2 and 3, a man-machine fighting method of a golf simulator includes the steps of:
the user configures the game selection command through the human-computer interaction module, and the human-computer interaction module transmits the game selection command configured by the user to the computergraphics processing device 220.
The game selection instruction comprises a scene selection instruction and a difficulty selection instruction, the scene selection instruction is used for selecting a game scene mode, and the difficulty selection instruction is used for selecting a game difficulty mode.
The computergraphic processing device 220 enters a resource loading state after receiving the game selection instruction, and when the resource loading state is reached, the computergraphic processing device 220 downloads corresponding game scene data from the storage device 4 according to the configured game selection instruction and stores the corresponding game scene data in the memory;
after the resources are loaded, the computergraphic processing device 220 transmits the game mode data acquired from the memory to theprojector 320, theprojector 320 projects a game scene corresponding to the game scene mode onto theprojection screen 310 after receiving the game mode data, the user swings to hit a golf ball onto theprojection screen 310, and the golf ball flight parameter measuring device 1 acquires hit ball data; meanwhile, the golf course three-dimensional simulation device 2 collects swing videos of the user through thecamera device 210.
The batting data includes one or more of ball speed, take-off angle, right and left declination angle, spin, etc.
The computergraphic processing device 220 performs three-dimensional simulation on the flight process of the golf ball in the 3D scene according to the hitting data and the swing video of the user, wherein the three-dimensional simulation scene is a dynamic flight track from the movement of the golf ball in the 3D scene to the stop of the movement of the golf ball in the 3D scene, and the hole score is output after the golf ball stops moving in the 3D scene; collecting golf ball flight coordinate data of each frame in a 3D scene, integrating the golf ball flight coordinate data, hole scores, batting data and a swing video of a user to generate hole data, and uploading the hole data to a storage device 4;
the storage device 4 receives the hole data and stores the hole data in the corresponding pattern file;
after the computergraphic processing device 220 executes the hole data uploading action, the robot and the user play a match according to the hole data downloaded from the storage device 4.
The computergraphic processing device 220 may collect golf ball flight coordinate data and hole scores of a complete trajectory of a golf ball during a flight in a 3D scene, and generate a hole data in combination with the collected hitting data and a swing video of a user, i.e., a hole data including hitting data, a swing video of a user, a dynamic flight trajectory of a golf ball, and golf ball flight coordinate data and hole scores during a flight in a 3D scene of a golf ball.
The acquisition of all the coordinate points of the flight trajectory of the golf ball may employ the following process: coordinate data is recorded at intervals t until the ball lands, each coordinate data representing the spatial coordinates of the golf ball on the three-dimensional simulated golf course at a specific moment in time.
The storage means 4 receives the hole data and stores the hole data in the corresponding pattern file.
When the storage device 4 receives the hole data, the hole data can be stored in the corresponding pattern file according to the hole score in the hole data. Methods that may be used include threshold segmentation, K-value clustering, and other methods that enable data classification. For example, if the classification storage of hole data is implemented by a threshold segmentation method, the method includes: a first threshold, a second threshold and a third threshold are preset in the storage device 4, after the storage device 4 receives the hole data, a hole score field in the hole data is compared with the threshold, and if the hole score is smaller than the first threshold, the hole data is stored in a simple mode file; if the hole score is between the first threshold and the second threshold, storing the hole data into a general mode file; if the hole score is between the second threshold and a third threshold, storing the hole data into a difficult mode file; if the hole score is greater than the third threshold, the hole data is stored in the supernormal mode file.
After the computergraphic processing device 220 executes the hole data uploading action, the robot and the user are combined to beat according to the hole data downloaded from the storage device 4.
As an embodiment of the present application, the computergraphic processing device 220 synthesizing a pair of a robot and a user based on hole data downloaded from the storage device 4 includes: after the computergraphic processing device 220 finishes uploading the hole data each time, downloading one hole data from the corresponding mode file in the storage device 4, flying the golf ball once in the 3D scene according to the track point data in the downloaded hole data, and playing back the real swing video in the hole data to achieve an interactive effect. The technical scheme has the advantages that: the computergraphic processing device 220 executes a downloading action after finishing an uploading action every time, downloads one hole data from the storage device 4 and gives the data to the robot, and the robot sequentially executes the actions of batting video playback, golf ball track playback in the hole data, hole score display and the like, namely, after finishing a batting process every time, the robot executes a batting process and finishes a man-machine opposite batting, so that the purpose of man-machine interaction is achieved, the robot can achieve an accompanying and practicing effect, and the batting level of a user can be improved through accompanying and practicing of the robot.
As another embodiment of the present application, the computergraphic processing device 220 synthesizing a pair of a robot and a user based on the hole data downloaded from the storage device 4 includes: the computergraphics processing device 220 downloads data from the storage device 4 when entering the resource loading state, and at the moment, the computergraphics processing device 220 downloads all historical hole data in the mode file corresponding to the game mode selected by the user from the storage device 4 and stores the historical hole data in the memory; after the computergraphic processing device 220 finishes each hole data uploading action, when the robot is synthesized, the computergraphic processing device 220 reads hole data downloaded from the storage device 4 from the memory, the hole data is given to the robot, and the robot sequentially executes actions of batting video playback, golf ball track playback in the hole data, hole score display and the like according to track point data in the hole data, namely, after a user finishes each batting process, the robot executes a batting process, finishes one man-machine opposite batting, and achieves the purpose of man-machine interaction. The technical scheme has the advantages that: after the user determines the game mode, the computergraphics processing device 220 only needs to download data from the storage device 4 once, and the data is downloaded once, so that the data acquisition time in the program operation is greatly saved, convenience and rapidness are realized, the continuity of three-dimensional simulation display images is facilitated, and the experience effect of the user is improved.
The robot is not AI in a general sense, but a robot capable of reproducing a historical live-action picture synthesized by collecting historical live-action data. The robot has different levels, namely different degrees of batting levels, the batting level of the robot is realized by combining historical real-person batting data, a plurality of hole data with common scores are combined to form the robot with the common level, a plurality of hole data with very good scores are combined to form the robot with the extraordinary level. For example, the playing level of the robot includes simple, general, difficult, extraordinary and the like, and the robot can present the ball skill level corresponding to the game difficulty mode according to the game difficulty mode selected by the user. The robot can perfectly reproduce the batting video of the historical real person, so that the user has the feeling of fighting with the real person in spanning time and space. For example, if the game difficulty mode selected by the user is "normal", the computergraphics processing device 220 downloads the historical hole data in the normal mode file from the storage device 4, selects any hole data from the downloaded historical hole data to give the robot, and the robot sequentially executes the operations of trajectory playback, shot video playback, hole score display, and the like according to the hole data, that is, completes one round of the putting between the user and the robot. The robot can bear the effect of 'accompany training', and the ball playing level of a user can be improved through accompany training of the robot.
As an embodiment of the present application, the memory may be a cloud server.
By adopting the technical scheme, the man-machine fighting method of the golf simulator is presented in the form of the computer readable code and stored in the memory of the man-machine fighting system of the golf simulator, and when the processor runs the computer readable code in the memory, the man-machine fighting method of the golf simulator is executed, so that the man-machine fighting process of a user and the simulator is realized, and the user has the feeling of fighting with real people in time and space.
The above are preferred embodiments of the present application, and the scope of protection of the present application is not limited thereto, so: equivalent changes in structure, shape and principle of the present application shall be covered by the protection scope of the present application.