CN117482520A - Travel route generation method and device, head-mounted virtual reality equipment and medium - Google Patents

Travel route generation method and device, head-mounted virtual reality equipment and medium Download PDF

Info

Publication number
CN117482520A
CN117482520A CN202311602698.XA CN202311602698A CN117482520A CN 117482520 A CN117482520 A CN 117482520A CN 202311602698 A CN202311602698 A CN 202311602698A CN 117482520 A CN117482520 A CN 117482520A
Authority
CN
China
Prior art keywords
preset
virtual
gesture
hand
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311602698.XA
Other languages
Chinese (zh)
Inventor
许展豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202311602698.XA priority Critical patent/CN117482520A/en
Publication of CN117482520A publication Critical patent/CN117482520A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/212Input arrangements for video game devices characterised by their sensors, purposes or types using sensors worn by the player, e.g. for measuring heart beat or leg activity
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/25Output arrangements for video game devices
    • A63F13/28Output arrangements for video game devices responding to control signals received from the game device for affecting ambient conditions, e.g. for vibrating players' seats, activating scent dispensers or affecting temperature or light
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1012Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals involving biosensors worn by the player, e.g. for measuring heart beat, limb activity
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/807Role playing or strategy games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8082Virtual reality

Abstract

The application provides a travel route generation method, a travel route generation device, head-mounted virtual reality equipment and a head-mounted virtual reality medium, and relates to the technical field of virtual reality. The method is applied to the head-mounted virtual reality equipment provided with the graphical interaction interface pair, wherein the graphical interaction interface is displayed with a preset virtual scene, and the method comprises the following steps: acquiring a first hand action; if the first hand action includes: the first preset hand action is performed, and a travelling position point is determined from a preset virtual scene according to the first hand action; if the first hand action is changed into the preset ending action, generating a game traveling route according to a preset starting point and a traveling position point in the preset virtual scene so as to control the target virtual object to travel from the preset starting point to the traveling position point along the game traveling route in the preset virtual scene. The method and the device can set the advancing position point for the target virtual object in advance, and improve the game experience of the user.

Description

