Method for processing motion in a virtual scene, and device, apparatus, and computer program therefor
By enabling player-determined movement methods near obstacles, the method enhances human-computer interaction efficiency and control effectiveness in virtual scenes, addressing inefficiencies in existing technologies.
Patent Information
- Application Number
- JP2024524482
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-01-21
- Filing Date
- 2022-10-28
- Publication Date
- 2024-10-31
- Estimated Expiration
- 2042-10-28
AI Technical Summary
Existing virtual scene interaction technologies often result in inefficient human-computer interaction and reduced player activity due to unintended movement controls, particularly when navigating obstacles, leading to repetitive and unwanted actions.
A method and apparatus that allow for multiple movement regimes associated with manipulation controls, where the selection of movement methods is determined by player input, ensuring that virtual objects follow intended player actions near obstacles.
Improves the efficiency and effectiveness of human-computer interaction by allowing players to directly control movement methods, reducing unnecessary operations and enhancing the player's sense of agency in virtual environments.
Smart Images

Figure 2024539942000001_ABST
Abstract
Description
[Technical field]
[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) This application is filed based on a Chinese patent application bearing application number 202210072160.1, filed with the China Patent Office on January 21, 2022, and claims priority to the Chinese patent application, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to Human-Computer Interaction (HCI) technology, and in particular to a motion processing method in a virtual scene, an apparatus therefor, a computer-readable storage medium, and a computer program product therefor. [Background technology]
[0003] The human-computer interaction technology of the virtual scene based on the graphic processing hardware can realize various interactions between virtual objects controlled by the user or artificial intelligence according to the actual application needs, and has a wide range of practical value. For example, in a game application, the battle process between virtual objects can be simulated, and in the game scene, one control can be associated with multiple functions to reduce the screen occupancy rate, and when the player clicks the control, the system determines which function is triggered.
[0004] Taking a shooting game scene as an example, in the related art, when a player clicks a jump button in an empty space, a jump function is triggered, and when the player clicks a jump button near a jumpable obstacle (e.g., a wall), a jump function is triggered. However, when close to an obstacle, controlling the player to blindly jump over the obstacle may bring about adverse effects on the player, for example, in a situation where there is an enemy on the other side of the obstacle, it is actually not appropriate to jump over the obstacle and it is against the player's will, so the player needs to jump over it again and return, resulting in multiple useless operations, which reduces the efficiency of human-computer interaction and also reduces the player's activeness and functional control effect, resulting in a poor user experience. Summary of the Invention [Problem to be solved by the invention]
[0005] The present embodiments provide a method and apparatus for processing motion in a virtual scene, an electronic device, a computer-readable storage medium, and a computer program product, which can improve the efficiency of human-computer interaction and the effectiveness of player activity and control. [Means for solving the problem]
[0006] The technical solution of the present embodiment is realized as follows.
[0007] An embodiment of the present application provides a method for processing motion in a virtual scene, performed by an electronic device, the method comprising: displaying a surmountable obstacle, a virtual object, and a manipulation control in a virtual scene, the manipulation control being used to control a movement manner of the virtual object relative to the surmountable obstacle, the manipulation control being associated with at least two movement manners, different trigger operations on the manipulation control corresponding to different movement manners; and when a distance between the virtual object and the jumpable obstacle is shorter than a target distance, in response to a trigger operation on the operation control, controlling the virtual object to move relative to the jumpable obstacle in a target movement manner corresponding to the trigger operation.
[0008] An embodiment of the present invention provides a device for processing motion in a virtual scene, the device comprising: a display module configured to display a surmountable obstacle, a virtual object, and a manipulation control of a virtual scene, the manipulation control being used to control a movement manner of the virtual object relative to the surmountable obstacle, the manipulation control being associated with at least two movement manners, different trigger operations on the manipulation control corresponding to different movement manners; and a control module configured to, in response to a trigger operation on the operation control, control the virtual object to move relative to the jumpable obstacle in a target movement manner corresponding to the trigger operation when a distance between the virtual object and the jumpable obstacle is shorter than a target distance.
[0009] An embodiment of the present application provides an electronic device, the electronic device comprising: A memory having executable instructions stored therein; A processor configured to execute executable instructions stored in the memory to implement a method for processing motion in a virtual scene according to an embodiment of the present disclosure.
[0010] An embodiment of the present application provides a computer-readable storage medium having executable instructions stored thereon for causing a processor to perform a method for processing motion in a virtual scene according to an embodiment of the present application.
[0011] An embodiment of the present application provides a computer program product comprising a computer program or instructions for causing a processor to implement a method for processing motion in a virtual scene according to an embodiment of the present application. Effect of the Invention
[0012] The embodiments of the present application have the following beneficial effects:
[0013] By applying the embodiment of the present application, when the distance between the virtual object and the obstacle that can be overcome is shorter than the target distance, i.e., when the virtual object is near the obstacle that can be overcome, and the player triggers an operation control associated with a plurality of motion modes, the trigger operation corresponds to the target motion mode, and the virtual object is controlled to move in the target motion mode with respect to the obstacle that can be overcome when the player triggers the operation control. In this way, when the virtual object is near the obstacle that can be overcome, the motion mode that the virtual object adopts with respect to the obstacle that can be overcome is completely determined by the trigger operation of the operation control by the player, and the adopted motion mode matches the will of the player, and it is possible to avoid a situation where multiple operations are required due to the system's decision on the motion mode being contrary to the will of the player, and the efficiency of human-computer interaction and the effectiveness of control over the motion mode are improved. [Brief description of the drawings]
[0014] [Figure 1A] FIG. 2 is a schematic diagram of an application scenario of the method for motion processing in a virtual scene according to an embodiment of the present invention; [Figure 1B] FIG. 2 is a schematic diagram of an application scenario of the method for motion processing in a virtual scene according to an embodiment of the present invention; [Diagram 2] 4 is an exemplary structural diagram of a terminal device 400 according to an embodiment of the present application. [Diagram 3] 1 is an exemplary flowchart of a method for processing motion in a virtual scene, according to an embodiment of the present disclosure. [Figure 4] FIG. 2 is a schematic diagram of a setting interface of an operation control according to an embodiment of the present application; [Diagram 5] FIG. 2 is a schematic diagram of a display of an operation control according to an embodiment of the present invention. [Figure 6] FIG. 2 is a schematic diagram of a display of an operation control according to an embodiment of the present invention. [Figure 7] FIG. 2 is a schematic diagram of an operational control trigger according to an embodiment of the present invention. [Figure 8] 3 is a schematic diagram of a display of operation instruction information according to an embodiment of the present invention; FIG. [Figure 9] 1 is a schematic diagram of a method for processing motion in a virtual scene according to an embodiment of the present invention; [Figure 10] FIG. 2 is a schematic diagram of detection according to an embodiment of the present invention. [Figure 11] FIG. 2 is a schematic diagram of a slide according to an embodiment of the present invention. [Figure 12] 1 is a schematic diagram of the movement according to an embodiment of the present invention. [Figure 13] 1 is a schematic diagram of the movement according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application is hereinafter described in detail with reference to the drawings, and the described embodiments should not be understood as limitations to the present application, and all other embodiments obtained by those skilled in the art without creative efforts shall be included in the protection scope of the present invention.
[0016] In the following description, the term "some embodiments" refers to a subset of all possible embodiments, and it is understood that the terms "some embodiments" may refer to the same or different subsets of all possible embodiments, which may be combined with each other without conflict.
[0017] The terms "first / second..." referred to in the following description are merely intended to distinguish between similar objects and do not represent a particular order of the objects, and it will be understood that "first / second..." may, in some cases, be interchangeable with a particular order or precedence, such that the embodiments of the present application described herein may be performed in an order other than that illustrated or described.
[0018] Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to be limiting of the present application.
[0019] Before describing the present embodiment in more detail, the nouns and terms referred to in the present embodiment will be explained. The nouns and terms referred to in the present embodiment have the following interpretations.
[0020] 1) A "client" is an application that runs on a terminal and provides various services, such as a video playback client or a game client.
[0021] 2) The term “in response to…” refers to a condition or state upon which the operation to be performed depends, and when the dependent condition or state is satisfied, the operation or operations to be performed may be performed in real time or may have a configured delay, and unless otherwise specified, there is no execution order restriction between the operations to be performed.
[0022] 3) "Virtual Scene" refers to a virtual scene that is displayed (or provided) when an application is executed on a terminal, and the virtual scene may be a simulated environment of the real world, a semi-simulated and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene may be any one of a 2D virtual scene, a 2.5D virtual scene, and a 3D virtual scene, and the embodiments of the present application are not limited to the dimensions of the virtual scene. For example, the virtual scene may include sky, land, sea, etc., the land may include environmental elements such as deserts and cities, and a user can control virtual objects to move in the virtual scene.
[0023] 4) "Virtual object" refers to various human and object characters that can interact in a virtual scene, or movable objects in a virtual scene. The movable object may be a virtual person, a virtual animal, an animated character, such as a person, an animal, etc. displayed in a virtual scene. The virtual object may be a virtual character to represent a user in the virtual scene, and the virtual scene may include multiple virtual objects, each of which has its own shape and volume and occupies a partial space of the virtual scene. The virtual object may be a game character controlled by a user (also called a player), i.e., the virtual object is controlled by a real user and moves in the virtual scene in response to the real user's operation on the controller (including a touch screen, an acoustic switch, a keyboard, a mouse, and a joystick, etc.), for example, when the real user moves the joystick to the left, the virtual object moves to the left in the virtual scene, and can also hold a stationary state, jump, and use various functions (such as skills and items).
[0024] 5) "Scene Data" refers to all feature data in a virtual scene, and may include, for example, graphic data and audio data of the virtual scene, where the graphic data may include interaction environment data (e.g., location or environment) of virtual objects in the virtual scene, virtual items held, interaction data with other virtual objects, attribute values of various attributes, etc., and may include wait times required to configure various functions in the virtual scene, etc.
[0025] The present embodiment provides a motion processing method in a virtual scene, an apparatus therefor, an electronic device, a computer-readable storage medium, and a computer program product, which can improve the efficiency and control effectiveness of human-computer interaction. In order to make the motion processing method in a virtual scene according to the embodiment of the present application easier to understand, an exemplary implementation scenario of the motion processing method in a virtual scene according to the embodiment of the present application will be described first, and the virtual scene of the motion processing method in a virtual scene according to the embodiment of the present application may be output by a terminal device or a server alone, or may be output by a terminal device and a server together.
[0026] In some embodiments, the virtual scene may be an environment for interaction of a game character, for example a virtual scene in which the game character performs a virtual battle in the virtual scene, and by controlling the movement of the game character, mutual interaction can be performed in the virtual scene, thereby allowing a user to relieve stress in life while playing a game.
[0027] In one implementation scenario, referring to Fig. 1A, Fig. 1A is a schematic diagram of an application scenario of the motion processing method in a virtual scene according to an embodiment of the present application, in which the motion processing method in a virtual scene according to an embodiment of the present application is entirely dependent on the terminal device, and can perform calculation of the relevant data of the virtual scene 100 by utilizing the computing capability of the graphics processing hardware of the terminal device 400, for example, in the case of a single-player / offline mode game, the output of the virtual scene can be realized by various different types of terminal devices 400, such as smartphones, tablet computers, and virtual reality / augmented reality devices. As an example, the types of graphics processing hardware include a central processing unit (CPU) and a graphics processor (GPU).
[0028] When forming a visual perception of the virtual scene 100, the terminal device 400 uses a graphic computing hardware to calculate data required for display, loads, analyzes, and renders display data, and outputs a video frame capable of forming a visual perception of the virtual scene from the graphic output hardware, for example, displays a two-dimensional video frame on the display screen of a smartphone, or projects a video frame on the lens of an augmented reality / virtual reality glasses to realize a three-dimensional display effect. Furthermore, for various sensory effects, the terminal device 400 can use different hardware to form one or more of an auditory perception, a tactile perception, a kinesthetic perception, and a gustatory perception.
[0029] As an example, the terminal device 400 executes a client 410 (e.g., a single-player game application), and in the process of executing the client 410, outputs a virtual scene including role-playing. The virtual scene 100 may be an environment for game character interaction, for example, a plain, a city, a valley, etc. for game character competition. The virtual scene 100 includes a virtual object 110 and a surmountable obstacle 120 such as a wall or a drum. Here, the virtual object 110 may move by adopting various motion methods with respect to the surmountable obstacle 120. For example, the virtual object 110 may move by adopting a motion method of climbing over the surmountable obstacle 120 to climb from one side of the surmountable obstacle to the other side, and the virtual object 110 may move by adopting a motion method of jumping over the surmountable obstacle 120 to jump from one side of the surmountable obstacle to stand on the surmountable obstacle.
[0030] As an example, the terminal device displays a surmountable obstacle, a virtual object, and an operation control in a virtual scene, the operation control is used to control a motion manner of the virtual object relative to the surmountable obstacle, the operation control is associated with at least two motion manners, and different trigger operations on the operation control correspond to different motion manners. When the distance between the virtual object and the surmountable obstacle is shorter than a target distance, in response to a trigger operation on the operation control, the virtual object is controlled to move relative to the surmountable obstacle in a target motion manner corresponding to the trigger operation. In this way, which motion manner the virtual object adopts to move relative to the surmountable obstacle is completely determined by the trigger operation on the operation control by the player, so that the player's activity is improved and the adopted motion manner is in accordance with the player's will, and the need for multiple operations due to the system's decision on the motion manner being contrary to the player's will is avoided, and the efficiency of human-computer interaction and the effectiveness of control over the motion manner are improved.
[0031] In another implementation scenario, referring to FIG. 1B, FIG. 1B is a schematic diagram of an application scenario of a motion processing method in a virtual scene according to an embodiment of the present application, which is applied to a terminal device 400 and a server 200. In this application scenario, the computing capability of the server 200 is used to perform calculations of the virtual scene, and the virtual scene is output to the terminal device 400. Taking the formation of a visual perception of a virtual scene 100 as an example, the server 200 calculates display data (such as scene data) related to the virtual scene and transmits it to the terminal device 400 via the network 300, and the terminal device 400 relies on graphic computing hardware to perform loading, parsing, and rendering of the display data, and relies on graphic output hardware to output the virtual scene to form a visual perception, for example, to display a two-dimensional video frame on the display screen of a smartphone, or to project a video frame onto the lens of an augmented reality / virtual reality glasses, which can realize a three-dimensional display effect. As can be understood, the perception in the form of a virtual scene can be realized by the output of the relevant hardware of the terminal device 400, for example using a microphone to form an auditory perception and a vibrator to form a tactile perception.
[0032] As an example, the terminal device 400 executes a client 410 (e.g., a single-player game application), and in the process of executing the client 410, a virtual scene including role-playing is output. The virtual scene 100 may be an environment for game character interaction, for example, a plain, a city, a valley, etc. for game character competition. The virtual scene 100 includes a virtual object 110 and a surmountable obstacle 120 such as a wall or a drum. Here, the virtual object 110 can move by adopting various motion methods with respect to the surmountable obstacle 120. For example, the virtual object 110 can move by adopting a motion method of climbing over the surmountable obstacle 120 to climb from one side of the surmountable obstacle to the other side, and the virtual object 110 can move by adopting a motion method of jumping over the surmountable obstacle 120 to jump from one side of the surmountable obstacle to stand on the surmountable obstacle.
[0033] In some embodiments, the terminal device 400 can realize the motion processing method in a virtual scene according to the embodiment of the present application by executing a computer program. For example, the computer program may be a native program or software module in an operating system, i.e., a program that needs to be installed in an operating system to run, such as a native application (APP) such as a shooting game APP (i.e., the above-mentioned client 410), or a mini-program, i.e., a program that can be run simply by downloading it to a browser environment, or a game mini-program that can be embedded in any APP. In short, the above-mentioned computer program may be any form of application, module, or plug-in.
[0034] Taking the computer program as an example of an application, in actual implementation, an application supporting a virtual scene is installed and executed on the terminal device 400. The application may be any one of a first-person shooter game (FPS), a third-person shooter game, a virtual reality application, a three-dimensional map program, a simulation program, or a multiplayer gun battle survival game. A user can use the terminal device 400 to manipulate a virtual object in a virtual scene to perform an action, the action including, but not limited to, at least one of adjusting a body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, and building a virtual building. Exemplarily, the virtual object may be a virtual person such as a simulation human character or an animation character.
[0035] In some other embodiments, the present embodiment may further be realized by cloud technology, which refers to a hosting technology that integrates a set of resources such as hardware, software, and networks within a wide area network or a local area network to realize data calculation, storage, processing, and sharing.
[0036] Cloud technology is a collective term for network technology, information technology, integration technology, management platform technology, and application technology that are applied based on the cloud computing business mode, which can form a resource pool and can be used as needed, flexible and convenient. Cloud computing technology is an important support. The back-end service of the technical network system requires a large amount of computing and storage resources.
[0037] 1B may be an independent physical server, a server cluster or a distributed system configured by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), big data, and artificial intelligence platforms. The terminal device 400 may be, but is not limited to, a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal device 400 and the server 200 may be directly or indirectly connected to each other by a wired or wireless communication method, and the present embodiment is not limited thereto.
[0038] The following describes an electronic device implementing the above method according to the embodiment of the present application, which may be a terminal device 400 shown in FIG. 1A, or a terminal device and a server shown in FIG. 1B. Take the electronic device as the terminal device 400 as an example, refer to FIG. 2, which is an exemplary structural diagram of the terminal device 400 according to the embodiment of the present application, and the terminal device 400 shown in FIG. 2 includes at least one processor 420, a memory 460, at least one network interface 430 and a user interface 440. Each component of the terminal device 400 is coupled via a bus system 450. It can be understood that the bus system 450 is used to realize the connection communication between these components. In addition to the data bus, the bus system 450 includes a power bus, a control bus and a status signal bus. However, for clarity of description, various buses are labeled as the bus system 450 in FIG. 2.
[0039] The processor 420 may be an integrated circuit chip having signal processing capabilities, such as a general purpose processor, a digital signal processor (DSP), or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc., where the general purpose processor may be a microprocessor or any conventional processor, etc.
[0040] The user interface 440 includes one or more output devices 441 that enable media content to be displayed, said output devices 441 including one or more speakers and / or one or more visual display screens, and further includes one or more input devices 442 that include user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons or controls, etc.
[0041] Memory 460 may be removable, non-removable, or a combination thereof, and example hardware devices thereof include solid-state memory, hard disk drives, optical disk drives, etc. Memory 460 optionally includes one or more storage devices that are remote in physical location from processor 420.
[0042] The memory 460 may include volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be read only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 460 described in the present embodiments is intended to include any suitable type of memory.
[0043] In some embodiments, memory 460 may store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as illustratively described below.
[0044] The operating system 461 includes system programs configured to handle various basic system services and execute tasks related to hardware, such as a framework layer, a core library layer, a driver layer, etc., which are used to realize various basic services and process hardware-based tasks.
[0045] The network communications module 462 is configured to reach other computing devices via one or more (wired or wireless) network interfaces 430, illustratively including Bluetooth® technology, Wireless Fidelity (WiFi), Universal Serial Bus (USB), and the like.
[0046] The exhibit module 463 is configured to display information via one or more output devices 441 (e.g., a display, speakers, etc.) associated with a user interface 440 (e.g., a user interface for operating peripherals and displaying content and information).
[0047] The input processing module 464 is configured to detect one or more user inputs or interactions from one or more input devices 442 and to interpret the detected inputs or interactions.
[0048] In some embodiments, the virtual scene motion processing device according to the embodiments of the present application can be realized in a software manner. FIG. 2 shows a virtual scene motion processing device 465 stored in a memory 460. The virtual scene motion processing device 465 can be software in the form of a program, plug-in, etc., and includes software modules such as a display module 4651 and a control module 4652. These modules are interconnected and can be arbitrarily combined or divided based on the functions they realize. The functions of each module are described below.
[0049] In some other embodiments, the motion processing device in a virtual scene according to the embodiments of the present application may be realized by adopting a hardware method, and as an example, the motion processing device in a virtual scene according to the embodiments of the present application may be a processor adopting the form of a hardware decoding processor, which is programmed to execute the motion processing method in a virtual scene according to the embodiments of the present application, and for example, the processor in the form of a hardware decoding processor may adopt one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic elements.
[0050] The following describes a method for processing motion in a virtual scene according to an embodiment of the present application with reference to the drawings. The method for processing motion in a virtual scene according to an embodiment of the present application may be performed by a terminal device or a server alone, or may be performed by a terminal device 400 and a server 200 together.
[0051] Hereinafter, an example will be described in which the method for processing motion in a virtual scene according to an embodiment of the present application is performed solely by the terminal device 400 of Fig. 1A. Referring to Fig. 3, Fig. 3 is an exemplary flowchart of the method for processing motion in a virtual scene according to an embodiment of the present application, which will be described with reference to the steps shown in Fig. 3.
[0052] It should be noted that the method illustrated in FIG. 3 may be performed by various forms of computer programs executed on the terminal device 400, and is not limited to the above-mentioned client 410, but may be performed by the above-mentioned operating system 461, software modules, scripts, etc., and therefore the client should not be considered as a limitation of the embodiments of the present application.
[0053] In step 101, the terminal device displays surmountable obstacles, virtual objects and operation controls on an interface of a virtual scene, and the operation controls are used to control the movement manner of the virtual objects relative to the surmountable obstacles.
[0054] Here, in practical application, a client supporting a virtual scene is installed in the terminal device (for example, if the virtual scene is a game, the corresponding client may be a shooting game APP), and when a user launches the client installed in the terminal device (for example, a user clicks an icon corresponding to the shooting game APP displayed on a user interface of the terminal device), and the terminal device executes the client, an interface of the virtual scene can be displayed on the client, and a virtual object corresponding to a currently logged-in account in the virtual scene, an environment in which the virtual object is located in the virtual scene (for example, flat ground, a jump-over obstacle (wall, drum, etc.)), and an operation control for controlling a movement manner of the virtual object with respect to the jump-over obstacle can be displayed on the interface of the virtual scene, where the operation control is associated with at least two movement manners, and different trigger operations on the operation control correspond to different movement manners, and a player can control the virtual object to move in the corresponding movement manner with respect to the jump-over obstacle by executing a trigger operation corresponding to the movement manner on the operation control.
[0055] In step 102, if the distance between the virtual object and the jumpable obstacle is shorter than the target distance, in response to a trigger operation on the operation control, the virtual object is controlled to move relative to the jumpable obstacle in a target movement manner corresponding to the trigger operation.
[0056] Here, the target distance may be a distance preset according to an actual situation and is related to a plurality of movement manners associated with the operation control, for example, when the movement manners associated with the operation control include climbing over and jumping, the target distance is a distance at which the virtual object can climb over from one side of the climb-over obstacle to the other side when the virtual object is near the climb-over obstacle, or a distance at which the virtual object can jump from one side of the climb-over obstacle to stand on the climb-over obstacle.
[0057] In practical applications, the operation modes of the multiple motion manners associated with the operation control can be adjusted and set to meet the operation needs of different users, where the operation modes include a combination mode and a split mode. In some embodiments, the terminal device can adjust the operation mode of at least two motion manners associated with the operation control to a split mode in response to a setting command for the operation mode of the operation control before controlling the virtual object to move in a target motion manner corresponding to the trigger operation. Correspondingly, when the distance between the virtual object and the surmountable obstacle is shorter than the target distance in the split mode, the terminal device controls the virtual object to move in the target motion manner corresponding to the trigger operation with respect to the surmountable obstacle in response to the trigger operation for the operation control, so that the motion manner of the virtual object with respect to the surmountable obstacle is determined by the user. When the user sets the operation mode of the operation control to the combination mode, the motion manner of the virtual object with respect to the surmountable obstacle is determined by the system based on the position of the virtual object. In this way, the user can select whether to enable the split mode of the operation control according to his or her will and needs.
[0058] Next, an example will be described in which the motion schemes associated with the operation control include two motion schemes, namely, climbing over and jumping.
[0059] Referring to Fig. 4, Fig. 4 is a schematic diagram of a setting interface of an operation control according to an embodiment of the present application, and the setting interface displays an on (ON) / off (OFF) option for setting an operation mode of two movement manners associated with the operation control, and when the OFF option is selected, the operation mode is adjusted to the combination mode, and when the ON option is selected, the operation mode is adjusted to the split mode. When the operation mode is adjusted to the combination mode, control is performed in a normal manner, that is, the movement manner of the virtual object with respect to the surmountable obstacle triggered by the user triggering the operation control is determined by the system based on the position environment of the virtual object, for example, when the terminal device receives a trigger operation on the operation control when the distance between the virtual object and the surmountable obstacle is shorter than the target distance, the terminal device controls the virtual object to move in a movement manner of jumping over the surmountable obstacle, that is, controls the virtual object to jump over from one side of the surmountable obstacle to the other side. In another example, when the terminal device receives a trigger operation for an operation control when the virtual object moves on flat ground or the distance between the virtual object and a surmountable obstacle exceeds a target distance (cannot be surmounted), the terminal device controls the virtual object to move in a jumping manner.
[0060] When the operation mode is adjusted to the split mode, control is performed according to the movement processing method of the embodiment of the present application, that is, the movement manner of the virtual object relative to a climbable obstacle is determined by a trigger operation on the operation control by the user, and if the trigger operation corresponds to a certain movement manner, the virtual object is controlled to move in the corresponding movement manner relative to the climbable obstacle, if the trigger operation corresponds to a movement manner of jumping, the virtual object is controlled to jump from one side of the climbable obstacle and stand on the climbable obstacle, and if the trigger operation corresponds to a movement manner of climbing over, the virtual object is controlled to climb over from one side of the climbable obstacle to the other side.
[0061] The above method provides the user with a setting portal (i.e., on / off option) for setting the operation mode, and the user can set the operation mode that suits him / her through the setting portal according to his / her own operating habits, which enhances applicability and helps improve the effectiveness of subsequent movement direction control.
[0062] In some embodiments, the terminal device can receive a trigger operation on the operation control in the following manner: in response to a press operation on the operation control, control a display style of the operation control to switch from a default style to a first style, where the first style corresponds to a target movement manner; in response to a release operation for the press operation triggered via the operation control of the first style, receive a trigger operation, the trigger operation including a press operation and a release operation, that is, receive the trigger operation when the press operation on the operation control of the first style is released.
[0063] Referring to FIG. 5, FIG. 5 is a schematic diagram of the display of an operation control according to an embodiment of the present application, in which a corresponding icon (e.g., an icon corresponding to a target movement mode (such as a jump icon)) is displayed in the display area of the operation control. Before the terminal device receives a pressing operation for the operation control, the operation control is displayed in a default style (e.g., displayed in grayscale, indicating that the operation control is not pressed). When the terminal device receives a pressing operation for the operation control, the terminal device controls the display style of the operation control to be switched from the default style to a first style (e.g., displayed highlighted, indicating that the operation control is pressed). The user can continue to press the operation control in the first style. In the process of continuing to press, when the pressing operation is released, the terminal device can treat the successive operations of the pressing operation and the releasing operation as a trigger operation for the operation control. After receiving the trigger operation, it is determined whether the trigger operation corresponds to the target movement mode associated with the operation control, and a subsequent operation is performed according to the determination result. In other words, the terminal device does not immediately execute a subsequent judgment function after receiving a press operation for an operation control, but after receiving a release operation, determines which of the movement methods associated with the operation control corresponds based on a trigger operation consisting of a succession of a press operation and a release operation, that is, controls which movement method the virtual object will adopt to move against a surmountable obstacle, for example, controls the virtual object to move in a corresponding movement method against a surmountable obstacle.
[0064] In some embodiments, before controlling the virtual object to move in a target movement manner relative to the overcome obstacle, the terminal device may determine whether the received trigger operation corresponds to the target movement manner in the following manner: obtain a distance interval between a position corresponding to a press operation and a position corresponding to a release operation, and determine that the trigger operation corresponds to the target movement manner if the distance interval is smaller than a first distance threshold.
[0065] Here, after receiving a trigger operation for an operation control, the terminal device compares the received trigger operation with trigger operations corresponding to each of the multiple motion methods associated with the operation control, and selects a motion method corresponding to the received trigger operation from the multiple associated motion methods based on a comparison result. For example, if the trigger operation corresponding to the target motion method includes a push operation and a release operation for the operation control, and the distance between the position corresponding to the push operation and the position corresponding to the release operation is smaller than a first distance threshold, after receiving a trigger operation (including a push operation and a release operation) for the operation control, the terminal device compares the received trigger operation with trigger operations corresponding to each motion method, determines a target motion method corresponding to the received trigger operation, and controls the virtual object to move in the target motion method with respect to a surmountable obstacle.
[0066] In some embodiments, the trigger operation on the operating control further includes a first sliding operation, and in the process of performing a press operation on the first style operating control, the terminal device can further receive the first sliding operation triggered through the first style operating control, and in the sliding process, i.e., in the process of sliding the operating control based on the first sliding operation, when a release operation for the press operation and a release operation for the first sliding operation are received, i.e., when the press operation and the first sliding operation are released, a trigger operation is received.
[0067] Here, in the process of performing a press operation on the first style operation control, the user can slide while pressing, and release the press operation and slide operation after sliding a certain distance, in this case, the press operation, the first slide operation and the release operation are consecutive operations, and this series of consecutive operations is treated as a trigger operation for the operation control, in this case, based on the sliding distance or the sliding trajectory of the slide operation, it is determined whether the trigger operation is the same as the trigger operation corresponding to the target movement method, and if it is determined that they are the same, the virtual object can be controlled to move toward an obstacle that can be overcome in the target movement method.
[0068] In some embodiments, the trigger operation on the operation control further includes a second sliding operation, and in the process of performing a press operation on the operation control of the first style, the terminal device can further receive a second sliding operation on the operation control of the first style, and in the sliding process, i.e., in the process of sliding the operation control based on the second sliding operation, in response to a sliding distance of the second sliding operation being equal to or greater than a first distance threshold, control the display style of the operation control to be switched from the first style to a second style, where the second style corresponds to another motion method among the at least two motion methods associated with the operation control excluding the target motion method, and in the process of the operation control being displayed in the second style, receive a release operation of the press operation on the operation control of the second style and a release operation of the second sliding operation.
[0069] Here, the first distance threshold is a distance for distinguishing the target motion scheme from other motion schemes, and when the terminal device receives a release operation when the sliding distance of the second sliding operation is smaller than the first distance threshold, the trigger operation (including the push operation, the second sliding operation, and the release operation) for the operation control corresponds to the target motion scheme, and in this case, the terminal device can control the virtual object to move in the target motion scheme with respect to the obstacle that can be overcome. When the terminal device receives a release operation when the sliding distance of the second sliding operation is equal to or greater than (greater than or equal to) the first distance threshold, the trigger operation (including the push operation, the second sliding operation, and the release operation) for the operation control corresponds to another motion scheme different from the target motion scheme, and in this case, the terminal device can control the virtual object to move in the other motion scheme with respect to the obstacle that can be overcome.
[0070] Referring to FIG. 6, FIG. 6 is a schematic diagram of the display of an operation control according to an embodiment of the present application. In the process of a user performing a long press operation on a first style operation control and performing a second sliding operation, if the sliding distance of the second sliding operation is smaller than a first distance threshold, the display style of the operation control remains the first style. If the sliding distance of the second sliding operation is equal to or greater than the first distance threshold, the trigger operation on the operation control no longer corresponds to the target motion manner. In this case, the terminal device controls the display style of the operation control to be switched from the first style to a second style corresponding to another motion manner. For example, if the target motion manner is jumping and the other motion manner is climbing over, the terminal device controls the icon displayed in the display area of the operation control to be switched from a jump icon to a climbing over icon, thereby presenting to the user that the climbing over function can be triggered in this situation, that is, the user can control a virtual object to move in a climbing over motion manner against a climbable obstacle.
[0071] In some embodiments, the trigger operation of the operation control further includes a callback operation, and the terminal device can receive a release operation for the press operation and a release operation for the second sliding operation in the following manner: in a process of performing a press operation and a second sliding operation on the operation control of a second style, the callback operation for the second sliding operation is received, in a callback process, i.e., in a process of performing a callback on the operation control based on the callback operation, in response to a callback distance of the callback operation exceeding a second distance threshold, the display style of the operation control is controlled to return from the second style to the first style, and in a process of the operation control being displayed in the first style, the release operation for the press operation, the release operation for the second sliding operation, and the release operation for the callback operation are received.
[0072] Continuing with reference to FIG. 6, in the process of performing a press operation and a second sliding operation on a second style operation control, if the sliding distance of the second sliding operation is equal to or greater than the first distance threshold and the trigger operation on the operation control does not correspond to the target motion method, a callback operation (which is continuous with the second sliding operation, for example, continues to slide in the opposite direction to the second sliding operation) is performed so that the sliding distance of the second sliding operation (the callback distance of the callback operation is subtracted from the sliding distance of the second sliding operation before calling back) is smaller than the first distance threshold, thereby making the trigger operation on the operation control correspond to the target motion method. In this case, the icon displayed in the display area of the operation control is controlled to return from the climb over icon to the jump icon. If a release operation is received in the process of the operation control being displayed as the jump icon, the trigger operation (including the press operation, the second sliding operation, the callback operation and the release operation) on the operation control corresponds to the target motion method. In this case, the virtual object can be controlled to move in the target motion method with respect to the climb over obstacle.
[0073] In some embodiments, the terminal device can receive a release operation for a press operation and a release operation for a second slide operation in the following manner: in a process of performing the press operation and the second slide operation on the second style operation control, in response to a movement command for the virtual object, control the virtual object to move in the virtual scene along a direction indicated by the movement command, in response to a distance between the virtual object and the overcome obstacle being equal to or greater than a target distance in the movement process, control the display style of the operation control to return from the second style to the first style, and in a process of displaying the operation control in the first style, receive the release operation for the press operation and the release operation for the second slide operation.
[0074] Here, in the process of performing the push operation and the second slide operation on the second style operation control, if the slide distance of the second slide operation is equal to or greater than the first distance threshold and the trigger operation on the operation control does not correspond to the target motion manner, the virtual object is further controlled to move away from the jumpable obstacle so that the trigger operation on the operation control corresponds to the target motion manner. For example, if the target motion manner is jump and the other motion manner is climb, the icon displayed in the display area of the operation control is controlled to return from the climb-over icon to the jump icon, and if a release operation for the trigger operation is received in the process of the operation control being displayed as the jump icon, since the trigger operation (including the push operation, the second slide operation, and the release operation) on the operation control corresponds to the target motion manner, the virtual object can be controlled to move with respect to the jumpable obstacle in the target motion manner, that is, the virtual object is controlled to perform a jump operation on the jumpable obstacle so that the virtual object jumps from the side of the jumpable obstacle where the virtual object is located to the other side of the jumpable obstacle.
[0075] In some embodiments, before controlling the virtual object to move in a target movement manner relative to the surmountable obstacle, the terminal device may further determine whether the received trigger operation corresponds to the target movement manner in the following manner: if the trigger operation includes a press operation on an operation control, obtain press parameters corresponding to the press operation, the press parameters including at least one of a press duration, a press force, and a press frequency, and determine that the trigger operation corresponds to the target movement manner if the press parameters match the target press parameters corresponding to the target movement manner.
[0076] Here, when multiple motion methods associated with an operation control are triggered by a press operation on the operation control, different press parameters can correspond to different motion methods. For example, taking the press parameter as press time length, in a first motion method, a second motion method and a third motion method associated with the operation control, the first press time length corresponding to the first motion method is less than or equal to a first time length threshold, the second press time length corresponding to the second motion method is greater than the first time length threshold and less than or equal to the second time length threshold, the second time length threshold is greater than the first time length threshold, and the third press time length corresponding to the third motion method is greater than the second time length threshold. For example, when the pressing time length corresponding to the first motion method is less than 1 second, the pressing time length corresponding to the second motion method is more than 1 second and less than 3 seconds, and the pressing time length corresponding to the third motion method is more than 3 seconds, the terminal device receives a trigger operation (including a pressing operation) for the operation control, and then performs matching between the pressing time length of the pressing operation in the received trigger operation (the difference between the time of the release operation for the pressing operation and the time of the pressing operation) and the pressing time length corresponding to each of the three motion methods associated with the operation control, and selects the motion method whose pressing time length matches each other as the motion method to be adopted. For example, when the pressing time length of the received pressing operation is 2 seconds, the corresponding adopted motion method is the second motion method. Or, the pressing time length of the pressing operation in the received trigger operation is directly compared with the pressing time length corresponding to the target motion method, and if they match, it is determined that the received trigger operation corresponds to the target motion method, that is, it is determined that the adopted motion method indicated by the trigger operation is the target motion method.
[0077] In some embodiments, before controlling the virtual object to move in a target motion manner relative to the surmountable obstacle, the terminal device may further determine whether the received trigger operation corresponds to the target motion manner in the following manner: if the trigger operation includes a slide operation on an operation control, obtain a slide trajectory corresponding to the slide operation, and if the slide trajectory matches a target slide trajectory corresponding to the target motion manner, determine that the trigger operation corresponds to the target motion manner.
[0078] Here, when the trigger operation for the operation control includes a slide operation for the operation control, in addition to judging whether the received trigger operation corresponds to the target motion mode based on the above-mentioned slide distance, it can also be judged based on the slide trajectory, in some embodiments, each motion mode corresponds to one slide trajectory, and the slide trajectories corresponding to different motion modes are different, for example, in the first motion mode, the second motion mode and the third motion mode associated with the operation control, the slide trajectory corresponding to the first motion mode is "V" shaped, the slide trajectory corresponding to the second motion mode is "S" shaped, and the other slide trajectories except for the above two slide trajectories correspond to the third motion mode, after obtaining the trigger operation (including the slide operation) for the operation control, the terminal device matches the slide trajectory of the slide operation in the received trigger operation with the slide trajectories corresponding to each of the three motion modes associated with the operation control, and selects the motion mode whose slide trajectories match each other as the motion mode to be adopted. For example, if the sliding trajectory of the received sliding operation is "V" shaped, the corresponding adopted motion manner is the first motion manner; or, if the sliding trajectory of the sliding operation in the received trigger operation is directly compared with the sliding trajectory corresponding to the target motion manner and there is a match, it is determined that the received trigger operation corresponds to the target motion manner, i.e., it is determined that the adopted motion manner indicated by the trigger operation is the target motion manner.
[0079] In some embodiments, the terminal device can further receive a trigger operation on the operation control in the following manner: in response to a pressing operation on the operation control, displaying options corresponding to at least two motion methods associated with the operation control, and in response to a selection operation on a target option, receiving a trigger operation on the operation control, and setting the motion method corresponding to the target option as the motion method instructed to be executed by the trigger operation, i.e., the above-mentioned target motion method.
[0080] Here, in actual applications, the options corresponding to each motion mode may be displayed in various ways, for example, in a floating window style, in a list style, or in a control style, and the present embodiment is not limited thereto.
[0081] 7, which is a schematic diagram of a trigger of an operation control according to an embodiment of the present application, in which when a user presses (or clicks) an operation control, options corresponding to each of a plurality of motion modes associated with the operation control are displayed in an area associated with the operation control, for example, a plurality of selectable options are displayed in a floating window style, and in the process of pressing the operation control, the user swipes a finger to an area where a target option is located or directly clicks on the target option to trigger a selection operation for the target option as a trigger operation for the operation control, and the motion mode corresponding to the target option selected by the selection operation is the motion mode instructed to be executed by the trigger operation. For example, if the motion mode corresponding to the target option is a jump, the motion mode instructed by the trigger operation for the operation control received by the terminal device after selecting the target option is a jump, that is, the trigger operation can control a virtual object to move in a motion mode of jumping against a surmountable obstacle.
[0082] In some embodiments, the terminal device can further receive a trigger operation for the operation control in the following manner: display operation instruction information, where the operation instruction information is used to indicate a movement manner that the virtual object needs to adopt for a surmountable obstacle, and receive a trigger operation for the operation control based on the operation instruction information, where the trigger operation corresponds to the movement manner indicated by the operation instruction information.
[0083] Here, when the distance between the virtual object and the jumpable obstacle is shorter than the target distance, i.e., when the virtual object is close to the jumpable obstacle, operation instruction information is displayed to instruct which movement mode the virtual object should adopt for the jumpable obstacle and how to trigger the corresponding movement mode, and the user can perform the corresponding trigger operation on the operation control according to the operation mode instructed by the operation instruction information.
[0084] Referring to FIG. 8, FIG. 8 is a schematic diagram of display of operation instruction information according to an embodiment of the present application. When a virtual object approaches an obstacle, such as a castle wall, operation instruction information 801 is displayed stating, "The enemy is hiding behind the castle wall. Slide the control upward to jump onto the castle wall and aim and shoot." After the user slides the operation control 802 upward according to the information instructed by the operation instruction information 801, if the terminal device determines that the received upward sliding operation of the operation control corresponds to a target movement mode of jumping, the user can control the virtual object to jump onto the castle wall and aim at the enemy.
[0085] In some embodiments, before displaying the operation instruction information, the terminal device can further obtain scene data of the virtual scene, and based on the scene data, invoke a machine learning model to predict a movement mode that the virtual object needs to adopt against a surmountable obstacle, and the movement mode obtained by the prediction can be the movement mode instructed by the operation instruction information.
[0086] Here, the machine learning model is obtained by training based on the sample scene data and the annotated movement schemes. After adjusting the operation modes of the at least two movement schemes associated with the operation control to the split mode, the terminal device uses the machine learning model based on an artificial intelligence algorithm to predict which movement scheme is more appropriate for the virtual object to adopt against the surmountable obstacle based on the scene data of the virtual scene (e.g., the location area position data of the current virtual object or other virtual objects, the interaction data between the current virtual object and other virtual objects, and the environmental data such as the position information of the surmountable obstacle), thereby making the prediction result more accurate, so that the trigger operation performed by the user based on the operation instruction information triggers the movement scheme suitable for the current situation, and further, the virtual object can be controlled to move in the movement scheme suitable for the current situation against the surmountable obstacle, thereby improving the effectiveness of the control over the movement schemes.
[0087] In addition, the above machine learning model may be a neural network model (e.g., a convolutional neural network, a deep convolutional neural network, or a fully connected neural network), a decision tree model, a gradient boosting decision tree (GBDT), a multi-layer perceptron, a support vector machine, etc., and the embodiments of the present application are not limited to the type of machine learning model.
[0088] In some embodiments, the terminal device obtains scene data of a virtual scene and reference scene data corresponding to a target motion mode, matches the scene data with the reference scene data, and if the scene data matches the reference scene data, sets the target motion mode to the motion mode indicated by the operation instruction information.
[0089] Here, when the operation control is associated with a plurality of motion modes, there is corresponding reference scene data for each motion mode, and different motion modes correspond to different reference scene data. For example, the reference scene data corresponding to the motion mode of "jump" is different from the reference scene data corresponding to the motion mode of "overcome". When the virtual object is near a surmountable obstacle, the terminal device acquires current scene data, matches the acquired scene data with reference scene data corresponding to each motion mode of the plurality of motion modes associated with the operation control, selects the motion mode corresponding to the reference scene data that has been successfully matched, and sets it as the motion mode indicated by the operation instruction information. After the user executes the corresponding trigger operation according to the operation instruction information, the terminal device compares the motion mode indicated by the trigger operation with the target motion mode, and if the two match each other, the terminal device determines that the trigger operation corresponds to the target motion mode, and controls the virtual object to move with respect to the surmountable obstacle in the target motion mode; if the two do not match each other, the terminal device determines that the trigger operation does not correspond to the target motion mode, and controls the virtual object to move with respect to the surmountable obstacle in the motion mode indicated by the trigger operation.
[0090] Of course, in practical application, after obtaining current scene data, the terminal device can directly match the obtained scene data with reference scene data corresponding to a target motion mode among the multiple motion modes associated with the operation control. If the matching is successful, it can determine that the target motion mode is the motion mode instructed by the operation instruction information, and directly control the virtual object to move in the target motion mode with respect to the surmountable obstacle. If the matching is unsuccessful, it can match the obtained scene data with reference scene data corresponding to each motion mode of the multiple motion modes associated with the operation control according to the above method, determine that the target motion mode is not the motion mode instructed by the operation instruction information, and select the motion mode corresponding to the reference scene data that was successfully matched as the motion mode waiting to be instructed by the operation instruction information.
[0091] It can be understood that the scene data of the virtual scene referred to in the embodiments of the present application is essentially user-related data, and when the embodiments of the present application are applied to certain products or technologies, user permission or consent is required, and the collection, use and processing of the related data should comply with the relevant laws, regulations and standards of the relevant countries or regions.
[0092] Here, if it is determined that the trigger operation corresponds to the target movement mode, the virtual object can be controlled to move in the target movement mode instructed by the trigger operation toward the jumpable obstacle. For example, if the target movement mode is jumping, the virtual object can be controlled to move in a jumping movement mode toward the jumpable obstacle so that the virtual object jumps from one side of the jumpable obstacle and stands on the jumpable obstacle. If the target movement mode is climbing, the virtual object can be controlled to move in a climbing movement mode toward the jumpable obstacle so that the virtual object climbs from one side of the jumpable obstacle to the other side.
[0093] According to the above method, when the distance between the virtual object and the jumpable obstacle is closer than the target distance, i.e., when the virtual object is near the jumpable obstacle, the movement method that the virtual object adopts to move against the jumpable obstacle is completely determined by the trigger operation of the operation control by the player, which enhances the player's initiative and makes the adopted movement method conform to the player's will, thereby avoiding a situation where the system's decision on the movement method goes against the player's will and thus requires multiple operations, thereby improving the effectiveness of the control over the movement method and supporting the interaction operation of the virtual object in the virtual scene, thereby improving the efficiency of the interaction.
[0094] The following describes an exemplary application of the embodiment of the present application in one practical application scenario. Take the virtual scene as an example that the virtual scene is a game, and the motion manner associated with the operation control includes two motion manners, namely, jumping and climbing over. The embodiment of the present application focuses on the following experience optimizations, namely, adding a switch for controlling a new operation, and adding a function for triggering jumping and climbing over based on a sliding distance, which will be described one by one below.
[0095] 1. Adding a switch to control new operations As shown in Fig. 4, the setting interface displays an ON / OFF option for setting the operation mode of two movement manners associated with the operation control, and when the OFF option is selected, the operation mode is adjusted to the combination mode, and when the ON option is selected, the operation mode is adjusted to the split mode. When the operation mode is adjusted to the combination mode, the control is performed in a normal manner, that is, the function (the movement manner of the virtual object with respect to the surmountable obstacle) triggered by the user triggering the operation control is determined by the system based on the position environment of the virtual object, for example, when the terminal device receives a trigger operation on the operation control when the distance between the virtual object and the surmountable obstacle is shorter than the target distance (i.e., the virtual object is close to the surmountable obstacle), the jumping function is triggered, and the virtual object is controlled to move in a jumping movement manner with respect to the surmountable obstacle, that is, the virtual object is controlled to jump from one side of the surmountable obstacle to the other side. In another example, if the terminal device receives a trigger operation on an operation control when the virtual object moves on flat ground or the distance between the virtual object and a surmountable obstacle exceeds a target distance (cannot be surmounted), a jump function is triggered and the virtual object is controlled to move in a jump motion manner.
[0096] When the operation mode is adjusted to the split mode, the function triggered by the user triggering the operation control is determined by the trigger operation on the operation control by the user, and when the trigger operation corresponds to which motion manner, the corresponding function is triggered to control the virtual object to move in the corresponding motion manner with respect to the jumpable obstacle, for example, when the distance between the virtual object and the jumpable obstacle is shorter than the target distance (i.e., the virtual object is close to the jumpable obstacle), the trigger operation corresponds to the motion manner of jumping, and the jump function is triggered to control the virtual object to move in the motion manner of jumping with respect to the jumpable obstacle, that is, the virtual object is controlled to jump from one side of the jumpable obstacle and stand on the jumpable obstacle. When the trigger operation corresponds to the motion manner of jumping, the jump function is triggered to control the virtual object to move in the motion manner of jumping with respect to the jumpable obstacle, that is, the virtual object is controlled to jump from one side of the jumpable obstacle to the other side.
[0097] 2. Added the ability to trigger jumps and vaults based on sliding distance This function is mainly intended for a function that is triggered when a virtual object is near a jumpable obstacle. Even if the virtual object is not near a jumpable obstacle, the jump function is still triggered when the jump button (i.e., the above-mentioned operation control) is triggered. The movement processing method in a virtual scene according to the embodiment of the present application mainly focuses on the expression when a virtual object is near a jumpable obstacle. In the conventional design, when a virtual object is near a jumpable obstacle (wall), the jump function is immediately triggered after the jump button is pressed. In the present application, the function is not triggered even if the jump button is pressed. In this case, the jump button is highlighted. When the jump button is displayed and the jump button pops up, the corresponding function is triggered according to the sliding operation of the finger, and if the sliding distance of the finger is less than the preset distance threshold (the above-mentioned first distance threshold), the jump function is triggered, and if the sliding distance of the player's finger is greater than the distance threshold, the jump button is changed to the jump button, and if the player wants to cancel the jump function, one method is that when the player moves away from the jumpable obstacle while pressing the jump button (for example, the distance between the two exceeds the target distance), the jump button is changed back to the jump button, and if the player releases the hand, the jump function is triggered. The other method is to move the sliding distance of the finger toward the pressed position, and if the sliding distance is less than the preset distance threshold, the jump button is changed back to the jump button, and if the player releases the hand, the jump function is triggered.
[0098] In view of the above, reference is made to FIG. 9, which is a schematic diagram of a method for processing motion in a virtual scene according to an embodiment of the present application, the method including the following steps:
[0099] In step 201, the terminal device displays surmountable obstacles, virtual objects and default style operation controls in an interface of a virtual scene.
[0100] Here, the manipulation control is used to control the movement manner of the virtual object relative to the surmountable obstacle, and the icon displayed in the display area of the manipulation control in the default style (e.g., grayscale) is a jump icon.
[0101] A plurality of obstacles may be displayed on the interface of the virtual scene, and a surmountable obstacle is an obstacle that a virtual object can jump on or overcome. In practical applications, whether an obstacle is a surmountable obstacle can be determined by detecting the relationship between the vertical height of the obstacle and the maximum height that a virtual object can jump or overcome. Referring to FIG. 10, FIG. 10 is a schematic diagram of detection according to an embodiment of the present application, in which a collision component (e.g., a collision box, a collision ball, etc.) is bound to each obstacle, and a detection ray is emitted downward from a camera component bound to the upper part of the obstacle toward the collision component at the lower end of the obstacle. When the detection ray hits the collision component at the lower end of the obstacle, the vertical height of the obstacle is determined based on the length of the detection ray. If the vertical height is equal to or less than the maximum height that a virtual object can jump or overcome, the obstacle is determined to be a surmountable obstacle, and if the vertical height is greater than the maximum height that a virtual object can jump or overcome, the obstacle is determined to be an insurmountable obstacle.
[0102] In step 202, if the distance between the virtual object and the surmountable obstacle is less than the target distance, a push operation on a default style operation control is received.
[0103] In step 203, the display style of the operation control is controlled to be switched from the default style to the first style.
[0104] For example, when a press operation is received on a default style operation control, the display style of the operation control is controlled to switch from the default style to the first style, for example, the display style of the operation control is switched from a grayscale display to a highlighted display, and the icon displayed in the display area of the first style operation control is still a jump icon.
[0105] In step 204, when a slide operation for a first style operation control is received, a slide distance of the slide operation is obtained.
[0106] Here, in the process of performing a pressing operation on the first-style operation control, the user can perform a sliding operation on the first-style operation control, and when the terminal device receives a sliding operation on the first-style operation control, it obtains the sliding distance of the sliding operation in real time and determines which function to trigger based on the sliding distance.
[0107] Referring to FIG. 11, FIG. 11 is a schematic diagram of a slide according to an embodiment of the present application, in which when a player presses a first style operation control, an initial position 0 of the press operation is obtained, and a circular area created with the initial position 0 as the center and the distance threshold as the radius is the detection area for triggering a slide operation, where the distance threshold is a distance for distinguishing whether to trigger a jump function or a climb-over function, and a slide operation within the circular area triggers the jump function, and a slide operation outside the circular area triggers the climb-over function.
[0108] During the sliding process, the sliding position A corresponding to the sliding operation is obtained in real time, and the distance between the sliding position A and the initial position 0 is obtained as the sliding distance of the sliding operation.
[0109] In step 205, it is determined whether the sliding distance is less than the distance threshold.
[0110] If the sliding distance is less than the distance threshold, step 206 is executed; if the sliding distance is greater than or equal to the distance threshold, step 208 is executed.
[0111] In step 206, maintaining the display of the operational control in the first style.
[0112] In step 207, if a release operation for a push operation and a release operation for a slide operation are received, a jump function is triggered.
[0113] Here, in the process of sliding the first-style operation control, if the player releases his / her hand when the sliding distance is less than the distance threshold, the terminal device receives a release operation for the push operation and a release operation for the slide operation, and in response to the release operation, triggers a jump function and controls the virtual object to move in a movement manner of jumping toward the jumpable obstacle, as shown in FIG. 12 , which is a schematic diagram of the movement according to an embodiment of the present application, and the virtual object can be controlled to jump from one side of the jumpable obstacle and stand on the jumpable obstacle.
[0114] In step 208, the display style of the operation control is controlled to switch from the first style to the second style.
[0115] Here, when the slide distance is equal to or greater than the distance threshold, the display style of the operation control is controlled to switch from the first style to the second style, and for example, the icon displayed in the display area of the operation control is controlled to switch from a jump icon to an overriding icon and be highlighted.
[0116] In step 209, if a release operation for a push operation and a release operation for a slide operation are received, the overstep function is triggered.
[0117] Here, in the process of sliding the second-style operation control, if the player releases his / her hand when the sliding distance is equal to or greater than the distance threshold, the terminal device receives a release operation for the push operation and a release operation for the slide operation, and in response to the release operation, triggers a jump-over function, and controls the virtual object to move in a jump-over movement manner with respect to the jump-over obstacle, as shown in FIG. 13, which is a schematic diagram of the movement according to an embodiment of the present application, and controls the virtual object to jump over from one side to the other side of the jump-over obstacle.
[0118] According to the above method, when the distance between the virtual object and the jumpable obstacle is closer than the target distance, i.e., when the virtual object is near the jumpable obstacle, the movement method that the virtual object adopts to move against the jumpable obstacle is completely determined by the trigger operation of the operation control by the player, which enhances the player's initiative and makes the adopted movement method conform to the player's will, and avoids the need for multiple operations due to the system's decision of the movement method based on the environment going against the player's will, thereby improving the effectiveness of the control over the movement method and supporting the interaction operation of the virtual object in the virtual scene, thereby improving the efficiency of the interaction.
[0119] The following describes an exemplary structure of the virtual scene motion processor 465 implemented as a software module according to an embodiment of the present disclosure. In some embodiments, the software modules in the virtual scene motion processor 465 stored in the memory 460 of FIG. 2 include: a display module 4651 configured to display surmountable obstacles, virtual objects and manipulation controls of a virtual scene, the manipulation controls being used to control a movement manner of the virtual objects relative to the surmountable obstacles, the manipulation controls being associated with at least two movement manners, different trigger operations on the manipulation controls corresponding to different movement manners; and a control module 4653 configured to, in response to a trigger operation on the operation control, control the virtual object to move relative to the surmountable obstacle in a target movement manner corresponding to the trigger operation when the distance between the virtual object and the surmountable obstacle is shorter than a target distance.
[0120] In some embodiments, the device further comprises a receiving module 4652 configured to receive a trigger operation on the manipulation control when a distance between the virtual object and the surmountable obstacle is less than a target distance.
[0121] In some embodiments, the device further comprises a setting module configured to adjust an operation mode of the at least two movement schemes associated with the operation control to a split mode in response to a setting command for the operation mode of the operation control, and the device further comprises a trigger module configured to trigger matching, in the split mode, between the trigger operation and a trigger operation corresponding to a target movement scheme among the at least two movement schemes.
[0122] In some embodiments, the receiving module is further configured to control, in response to a press operation on the operating control, to switch a display style of the operating control from a default style to a first style, the first style corresponding to the target movement method, and to receive the trigger operation in response to a release operation for the press operation triggered via the operating control of the first style, the trigger operation including the press operation and the release operation.
[0123] In some embodiments, the trigger operation further includes a first slide operation, and the device further includes a first release receiving module configured to receive the first slide operation triggered via the first style operating control during the process of performing the press operation on the first style operating control, and to receive a release operation for the press operation and a release operation for the first slide operation during the sliding process.
[0124] In some embodiments, the trigger operation further includes a second slide operation, and the device further includes a second release receiving module configured to receive the second slide operation triggered via the first style of operation control in the process of performing the press operation on the first style of operation control, and in response to a slide distance of the second slide operation being equal to or greater than a first distance threshold in the slide process, control the display style of the operation control to switch from the first style to a second style, the second style corresponding to another movement method among the at least two movement methods excluding the target movement method, and receive a release operation for the press operation and a release operation for the second slide operation triggered via the second style of operation control in the process of the operation control being displayed in the second style.
[0125] In some embodiments, the trigger operation further includes a callback operation, and the second release receiving module is further configured to receive the callback operation for the second slide operation during the process of performing the press operation and the second slide operation on the second style of the operation control, and in the callback process, control the display style of the operation control to return from the second style to the first style in response to a callback distance of the callback operation exceeding a second distance threshold, and receive a release operation for the press operation, a release operation for the second slide operation, and a release operation for the callback operation during the process of the operation control being displayed in the first style.
[0126] In some embodiments, the second release receiving module is further configured to: in response to a movement command for the virtual object, during the process of performing the push operation and the second slide operation on the second style of the operation control, control the virtual object to move in the virtual scene along a direction indicated by the movement command; in response to a distance between the virtual object and the overcome obstacle being equal to or greater than the target distance during the movement process, control the display style of the operation control to be returned from the second style to the first style; and in the process of the operation control being displayed in the first style, receive a release operation for the push operation and a release operation for the second slide operation.
[0127] In some embodiments, after controlling the display style of the operation control to switch from the first style to the second style, the device further includes another control module configured to control the virtual object to move with the other movement manner relative to the surmountable obstacle in response to a release operation for a press operation of the second style operation control and a release operation for the second slide operation.
[0128] In some embodiments, the device further comprises a first determination module configured to obtain a distance interval between a position corresponding to the press operation and a position corresponding to the release operation, and determine that the trigger operation corresponds to the target movement manner if the distance interval is smaller than a first distance threshold.
[0129] In some embodiments, the device further comprises a second determination module configured to: if the trigger operation includes a press operation on the operation control, obtain press parameters corresponding to the press operation, the press parameters including at least one of a press duration, a press force, and a press frequency; and determine that the trigger operation corresponds to the target movement manner if the press parameters match target press parameters corresponding to the target movement manner.
[0130] In some embodiments, the device further comprises a third determination module configured to, when the trigger operation includes a slide operation on the operation control, obtain a slide trajectory corresponding to the slide operation, and determine that the trigger operation corresponds to the target movement scheme if the slide trajectory matches a target slide trajectory corresponding to the target movement scheme.
[0131] In some embodiments, the receiving module is further configured to, in response to a press operation on the operation control, display options corresponding to each of the at least two movement methods, and in response to a selection operation on a target option, receive the trigger operation, and set the movement method corresponding to the target option as the movement method indicated by the trigger operation.
[0132] In some embodiments, the receiving module is further configured to display operation instruction information, the operation instruction information being used to indicate a movement strategy that the virtual object needs to adopt towards the surmountable obstacle, and to receive a trigger operation on the operation control, the trigger operation being performed in accordance with the operation instruction information.
[0133] In some embodiments, the device further comprises a prediction module configured to obtain scene data of the virtual scene, and based on the scene data, to invoke a machine learning model to predict a movement strategy that the virtual object needs to adopt with respect to the surmountable obstacle, and to make the predicted movement strategy the movement strategy instructed by the operation instruction information, wherein the machine learning model is obtained by training based on sample scene data and annotated movement strategies.
[0134] In some embodiments, the device further comprises a matching module configured to obtain scene data of the virtual scene and reference scene data corresponding to the target motion scheme, match the scene data with the reference scene data, and if the scene data matches the reference scene data, set the target motion scheme to the motion scheme indicated by the operation instruction information.
[0135] The present embodiment provides a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium, the computer instructions being read by a processor of the computing device from the computer-readable storage medium and executed to cause the computing device to perform the method for processing motion in a virtual scene according to the present embodiment.
[0136] An embodiment of the present application provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to perform a method for processing motion in a virtual scene according to an embodiment of the present application, such as the method shown in FIG.
[0137] In some embodiments, the computer-readable storage medium may be a memory such as Read-Only Memory (ROM), Random Access Memory (RAM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory, magnetic surface memory, optical disk, or CD-ROM, or may be various devices including one or any combination of the above memories.
[0138] In some embodiments, the executable instructions may take the form of a program, software, software module, script or code, and may be written in any form of programming language (including compiled or interpreted, or declarative or procedural languages), and deployed in any form, such as as a standalone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0139] As an example, the executable instructions may, but do not necessarily, correspond to a file in a file system, and may be stored in a portion of a file that stores other programs or data, such as in one or more scripts within a HyperText Markup Language (HTML) document, in a single file of the discussed program, or in multiple joint files (e.g., files that store one or more modules, subprograms, or code portions).
[0140] As an example, the executable instructions may be deployed to be executed on one computing device, or may be deployed to be executed on multiple computing devices that are co-located, or may be deployed to be executed on multiple computing devices that are distributed across multiple locations and interconnected by a communications network.
[0141] The above description is merely an embodiment of the present application, and does not limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and scope of the present application shall be included in the scope of protection of the present application.
Claims
1. 1. A method for processing motion in a virtual scene, performed by an electronic device, comprising: displaying a surmountable obstacle, a virtual object and a manipulation control in a virtual scene, the manipulation control being used to control a movement manner of the virtual object relative to the surmountable obstacle, the manipulation control being associated with at least two movement manners, different trigger operations on the manipulation control corresponding to different movement manners; When a distance between the virtual object and the obstacle that can be overcome is shorter than a target distance, in response to a trigger operation on the operation control, controlling the virtual object to move relative to the obstacle that can be overcome in a target movement manner corresponding to the trigger operation; A method for processing motion in a virtual scene, comprising:
2. The method for processing motion in a virtual scene comprises: The method further includes adjusting the operation mode of the operation control to a split mode in response to a setting command for the operation mode of the operation control; The step of controlling the virtual object to move in a target movement manner corresponding to the trigger operation with respect to the obstacle that can be overcome includes: and controlling, in the split mode, the virtual object to move relative to the overcome obstacle in a target movement manner corresponding to the trigger operation. A method for processing motion in a virtual scene according to claim 1.
3. After displaying the operation control, the method for processing motion in the virtual scene includes: a step of controlling, in response to a pressing operation on the operation control, a display style of the operation control to be switched from a default style to a first style, the first style corresponding to the target movement manner; receiving the trigger operation in response to a release operation for the press operation based on the first style of operation control, the trigger operation including the press operation and the release operation; The method of claim 1 , further comprising:
4. The trigger operation further includes a first sliding operation, and the motion processing method in the virtual scene includes: receiving the first slide operation on the operation control in the process of performing the pressing operation on the operation control of the first style; receiving a release operation for the pressing operation and a release operation for the first sliding operation in a process of sliding the operation control based on the first sliding operation; The method of claim 3 , further comprising:
5. The trigger operation further includes a second slide operation, and the motion processing method in the virtual scene includes: receiving the second slide operation on the operation control in the process of performing the pressing operation on the operation control of the first style; a step of controlling, in the process of sliding the operation control based on the second sliding operation, to switch a display style of the operation control from the first style to a second style in response to a sliding distance of the second sliding operation being equal to or greater than a first distance threshold, the second style corresponding to another motion manner of the at least two motion manners excluding the target motion manner; receiving a release operation for the pressing operation and a release operation for the second sliding operation during the process of the operation control being displayed in the second style; The method of claim 3 , further comprising:
6. The trigger operation further includes a callback operation, and the step of receiving a release operation for the push operation and a release operation for the second slide operation includes: receiving the callback operation for the second slide operation during the process of performing the pressing operation and the second slide operation on the second style operation control; In the process of calling back the operation control based on the callback operation, in response to a callback distance of the callback operation exceeding a second distance threshold, controlling a display style of the operation control to return from the second style to the first style; receiving a release operation for the press operation, a release operation for the second slide operation, and a release operation for the callback operation during the process of displaying the operation control in the first style; A method for processing motion in a virtual scene according to claim 5.
7. The step of receiving a release operation for the push operation and a release operation for the second slide operation includes: a step of controlling, in the process of executing the pressing operation and the second sliding operation on the second style operation control, in response to a movement command for the virtual object, so that the virtual object moves in the virtual scene along a direction indicated by the movement command; controlling, in a moving process, to return a display style of the operation control from the second style to the first style in response to a distance between the virtual object and the jumpable obstacle being equal to or greater than the target distance; The process of displaying the operation control in the first style includes a step of receiving a release operation for the press operation and a release operation for the second slide operation. A method for processing motion in a virtual scene according to claim 5.
8. After controlling the display style of the operation control to be switched from the first style to the second style, the motion processing method in the virtual scene includes: and further comprising a step of controlling the virtual object to move in the other movement manner with respect to the overcome obstacle in response to a release operation for the push operation and a release operation for the second slide operation. A method for processing motion in a virtual scene according to claim 5.
9. Before controlling the virtual object to move in a target movement manner corresponding to the trigger operation, the movement processing method in the virtual scene includes: acquiring a distance interval between a position corresponding to the pressing operation and a position corresponding to the releasing operation; determining that the trigger operation corresponds to the target movement manner if the distance interval is less than a first distance threshold; The method of claim 3 , further comprising:
10. Before controlling the virtual object to move in a target movement manner corresponding to the trigger operation, the movement processing method in the virtual scene includes: If the trigger operation includes a press operation on the operation control, acquiring press parameters of the press operation, the press parameters including at least one of a press duration, a press force, and a press frequency; determining that the trigger operation corresponds to the target movement scheme if the push parameters match target push parameters of the target movement scheme; The method of claim 1 , further comprising:
11. Before controlling the virtual object to move in a target movement manner corresponding to the trigger operation, the movement processing method in the virtual scene includes: When the trigger operation includes a slide operation on the operation control, acquiring a slide trajectory of the slide operation; determining that the trigger operation corresponds to the target movement manner if the slide trajectory matches a target slide trajectory of the target movement manner; The method of claim 1 , further comprising:
12. The method for processing motion in a virtual scene comprises: displaying an option corresponding to each of the at least two motion schemes in response to a pressing operation on the operational control; receiving the trigger operation in response to a selection operation on a target option, and setting a motion scheme corresponding to the target option as the target motion scheme; The method of claim 1 , further comprising:
13. The method for processing motion in a virtual scene comprises: displaying operation instruction information, the operation instruction information being used to indicate a movement strategy that the virtual object needs to adopt with respect to the surmountable obstacle; receiving a trigger operation for the operation control based on the operation instruction information, the trigger operation corresponding to a movement manner instructed by the operation instruction information; The method of claim 1 , further comprising:
14. Before displaying the operation instruction information, the method for processing motion in a virtual scene includes: acquiring scene data for the virtual scene; calling a machine learning model based on the scene data to predict a motion strategy that the virtual object needs to adopt with respect to the surmountable obstacle, and setting the predicted motion strategy as a motion strategy instructed by the operation instruction information; The machine learning model is obtained by training based on sample scene data and annotated motion schemes. A method for processing motion in a virtual scene according to claim 13.
15. Before displaying the operation instruction information, the method for processing motion in a virtual scene includes: obtaining scene data of the virtual scene and reference scene data corresponding to the target motion manner; performing matching between the scene data and the reference scene data, and when the scene data matches the reference scene data, setting the target motion mode as the motion mode instructed by the operation instruction information; The method of claim 13 , further comprising:
16. 1. An apparatus for processing motion in a virtual scene, comprising: a display module configured to display a surmountable obstacle, a virtual object, and a manipulation control of a virtual scene, the manipulation control being used to control a movement manner of the virtual object relative to the surmountable obstacle, the manipulation control being associated with at least two movement manners, different trigger operations on the manipulation control corresponding to different movement manners; a control module configured to, in response to a trigger operation on the operation control, control the virtual object to move relative to the obstacle in a target movement manner corresponding to the trigger operation when a distance between the virtual object and the obstacle is shorter than a target distance; A motion processing device for a virtual scene comprising:
17. An electronic device, A memory having executable instructions stored therein; A processor configured to execute executable instructions stored in the memory to implement the method for processing motion in a virtual scene according to any one of claims 1 to 15.
18. A computer readable storage medium having stored thereon executable instructions for causing a processor to perform the method for processing motion in a virtual scene according to any one of claims 1 to 15.
19. A computer program product comprising a computer program or instructions for causing a processor to carry out the method for processing motion in a virtual scene according to any one of claims 1 to 15.
Citation Information
Patent Citations
Information processor, information processing system, and character movement control program
JP2017035214A
