Disclosure of Invention
The technical problem to be solved by the invention is to provide an AR venue interface interaction method and system based on multiple clients, which can increase the interestingness of players, meet the experience of players and ensure the interactivity among multiple players.
The technical scheme for solving the technical problems is as follows: an AR venue interface interaction method based on multiple clients comprises the following steps,
s1, respectively establishing virtual three-dimensional scenes corresponding to the stadiums in the plurality of clients based on the stadiums;
s2, each client scans one or more identification graphs respectively to generate a plurality of scene elements;
s3, loading a plurality of scene elements into the virtual three-dimensional scene in each client, and generating an AR venue interface in each client;
and S4, interacting the scene elements in the AR venue interface according to the preset interaction rule under the control of the corresponding client.
The invention has the beneficial effects that: according to the multi-client-based AR venue interface interaction method, the AR venue interface is generated by establishing the virtual three-dimensional scene and the plurality of client-side scanning recognition images, and the multi-client-side AR venue interface interaction is carried out, so that venue game items have richer game experience, and the player and elements in the game are not in a state of completely separating real from virtual, so that the player can really feel simulated events in the virtual world in the real world, the use interest of the player can be increased, the experience of the player is met, and the interactivity among multiple players is ensured.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, in S1, Unity3d is used to create a virtual three-dimensional scene of the venue.
Further, in S2, the identification pattern is embodied as an individual card whose pattern can be recognized.
Further, the virtual three-dimensional scene is a virtual three-dimensional scene of the seabed world, and the scene elements are various creatures of the seabed world.
Further, the interaction rule is specifically a marine ecological chain.
Based on the multi-client-based AR venue interface interaction method, the invention also provides a multi-client-based AR venue interface interaction system.
An AR venue interface interaction system based on multiple clients comprises a virtual three-dimensional scene establishing module, a scene element generating module, an AR venue interface generating module and an interaction module,
the three-dimensional scene establishing module is used for respectively establishing virtual three-dimensional scenes corresponding to venues in a plurality of clients based on the venues;
the scene element generation module is used for scanning one or more identification graphs respectively by each client to generate a plurality of scene elements;
the AR venue interface generation module is configured to load a plurality of scene elements into the virtual three-dimensional scene in each client, and generate an AR venue interface in each client;
the interaction module is used for interacting the scene elements in the AR venue interface according to preset interaction rules under the control of the corresponding client.
The invention has the beneficial effects that: the multi-client-based AR venue interface interaction system generates the AR venue interface by establishing the virtual three-dimensional scene and the plurality of client-side scanning recognition images, and performs the multi-client-side AR venue interface interaction, so that venue game items have richer game experience, and the player and elements in the game are not in a state of completely separating real from virtual, so that the player can really feel simulated events in the virtual world in the real world, the use interest of the player can be increased, the experience feeling of the player is met, and the interactivity among the players is ensured.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, the three-dimensional scene establishing module adopts Unity3d to establish a virtual three-dimensional scene of the venue.
Further, in the scene element generation module, the recognition graph is a card with an independent recognizable pattern.
Further, the virtual three-dimensional scene is a virtual three-dimensional scene of the seabed world, and the scene elements are various creatures of the seabed world.
Further, the interaction rule is specifically a marine ecological chain.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, a multi-client based AR venue interface interaction method includes the following steps,
s1, respectively establishing virtual three-dimensional scenes corresponding to the stadiums in the plurality of clients based on the stadiums;
s2, each client scans one or more identification graphs respectively to generate a plurality of scene elements;
s3, loading a plurality of scene elements into the virtual three-dimensional scene in each client, and generating an AR venue interface in each client;
and S4, interacting the scene elements in the AR venue interface according to the preset interaction rule under the control of the corresponding client.
Specifically, the method comprises the following steps: in S1, Unity3d is used to create a virtual three-dimensional scene of the venue. In S2, the identification pattern is embodied as an individual card with a recognizable pattern. The virtual three-dimensional scene is a virtual three-dimensional scene of the seabed world, and the scene elements are various organisms of the seabed world. The interaction rule is specifically a marine ecological chain.
The AR venue interface interaction method based on the multiple clients can build submarine world venue game projects for multiple players to experience and interact. The following description is specifically made by taking submarine world stadium-like game items as an example:
firstly, a submarine world game venue is constructed, and a plurality of clients respectively establish a submarine world virtual three-dimensional scene based on the submarine world game venue. The plurality of clients can respectively scan corresponding identification pictures (preset purpose-made cards) to perform image identification, and generate corresponding seabed world organisms (specifically marine fishes) in the seabed world virtual three-dimensional scene, so that an AR venue interface is formed; meanwhile, due to the existence of the marine ecological chain, predation and prey situations can occur among the marine fishes generated by image recognition, the predation and prey situations serve as interaction rules, and the multiple scene elements are interacted in the AR venue interface under the control of the corresponding client according to the preset interaction rules.
In this embodiment, the marine fishes may be specifically set as: there are eight kinds of fishes in the seabed world, which are clown fish, blue sea bream, anglerfish, bat ray, octopus, big white shark, tiger whale and mermaid, respectively. The eight fishes form a complete and ordered marine ecological chain, which can be specifically as follows: mermaid, tiger whale, big white shark, octopus, manta ray, angka fish, blue snapper and clown fish.
In this embodiment, the virtual three-dimensional scene of the seabed world simulates a real marine environment, and the virtual three-dimensional scene of the seabed world can be reefs with different shapes, various marine plants with bright colors, seaweed, algae and the like, wherein the reefs belong to obstacles, and marine fishes can have an avoiding natural reaction when approaching the reefs.
In this embodiment, each player will have a set of cards (identification cards) of the same number and type, with the contents of the cards being tailored identification cards for each fish type to generate painted fish for interaction. The fish identified by the card will be marked as an interactive fish. In addition, various marine fishes can be automatically generated in the virtual three-dimensional scene of the seabed world, and the marine fishes automatically generated in the virtual three-dimensional scene of the seabed world are marked as non-interactive fishes. The interactive fish and the non-interactive fish belong to two mutually independent marine ecological chains, the interactive fish only can prey on the interactive fish, the prey relationship of the interactive fish follows the preset marine ecological chain, and the non-interactive fish only can prey on the non-interactive fish and the prey relationship of the non-interactive fish follows other preset marine ecological chains.
In this embodiment, the client serves as a carrier of interaction, and menus of "start interaction" and "end interaction" are added to the client. After selecting "start interaction", the fish generated by the client is used for interaction. The 'ending interaction' can be selected at any time in the middle of the interaction, the interactive fish can be cleared, and then the scanned and generated fish can be used for viewing. After the interactive mode is turned on, the interactive fish generated by the image scan will be born, swim, and prey in the designated area.
In this embodiment, each player has n cards, the number of interactions is set to m rounds, each round defines x seconds, the round time is one, the round is finished, and all the generated interactive fish will be returned. The m rounds are over and the interactive game is automatically over. Each player may scan cards at any time during each round. It is also possible that cards are not scanned, i.e., it is not limited that all players must participate in each round of interaction. Each player can only scan one card per round, and each card can only be played once in all rounds. In a turn, the player is awarded points when the interactive fish prey on other interactive fish, and a praise animation can appear.
In this embodiment, the process of the multiple players interactively experiencing the submarine world stadium-like game item is as follows:
a plurality of players each select an identical deck. Starting each round, players place special cards in front of cameras of respective clients for recognition, and after the cards are scanned, corresponding types of interactive fish are generated in a virtual three-dimensional scene of the submarine world (the virtual three-dimensional scene of the submarine world is formed by shooting a submarine world game venue through the cameras of the clients). The player has no requirement on card scanning sequence, and can scan cards at any time. The generated interactive fish carries out predation attack according to the marine ecological chain, and if the interactive fish predates to other interactive fish, the player is given a score. And after all rounds are finished, the game is automatically finished, and the ranking list is displayed according to the scores of all players.
According to the multi-client-based AR venue interface interaction method, the AR venue interface is generated by establishing the virtual three-dimensional scene and the plurality of client-side scanning recognition images, and the multi-client-side AR venue interface interaction is carried out, so that venue game items have richer game experience, and the player and elements in the game are not in a state of completely separating real from virtual, so that the player can really feel simulated events in the virtual world in the real world, the use interest of the player can be increased, the experience of the player is met, and the interactivity among multiple players is ensured.
Based on the multi-client-based AR venue interface interaction method, the invention also provides a multi-client-based AR venue interface interaction system.
As shown in fig. 2, an AR venue interface interactive system based on multiple clients includes a virtual three-dimensional scene creation module, a scene element generation module, an AR venue interface generation module and an interactive module,
the three-dimensional scene establishing module is used for respectively establishing virtual three-dimensional scenes corresponding to venues in a plurality of clients based on the venues;
the scene element generation module is used for scanning one or more identification graphs respectively by each client to generate a plurality of scene elements;
the AR venue interface generation module is configured to load a plurality of scene elements into the virtual three-dimensional scene in each client, and generate an AR venue interface in each client;
the interaction module is used for interacting the scene elements in the AR venue interface according to preset interaction rules under the control of the corresponding client.
Specifically, the three-dimensional scene establishing module adopts Unity3d to establish a virtual three-dimensional scene of a venue. In the scene element generation module, the recognition graph is a card with an independent recognizable pattern. The virtual three-dimensional scene is a virtual three-dimensional scene of the seabed world, and the scene elements are various organisms of the seabed world. The interaction rule is specifically a marine ecological chain.
The AR venue interface interaction system based on the multi-client can build submarine world venue game projects for multi-player experience and interaction. The following description is specifically made by taking submarine world stadium-like game items as an example:
firstly, a submarine world game venue is constructed, and a plurality of clients respectively establish a submarine world virtual three-dimensional scene based on the submarine world game venue. The plurality of clients can respectively scan corresponding identification pictures (preset purpose-made cards) to perform image identification, and generate corresponding seabed world organisms (specifically marine fishes) in the seabed world virtual three-dimensional scene, so that an AR venue interface is formed; meanwhile, due to the existence of the marine ecological chain, predation and prey situations can occur among the marine fishes generated by image recognition, the predation and prey situations serve as interaction rules, and the multiple scene elements are interacted in the AR venue interface under the control of the corresponding client according to the preset interaction rules.
In this embodiment, the marine fishes may be specifically set as: there are eight kinds of fishes in the seabed world, which are clown fish, blue sea bream, anglerfish, bat ray, octopus, big white shark, tiger whale and mermaid, respectively. The eight fishes form a complete and ordered marine ecological chain, which can be specifically as follows: mermaid, tiger whale, big white shark, octopus, manta ray, angka fish, blue snapper and clown fish.
In this embodiment, the virtual three-dimensional scene of the seabed world simulates a real marine environment, and the virtual three-dimensional scene of the seabed world can be reefs with different shapes, various marine plants with bright colors, seaweed, algae and the like, wherein the reefs belong to obstacles, and marine fishes can have an avoiding natural reaction when approaching the reefs.
In this embodiment, each player will have a set of cards (identification cards) of the same number and type, with the contents of the cards being tailored identification cards for each fish type to generate painted fish for interaction. The fish identified by the card will be marked as an interactive fish. In addition, various marine fishes can be automatically generated in the virtual three-dimensional scene of the seabed world, and the marine fishes automatically generated in the virtual three-dimensional scene of the seabed world are marked as non-interactive fishes. The interactive fish and the non-interactive fish belong to two mutually independent marine ecological chains, the interactive fish only can prey on the interactive fish, the prey relationship of the interactive fish follows the preset marine ecological chain, and the non-interactive fish only can prey on the non-interactive fish and the prey relationship of the non-interactive fish follows other preset marine ecological chains.
In this embodiment, the client serves as a carrier of interaction, and menus of "start interaction" and "end interaction" are added to the client. After selecting "start interaction", the fish generated by the client is used for interaction. The 'ending interaction' can be selected at any time in the middle of the interaction, the interactive fish can be cleared, and then the scanned and generated fish can be used for viewing. After the interactive mode is turned on, the interactive fish generated by the image scan will be born, swim, and prey in the designated area.
In this embodiment, each player has n cards, the number of interactions is set to m rounds, each round defines x seconds, the round time is one, the round is finished, and all the generated interactive fish will be returned. The m rounds are over and the interactive game is automatically over. Each player may scan cards at any time during each round. It is also possible that cards are not scanned, i.e., it is not limited that all players must participate in each round of interaction. Each player can only scan one card per round, and each card can only be played once in all rounds. In a turn, the player is awarded points when the interactive fish prey on other interactive fish, and a praise animation can appear.
In this embodiment, the process of the multiple players interactively experiencing the submarine world stadium-like game item is as follows:
a plurality of players each select an identical deck. Starting each round, players place special cards in front of cameras of respective clients for recognition, and after the cards are scanned, corresponding types of interactive fish are generated in a virtual three-dimensional scene of the submarine world (the virtual three-dimensional scene of the submarine world is formed by shooting a submarine world game venue through the cameras of the clients). The player has no requirement on card scanning sequence, and can scan cards at any time. The generated interactive fish carries out predation attack according to the marine ecological chain, and if the interactive fish predates to other interactive fish, the player is given a score. And after all rounds are finished, the game is automatically finished, and the ranking list is displayed according to the scores of all players.
The multi-client-based AR venue interface interaction system generates the AR venue interface by establishing the virtual three-dimensional scene and the plurality of client-side scanning recognition images, and performs the multi-client-side AR venue interface interaction, so that venue game items have richer game experience, and the player and elements in the game are not in a state of completely separating real from virtual, so that the player can really feel simulated events in the virtual world in the real world, the use interest of the player can be increased, the experience feeling of the player is met, and the interactivity among the players is ensured.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.