Travel route generation method and device, head-mounted virtual reality equipment and medium
Technical Field
The disclosure relates to the technical field of virtual reality, in particular to a travel route generation method, a travel route generation device, a head-mounted virtual reality device and a medium.
Background
A strategy Game (SLG), in which a target virtual object needs to continuously attack a plurality of sites in a virtual scene to complete a Game target, is generally referred to as a war strategy Simulation Game.
In the existing SLG game, the target virtual object remains in place after the target virtual object attacks on one place, and waits for the user to indicate the next attack place, so the user needs to continuously pay attention to whether the target virtual object attacks on the current place or not, so as to arrange the next attack place as soon as possible.
The existing attack place setting mode is complicated, and needs users to pay continuous attention to the attack state of the target virtual object, so that the game experience of the users is not facilitated.
Disclosure of Invention
The present disclosure aims to provide a travel route generation method, a device, a head-mounted virtual reality device and a medium, so as to set a travel position point for a target virtual object in advance, and improve the game experience of a user.
In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
in a first aspect, an embodiment of the present application provides a method for generating a travel route, which is applied to a head-mounted virtual reality device provided with a pair of graphical interaction interfaces, where a preset virtual scene is displayed in the graphical interaction interfaces, and the method includes:
Acquiring a first hand action;
if the first hand action includes: a first preset hand action, determining a travelling position point from the preset virtual scene according to the first hand action;
and if the first hand action is changed into a preset ending action, generating a game traveling route according to a preset starting point and the traveling position point in the preset virtual scene so as to control a target virtual object to travel from the preset starting point to the traveling position point along the game traveling route in the preset virtual scene.
In a second aspect, an embodiment of the present application further provides a travel route generating device, which is applied to a head-mounted virtual reality device provided with a pair of graphical interaction interfaces, where a preset virtual scene is displayed, and the device includes:
the action acquisition module is used for acquiring a first hand action;
the travel position point determining module is configured to, if the first hand action includes: a first preset hand action, determining a travelling position point from the preset virtual scene according to the first hand action;
and the travel route generation module is used for generating a game travel route according to a preset starting point and the travel position point in the preset virtual scene if the first hand action is changed into the preset ending action so as to control a target virtual object to travel from the preset starting point to the travel position point along the game travel route in the preset virtual scene.
In a third aspect, embodiments of the present application further provide a head-mounted virtual reality device, including: a processor, a storage medium, and a bus, the storage medium storing program instructions executable by the processor, the processor and the storage medium communicating over the bus when the head-mounted virtual reality device is running, the processor executing the program instructions to perform the steps of the travel route generation method of any of the first aspects.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of travel route generation as described in any of the first aspects.
The beneficial effects of this application are:
according to the travel route generation method, the device, the head-mounted virtual reality equipment and the medium, for the head-mounted virtual reality equipment, based on the acquired first hand action, the travel position point is generated in the preset virtual scene, so that the game travel route is generated according to the preset starting point and the travel position point, after the target virtual object completes a task at the current task place, the target virtual object can directly reach the travel position point along the game travel route to execute the task of the travel position point, the task place can be planned for the target virtual object in advance, the next place is not required to be selected after the target virtual object completes the current task, the user is released from the continuous attention to the attack state of the target virtual object, and the game experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present disclosure and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a schematic flow chart of a travel route generating method according to an embodiment of the present application;
fig. 2 is a second flow chart of the travel route generating method according to the embodiment of the present application;
FIG. 3 is a schematic diagram of a first gesture provided in an embodiment of the present application;
fig. 4 is a flowchart illustrating a third method for generating a travel route according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a second gesture provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a graphical interactive interface provided in an embodiment of the present application;
fig. 7 is a schematic diagram of a preset ending action provided in an embodiment of the present application;
fig. 8 is a flow chart diagram of a travel route generating method according to an embodiment of the present application;
FIG. 9 is a third gesture schematic provided in an embodiment of the present application;
Fig. 10 is a flowchart fifth of a travel route generating method according to an embodiment of the present application;
fig. 11 is a flowchart of a travel route generation method according to an embodiment of the present application;
FIG. 12 is a schematic view of a straight travel route provided in an embodiment of the present application;
fig. 13 is a flow chart of a travel route generating method according to an embodiment of the present application;
FIG. 14 is a schematic view of a polyline travel route provided by an embodiment of the present application;
fig. 15 is a schematic structural diagram of a travel route generating device according to an embodiment of the present application;
fig. 16 is a schematic diagram of a head-mounted virtual reality device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are some embodiments of the present disclosure, but not all embodiments.
Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Furthermore, the terms first, second and the like in the description and in the claims of the present disclosure and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, without conflict, features in embodiments of the present application may be combined with each other.
The application provides a travel route generation method, and the travel route generation method in one embodiment of the application can be operated on a local terminal device or a server. When the travel route generation method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an alternative embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud game. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the running mode of the cloud game, the running main body of the game program and the running and running of the running route generating method of which the game picture presenting main body are separated are completed on the cloud game server, and the function of the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device which is close to a user side and has a data transmission function, such as a mobile terminal, a television, a computer, a palm computer and the like; but the cloud game server which performs information processing is a cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with a player through a graphical interaction interface, namely, conventionally downloading and installing a game program through the head-mounted virtual reality device and running. The manner in which the local terminal device provides the graphical interactive interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal, or it may be provided to the player by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical interactive interface including game visuals, and a processor for running the game, generating the graphical interactive interface, and controlling the display of the graphical interactive interface on the display screen.
In an optional implementation manner, the embodiment of the disclosure provides a method for generating a travel route, and a graphical interaction interface is provided through a terminal device, where the terminal device may be the aforementioned local terminal device or the aforementioned client device in the cloud interaction system.
According to the travel route generation method, the applied terminal equipment is the head-mounted virtual reality equipment, and the head-mounted virtual reality equipment can be also called as head-mounted virtual reality equipment and is provided with a plurality of cameras, and the cameras are arranged around the outside of the head-mounted virtual reality equipment and used for acquiring images in real time. The head-mounted virtual reality device does not need to provide a graphical interactive interface through a display, but rather provides a graphical interactive interface directly in front of the eyes of the user, who can view the graphical interactive interface by wearing the head-mounted virtual reality device.
The head-mounted virtual reality device can be a device with a processor, a game program is directly installed and operated in the head-mounted virtual reality device, and a preset virtual scene provided by the game program is displayed in a graphical interactive interface; the head-mounted virtual reality device can also be an independent client device, and is used for receiving data sent by the cloud game server through communication with the cloud game server in the cloud interaction system, so that a preset virtual scene is displayed in the graphical interaction interface.
Based on the head-mounted virtual reality device, the application provides a travel route generation method applied to the head-mounted virtual reality device. Referring to fig. 1, a first flowchart of a travel route generating method according to an embodiment of the present application is shown in fig. 1, where the method may include:
s101: a first hand motion is obtained.
And running the SLG game, and displaying a preset virtual scene of the SLG game in a graphical interactive interface of the head-mounted virtual reality device, wherein the preset virtual scene comprises the following steps: at least one controlled virtual object controlled by a player and a large number of virtual objects, wherein the virtual objects form different task places in a preset virtual scene, and the player needs to control the controlled virtual object to go to each task place to execute tasks so as to complete a game target.
In the process that the player plays a game through the head-mounted virtual reality equipment, cameras arranged around the head-mounted virtual reality equipment monitor scenes in the visual field range of the head-mounted virtual reality equipment, hands of a user move and act in the visual field range of the cameras, and the cameras can acquire first hand actions. The mode of the camera for collecting the first hand action can be as follows: image acquisition recognition, video acquisition recognition, or key action recognition.
Specifically, the image acquisition and recognition is used for acquiring an image of a user hand when the camera detects that the user hand moves in the visual field of the camera and makes a motion, obtaining a first user hand image, sending the first user hand image to a processor or a cloud game server in the head-mounted virtual reality device, and recognizing the first user hand image by the processor or the cloud game server to obtain the first hand motion. The first user hand image is a hand image of one hand of the user, and the first hand motion is a hand motion of the one hand.
The video acquisition and recognition is used for acquiring the video of the hand action of the user when the camera detects that the hand of the user moves in the visual field of the camera and makes the action, so as to obtain a first hand video, sending the first hand video to a processor or a cloud game server in the head-mounted virtual reality equipment, and recognizing the first hand video by the processor or the cloud game server so as to obtain the first hand action.
The key action recognition is used for detecting and recognizing actions of the hands of the user in the visual field of the camera, and when the first hand action is detected, the indication information of the first hand action is sent to the head-mounted virtual reality device.
If one hand of the user is specified to be the left hand, the other hand is specified to be the right hand, and if one hand of the user is specified to be the right hand, the other hand is specified to be the left hand. In the present embodiment, the first hand motion is represented by the hand motion of the right hand of the user.
S102: if the first hand action includes: and determining a traveling position point from the preset virtual scene according to the first preset hand action.
In this embodiment, a plurality of hand actions are designed in advance, each hand action corresponds to a different function and is used for generating different interaction instructions, the first preset hand action is used as a hand action which is preset and is used for generating a travelling position point in a preset virtual scene, if the first hand action in the first user hand image includes the first preset hand action, the corresponding position coordinate of the first preset hand action in the graphical interaction interface can be determined according to the position of the first preset hand action in the world coordinate system and the mapping relation between the world coordinate system and the graphical interaction interface coordinate system, and the travelling position point is determined from the preset virtual scene according to the corresponding position coordinate of the first preset hand action in the graphical interaction interface.
In some embodiments, the position of the first preset hand action in the world coordinate system is used to indicate that the target virtual object needs to reach the task location of the preset virtual scene, and the travel location point is the task location corresponding to the first preset hand action.
S103: if the first hand action is changed into the preset ending action, generating a game traveling route according to a preset starting point and a traveling position point in the preset virtual scene so as to control the target virtual object to travel from the preset starting point to the traveling position point along the game traveling route in the preset virtual scene.
In this embodiment, in order to avoid triggering generation of a game travel route in a preset virtual scene due to a first hand action that is unintentionally made by a hand of a user, a preset end action associated with the first hand action may be set, and if after the first hand action is identified from the first user hand image, the preset end action is identified in another user hand image, that is, the hand action of the user changes from the first hand action to the preset end action, it may be determined that the user needs to generate the game travel route in the preset virtual scene.
After the first hand action is changed into the preset ending action, generating a game traveling route according to a preset starting point and a traveling position point in a preset virtual scene, wherein the game traveling route can be a straight traveling route connecting the preset starting point and the traveling position point or a curve traveling route, and if a virtual object exists between straight connecting lines of the preset starting point and the traveling position point, the curve traveling route avoiding the virtual object can be generated.
After the game travel route is generated, after the target virtual object completes the task at the current task location, the target virtual object can directly travel along the game travel route, and reach the travel location point from the preset starting point, so as to complete the task at the task location corresponding to the travel location point at the travel location point.
For example, the preset starting point may be a current task location where the target virtual object is located, or may be an arbitrary position point in other preset virtual scenes specified by the user.
In an alternative embodiment, if the head-mounted virtual reality device interacts with the cloud game server, the cloud game server obtains a game travel route according to the preset starting point and the travel position point, and then sends a picture of a preset virtual scene of the game travel route to the head-mounted virtual reality device so as to realize the preset virtual scene with the game travel route in a graphical interaction interface of the head-mounted virtual reality device.
According to the travel route generation method provided by the embodiment, for the head-mounted virtual reality device, the travel position point is generated in the preset virtual scene based on the acquired first hand action, so that the game travel route is generated according to the preset starting point and the travel position point, after the target virtual object completes the task at the current task position, the task of the travel position point can be executed by the target virtual object along the game travel route directly, the task position can be planned for the target virtual object in advance, the next position is not required to be selected after the target virtual object completes the current task, the user is released from the continuous attention of the user on the attack state of the target virtual object, and the game experience of the user is improved.
Possible implementations of the above determination of the travel position point from the first hand action are described below with reference to embodiments.
Referring to fig. 2, a second flowchart of the travel route generation method provided in the embodiment of the present application, as shown in fig. 2, the step of determining, in S102, a travel location point from a preset virtual scene according to a first hand action may include:
s201: and generating a virtual point in a preset virtual scene according to the initial gesture in the first gesture change sequence.
In this embodiment, if the user only needs to set a travel position point in the preset virtual scene, the user only needs to control the hand to execute a first preset hand action.
The method comprises the steps of identifying a first user hand image acquired by a camera of the head-mounted virtual reality device in real time, and determining that the identified first hand action only comprises a first preset hand action, namely when the first user hand images of continuous multiframes are identified, the user hand action is identified to be changed from the first hand action to a preset ending action after only one first preset hand action is identified.
The first preset hand action comprises: the first gesture change sequence is used for indicating a first preset hand action formed by gesture change of the user in the first user hand images of the continuous multiple frames. Wherein the first gesture change sequence comprises: initial gesture, movement of initial gesture, and completion gesture.
When an initial gesture is identified in the first user hand image, a virtual point is generated in the preset virtual scene based on the initial gesture, and the virtual point can be located at any position in the preset virtual scene, and is generally located within a preset range of a preset starting point.
S202: and according to the movement of the initial gesture in the first gesture change sequence, adjusting the position of the virtual point in the preset virtual scene to obtain a target position point.
In this embodiment, in order to ensure that a travel position point is generated at a task location of a preset virtual scene, a user may control a hand to move in world space based on an initial gesture, and adjust a position of the virtual point in the preset virtual scene in real time.
Specifically, the head-mounted virtual reality device detects the position of an initial gesture in the first user hand images of two adjacent frames, determines whether the initial gesture is displaced, calculates the moving direction of the initial gesture if the initial gesture is determined to be displaced, and controls the virtual point to move along the moving direction in real time in a preset virtual scene according to the moving direction. And when the position of the virtual point in the preset virtual scene meets the user requirement or is positioned at the task place, obtaining a target position point.
In an alternative embodiment, the moving distance of the virtual point in the preset virtual scene may be determined according to the mapping relationship between the moving distance of the initial gesture in the world space and the coordinate system.
In another optional embodiment, the moving distance of the virtual point in the preset virtual scene may be determined according to a preset default distance, that is, if the initial gesture in the first hand image of the first user in two adjacent frames is displaced, the virtual point is controlled to move in the preset virtual scene along the moving direction according to the preset default distance.
In yet another alternative embodiment, the moving distance of the virtual point in the preset virtual scene may be determined according to the preset moving rate, that is, the moving distance of the virtual point is calculated according to the preset moving rate and the acquisition time interval of the first user hand images of two adjacent frames.
S203: and determining the target position point in the preset virtual scene as a traveling position point according to the completed gesture in the first gesture change sequence.
In this embodiment, when the completion gesture is recognized in the first user hand image, the travel position point is generated based on the target position point, which is the last position point of the virtual point in the preset virtual scene.
In some embodiments, if the first hand action is used to indicate that a single travel position point is generated in the preset virtual scene, the completing gesture in the first gesture change sequence and the preset ending action may be the same action, and after determining the single travel position point in the preset virtual scene according to the completing gesture in the first gesture change sequence, a game travel route is generated according to the preset starting point and the single travel position point.
According to the travel route generation method provided by the embodiment, the virtual point is generated according to the initial gesture in the first gesture change sequence, the position of the virtual point in the preset virtual scene is adjusted based on the movement of the initial gesture, the travel position point is generated based on the target position point where the completed gesture is located in the virtual point, the travel position point is preset for the target virtual object in the preset virtual scene through the head-mounted virtual reality device, the operation mode is simple, and the game experience of a user in playing a game by using the head-mounted virtual reality device is improved.
In one possible implementation, if the first hand action includes: a plurality of first preset hand motions in succession, each first preset hand motion comprising: and the time interval between the initial gesture in the current first gesture change sequence and the completed gesture in the last first gesture change sequence meets a preset interval threshold value.
In this embodiment, if the user needs to generate a game travel route including a plurality of travel position points in a preset virtual scene, the user needs to control the hand to continuously perform a plurality of first preset hand actions.
The method comprises the steps that through identifying first user hand images acquired by a camera of the head-mounted virtual reality device in real time, the identified first hand actions comprise a plurality of continuous first preset hand actions, namely when the first user hand images of a plurality of continuous frames are identified, the user hand actions are identified to be changed from the first hand actions to preset ending actions after the plurality of first preset hand actions are identified.
For the first gesture change sequence included in each first preset hand action, the step S201-S203 is adopted to generate a travel position point corresponding to each first gesture change sequence, and a time interval between an initial gesture in a current first gesture change sequence and a gesture completed in a last first gesture change sequence needs to be ensured to be smaller than or equal to a preset interval threshold value between two adjacent first gesture change sequences, namely, after the hand action of a user is converted into the completed gesture, the gesture needs to be switched into the initial gesture within the preset interval threshold value so as to start setting of a next travel position point.
After a plurality of traveling position points are respectively generated according to a plurality of gesture change sequences, a preset starting point and each traveling position point are sequentially connected according to the generation sequence of each traveling position point, and a game traveling route is generated.
In some embodiments, if the time interval between the initial gesture in the current first gesture change sequence and the completed gesture in the last first gesture change sequence exceeds a preset interval threshold, the generation of the travel position point is canceled, and the user is required to control the hand motion again to generate the first gesture change sequence.
In some embodiments, if the time interval between the initial gesture in the current first gesture change sequence and the completed gesture in the last first gesture change sequence exceeds the preset interval threshold, the travel position points corresponding to all the first gesture change sequences before the current first gesture change sequence are generated, but the virtual points cannot be generated according to the initial gesture in the current first gesture change sequence in response to the current first gesture change sequence, in which case the user can control the hand action to switch to the preset end action to generate a game travel route according to the preset starting point and the travel position points which have been generated, and generate new travel position points again through the first gesture change sequence when needed.
According to the travel route generation method provided by the embodiment, the plurality of travel position points are generated according to the continuous first preset hand actions, so that the game travel route is generated according to the preset starting point and the plurality of travel position points, a plurality of task places are set for the target virtual object at one time, the target virtual object can directly reach the next task place to execute the task along the game travel route by itself after completing the task at one task place, the task place can be planned for the target virtual object in advance, the next place is not required to be selected after the target virtual object completes the current task, the user is released from the continuous attention of the attack state of the target virtual object, and the game experience of the user is improved.
In an alternative embodiment, the initial gesture is: a pinch gesture of fingers of the same hand and a finish gesture is a pinch release gesture of fingers.
For example, please refer to fig. 3, which is a schematic diagram of a first gesture provided in the embodiment of the present application, as shown in fig. 3, a left diagram in fig. 3 is a pinch gesture in which the fingers of the thumb and the index finger of the right hand are in contact with each other, and a right diagram in fig. 3 is a release gesture in which a preset distance interval exists between the fingers of the thumb and the index finger of the right hand.
Note that the pinch gesture and the release gesture shown in fig. 3 are only examples, and are not limited to the gesture shown in fig. 3 as the pinch gesture and the release gesture.
Further, if the first hand action includes: and continuously performing a plurality of first preset hand actions, wherein the fingers corresponding to the pinch gesture in the current first gesture change sequence can be the same fingers as the pinch gesture in the previous first gesture change sequence or can be different fingers.
If the hand is a different finger, the hand gesture between one finger and thumb may be changed into the hand gesture between the other finger and thumb, for example, the first initial gesture is a hand gesture between the index finger and thumb, the second initial gesture is a hand gesture between the middle finger and thumb, the third initial gesture is a hand gesture between the ring finger and thumb, the fourth initial gesture is a hand gesture between the little finger and thumb, the completion gesture corresponding to each initial gesture is a release gesture between the corresponding finger and thumb, and the time interval between the hand gesture between the release gesture between one finger and thumb and the hand gesture between the other finger and thumb needs to be less than or equal to a preset interval threshold.
Four advancing position points are generated in a preset virtual scene through the pinch gesture of the four fingers and the thumb respectively, the movement of the pinch gesture and the release gesture of the four fingers and the thumb respectively.
In some embodiments, if the number of travel position points to be generated is greater than 4, a new pinch gesture may be started from the index finger after the pinch gesture of each finger and thumb of the previous round.
According to the travel route generation method provided by the embodiment, one or more travel position points can be generated in the virtual scene through the simple finger pinch gesture and the loosening gesture, so that the game travel route is planned by taking the one or more travel position points and the preset starting point as target virtual objects, the travel position points are preset for the target virtual objects in the preset virtual scene through the head-mounted virtual reality device, the operation mode is simple, and the game experience of a user in playing a game by using the head-mounted virtual reality device is improved.
Referring to fig. 4, in a third flowchart of the travel route generation method provided in the embodiment of the present application, as shown in fig. 4, the step of determining, in S102, a travel location point from a preset virtual scene according to a first hand action may include:
s301: and generating a current virtual point in the preset virtual scene according to the current initial gesture in the current second gesture change sequence.
In this embodiment, if the user needs to generate a game travel route including a plurality of travel position points in the preset virtual scene, the user needs to control the hand to continuously perform a plurality of second preset hand actions.
The method comprises the steps that through identifying a first user hand image acquired by a camera of the head-mounted virtual reality device in real time, the identified first hand action comprises a plurality of continuous second preset hand actions, namely when the first user hand image of a plurality of continuous frames is identified, the user hand action is identified to be changed from the first hand action to a preset ending action after the plurality of second preset hand actions are identified.
The second preset hand action comprises: and the second gesture change sequence is used for indicating a second preset hand action formed by gesture changes of the user in the first user hand images of the continuous multiple frames. Wherein the second sequence of gesture changes comprises: initial gesture, movement of initial gesture.
After the initial gesture in the current second gesture change sequence is identified in the first user hand image, a current virtual point is generated in a preset virtual scene based on the initial gesture, and the current virtual point can be located at any position in the preset virtual scene, and generally, the current virtual point is located in a preset starting point or a preset range of a last travelling position point.
S302: and according to the movement of the current initial gesture, adjusting the position of the current virtual point in the preset virtual scene to obtain the current position point.
In this embodiment, in order to ensure that a travel position point is generated at a task location of a preset virtual scene, a user may control a hand to move in world space based on an initial gesture in a current second gesture change sequence, and adjust a position of the current virtual point in the preset virtual scene in real time.
Specifically, the head-mounted virtual reality device detects the position of an initial gesture in the first user hand images of two adjacent frames, determines whether the initial gesture is displaced, calculates the moving direction of the initial gesture if the initial gesture is determined to be displaced, and controls the current virtual point to move along the moving direction in real time in a preset virtual scene according to the moving direction. And when the position of the current virtual point in the preset virtual scene meets the user requirement or is positioned at the task place, obtaining the current position point.
S303: and determining the current position point in the preset virtual scene as a traveling position point according to the next initial gesture in the next second gesture change sequence, and generating a new virtual point in the preset virtual scene.
The difference between the manner of generating the travel position point in this embodiment and the manner of generating the S203 is that the S203 determines to generate the travel position point based on the completion gesture in the first gesture changing sequence, but in this embodiment, the second gesture changing sequence does not include the completion gesture, and the initial gesture in the next second gesture changing sequence, that is, the next initial gesture, is used as the completion gesture of the current second gesture changing sequence, when the next initial gesture is identified in the first user hand image, a travel position point is generated based on the last position point of the current virtual point in the preset virtual scene, that is, the current position point, and a new virtual point is generated in the preset virtual scene, where the new virtual point may be located in the preset range of the travel position point.
S304: and according to the movement of the next initial gesture, adjusting the position of the new virtual point in the preset virtual scene to obtain a new position point until the first hand action is changed into the preset ending action, and obtaining a plurality of advancing position points.
In an embodiment, according to the movement of the next initial gesture, the position of the new virtual point in the preset virtual scene is adjusted to obtain the new position point, and the manner of adjusting the position of the current virtual point in the preset virtual scene according to the movement of the current initial gesture in S302 to obtain the current position point is the same as that of the previous embodiment, which is not described herein.
And generating a plurality of advancing position points in turn based on a plurality of continuous second gesture change sequences, wherein if one position point is obtained based on the initial gesture in one second gesture change sequence and the movement of the initial gesture, the second gesture change sequence is not followed by another second gesture change sequence but is a preset ending action, the position point is determined to be the last advancing position point directly based on the preset ending action.
According to the travel route generation method provided by the embodiment, the plurality of travel position points are generated according to the continuous plurality of second preset hand actions, so that the game travel route is generated according to the preset starting point and the plurality of travel position points, a plurality of task places are set for the target virtual object at one time, the target virtual object can directly reach the next task place to execute the task along the game travel route by itself after completing the task at one task place, the task place can be planned for the target virtual object in advance, the next place is not required to be selected after the target virtual object completes the current task, the user is released from the continuous attention of the attack state of the target virtual object, and the game experience of the user is improved.
In one possible implementation, the current initial gesture is: the pinch gesture of the first number of fingers and the preset fingers of the same hand, the next initial gesture is: and the first number is smaller than the second number according to the pinch gesture of the second number of fingers of the same hand and the preset fingers.
In this embodiment, the initial gesture is a pinch gesture of a plurality of fingers in the same hand, and in order to distinguish the current initial gesture from the next initial gesture, the distinction may be made according to the number of fingers constituting the pinch gesture.
Specifically, fingers in the same hand are divided into preset fingers and other fingers, the pinch gesture is a gesture of the other fingers and fingers of the preset fingers in mutual contact, the current initial gesture is a pinch gesture of a first number of other fingers and the preset fingers, and the next initial gesture is a pinch gesture of a second number of other fingers and the preset fingers, wherein the first number is smaller than the second number.
In some embodiments, the next initial gesture may be to add one other finger to pinch with the preset finger based on the first number of other fingers of the current initial gesture.
For example, the preset finger may be a thumb, the first initial gesture is a pinch gesture of an index finger and a thumb, the second initial gesture is a pinch gesture of an index finger, a middle finger and a thumb, the third initial gesture is a pinch gesture of an index finger, a middle finger, a ring finger and a thumb, and the fourth initial gesture is a pinch gesture of an index finger, a middle finger, a ring finger, a little finger and a thumb.
For example, please refer to fig. 5, which is a second gesture schematic diagram provided in the embodiment of the present application, as shown in fig. 5, fig. 5 (1) is a pinch gesture of an index finger and a thumb, fig. 5 (2) is a pinch gesture of an index finger, a middle finger and a thumb, fig. 5 (3) is a pinch gesture of an index finger, a middle finger, a ring finger and a thumb, and fig. 5 (4) is a pinch gesture of an index finger, a middle finger, a ring finger, a little finger and a thumb.
In another possible implementation, the current initial gesture is: the pinch gesture of the third number of the same hand and the preset fingers, the next initial gesture is: the fourth number of pinch gestures of the same hand and a preset finger, the third number being greater than the fourth number.
In this embodiment, the initial gesture is a pinch gesture of a plurality of fingers in the same hand, and in order to distinguish the current initial gesture from the next initial gesture, the distinction may be made according to finger data constituting the pinch gesture.
Specifically, fingers of the same hand are divided into preset fingers and other fingers, the pinch gesture is a gesture of the other fingers and fingers of the preset fingers in mutual contact, the current initial gesture is a pinch gesture of a third number of other fingers and the preset fingers, and the next initial gesture is a pinch gesture of a fourth number of other fingers and the preset fingers, wherein the third number is larger than the fourth number.
In some embodiments, the next initial gesture may be to release one other finger pinch with the preset finger based on a third number of other fingers of the current initial gesture, where the fourth number is at least 1, i.e., one other finger pinch with the preset finger must be guaranteed.
For example, the first initial gesture is a pinch gesture of an index finger, a middle finger, a ring finger, a little finger, and a thumb, i.e., (4) in fig. 5, the second initial gesture is a pinch gesture of an index finger, a middle finger, a ring finger, and a thumb, i.e., (3) in fig. 5, the third initial gesture is a pinch gesture of an index finger, a middle finger, and a thumb, i.e., (2) in fig. 5, and the fourth initial gesture is a pinch gesture of an index finger and a thumb, i.e., (1) in fig. 5.
It can be seen that the number of fingers by increasing the pinch and the number of fingers by decreasing the pinch are two ways of generating a plurality of travel position points.
In some embodiments, if the next initial gesture is to increase the number of fingers pinched on the current initial gesture to generate a plurality of travel position points, the upper limit of the number of travel position points that can be generated is four, and in order to further increase the number of travel position points that can be generated, the number of pinched fingers can be reduced according to the next initial gesture on the current initial gesture in case that all fingers are pinched with preset fingers, and the travel position points can be further increased.
For example, the preset finger may be a thumb, the first initial gesture is a pinch gesture of an index finger and a thumb, the second initial gesture is a pinch gesture of an index finger, a middle finger and a thumb, the third initial gesture is a pinch gesture of an index finger, a middle finger, a ring finger and a thumb, the fourth initial gesture is a pinch gesture of an index finger, a middle finger, a ring finger and a thumb, the fifth initial gesture is a pinch gesture of an index finger, a middle finger, a ring finger and a thumb, the sixth initial gesture is a pinch gesture of an index finger, a middle finger and a thumb, and the seventh initial gesture is a pinch gesture of an index finger and a thumb.
Furthermore, based on the pinch gesture of the index finger and the thumb, the pinch of the middle finger is increased to be a starting point of a cycle until the middle finger, the ring finger and the little finger are all pinched with the thumb, and then the little finger, the ring finger and the middle finger are sequentially loosened to be an ending point of the cycle, so that the advancing position point is further increased.
According to the travel route generation method provided by the embodiment, the initial gestures in the continuous plurality of second hand action sequences are distinguished according to the pinch gestures of different numbers of fingers and preset fingers, so that the generation of a plurality of travel position points can be realized through different pinch gestures, the operation mode is simple, and the game experience of a user for playing a game by using the head-mounted virtual reality equipment is improved.
Based on the travel position points generated in the foregoing embodiments, please refer to fig. 6, which is a schematic diagram of a graphical interactive interface provided in the embodiment of the present application, as shown in fig. 6, a preset virtual scene formed by virtual objects is displayed in the graphical interactive interface, the preset virtual scene includes a preset starting point 11 and a plurality of travel position points 12, and a game travel route is generated by sequentially connecting the preset starting point 11 and the plurality of travel position points 12.
For example, please refer to fig. 7, which is a schematic diagram of a preset ending action provided in the embodiment of the present application, as shown in fig. 7, the preset ending action may be a palm spreading gesture for loosening all fingers, and fig. 7 illustrates a back spreading gesture, which may, of course, also be a palm spreading gesture, which is not limited herein.
In a possible implementation manner, please refer to fig. 8, which is a flow chart diagram of a travel route generating method provided in an embodiment of the present application, as shown in fig. 8, the method may further include:
s401: the second hand motion is acquired, and the second hand motion and the first hand motion are hand motions of two hands respectively.
In an embodiment, the user's hand moves and makes an action within the field of view of the camera of the head-mounted virtual reality device, and the camera can acquire a second hand action. The mode of the camera collecting the second hand action can be as follows: the specific manner of image acquisition and identification, video acquisition and identification or key action identification is the same as that of the first hand action acquisition, and details are not repeated here.
The second hand motion is a hand motion of the other hand that is different from the first hand motion. In this embodiment, the second hand motion is represented by the hand motion of the left hand of the user.
S402: and determining the movement rate of the virtual point according to the second hand action.
In this embodiment, the second hand action is used to instruct to control the movement rate of the virtual point to move in the preset virtual scene, and a plurality of speed indication gestures are predefined, each speed indication gesture corresponds to one movement rate, and the movement rate corresponding to the speed indication gesture matched with the second hand action can be determined as the movement rate of the virtual point according to the second hand action in the second user hand image.
For example, please refer to fig. 9, which is a third gesture schematic diagram provided in the embodiment of the present application, as shown in fig. 9, fig. 9 (1) is a first-level velocity indication gesture corresponding to a first-level movement velocity (x 1), fig. 9 (2) is a second-level velocity indication finger corresponding to a second-level movement velocity (x 2), fig. 9 (3) is a third-level velocity indication finger corresponding to a third-level movement velocity (x 3), and fig. 9 (4) is a fourth-level velocity indication finger corresponding to a fourth-level movement velocity (x 4).
The step S202 of adjusting the position of the virtual point in the preset virtual scene according to the movement of the initial gesture in the first gesture change sequence to obtain the target position point may include:
S403: and according to the movement of the initial gesture in the first gesture change sequence, moving the virtual point at a movement speed so as to adjust the position of the virtual point in a preset virtual scene.
In this embodiment, according to the movement rate corresponding to the second hand motion and the acquisition time interval of the first user hand images of two adjacent frames, the movement distance of the virtual point is calculated, and the position of the virtual point in the preset virtual scene is adjusted according to the movement distance and the corresponding movement direction.
In some embodiments, after the movement rate is determined from the second hand action, the movement rate is displayed in the graphical interactive interface to determine that the movement rate indicated by the second hand action is effective, in which case the second hand action may be cancelled during the initial gesture movement in the first gesture change sequence, without affecting the effectiveness of the determined movement rate.
In other embodiments, during the initial gesture movement in the first gesture change sequence, the second hand action is in a hold state to ensure that the movement rate of the virtual point is also in the hold state until the second hand action is switched or cancelled, then the movement rate of the virtual point is also switched to the corresponding movement rate or default rate.
It should be noted that, the above process of determining the movement rate of the virtual point according to the second hand action to adjust the position of the virtual point in the preset virtual scene according to the movement rate is also applicable to the above processes of S301-S304, which are not described herein again.
According to the travel route generation method provided by the embodiment, the movement rate of the virtual point is controlled through the second hand action, so that the movement distance of the virtual point can be adjusted within the limited swing range of the first hand action of the user, the operation mode is more flexible, and the game experience of the user in playing a game by using the head-mounted virtual reality equipment is improved.
In a possible implementation manner, please refer to fig. 10, which is a flowchart of a method for generating a travel route according to an embodiment of the present application, as shown in fig. 10, before the step S101 of obtaining the first hand action, the method may further include:
s501: an eye gaze focus is determined from the graphical interactive interface.
S502: a third hand motion is obtained.
S503: if the third hand is used as the third preset hand, determining a preset starting point according to the eye gazing focus.
In this embodiment, an eye gaze focus of a user's eye on a graphical interactive interface is determined based on recognition of the user's eye by a camera or sensor for the user's eye in a head-mounted virtual reality device. The method comprises the steps of determining an eye-gazing focus on a graphical interactive interface, ensuring that the gazing duration of eyes of a user at the eye-gazing focus reaches a preset duration threshold, and displaying the eye-gazing focus in the graphical user interface in a special mark mode after the eye-gazing focus is determined.
Since the eyes of the user are necessarily gazed at the graphical user interface for a long time when wearing the head-mounted virtual reality device, in order to confirm that the user is to set a preset starting point in a preset virtual scene, after the eye gazing focus is determined based on the gaze of the user, a third hand action is acquired through the camera.
And if the third preset hand action is the third preset hand action, determining the position of the eye gazing focus in the graphical interactive interface according to the eye gazing focus, and generating a preset starting point in the preset virtual scene. The third preset hand motion may be a pinch gesture of the same hand and finger.
However, the pinch of the initial gesture in the sequence of the second preset hand motion and the gesture motion is a pinch gesture of the finger, but the two motions are in different stages, so the corresponding functions are different. After the eye gazing focus is determined in the graphical interactive interface, the pinch gesture of the finger is used for generating a preset starting point; in the case of a preset starting point in a preset virtual scene, the pinch gesture of the finger is used to generate a virtual point to further generate a travel position point.
According to the travel route generation method provided by the embodiment, the preset starting point is determined to be generated in the preset virtual scene based on the eye gazing focus of the user and the third preset hand action, so that the generation of the preset starting point can be prevented from being triggered without error only through the eye gazing focus, and the accuracy of virtual reality interaction control is ensured.
In one possible implementation manner, the step S103 of generating the game travel route according to the preset starting point and the travel position point in the preset virtual scene may include:
generating a game traveling route according to a plurality of virtual plots passing through the connecting line of the preset starting point and the traveling position point, wherein the virtual plots are obtained by carrying out cell division on scene topography of a preset virtual scene.
In this embodiment, the preset virtual scene has a scene topography, the scene topography is used for placing a virtual object, and for the virtual object to move in the preset virtual scene, through dividing the scene topography into cells, a plurality of virtual plots with the same size and shape are obtained, and the virtual plots are used for indicating the unit distance of the virtual object moving in the preset virtual scene, that is, the unit distance travelled by the virtual object is the distance corresponding to the adjacent plots.
The virtual plots where the preset starting point and the traveling position point are located are connected, a plurality of virtual plots where the connection passes are determined, and game traveling routes comprising the virtual plots are determined according to the virtual plots where the preset starting point is located, the virtual plots where the connection passes and the virtual plots where the traveling position point is located, so that the target virtual object is controlled to sequentially move along the virtual plots to travel from the preset starting point to the traveling position point.
In some embodiments, please refer to fig. 11, which is a flowchart of a travel route generation method according to an embodiment of the present application, as shown in fig. 11, the process of generating a game travel route according to a plurality of virtual plots through which a connection line between a preset starting point and a travel location point passes may include:
s601: and determining a plurality of virtual plots through which the straight line connecting line passes according to the straight line connecting line of the preset starting point and the advancing position point.
S602: and generating a game traveling route according to the virtual land block where the preset starting point is located, the virtual land blocks where the straight line connecting line passes through and the virtual land block where the traveling position point is located.
In this embodiment, if the SLG game supports the target virtual object to pass through the virtual object in the preset virtual scene and the target virtual object moves along the straight line, then a plurality of virtual plots through which the straight line is passed are determined by performing the straight line connection on the virtual plots where the preset starting point and the travel position point are located, and a game travel route including the virtual plots is determined according to the virtual plots where the preset starting point is located, the plurality of virtual plots through which the straight line connection is passed, and the virtual plots where the travel position point is located, so as to control the target virtual object to sequentially move along the virtual plots to travel from the preset starting point to the travel position point.
For example, please refer to fig. 12, which is a schematic diagram of a straight traveling route provided in this embodiment of the present application, as shown in fig. 12, a target virtual object starts from a virtual land where a preset starting point is located, sequentially passes through a plurality of virtual lands where straight lines of the preset starting point and the traveling position point pass, and reaches the virtual land where the traveling position point is located.
In other embodiments, please refer to fig. 13, which is a flow chart of a travel route generation method according to an embodiment of the present application, as shown in fig. 13, the process of generating a game travel route according to a plurality of virtual plots through which a connection line between a preset starting point and a travel location point passes may include:
s701: and determining a plurality of virtual plots through which the broken line connecting lines pass according to the broken line connecting lines of the preset starting point and the advancing position point.
S702: and generating a game traveling route according to the virtual land block where the preset starting point is located, the virtual land blocks where the broken line connecting lines pass through and the virtual land block where the traveling position points are located.
In this embodiment, if the SLG game does not support the target virtual object to pass through the virtual object in the preset virtual scene or does not support the target virtual object to move along a straight line, a plurality of virtual plots through which the broken line connection passes are determined by performing the broken line connection on the virtual plots where the preset starting point and the traveling position point are located. The discount connection line is formed by a plurality of straight line connection lines parallel to the boundary of the virtual land block.
And determining a game traveling route comprising the virtual plots according to the virtual plots where the preset starting point is located, the virtual plots where the broken line connecting line passes through and the virtual plots where the traveling position point is located, so as to control the target virtual object to sequentially move along the virtual plots to travel from the preset starting point to the traveling position point.
In some embodiments, a preset routing algorithm may be used to determine a polyline between a preset starting point and a virtual block where a travelling position point is located, where the preset routing algorithm may be a shortest path routing algorithm, or may be other routing algorithms with a reward mechanism, determine a next optimal virtual block corresponding to a current virtual block, and determine a game travelling route formed by a plurality of optimal virtual blocks between a preset starting point and the virtual block where the travelling position point is located according to the next optimal virtual block corresponding to each virtual block.
For example, please refer to fig. 14, which is a schematic diagram of a polyline travel route provided in this embodiment of the present application, as shown in fig. 14, a target virtual object starts from a virtual land block where a preset starting point is located, sequentially passes through a plurality of virtual land blocks where polyline connecting lines of the preset starting point and the travel position point pass, and reaches the virtual land block where the travel position point is located.
According to the travel route generation method provided by the embodiment, the game travel route is generated according to the plurality of virtual plots through which the connection line of the preset starting point and the travel position point passes, so that the optimal game travel route can be generated, the goal virtual object can be ensured to reach the travel position point quickly, and the game efficiency is improved.
In one possible implementation manner, if the preset virtual scene includes a plurality of controlled virtual objects, the target virtual object is a controlled virtual object that completes the game task first in the plurality of controlled virtual objects; or the target virtual object is the controlled virtual object closest to the preset starting point in the plurality of controlled virtual objects.
In this embodiment, if there are multiple controlled virtual objects in the preset virtual scene, the player may control the multiple controlled virtual objects to execute tasks at different task locations, where each task location may execute a task by at least one controlled virtual object.
After the player generates a game travel route of the next task through the head-mounted virtual reality device, the player can execute the task by moving a target virtual object in the plurality of controlled virtual objects along the game travel route to the task place.
In some embodiments, if the plurality of controlled virtual objects execute respective tasks respectively, after one task of the plurality of tasks is executed by the corresponding controlled virtual object first, the controlled virtual object executing the task is used as a target virtual object, and moves along the game travel route to reach the task place to execute a new task, so that the controlled virtual object executing the game task is prevented from being in a waiting state, and the completion speed of the game target is improved.
In other embodiments, if the plurality of controlled virtual objects execute respective tasks at different task locations, the controlled virtual object closest to the preset starting point may be determined as the target virtual object according to the distance between the task location where the controlled virtual object is located and the preset starting point, and after the target virtual object completes the current task, the controlled virtual object moves from the current task location to the preset starting point, and moves along the game travel route to reach the new task location to execute the task, so as to ensure that the moving distance of the controlled virtual object is shortest, and save game resources.
On the basis of the method embodiment, the embodiment of the application also provides a travel route generating device which is applied to the head-mounted virtual reality equipment provided with the graphical interaction interface pair, wherein the graphical interaction interface is displayed with the preset virtual scene. Referring to fig. 15, a schematic structural diagram of a travel route generating device according to an embodiment of the present application, as shown in fig. 15, the device may include:
The action acquisition module 101 is configured to acquire a first hand action;
the travel position point determining module 102 is configured to, if the first hand action includes: the first preset hand action is performed, and a travelling position point is determined from a preset virtual scene according to the first hand action;
the travel route generation module 103 is configured to generate a game travel route according to a preset starting point and a travel position point in a preset virtual scene if the first hand action is changed to a preset ending action, so as to control the target virtual object to travel from the preset starting point to the travel position point along the game travel route in the preset virtual scene.
Optionally, the first hand action includes: a first preset hand motion, the first preset hand motion comprising: a first sequence of gesture changes; the travel location point determination module 102 includes:
the virtual point generating unit is used for generating virtual points in a preset virtual scene according to the initial gestures in the current first gesture change sequence;
the virtual point position adjusting unit is used for adjusting the position of the virtual point in a preset virtual scene according to the movement of the initial gesture in the first gesture change sequence to obtain a target position point;
the advancing position point determining unit is used for determining the target position point in the preset virtual scene as an advancing position point according to the completed gesture in the first gesture change sequence.
Optionally, if the first hand action includes: a plurality of first preset hand motions in succession, each first preset hand motion comprising: and the time interval between the initial gesture in the current first gesture change sequence and the completed gesture in the last first gesture change sequence meets a preset interval threshold value.
Optionally, the initial gesture is: the pinching gesture of the fingers of the same hand is completed, and the gesture is a loosening gesture of the pinched fingers.
Optionally, the first hand action includes: a plurality of second preset hand motions in succession, each second preset hand motion comprising: a second sequence of gesture changes;
the virtual point generating unit is further used for generating a current virtual point in a preset virtual scene according to the current initial gesture in the current second gesture change sequence;
the virtual point position adjusting unit is also used for adjusting the position of the current virtual point in the preset virtual scene according to the movement of the current initial gesture to obtain the current position point;
the advancing position point determining unit is further used for determining the current position point in the preset virtual scene as an advancing position point according to the next initial gesture in the next second gesture change sequence and generating a new virtual point in the preset virtual scene;
The advancing position point determining unit is further configured to adjust a position of the new virtual point in the preset virtual scene according to movement of the next initial gesture to obtain a new position point until the first hand action changes to a preset ending action, and obtain a plurality of advancing position points.
Optionally, the current initial gesture is: the pinch gesture of the first number of fingers and the preset fingers of the same hand, the next initial gesture is: and the first number is smaller than the second number according to the pinch gesture of the second number of fingers of the same hand and the preset fingers.
Optionally, the current initial gesture is: the pinch gesture of the third number of the same hand and the preset fingers, the next initial gesture is: the fourth number of pinch gestures of the same hand and a preset finger, the third number being greater than the fourth number.
Optionally, the apparatus may further include:
the action acquisition module is also used for acquiring a second hand action, wherein the second hand action and the first hand action are hand actions of two hands respectively;
the movement rate determining module is used for determining the movement rate of the virtual point according to the second hand action;
the virtual point position adjusting unit is further configured to move the virtual point at a movement rate according to movement of the initial gesture in the first gesture change sequence, so as to adjust a position of the virtual point in a preset virtual scene.
Optionally, the apparatus may further include:
a focus determining module for determining an eye gaze focus from the graphical interactive interface;
the action acquisition module is also used for acquiring a third hand action;
the starting point generation module is used for determining a preset starting point according to the eye gazing focus if the third hand is used as a third preset hand.
In one possible implementation manner, the travel route generation module 103 is specifically configured to generate a game travel route according to a plurality of virtual plots passing through a connection between a preset starting point and a travel position point, where the virtual plots are obtained by performing cell division on scene topography of a preset virtual scene.
In some embodiments, the travel route generation module 103 is specifically configured to determine, according to a straight line connecting a preset starting point and a travel location point, a plurality of virtual plots through which the straight line connecting passes; and generating a game traveling route according to the virtual land block where the preset starting point is located, the virtual land blocks where the straight line connecting line passes through and the virtual land block where the traveling position point is located.
In other embodiments, the travel route generation module 103 is specifically configured to determine, according to a polyline connection between a preset starting point and a travel location point, a plurality of virtual plots through which the polyline connection passes; and generating a game traveling route according to the virtual land block where the preset starting point is located, the virtual land blocks where the broken line connecting lines pass through and the virtual land block where the traveling position points are located.
In one possible implementation manner, if the preset virtual scene includes a plurality of controlled virtual objects, the target virtual object is a controlled virtual object that completes the game task first in the plurality of controlled virtual objects; or the target virtual object is the controlled virtual object closest to the preset starting point in the plurality of controlled virtual objects.
According to the travel route generation device provided by the embodiment, for the head-mounted virtual reality equipment, the travel position point is generated in the preset virtual scene based on the acquired first hand action, so that the game travel route is generated according to the preset starting point and the travel position point, after the target virtual object completes the task at the current task position, the task of the travel position point can be executed by the target virtual object along the game travel route directly, the task position can be planned for the target virtual object in advance, the next position is not required to be selected after the target virtual object completes the current task, the user is released from the continuous attention of the user on the attack state of the target virtual object, and the game experience of the user is improved.
The foregoing apparatus is used for executing the method provided in the foregoing embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
The above modules may be one or more integrated circuits configured to implement the above methods, for example: one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASICs), or one or more microprocessors, or one or more field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGAs), etc. For another example, when a module above is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Referring to fig. 16, which is a schematic diagram of a head-mounted virtual reality device according to an embodiment of the present application, as shown in fig. 16, a head-mounted virtual reality device 200 includes: the system comprises a processor 201, a storage medium 202 and a bus, wherein the storage medium 202 stores program instructions executable by the processor 201, and when the head-mounted virtual reality device 200 is operated, the processor 201 and the storage medium 202 communicate through the bus, and the processor 201 executes the program instructions to execute the travelling route generating method.
Specifically, the steps of executing the travel route generation method by the processor include:
acquiring a first hand action; if the first hand action includes: the first preset hand action is performed, and a travelling position point is determined from a preset virtual scene according to the first hand action; if the first hand action is changed into the preset ending action, generating a game traveling route according to a preset starting point and a traveling position point in the preset virtual scene so as to control the target virtual object to travel from the preset starting point to the traveling position point along the game traveling route in the preset virtual scene.
In one possible implementation, the first hand action includes: a first preset hand motion, the first preset hand motion comprising: a first sequence of gesture changes; the process of determining the travel position point from the preset virtual scene according to the first hand action by the processor may include:
generating virtual points in a preset virtual scene according to the initial gestures in the first gesture change sequence; according to the movement of the initial gesture in the first gesture change sequence, adjusting the position of the virtual point in a preset virtual scene to obtain a target position point; and determining the target position point in the preset virtual scene as a traveling position point according to the completed gesture in the first gesture change sequence.
In one possible implementation, if the first hand action includes: a plurality of first preset hand motions in succession, each first preset hand motion comprising: and the time interval between the initial gesture in the current first gesture change sequence and the completed gesture in the last first gesture change sequence meets a preset interval threshold value.
In an alternative embodiment, the initial gesture is: a pinch gesture of fingers of the same hand and a finish gesture is a pinch release gesture of fingers.
In one possible implementation, the first hand action includes: a plurality of second preset hand motions in succession, each second preset hand motion comprising: a second sequence of gesture changes; the process of determining the travel position point from the preset virtual scene according to the first hand action by the processor may include:
generating a current virtual point in a preset virtual scene according to the current initial gesture in the current second gesture change sequence; according to the movement of the current initial gesture, the position of the current virtual point in a preset virtual scene is adjusted to obtain the current position point; determining a current position point in a preset virtual scene as a traveling position point according to a next initial gesture in a next second gesture change sequence, and generating a new virtual point in the preset virtual scene; and according to the movement of the next initial gesture, adjusting the position of the new virtual point in the preset virtual scene to obtain a new position point until the first hand action is changed into the preset ending action, and obtaining a plurality of advancing position points.
In one possible implementation, the current initial gesture is: the pinch gesture of the first number of fingers and the preset fingers of the same hand, the next initial gesture is: and the first number is smaller than the second number according to the pinch gesture of the second number of fingers of the same hand and the preset fingers.
In another possible implementation, the current initial gesture is: the pinch gesture of the third number of the same hand and the preset fingers, the next initial gesture is: the fourth number of pinch gestures of the same hand and a preset finger, the third number being greater than the fourth number.
In one possible implementation, the steps of executing the method for generating a travel route by the processor further include:
acquiring a second hand action, wherein the second hand action and the first hand action are hand actions of two hands respectively; determining the moving speed of the virtual point according to the second hand action; and according to the movement of the initial gesture in the first gesture change sequence, moving the virtual point at a movement speed so as to adjust the position of the virtual point in a preset virtual scene.
In one possible implementation manner, before the processor performs the first hand action, the steps of the travel route generation method performed by the processor further include:
Determining an eye gaze focus from the graphical interactive interface; acquiring a third hand action; if the third hand is used as the third preset hand, determining a preset starting point according to the eye gazing focus.
In one possible implementation manner, the step of generating the game travel route by the processor according to the preset starting point and the travel position point in the preset virtual scene may include:
generating a game traveling route according to a plurality of virtual plots passing through the connecting line of the preset starting point and the traveling position point, wherein the virtual plots are obtained by carrying out cell division on scene topography of a preset virtual scene.
In some embodiments, the step of generating the game travel route by the processor executing the virtual plots through which the line connecting the preset starting point and the travel position point passes may include:
determining a plurality of virtual plots through which the straight line connecting line passes according to the straight line connecting line of the preset starting point and the advancing position point; and generating a game traveling route according to the virtual land block where the preset starting point is located, the virtual land blocks where the straight line connecting line passes through and the virtual land block where the traveling position point is located.
In other embodiments, the step of generating the game travel route by the processor executing the virtual plots through which the line connecting the preset starting point and the travel position point passes may include:
Determining a plurality of virtual plots through which the broken line connecting lines pass according to the broken line connecting lines of the preset starting points and the traveling position points; and generating a game traveling route according to the virtual land block where the preset starting point is located, the virtual land blocks where the broken line connecting lines pass through and the virtual land block where the traveling position points are located.
In one possible implementation manner, if the preset virtual scene includes a plurality of controlled virtual objects, the target virtual object is a controlled virtual object that completes the game task first in the plurality of controlled virtual objects; or the target virtual object is the controlled virtual object closest to the preset starting point in the plurality of controlled virtual objects.
According to the travel route generation method executed by the processor, for the head-mounted virtual reality device, the travel position point is generated in the preset virtual scene based on the acquired first hand action, so that the game travel route is generated according to the preset starting point and the travel position point, after the target virtual object completes the task at the current task position, the task of the travel position point can be executed by the target virtual object along the game travel route directly, the task position can be planned for the target virtual object in advance, the next position is not required to be selected after the target virtual object completes the current task, the user is released from the continuous attention of the user on the attack state of the target virtual object, and the game experience of the user is improved.
Optionally, an embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to perform the steps of the above-mentioned travel route generation method.
Specifically, the steps of executing the travel route generation method by the processor include:
acquiring a first hand action; if the first hand action includes: the first preset hand action is performed, and a travelling position point is determined from a preset virtual scene according to the first hand action; if the first hand action is changed into the preset ending action, generating a game traveling route according to a preset starting point and a traveling position point in the preset virtual scene so as to control the target virtual object to travel from the preset starting point to the traveling position point along the game traveling route in the preset virtual scene.
In one possible implementation, the first hand action includes: a first preset hand motion, the first preset hand motion comprising: a first sequence of gesture changes; the process of determining the travel position point from the preset virtual scene according to the first hand action by the processor may include:
generating virtual points in a preset virtual scene according to the initial gestures in the first gesture change sequence; according to the movement of the initial gesture in the first gesture change sequence, adjusting the position of the virtual point in a preset virtual scene to obtain a target position point; and determining the target position point in the preset virtual scene as a traveling position point according to the completed gesture in the first gesture change sequence.
In one possible implementation, if the first hand action includes: a plurality of first preset hand motions in succession, each first preset hand motion comprising: and the time interval between the initial gesture in the current first gesture change sequence and the completed gesture in the last first gesture change sequence meets a preset interval threshold value.
In an alternative embodiment, the initial gesture is: a pinch gesture of fingers of the same hand and a finish gesture is a pinch release gesture of fingers.
In one possible implementation, the first hand action includes: a plurality of second preset hand motions in succession, each second preset hand motion comprising: a second sequence of gesture changes; the process of determining the travel position point from the preset virtual scene according to the first hand action by the processor may include:
generating a current virtual point in a preset virtual scene according to the current initial gesture in the current second gesture change sequence; according to the movement of the current initial gesture, the position of the current virtual point in a preset virtual scene is adjusted to obtain the current position point; determining a current position point in a preset virtual scene as a traveling position point according to a next initial gesture in a next second gesture change sequence, and generating a new virtual point in the preset virtual scene; and according to the movement of the next initial gesture, adjusting the position of the new virtual point in the preset virtual scene to obtain a new position point until the first hand action is changed into the preset ending action, and obtaining a plurality of advancing position points.
In one possible implementation, the current initial gesture is: the pinch gesture of the first number of fingers and the preset fingers of the same hand, the next initial gesture is: and the first number is smaller than the second number according to the pinch gesture of the second number of fingers of the same hand and the preset fingers.
In another possible implementation, the current initial gesture is: the pinch gesture of the third number of the same hand and the preset fingers, the next initial gesture is: the fourth number of pinch gestures of the same hand and a preset finger, the third number being greater than the fourth number.
In one possible implementation, the steps of executing the method for generating a travel route by the processor further include:
acquiring a second hand action, wherein the second hand action and the first hand action are hand actions of two hands respectively; determining the moving speed of the virtual point according to the second hand action; and according to the movement of the initial gesture in the first gesture change sequence, moving the virtual point at a movement speed so as to adjust the position of the virtual point in a preset virtual scene.
In one possible implementation manner, before the processor performs the first hand action, the steps of the travel route generation method performed by the processor further include:
Determining an eye gaze focus from the graphical interactive interface; acquiring a third hand action; if the third hand is used as the third preset hand, determining a preset starting point according to the eye gazing focus.
In one possible implementation manner, the step of generating the game travel route by the processor according to the preset starting point and the travel position point in the preset virtual scene may include:
generating a game traveling route according to a plurality of virtual plots passing through the connecting line of the preset starting point and the traveling position point, wherein the virtual plots are obtained by carrying out cell division on scene topography of a preset virtual scene.
In some embodiments, the step of generating the game travel route by the processor executing the virtual plots through which the line connecting the preset starting point and the travel position point passes may include:
determining a plurality of virtual plots through which the straight line connecting line passes according to the straight line connecting line of the preset starting point and the advancing position point; and generating a game traveling route according to the virtual land block where the preset starting point is located, the virtual land blocks where the straight line connecting line passes through and the virtual land block where the traveling position point is located.
In other embodiments, the step of generating the game travel route by the processor executing the virtual plots through which the line connecting the preset starting point and the travel position point passes may include:
Determining a plurality of virtual plots through which the broken line connecting lines pass according to the broken line connecting lines of the preset starting points and the traveling position points; and generating a game traveling route according to the virtual land block where the preset starting point is located, the virtual land blocks where the broken line connecting lines pass through and the virtual land block where the traveling position points are located.
In one possible implementation manner, if the preset virtual scene includes a plurality of controlled virtual objects, the target virtual object is a controlled virtual object that completes the game task first in the plurality of controlled virtual objects; or the target virtual object is the controlled virtual object closest to the preset starting point in the plurality of controlled virtual objects.
According to the travel route generation method executed by the processor, for the head-mounted virtual reality device, the travel position point is generated in the preset virtual scene based on the acquired first hand action, so that the game travel route is generated according to the preset starting point and the travel position point, after the target virtual object completes the task at the current task position, the task of the travel position point can be executed by the target virtual object along the game travel route directly, the task position can be planned for the target virtual object in advance, the next position is not required to be selected after the target virtual object completes the current task, the user is released from the continuous attention of the user on the attack state of the target virtual object, and the game experience of the user is improved.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform part of the steps of the methods according to the embodiments of the disclosure. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The above is merely a specific embodiment of the disclosure, but the protection scope of the disclosure is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the disclosure, and should be covered in the protection scope of the disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (16)

1. A travel route generation method applied to a head-mounted virtual reality device provided with a pair of graphical interaction interfaces in which a preset virtual scene is displayed, the method comprising:
Acquiring a first hand action;
if the first hand action includes: a first preset hand action, determining a travelling position point from the preset virtual scene according to the first hand action;
and if the first hand action is changed into a preset ending action, generating a game traveling route according to a preset starting point and the traveling position point in the preset virtual scene so as to control a target virtual object to travel from the preset starting point to the traveling position point along the game traveling route in the preset virtual scene.
2. The method of claim 1, wherein the first hand action comprises: a first preset hand motion, said first preset hand motion comprising: a first sequence of gesture changes;
the determining, according to the first hand action, a travel position point from the preset virtual scene includes:
generating virtual points in the preset virtual scene according to the initial gestures in the current first gesture change sequence;
according to the movement of the initial gesture in the first gesture change sequence, adjusting the position of the virtual point in the preset virtual scene to obtain a target position point;
And determining the target position point in the preset virtual scene as a traveling position point according to the completed gesture in the first gesture change sequence.
3. The method of claim 2, wherein if the first hand action comprises: a plurality of first preset hand actions are continuously performed, and each first preset hand action comprises: and the time interval between the initial gesture in the current first gesture change sequence and the completed gesture in the last first gesture change sequence meets a preset interval threshold value.
4. The method of claim 2, wherein the initial gesture is: and a pinch gesture of fingers of the same hand, wherein the completion gesture is a release gesture of the pinched fingers.
5. The method of claim 1, wherein the first hand action comprises: a plurality of second preset hand motions in succession, each second preset hand motion comprising: a second sequence of gesture changes;
the determining, according to the first hand action, a travel position point from the preset virtual scene includes:
generating a current virtual point in the preset virtual scene according to the current initial gesture in the current second gesture change sequence;
According to the movement of the current initial gesture, adjusting the position of the current virtual point in the preset virtual scene to obtain a current position point;
determining the current position point in the preset virtual scene as a traveling position point according to the next initial gesture in the next second gesture change sequence, and generating a new virtual point in the preset virtual scene;
and adjusting the position of the new virtual point in the preset virtual scene according to the movement of the next initial gesture to obtain a new position point until the first hand action is changed into the preset ending action to obtain a plurality of advancing position points.
6. The method of claim 5, wherein the current initial gesture is: a pinch gesture of a first number of fingers and a preset finger of the same hand, wherein the next initial gesture is: and the first number is smaller than the second number according to the pinch gesture of the second number of fingers of the same hand and the preset fingers.
7. The method of claim 5, wherein the current initial gesture is: a pinch gesture of a third number of the same hand and a preset finger, wherein the next initial gesture is: the fourth number of pinch gestures of the same hand and the preset finger, wherein the third number is larger than the fourth number.
8. The method of any one of claims 2-7, wherein the method further comprises:
acquiring a second hand motion, wherein the second hand motion and the first hand motion are hand motions of two hands respectively;
determining the movement rate of the virtual point according to the second hand action;
the adjusting the position of the virtual point in the preset virtual scene according to the movement of the initial gesture in the first gesture change sequence includes:
and moving the virtual point by adopting the movement speed according to the movement of the initial gesture in the first gesture change sequence so as to adjust the position of the virtual point in the preset virtual scene.
9. The method of claim 1, wherein prior to the obtaining the first hand action, the method further comprises:
determining an eye gaze focus from the graphical interactive interface;
acquiring a third hand action;
and if the third hand motion is a third preset hand motion, determining the preset starting point according to the eye gazing focus.
10. The method of claim 1, wherein the generating a game travel route from the preset starting point and the travel location point in the preset virtual scene comprises:
Generating the game traveling route according to a plurality of virtual plots passed by the connecting line of the preset starting point and the traveling position point, wherein the virtual plots are obtained by dividing the scene topography of the preset virtual scene into cells.
11. The method of claim 10, wherein the generating the game travel route from a plurality of virtual plots traversed by the connection of the preset starting point and the travel location point comprises:
determining a plurality of virtual plots through which the straight line connecting line passes according to the straight line connecting line of the preset starting point and the advancing position point;
and generating the game traveling route according to the virtual land block where the preset starting point is located, the virtual land blocks where the straight line connection passes through and the virtual land block where the traveling position point is located.
12. The method of claim 10, wherein the generating the game travel route from a plurality of virtual plots traversed by the connection of the preset starting point and the travel location point comprises:
determining a plurality of virtual plots through which the broken line connecting line passes according to the broken line connecting line of the preset starting point and the advancing position point;
And generating the game traveling route according to the virtual land block where the preset starting point is located, the virtual land blocks where the broken line connecting lines pass through and the virtual land block where the traveling position points are located.
13. The method of claim 1, wherein if the preset virtual scene includes a plurality of controlled virtual objects, the target virtual object is a controlled virtual object that completes a game task first among the plurality of controlled virtual objects; or the target virtual object is the controlled virtual object closest to the preset starting point in the controlled virtual objects.
14. A travel route generation apparatus applied to a head-mounted virtual reality device provided with a pair of graphical interaction interfaces in which a preset virtual scene is displayed, the apparatus comprising:
the action acquisition module is used for acquiring a first hand action;
the travel position point determining module is configured to, if the first hand action includes: a first preset hand action, determining a travelling position point from the preset virtual scene according to the first hand action;
and the travel route generation module is used for generating a game travel route according to a preset starting point and the travel position point in the preset virtual scene if the first hand action is changed into the preset ending action so as to control a target virtual object to travel from the preset starting point to the travel position point along the game travel route in the preset virtual scene.
15. A head-mounted virtual reality device, comprising: a processor, a storage medium, and a bus, the storage medium storing program instructions executable by the processor, the processor and the storage medium communicating over the bus when the head-mounted virtual reality device is operating, the processor executing the program instructions to perform the steps of the travel route generation method of any of claims 1 to 13.
16. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of travel route generation according to any one of claims 1 to 13.
CN202311602698.XA 2023-11-28 2023-11-28 Travel route generation method and device, head-mounted virtual reality equipment and medium Pending CN117482520A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311602698.XA CN117482520A (en) 2023-11-28 2023-11-28 Travel route generation method and device, head-mounted virtual reality equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311602698.XA CN117482520A (en) 2023-11-28 2023-11-28 Travel route generation method and device, head-mounted virtual reality equipment and medium

Publications (1)

Publication Number Publication Date
CN117482520A true CN117482520A (en) 2024-02-02

Family

ID=89674505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311602698.XA Pending CN117482520A (en) 2023-11-28 2023-11-28 Travel route generation method and device, head-mounted virtual reality equipment and medium

Country Status (1)

Country Link
CN (1) CN117482520A (en)

Similar Documents

Publication Publication Date Title
CN106527709B (en) Virtual scene adjusting method and head-mounted intelligent device
CN110647239A (en) Gesture-based projection and manipulation of virtual content in an artificial reality environment
US20130010071A1 (en) Methods and systems for mapping pointing device on depth map
KR20220018559A (en) Artificial Reality System with Self-Haptic Virtual Keyboard
US20150138075A1 (en) Recognition device, recognition method, computer program product, and terminal device
CN113892074A (en) Arm gaze driven user interface element gating for artificial reality systems
CN111108531B (en) Information processing apparatus, information processing method, and program
WO2018216080A1 (en) Game program, information processing device, information processing system, and game processing method
JP2022534639A (en) Artificial Reality System with Finger Mapping Self-Tactile Input Method
CN110568929B (en) Virtual scene interaction method and device based on virtual keyboard and electronic equipment
CN113841110A (en) Artificial reality system with personal assistant elements for gating user interface elements
CN107122107A (en) Visual angle regulating method, device, medium and electronic equipment in virtual scene
JP2015166816A (en) Display device, display control program, and display control method
US20220362667A1 (en) Image processing system, non-transitory computer-readable storage medium having stored therein image processing program, and image processing method
CN113892075A (en) Corner recognition gesture-driven user interface element gating for artificial reality systems
CN113289327A (en) Display control method and device of mobile terminal, storage medium and electronic equipment
CN111760272B (en) Game information display method and device, computer storage medium and electronic equipment
JP2023515525A (en) Hand Gesture Input for Wearable Systems
CN117482520A (en) Travel route generation method and device, head-mounted virtual reality equipment and medium
CN108803862B (en) Account relation establishing method and device used in virtual reality scene
CN116069157A (en) Virtual object display method, device, electronic equipment and readable medium
CN115047966A (en) Interaction method, electronic equipment and interaction system
US20240028130A1 (en) Object movement control method, apparatus, and device
WO2020246508A1 (en) Physics computing device, physics computing method, and program
JP2018077732A (en) Image processing apparatus, and image processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination