Virtual scene interaction method, virtual scene interaction device, electronic device, and computer program

By integrating selection and trigger functions into a single interaction control, the method enhances virtual scene interaction efficiency and resource utilization through simplified operations.

JP2025529110APending Publication Date: 2025-09-04TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2025512154
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-07
Filing Date
2024-01-22
Publication Date
2025-09-04

AI Technical Summary

Technical Problem

Existing virtual scene interaction methods require multiple human-computer interaction operations to select and trigger interactions with specific objects, leading to low efficiency and resource utilization.

Method used

A method where a press operation on an interaction control places it in a pressed state, allowing a selection operation on an interaction object, and a release operation performs the associated interaction, integrating selection and trigger functions into a single control.

Benefits of technology

This approach reduces the number of interaction operations, improving human-computer interaction efficiency and resource utilization by simplifying the process and enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025529110000001_ABST
    Figure 2025529110000001_ABST
Patent Text Reader

Abstract

The present application provides a virtual scene interaction method, a virtual scene interaction device, an electronic device, a computer-readable storage medium, and a computer program product, the method including: displaying a plurality of interaction objects in the virtual scene and displaying at least one interaction control, where the plurality of interaction objects include a first interaction object, and the at least one interaction control includes a first interaction control, wherein an interaction operation for the interaction object is associated with the interaction control; controlling the first interaction control to be in a pressed state in response to a press operation for the first interaction control; controlling the first interaction object to be in a selected state in response to a select operation for the first interaction object triggered based on the first interaction control in the pressed state; and performing the interaction operation associated with the first interaction control on the first interaction object in response to a release operation for the press operation.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) This application is based on a Chinese patent application bearing application number 202310384552.6, filed with the China Patent Office on April 7, 2023, and claims priority to that Chinese patent application, the entire contents of which are incorporated herein by reference.

[0002] The present application relates to the technical field of virtualization and human-computer interaction, and in particular to a virtual scene interaction method, a virtual scene interaction device, an electronic device, a computer-readable storage medium and a computer program product. [Background technology]

[0003] Display technology based on graphics processing hardware has expanded the means of environmental perception and information acquisition. In particular, in the field of multimedia technology for virtual scenes, the use of human-computer interaction engine technology can realize diverse interactions between virtual objects controlled by users or artificial intelligence according to actual application needs, resulting in a variety of typical application scenarios. For example, realistic interaction processes between virtual objects can be simulated in game scenes.

[0004] In the related art, when interacting with a specific interaction object among multiple interaction objects, it is often necessary to select from the multiple interaction objects through a provided selection control, and then, after selecting the specific interaction object, click the provided interaction control for the specific interaction object to trigger the interaction with the specific interaction object. However, this process requires multiple human-computer interaction operations, resulting in low human-computer interaction efficiency. Summary of the Invention [Problem to be solved by the invention]

[0005] The embodiments of the present application provide a virtual scene interaction method, a virtual scene interaction device, an electronic device, a computer-readable storage medium, and a computer program product, which can improve human-computer interaction efficiency and the utilization rate of device processing resources, and can also improve the utilization rate of device display resources. [Means for solving the problem]

[0006] The technical solution of the embodiments of the present application is realized as follows:

[0007] An embodiment of the present application provides a method for interacting with a virtual scene, the method comprising: displaying a plurality of interaction objects in a virtual scene and displaying at least one interaction control, wherein the plurality of interaction objects includes a first interaction object, and the at least one interaction control includes a first interaction control, wherein the interaction control is associated with one interaction operation for the interaction object; In response to a pressing operation on the first interaction control, controlling the first interaction control to be in a pressed state; In the pressed state, in response to a selection operation on the first interaction object triggered based on the first interaction control, controlling the first interaction object to be in a selected state; The method includes a step of executing an interaction operation associated with the first interaction control on the first interaction object in response to a release operation (also called a "release operation") for the press operation.

[0008] An embodiment of the present application further provides an interaction device for a virtual scene, the device comprising: a display module configured to display a plurality of interaction objects in a virtual scene and to display at least one interaction control, the plurality of interaction objects including a first interaction object, the at least one interaction control including a first interaction control, the interaction control having an interaction operation for the interaction object associated therewith; a first control module that controls the first interaction control to be in a pressed state in response to a pressing operation on the first interaction control; a second control module configured to control the first interaction object to enter a selected state in response to a selection operation on the first interaction object triggered based on the first interaction control in the pressed state; and a third control module configured to execute, on the first interaction object, an interaction operation associated with the first interaction control in response to a release operation for the press operation.

[0009] An embodiment of the present application further provides an electronic device, the electronic device comprising: a memory configured to store computer-executable instructions; and a processor configured to execute the computer-executable instructions stored in the memory to implement the virtual scene interaction method provided in the embodiments of the present application.

[0010] An embodiment of the present application further provides a computer-readable storage medium having stored thereon computer-executable instructions or a computer program that causes a processor to perform the virtual scene interaction method provided in the embodiment of the present application.

[0011] An embodiment of the present application further provides a computer program product including computer-executable instructions or a computer program, which causes a processor to perform the virtual scene interaction method provided in the embodiment of the present application. [Effects of the Invention]

[0012] The embodiments of the present application may have the following beneficial effects:

[0013] According to the above embodiment of the present application, when a press operation on a first interaction control among at least one interaction control is received, the first interaction control is controlled to be in a pressed state, and at this time, in the pressed state, a selection operation on a first interaction object among a plurality of interaction objects, triggered based on the first interaction control, can be received to select the first interaction object, and when the press operation is released, an interaction operation associated with the first interaction control is automatically performed on the first interaction object. In this way, by integrating a selection function for selecting a first interaction object from a plurality of interaction objects and a function for triggering an interaction operation on the first interaction object into one interaction control, the utilization rate of display resources of the device can be improved, and the human-computer interaction operations required to achieve the interaction goal can be reduced, thereby improving the human-computer interaction efficiency and the utilization rate of processing resources of the device. [Brief explanation of the drawings]

[0014] [Figure 1A] FIG. 1 is a schematic diagram illustrating the application of a virtual scene interaction method according to an embodiment of the present application; [Figure 1B] FIG. 1 is a schematic diagram illustrating the application of a virtual scene interaction method according to an embodiment of the present application; [Figure 2] 5 is a schematic diagram illustrating the configuration of an electronic device 500 for implementing a virtual scene interaction method according to an embodiment of the present application. [Figure 3] 1 is a flowchart of a virtual scene interaction method according to an embodiment of the present application; [Figure 4] 10 is a diagram illustrating an example of a display of a virtual scene interface according to an embodiment of the present application. [Figure 5] FIG. 2 is a schematic diagram illustrating a selection flow of an interaction object according to an embodiment of the present application; [Figure 6] FIG. 2 is a schematic diagram illustrating a selection flow of an interaction object according to an embodiment of the present application; [Figure 7] FIG. 2 is a schematic diagram illustrating a selection flow of an interaction object according to an embodiment of the present application; [Figure 8] FIG. 2 is a schematic diagram illustrating a selection flow of an interaction object according to an embodiment of the present application; [Figure 9] 10 is a display example of a state exit control according to an embodiment of the present application. [Figure 10] 1 is a flowchart of a virtual scene interaction method according to an embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION

[0015] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings. The described embodiments do not limit the present application, and all other embodiments that can be obtained by those skilled in the art without any creative efforts are included in the protection scope of the present application.

[0016] In the following description, "some embodiments" refers to a subset of all possible embodiments, but it should be understood that "some embodiments" may be the same or different subsets of all possible embodiments, and may be combined with each other where not inconsistent.

[0017] The terms "first / second / third" and the like used herein do not limit a particular order but distinguish between similar objects. It should be understood that "first / second / third" can be used to interchange a particular order or order where possible, so that the embodiments of the present application described herein can be performed in an order other than that shown or described herein.

[0018] Unless otherwise defined, all technical and scientific terms used in the examples of this application have the same meaning as commonly understood by those skilled in the art. The terms used in the examples of this application are merely for the purpose of describing the examples of this application and are not intended to limit the scope of this application.

[0019] Before describing the embodiments of the present application in detail, the nouns and terms used in the embodiments of the present application will be explained. The explanation of the nouns and terms used in the embodiments of the present application is as follows.

[0020] 1) Client: An application that runs on a terminal and provides various services, such as a client that supports a virtual scene (such as a game client).

[0021] 2) Responding to: Represents a condition or state on which an operation to be executed depends, and when the dependent condition or state is met, one or more operations to be executed may be executed in real time or with a set delay. Unless otherwise specified, there is no restriction on the execution order of multiple operations to be executed.

[0022] 3) Virtual Scene: A virtual scene displayed (or provided) when an application is executed on a device. The virtual scene may be a simulated real-world environment, a semi-simulated, semi-fictional virtual environment, or a completely fictional virtual environment. The virtual scene may be any one of a 2D virtual scene, a 2.5D virtual scene, and a 3D virtual scene. For example, the virtual scene may include sky, land, and sea, and the land may include environmental elements such as deserts and cities. A user can control virtual objects to perform activities within the virtual scene. The activities may include, but are not limited to, at least one of adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing. The virtual scene may be displayed from a first-person perspective (e.g., the user plays a virtual object in the game from his / her own perspective), a third-person perspective (e.g., the user plays the game by chasing a virtual object in the game), or a bird's-eye view, and the above perspectives can be switched at will.

[0023] 4) Scene Data: Represents feature data of a virtual scene, such as the position of a virtual object in the virtual scene, the position of a virtual building in the virtual scene, or the footprint of a virtual building. Of course, different types of features may be included depending on the type of virtual scene. For example, in a virtual scene for a game, the scene data may include the waiting time required to use various functions configured in the game (which depends on the number of times the same function can be used within a specific time), or may indicate attribute values ​​representing various states of a game character, such as life points (also called HP), magic points (also called MP), status points, blood volume, etc.

[0024] 5) Virtual Object: A representation of various people and things that can interact with the virtual scene, or an actionable object within the virtual scene. The actionable object can be a virtual person, a virtual animal, an animated character, or the like, such as a person, an animal, a plant, a drum, a wall, or a stone displayed in the virtual scene. The virtual object can be a virtual representation representing the user within the virtual scene. A virtual scene can include multiple virtual objects, each of which has a unique shape and volume within the virtual scene and occupies a portion of the space of the virtual scene.

[0025] For example, the virtual object may be a user character controlled by an operation on a client, an artificial intelligence (AI) set for a battle in a virtual scene through training, or a non-player character (NPC) set for an interaction in a virtual scene. Here, the number of virtual objects involved in an interaction in the virtual scene may be set in advance, or may be dynamically determined based on the number of clients participating in the interaction.

[0026] 6) Interaction object: It may be a virtual object (such as a monster object controlled by a robot program), or it may be a virtual object such as a virtual item (such as a virtual bomb, a virtual bow and arrow, or a virtual vehicle), or a virtual resource (such as a virtual coin or a virtual drug).

[0027] 7) Virtual Item: An item provided for user interaction within a virtual scene, which can assist the user in interacting within the virtual scene. For example, a user can control a virtual object and ride a virtual vehicle to move within the virtual scene. For example, the virtual vehicle may be a virtual car, a virtual airplane, a virtual yacht, etc. The above scene is described here as an example only, and the embodiments of the present application are not limited thereto. A user can control a virtual object and use a virtual item to interact with other virtual objects. For example, the virtual item may be a throwable virtual item such as a virtual grenade, a virtual cluster grenade, or a virtual sticky grenade, or a shooting virtual item such as a virtual machine gun, a virtual pistol, or a virtual rifle. The present application does not particularly limit the type of virtual item.

[0028] 8) Virtual Resources: These are various real or fictional objects that a user (e.g., a player) can collect by controlling virtual objects within a virtual scene, such as virtual coins, virtual medicines, virtual plants (e.g., flowers, grass, mushrooms), virtual fruits (e.g., apples, oranges), virtual goods, etc.

[0029] The embodiments of the present application provide a virtual scene interaction method, a virtual scene interaction device, an electronic device, a computer-readable storage medium, and a computer program product, which can improve human-computer interaction efficiency and the utilization rate of device processing resources, and can also improve the utilization rate of device display resources. Each of these will be described below.

[0030] It should be noted that if the embodiments of this application are applied to a particular product or technology, user permission or consent must be obtained, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant country or region.

[0031] In order to facilitate understanding of the virtual scene interaction method according to the embodiment of the present application, the following describes an exemplary implementation scenario of the virtual scene interaction method according to the embodiment of the present application: The virtual scene in the virtual scene interaction method according to the embodiment of the present application may be output entirely based on the terminal device, or may be output through cooperation between the terminal device and the server.

[0032] In some embodiments, the virtual scene may be an environment for game characters to interact with, for example, for game characters to compete in a virtual scene, and by controlling the behavior of virtual objects, two-way interactions can occur within the virtual scene, thereby allowing the user to experience the virtual scene within the game.

[0033] In one implementation scenario, referring to FIG. 1A, FIG. 1A is a schematic diagram illustrating the application of a virtual scene interaction method according to an embodiment of the present application. This method may be applicable to several applications, such as standalone / offline games, in which the calculation of data related to the virtual scene 100 can be completed entirely through the computing capabilities of the graphics processing hardware of the terminal device 400. The virtual scene can be output by the terminal 400, such as a smartphone, tablet, or virtual reality / augmented reality device. When forming a visual perception of the virtual scene 100, the terminal 400 uses graphics computing hardware to calculate the data required for display, loads, analyzes, and renders the display data, and outputs video frames from the graphics output hardware, which can form a visual perception of the virtual scene. For example, two-dimensional video frames may be displayed on the display screen of a smartphone, or video frames may be projected onto the lenses of augmented reality / virtual reality glasses to achieve a three-dimensional display effect. To enrich the sensory experience, the device may also utilize different hardware to form one or more of auditory perception, tactile perception, motion perception, and taste perception.

[0034] For example, the terminal 400 executes a client (e.g., a client for a single-player game) and, during execution of the client, outputs a virtual scene based on scene data for the virtual scene. The virtual scene is an environment for game characters to interact with each other, and may be, for example, a plain, a highway, a mountain valley, or the like, where game characters may fight. After outputting the virtual scene, the terminal 400 displays a plurality of interaction objects within the virtual scene and at least one interaction control. Here, the plurality of interaction objects includes a first interaction object, and the at least one interaction control includes a first interaction control, and the interaction control is associated with an interaction operation for the interaction object. In response to a press operation on the first interaction control, the first interaction control is controlled to be in a pressed state, in response to a selection operation on the first interaction object triggered based on the first interaction control in the pressed state, the first interaction object is controlled to be in a selected state, and in response to a release operation on the press operation, an interaction operation associated with the first interaction control is executed on the first interaction object.

[0035] In another implementation scenario, refer to FIG. 1B. FIG. 1B is a schematic diagram illustrating an application of a virtual scene interaction method according to an embodiment of the present application, which is applied to a terminal 400 and a server 200. Generally, the method is applicable to an application in which the server 200 relies on its computing power to complete the virtual scene calculation and the terminal 400 outputs the virtual scene. For example, in forming a visual perception of a virtual scene 100, the server 200 calculates display data related to the virtual scene and transmits it to the terminal 400. The terminal 400 relies on its graphics computing hardware to complete the loading, analysis, and rendering of the display data and relies on its graphics output hardware to output the virtual scene and form the visual perception. For example, a two-dimensional video frame can be displayed on the display screen of a smartphone, or a video frame can be projected onto the lenses of augmented reality / virtual reality glasses to achieve a three-dimensional display effect. It is understood that the corresponding hardware output of the terminal can be utilized to recognize the shape of the virtual scene, such as by using a microphone to form an auditory perception or a vibration device to form a tactile perception.

[0036] For example, the terminal 400 executes a client (e.g., an online game client), connects to a game server (i.e., the server 200) to obtain scene data for a virtual scene, and outputs the virtual scene based on the obtained scene data, thereby engaging in game interactions with other users within the virtual scene. After outputting the virtual scene, the terminal 400 displays a plurality of interaction objects in the virtual scene and displays at least one interaction control, where the plurality of interaction objects includes a first interaction object, and the at least one interaction control includes a first interaction control, which has an interaction operation for the interaction object associated therewith, and in response to a press operation for the first interaction control, controls the first interaction control to be in a pressed state, and in response to a selection operation for the first interaction object triggered based on the first interaction control in the pressed state, controls the first interaction object to be in a selected state, and in response to a release operation for the press operation, performs the interaction operation associated with the first interaction control on the first interaction object.

[0037] In some embodiments, the terminal 400 or the server 200 can implement the virtual scene interaction method according to the embodiments of the present application by executing a computer program. For example, the computer program may be a native program or software module within an operating system, a native application (APP), i.e., a program that needs to be installed in the operating system for execution (such as a game client), a mini-APP, i.e., a program that can be executed simply by downloading it to a browser environment, or a mini-APP that can be embedded in any APP (such as a game mini-APP). In short, the computer program may be any form of application, module, or plug-in.

[0038] Embodiments of the present application can be realized using 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 computing, storage, processing, and sharing of data. Cloud technology is a collective term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model, which forms a resource pool that can be used as needed, providing flexibility and convenience. Cloud computing technology is an important support. Back-end services of technical network systems require large amounts of computing and storage resources.

[0039] For example, a server (e.g., server 200) may be an independent physical server, a server cluster or distributed system composed of multiple 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, a content delivery network (CDN), big data, and artificial intelligence platforms. A terminal (e.g., terminal 400) may be, but is not limited to, a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart voice interaction device (e.g., a smart speaker), a smart home appliance (e.g., a smart TV), a smart watch, an in-vehicle terminal, a wearable device, a virtual reality (VR) device, etc. The terminal and the server may be directly or indirectly connected via wired or wireless communication, and the embodiments of the present application are not limited thereto.

[0040] In some embodiments, multiple servers can be configured as a blockchain, and the servers can be nodes on the blockchain. Information connections exist between the nodes in the blockchain, and information can be transmitted between the nodes via the information connections. Here, data related to the virtual scene interaction method according to embodiments of the present application (e.g., scene data of the virtual scene) can be stored in the blockchain.

[0041] An electronic device that implements a virtual scene interaction method according to an embodiment of the present application will now be described. Referring to FIG. 2, FIG. 2 is a schematic diagram illustrating a configuration of an electronic device 500 for implementing a virtual scene interaction method according to an embodiment of the present application. The electronic device 500 according to the embodiment of the present application may be a terminal or a server. The electronic device 500 according to the embodiment of the present application includes at least one processor 510, a memory 550, at least one network interface 520, and a user interface 530. The components in the electronic device 500 are coupled via a bus system 540. As will be understood, the bus system 540 realizes communication between these components. The bus system 540 includes a power bus, a control bus, and a status signal bus in addition to a data bus. However, for clarity of explanation, various buses are denoted as the bus system 540 in FIG. 2.

[0042] In some embodiments, the virtual scene interaction device according to the embodiments of the present application may be implemented in a software manner. Figure 2 shows a virtual scene interaction device 555 stored in a memory 550. The virtual scene interaction device 555 may be software in the form of a program, plug-in, or the like, and includes a display module 5551, a first control module 5552, a second control module 5553, and a third control module 5554. These modules are logical and can therefore be arbitrarily combined or further divided according to the functions to be implemented. The functions of each module will be described later.

[0043] The following describes a virtual scene interaction method according to an embodiment of the present application. In some embodiments, the virtual scene interaction method according to the embodiment of the present application may be implemented by various electronic devices, for example, by a terminal alone, a server alone, or a terminal and a server working together. Taking implementation by a terminal as an example, referring to FIG. 3, FIG. 3 is a flowchart of the virtual scene interaction method according to the embodiment of the present application, and the virtual scene interaction method according to the embodiment of the present application includes the following steps:

[0044] Step 101: A terminal displays a plurality of interaction objects in a virtual scene and displays at least one interaction control.

[0045] Here, the plurality of interaction objects includes a first interaction object, and the at least one interaction control includes a first interaction control, and the interaction control is associated with an interaction operation for the interaction object.

[0046] In step 101, a client (e.g., a game client) for supporting a virtual scene may be running on the terminal, and during the execution of the client, the terminal may output a virtual scene. For example, the terminal may obtain scene data of the virtual scene from a server and then render the scene data to output a virtual scene (e.g., a game scene). Here, the virtual scene may include a target virtual object, which may be a virtual character controlled by a user who has entered the virtual scene. Of course, the virtual scene may also include other virtual objects, which may be controlled by other users or by a robot program.

[0047] In an embodiment of the present application, the virtual scene also includes an interaction object, which may be a virtual object (such as a monster object controlled by a robot program or a virtual object of another player participating in the virtual scene), or may be a virtual object such as a virtual item (such as a virtual bomb, a virtual bow and arrow, a virtual vehicle), a virtual resource (such as virtual coins or virtual medicines), etc. A user can control a target virtual object in the virtual scene to interact with the interaction object, for example, attack the interaction object (such as a monster object controlled by a robot program), engage in social interactions with the interaction object (such as shaking hands, greeting, or talking), collect the interaction object (such as a virtual coin), use the interaction object (such as a virtual bomb), activate the interaction object (a virtual object that supports a specific virtual skill (such as attacking, replenishing life force), etc.), pick up the interaction object (such as a virtual bow and arrow), collect the interaction object (such as a virtual medicine), etc.

[0048] In an embodiment of the present application, an interaction control is also provided for triggering an interaction operation on an interaction object. In practical application, the interaction control can be displayed on the interface of a virtual scene. For example, the interaction control can be displayed in a predetermined area of ​​the interface of the virtual scene. The number of interaction controls can be one or more. Specifically, the number can be determined based on the number of interaction operations that can be performed on multiple interaction objects. For example, if there are five interaction objects in a virtual scene and three interaction operations can be performed on the five interaction objects, there will be three interaction controls. Each interaction control is associated with an interaction operation on the interaction object. The interaction operations include, but are not limited to, an attack operation, a collection operation, an activation operation, a use operation, a recovery operation, and an acquisition operation.

[0049] In some embodiments, the terminal may display at least one interaction control in the following manner: determine at least one target interaction operation that can be performed on a plurality of interaction objects; display an interaction control for the at least one target interaction operation, where the interaction control and the target interaction operation have a one-to-one correspondence, where the number of interaction controls is determined based on the number of interaction operations that can be performed on the plurality of interaction objects; that is, the number of target interaction operations that can be performed on the plurality of interaction objects is equal to the number of interaction controls, that is, the interaction controls and the target interaction operations have a one-to-one correspondence. In this way, there is no need to display a corresponding interaction control for each interaction object, and the occlusion of the virtual scene by the interaction controls is reduced, thereby improving the utilization of the device's display resources and the user's experience of participating in the virtual scene.

[0050] In some embodiments, the terminal may display multiple interaction objects in a virtual scene and, for each interaction object, display interaction instruction information for the interaction object, where the interaction instruction information indicates an interaction operation that can be performed on the interaction object. Here, the interaction instruction information may be displayed independently of the interaction object or may be displayed depending on the interaction object. For example, the interaction instruction information may be displayed in a related area of ​​the interaction object (e.g., an area above the interaction object), and the interaction instruction information for corresponding different interaction operations may be displayed in different information display manners (e.g., different display colors for the interaction instruction information for corresponding different interaction operations, different fonts for the interaction instruction information for corresponding different interaction operations, etc.). In this way, operation hints can be provided to the user, improving the user's operation experience in the virtual scene.

[0051] In some examples, the interaction instruction information may be displayed when a display condition is met. For example, when a user triggers a display command for the interaction instruction information (e.g., triggered based on a provided instruction information display control), the display condition may be determined to be met. In another example, when an interaction object is displayed in an interface, the display condition for the interaction instruction information of the interaction object may be determined to be met. In some examples, the displayed interaction instruction information may be canceled when a display cancellation condition is met. For example, when the display time of the interaction instruction information reaches a display duration threshold, the display cancellation condition may be determined to be met. In this way, the display of the interaction instruction information can be set to be displayed or not as needed, adaptively reducing occlusion of the virtual scene by the information, and improving the utilization of device display resources and the user's experience in the virtual scene.

[0052] In some embodiments, the terminal can display at least one interaction control in the following manner. For each interaction control, the terminal performs the following process: if an activation condition for the interaction control is met, a first control style is used to display the interaction control in an active state; if the activation condition for the interaction control is not met, a second control style is used to display the interaction control in an inactive state. Here, a corresponding activation condition can also be set for each interaction control: if an activation condition for the interaction control is met, the interaction control is activated and the first control style is used to display the interaction control in an active state; on the other hand, if the activation condition for the interaction control is not met, the second control style is used to display the interaction control in an inactive state. The active state indicates that a target virtual object can trigger an interaction operation on an interaction object via the interaction control. The first control style is different from the second control style. For example, an active interaction control may be displayed using a highlighted control style, and an inactive interaction control may be displayed using a control style with a predetermined grayscale value. In practical applications, the activation condition may be preset. For example, the activation condition may be whether the object state (blood volume, life volume, attack value, etc.) of the target virtual object satisfies a state condition, whether the number of activations of the interaction object reaches an activation count threshold, whether the interaction object is in an interaction-enabled state, etc. In this way, interaction controls in different states can be displayed distinctly, thereby improving the user's experience of operating the virtual scene.Since the interaction control is activated only when the activation condition is met, it can stimulate the user's willingness to interact with the virtual scene and improve the user stickiness of the virtual scene.

[0053] For example, refer to FIG. 4, which shows an example of a display of a virtual scene interface according to an embodiment of the present application. Here, four interaction objects and four interaction controls are displayed on the virtual scene interface. Here, interaction control A and interaction control B are in an active state, and interaction control C and interaction control D are in an inactive state. Interaction objects 1 to 3 are in an interaction-enabled state, and interaction object 4 is in an interaction-disabled state. In this case, interaction operations can be performed only on interaction objects 1 to 3 via the interaction control.

[0054] In step 102, in response to a pressing operation on the first interaction control, the first interaction control is controlled to be in a pressed state.

[0055] In step 102, a pressing operation on the first interaction control can be triggered to control the first interaction control to be in a pressed state. Here, the display style of the pressed interaction control can be different from the display style of the non-pressed interaction control. In some embodiments, the terminal can trigger the pressing operation on the first interaction control in at least one of the following ways: when the pressing duration on the first interaction control reaches a pressing duration threshold; when the pressing intensity on the first interaction control reaches a pressing intensity threshold; when the pressing area on the first interaction control reaches a pressing area threshold. In this way, the user can trigger the pressing operation in different ways, which increases the variety of human-computer interactions in the virtual scene, makes the virtual scene more attractive to the user, and increases user engagement.

[0056] In some embodiments, a terminal may display multiple interaction objects in a virtual scene in the following manner: In the virtual scene, multiple interaction objects are displayed under a first viewpoint. Correspondingly, the terminal controls a first interaction control to be in a pressed state, and then controls the first viewpoint to be in a locked state. In the locked state, a selection operation on the first interaction object is received, triggered by the first interaction control in the pressed state. Here, the multiple interaction objects observed from the first viewpoint are displayed on the terminal. After controlling the first interaction control to be in a pressed state, the terminal also controls the first viewpoint to be in a locked state. In this case, when a user operates the human-computer interaction interface of the terminal, the first viewpoint no longer fluctuates, making it easier for the user to select an interaction object, thereby improving interaction efficiency and the utilization rate of device processing resources.

[0057] In some embodiments, after controlling the first interaction control to be in a pressed state, the terminal may receive a selection operation for the first interaction object in the following manner: a drag operation performed starting from a press action position of the press operation is received, and if the drag end position of the drag operation indicates selection of the first interaction object, a selection operation for the first interaction object triggered based on the first interaction control in the pressed state is received. Here, in the process of maintaining the press operation, a user can select the first interaction object from the multiple interaction objects by performing a drag operation starting from the press action position of the press operation. The terminal receives a drag operation performed starting from the press action position of the press operation. If the drag end position of the drag operation indicates selection of the first interaction object, a selection operation for the first interaction object triggered based on the first interaction control in the pressed state is received. In this way, the selection of the interaction object can be performed by triggering a pressing operation and subsequently performing a drag operation based on the pressing operation, the operation is consistent and simple, and the user can perform it with one hand, simplifying the operation of selecting the interaction object, improving the efficiency of human-computer interaction, and improving the user's virtual scene experience.

[0058] In some embodiments, the terminal determines that the drag end position indicates the selection of the first interaction object in the following manner: If the drag end position is in the sensitive area ("sensing area") of the first interaction object, the drag end position indicates the selection of the first interaction object. Here, the sensitive area of ​​the first interaction object may be a target-shaped area centered on the first interaction object, such as a circular area, a square area, etc. For example, refer to FIG. 5, which is a schematic diagram illustrating a selection flow of an interaction object according to an embodiment of the present application. In response to a press operation on the first interaction control, the first interaction control is controlled to enter a pressed state (as shown in FIG. 5(a)). When the first interaction control is in the pressed state, a drag operation is received starting from the press action position of the press operation. If the drag end position of the drag operation is in the sensitive area of ​​the first interaction object, it is determined that the drag end position indicates that the selected interaction object is the first interaction object. At this time, the first interaction object is controlled to enter a selected state (as shown in FIG. 5(b)). In this way, by performing a drag operation in the pressed state and dragging it to the sensitive area of ​​the first interaction object, the first interaction object is selected. The operation is consistent and simple, and can be performed by a user with one hand. The operation of selecting an interaction object is simplified, which can improve the efficiency of human-computer interaction and the utilization rate of device processing resources.

[0059] In some embodiments, the terminal determines the drag end position indicating the selection of the first interaction object in the following manner: When the drag end position is in the area where the selection control of the first interaction object is located, the terminal determines that the drag end position indicates the selection of the first interaction object. Here, a corresponding selection control can be set for each first interaction object. For example, refer to FIG. 6, which is a schematic diagram illustrating a selection flow of an interaction object according to an embodiment of the present application. Here, in response to a press operation on the first interaction control, the first interaction control is controlled to be in a pressed state (as shown in (1) of Figure 6), and when the first interaction control is in a pressed state, a drag operation is received that is executed starting from the press action position of the press operation, and if the drag end position of the drag operation is in the area where the selection control of the first interaction object is located, the drag end position indicates the selection of the first interaction object, and at this time, the first interaction object is controlled to be in a selected state (as shown in (2) of Figure 6).

[0060] In some embodiments, the terminal may display a selection roulette, which is used to display selection controls of each interaction object in the form of a roulette around the first interaction control. Correspondingly, the terminal receives a drag operation performed starting from a pressing action position of the pressing operation in the following manner: receiving a drag operation performed starting from the pressing action position of the pressing operation toward the selection control of the first interaction object in the selection roulette, and correspondingly, determining that the drag end position indicates selection of the first interaction object if it is located at the selection control of the first interaction object in the selection roulette. Continuing to refer to FIG. 6 , the selection controls of each interaction object are displayed in the form of a roulette around the first interaction control to form one selection roulette. When performing a drag operation, the drag operation can be performed starting from the pressing action position of the pressing operation toward the selection control of the first interaction object in the selection roulette, so that if the drag end position is at the selection control of the first interaction object in the selection roulette, it is determined that the drag end position indicates the selection of the first interaction object, and at this time, the first interaction object is controlled to enter a selected state. In this way, by performing the drag operation in the pressing state to reach the selection control of the first interaction object, the selection of the first interaction object is realized, the operation is consistent and simple, and because the selection control is within the selection roulette, the drag displacement of the drag operation is reduced, further simplifying the selection operation of the interaction object, thereby improving the efficiency of human-computer interaction and the utilization rate of device processing resources.

[0061] In some embodiments, the terminal may display an operation area for a drag operation, and correspondingly, the terminal may receive a drag operation executed starting from the press action position of a press operation in the following manner: A drag operation executed starting from the press action position of a press operation is received within the operation area. Correspondingly, the terminal may determine that the drag end position indicates that the selected interaction object is the first interaction object in the following manner: If the drag end position is a target position within the operation area, the terminal may determine that the drag end position indicates selection of the first interaction object. Here, the target position corresponds to the location of the first interaction object. Here, one operation area may be provided for the drag operation. A user may perform a drag operation within the operation area. The operation area may be centered on the first interaction control. When the first interaction control is in a pressed state, the terminal may receive a drag operation executed starting from the press action position of the press operation within the operation area. Note that each position within the operation area also has a corresponding position in the virtual scene. Therefore, if the target position corresponds to the location of the first interaction object, and the drag end position is a target position within the operation area, it is determined that the drag end position indicates the selection of the first interaction object. In this way, the first interaction object is selected by performing a drag operation in a pressed state to reach a target position indicating the first interaction object within the operation area. The operation is consistent and simple, and the drag operation range is a predetermined operation area, so the drag displacement of the drag operation can be reduced, the operation of selecting the interaction object is simplified, and the efficiency of human-computer interaction and the utilization rate of device processing resources can be improved.

[0062] For example, refer to Fig. 7, which is a schematic diagram showing a selection flow of an interaction object according to an embodiment of the present application. Here, in response to a press operation on a first interaction control, the first interaction control is controlled to be in a pressed state (as shown in Fig. 7(1)), an operation area for a drag operation is set around the first interaction control, and when the first interaction control is in a pressed state, a drag operation is received within the operation area, starting from the press action position of the press operation, and when the drag end position of the drag operation is the target position, it is determined that the drag end position indicates that the selected interaction object is the first interaction object, and at this time, the first interaction object is controlled to be in a selected state (as shown in Fig. 7(2)).

[0063] In some embodiments, the terminal may display a sight pattern corresponding to the drag operation, and the sight position of the sight pattern is the position indicated by the application point of the drag operation in the virtual scene. Correspondingly, the terminal may determine that the drag end position indicates that the selected interaction object is the first interaction object in the following manner: When the drag operation is ended and the sight position of the sight pattern is in the sensitive area of ​​the first interaction object, the terminal may determine that the drag end position indicates selection of the first interaction object. Here, to facilitate the user to select the interaction object through the drag operation, a sight pattern corresponding to the drag operation may also be displayed, and the sight position of the sight pattern is the position indicated by the application point of the drag operation in the virtual scene. Thus, when the drag operation is ended and the sight position of the sight pattern is in the sensitive area of ​​the first interaction object, the terminal may determine that the drag end position indicates that the selected interaction object is the first interaction object. In this way, by performing a drag operation in a pressed state to adjust the reticle position and select an interaction object, the operation is consistent and simple, and the target interaction object can be quickly aimed at based on the reticle pattern, enabling rapid selection of the interaction object, which further simplifies the human-computer interaction operation and improves the efficiency of human-computer interaction and the utilization rate of device processing resources.

[0064] In some embodiments, when the target virtual object has a virtual aiming item, the terminal may display a sight pattern of the virtual aiming item. Correspondingly, after the terminal controls the first interaction control to be in a pressed state, the terminal may receive a selection operation for the first interaction object in the following manner: determine a first distance between the location of each interaction object and the sight position of the sight pattern; and if the interaction object corresponding to the smallest first distance is the first interaction object, receive a selection operation for the first interaction object triggered based on the first interaction control in the pressed state.

[0065] Here, the target virtual object may possess a virtual aiming item with an aiming function, such as a virtual shooting item. In this case, the terminal displays a sight pattern of the virtual aiming item on the interface of the virtual scene. When a user triggers a press operation on a first interaction control, an interaction object can be automatically selected through the sight pattern, thereby reducing the user's human-computer interaction operations and improving the efficiency of human-computer interaction and the utilization rate of device processing resources. Specifically, after the first interaction control is controlled to enter a pressed state, a first distance between the location of each interaction object and the sight position of the sight pattern is determined, and the interaction object corresponding to the smallest first distance is set as the automatically selected first interaction object.

[0066] In some embodiments, the terminal can switch from selecting a first interaction object to selecting a second interaction object in the following manner: in a pressed state, receive a movement operation on the sight pattern, and when the movement distance of the sight pattern reaches a distance threshold, determine a second distance between the location of each interaction object and the sight position of the sight pattern, control the first interaction object to exit from the selected state, and control the second interaction object corresponding to the smallest second distance to enter the selected state, where the multiple interaction objects include the second interaction object.

[0067] Here, after selecting one interaction object by default, the user can also switch the selected interaction object by adjusting the position of the sight pattern. Specifically, in the pressed state, a movement operation on the sight pattern is received, and when the movement distance of the sight pattern reaches a distance threshold, a second distance between the location of each interaction object and the sight position of the sight pattern is determined, and the first interaction object is controlled to exit the selected state, and the second interaction object corresponding to the smallest second distance is controlled to enter the selected state.

[0068] For example, refer to FIG. 8, which is a schematic diagram illustrating a selection flow of an interaction object according to an embodiment of the present application. Here, in response to a press operation on a first interaction control, the first interaction control is controlled to be in a pressed state (as shown in (1) of FIG. 8), and at the same time, a reticle pattern of a virtual aiming item is displayed on the interface of the virtual scene. At this time, the press operation selects the first interaction object closest to the reticle pattern by default, that is, the first interaction object is controlled to be in a selected state, and a movement operation on the reticle pattern is received. At this time, the selected interaction object is switched from the first interaction object to a second interaction object closest to the reticle pattern after movement, that is, the first interaction object is controlled to exit the selected state, and the second interaction object is controlled to be in a selected state (as shown in (2) of FIG. 8).

[0069] In step 103, in response to a selection operation on the first interaction object triggered based on the first interaction control in the pressed state, the first interaction object is controlled to enter a selected state.

[0070] In step 103, when a selection operation for the first interaction object triggered based on the first interaction control in the pressed state is received, the first interaction object is controlled to be in a selected state in response to the selection operation for the first interaction object. The display style of the interaction object in the selected state is different from the display style of the interaction object in the unselected state, so that the selected interaction object can be effectively distinguished.

[0071] In some embodiments, after controlling the first interaction object to enter a selected state, the terminal may display the first interaction object in a first object style and display other interaction objects among the plurality of interaction objects other than the first interaction object in a second object style, where the second object style is different from the first object style. Here, as shown in FIG. 8, the first object style may be a highlight display style, and the second object style may be a display style of a predetermined grayscale value. Of course, other display styles are also possible, and are not limited herein.

[0072] In step 104, in response to a release operation for the press operation, an interaction operation associated with the first interaction control is executed on the first interaction object.

[0073] In step 104, the user can trigger an interaction operation on the first interaction object by releasing the pressing operation. The terminal performs an interaction operation associated with the first interaction control on the first interaction object in response to a release operation of the pressing operation. Here, since the virtual scene includes a target virtual object corresponding to the user, the target virtual object can be controlled to perform the interaction operation associated with the first interaction control on the first interaction object. In this way, releasing the pressing operation can automatically trigger an interaction operation on the first interaction object, simplifying the control flow of the interaction operation and further improving human-computer interaction efficiency and device resource utilization. Furthermore, the user experience of selecting and interacting with an interaction object in the virtual scene can be improved, thereby improving engagement with the virtual scene.

[0074] In some embodiments, the terminal can exit the pressed state in the following manner: display a state exit control in a pressed state, and when a trigger operation on the state exit control is received, control a first interaction control to exit the pressed state, and when a second interaction object is in a selected state, control a target virtual object not to perform an interaction operation associated with the first interaction control on the second interaction object.

[0075] Here, a state exit control can be provided, and the user can control the first interaction control to exit from the pressed state based on the state exit control. Here, exiting from the pressed state refers to the terminal canceling the selection operation on the current interaction object and the interaction operation corresponding to the interaction object. Therefore, when a trigger operation on the state exit control is received, if the second interaction object is in the selected state, the target virtual object controls the second interaction object so as not to perform the interaction operation associated with the first interaction control.

[0076] 9, which shows an example of a display of a state exit control according to an embodiment of the present application. Here, when the first interaction control is in a pressed state, a state cancel control called “Cancel” is displayed. At the same time, as shown in (1) of FIG. 9, the second interaction object is in a selected state, and in response to a trigger operation on the state cancel control “Cancel”, the first interaction control is controlled to exit the pressed state, and the target virtual object is controlled not to perform an interaction operation associated with the first interaction control on the second interaction object, that is, the second interaction object is controlled to enter an unselected state, as shown in (2) of FIG.

[0077] According to the above embodiment of the present application, when a press operation on a first interaction control among at least one interaction control is received, the first interaction control is controlled to be in a pressed state, and at this time, in the pressed state, a selection operation on a first interaction object among a plurality of interaction objects, triggered based on the first interaction control, can be received to select the first interaction object, and when the press operation is released, an interaction operation associated with the first interaction control is automatically performed on the first interaction object. In this way, by integrating a selection function for selecting a first interaction object from a plurality of interaction objects and a function for triggering an interaction operation on the first interaction object into one interaction control, the utilization rate of display resources of the device can be improved, and the human-computer interaction operations required to achieve the interaction goal can be reduced, thereby improving the human-computer interaction efficiency and the utilization rate of processing resources of the device.

[0078] Hereinafter, the virtual scene is taken as a game scene as an example to describe an exemplary application of the embodiments of the present application in one practical application scenario.

[0079] In some embodiments of the present application, the following interaction methods can be used to select and interact with an interaction object: 1) Distance restriction type. The player needs to control the virtual object to approach the desired interaction object. At this time, a corresponding interaction control is displayed in the human-computer interaction interface, and the player can click the interaction control to interact. However, this interaction method is difficult to apply when multiple candidate interaction objects simultaneously exist within a relatively large area. 2) Swipe selection type. The player swipes the screen to select an interaction object. At this time, a corresponding interaction control is displayed in the human-computer interaction interface, and the player can click the interaction control to interact. However, this interaction method requires accurate selection of each object, which is cumbersome. 3) Direct selection type. A player can use his / her finger to click an interaction button already displayed on an interaction object in the game scene to perform an interaction. Although this method reduces the steps of selecting an interaction object, it has the following drawbacks: a) the interaction control is not always located in the operation hot zone, b) the interaction control moves with the player's movement, making it difficult to click, and c) each interaction object has its corresponding interaction control displayed, which causes excessive occlusion in the virtual scene.

[0080] In view of this, the present embodiment further provides a virtual scene interaction method to solve at least the above problems. In the present embodiment, a function for selecting an interaction object (i.e., an interaction object) and a function for triggering an interaction operation for the selected interaction object are integrated into a single interaction control. In this way, a player can quickly select a first interaction object from multiple interaction objects through a single interaction control, for example, by pressing and dragging the interaction control with one finger. After releasing the finger, the player can perform a corresponding interaction operation for the first interaction object. This shortens the window period for the interaction object selection operation, simplifies the player's operation steps, and improves operation efficiency.

[0081] Next, a virtual scene interaction method according to an embodiment of the present application will be described in detail.

[0082] 1) When there are multiple interaction objects of the same type in a game scene and only one interaction operation can be performed on the multiple interaction objects, as shown in Figure 4, in the initial state, the player can clearly see the UI of the interaction objects that can be interacted with in the game scene and the interaction controls in place.

[0083] As shown in Figure 9, when a player wants to perform an interaction operation A on a specific interaction object, the player needs to select the interaction object. At this time, the player can trigger a press operation on the interaction control to control the interaction control into a pressed state. Of course, in the pressed state, a press cancel control "Cancel" can also be displayed, and the interaction control can be controlled to exit the pressed state through the press cancel control.

[0084] In the pressed state, if the game scene includes a sight with a aiming function, a) as shown in Figure 8 (1), the system can select the interaction object closest to the sight by default. At this time, the UI state of the interaction object switches from an unselected state to a selected state, allowing the player to trigger an interaction operation on the interaction object by releasing the press operation. b) as shown in Figure 8 (2), if the player needs to select another object, in the pressed state, the selected interaction object can be changed by dragging the pressed finger. For example, as shown in Figure 8 (2), the default selected interaction object can be changed from the "first interaction object" to the "second interaction object." Accordingly, the selected state of the UI of the interaction object also changes.

[0085] As shown in Figure 6, when pressing the interaction control to select an interaction object, if there are only multiple interaction objects with the same interaction operation in the game scene, the multiple interaction objects can be assigned numbers and selected in a roulette manner. When the player releases the pressing operation, the interaction operation for the selected interaction object will be triggered.

[0086] 2) When there are multiple types of interaction objects in a game scene, different types of interaction objects can be distinguished using different object display styles (such as object icons), as shown in Figure 4. In addition, when there are multiple interaction objects in a game scene and multiple interaction operations are applied simultaneously, new interaction controls corresponding to the interaction operations can be added to a specified area on the screen, as shown in Figure 4, and this also applies to the interaction method 1) above.

[0087] Next, the virtual scene interaction method according to the embodiment of the present application will be continued to be described. Referring to Figure 10, Figure 10 is a flowchart of the virtual scene interaction method according to the embodiment of the present application, which may include the following steps:

[0088] In step 1, first, it is determined whether the player character satisfies the prerequisites for performing an interaction operation, such as whether the player character is within a range where an interaction operation is possible, whether the player character's own state is restricted, whether the activation count is met, etc. If the prerequisites for the interaction operation are met, the process proceeds to step 3; if not, the process proceeds to step 2.

[0089] In step 2, the interaction control UI is grayed out, which means the selection operation cannot proceed and the operation ends.

[0090] In step 3, the interaction control UI is turned on to determine whether the interaction object visible in the display area of ​​the device screen is interactive. For example, it can determine whether the interaction object exists, whether the timing is right for interaction, and whether other predetermined interaction enabling conditions are met. If the interaction object is interactive, proceed to step 5; if the interaction object is not interactive, proceed to step 4.

[0091] In step 4, the UI of the corresponding interaction object on the screen is grayed out, the selection operation cannot proceed, and the operation is terminated.

[0092] In step 5, the UI of the corresponding interaction object on the screen is lit up, and the process proceeds to step 6.

[0093] In step 6, the player presses the interaction control, at which point the UI of the interactable interaction object closest to the sight becomes selected.

[0094] In step 7, it is determined whether the player dragged with their finger. If the player dragged with their finger, proceed to step 9. If the player did not drag with their finger, proceed to step 8.

[0095] In step 8, if the UI state of the interaction object remains unchanged and the player directly releases the pressing operation, proceed to step 12; if the player drags the finger again, proceed to step 9.

[0096] In step 9, it is determined whether the total dragged distance exceeds the distance threshold. If it does, proceed to step 10; if it does not, return to step 7.

[0097] In step 10, it is determined whether there is another interaction object in the drag direction. If there is, proceed to step 11; if not, proceed to step 8.

[0098] In step 11, the UI state of the other selected interaction object becomes selected, and the UI state of the current interaction object becomes unselected, and if you continue dragging, go to step 9, or if you stop dragging, go to step 8. In step 12, the pressing operation is released to trigger an interaction operation on the interaction object.

[0099] By applying the above embodiments of the present application, in a game scene in which a player selects an interaction object from multiple interaction objects and performs corresponding interaction operations, the selection of the interaction object and the triggering of the interaction operation on the interaction object are simplified, and the operation efficiency is improved, so that the player can quickly control the interaction object and perform corresponding interaction operations during the interaction process, thereby improving the experience of the game scene.

[0100] An exemplary configuration of a virtual scene interaction device 555 according to embodiments of the present application, implemented as software modules, is described below. In some embodiments, as shown in FIG. 2 , the software modules in the virtual scene interaction device 555 stored in memory 550 include a display module 5551, a first control module 5552, a second control module 5553, and a third control module 5554. The display module 5551 is configured to display a plurality of interaction objects in the virtual scene and to display at least one interaction control, where the plurality of interaction objects include a first interaction object, and the at least one interaction control includes a first interaction control, and where the interaction control is associated with one interaction operation for the interaction object. The first control module 5552 is configured to control the first interaction control to be in a pressed state in response to a press operation for the first interaction control. The second control module 5553 is configured to control the first interaction object to enter a selected state in response to a selection operation on the first interaction object triggered based on the first interaction control in the pressed state, and the third control module 5554 is configured to execute an interaction operation associated with the first interaction control on the first interaction object in response to a release operation on the press operation.

[0101] In some embodiments, the display module 5551 is further configured to determine at least one target interaction operation that can be performed on the plurality of interaction objects, and display an interaction control for the at least one target interaction operation, wherein the interaction control and the target interaction operation have a one-to-one correspondence.

[0102] In some embodiments, the display module 5551 is further configured to display, for each of the interaction objects, interaction instruction information for the interaction object, the interaction instruction information indicating an interaction operation that can be performed on the interaction object.

[0103] In some embodiments, the display module 5551 is further configured to perform the following processing for each of the interaction controls, respectively: displaying the interaction control in an active state using a first control style if an activation condition of the interaction control is met; and displaying the interaction control in an inactive state using a second control style if an activation condition of the interaction control is not met.

[0104] In some embodiments, the display module 5551 is further configured to display a plurality of interaction objects in the virtual scene at a first viewpoint, and the first control module 5552 is further configured to control the first viewpoint to be in a locked state after controlling the first interaction control to be in a pressed state, and to receive, in the locked state, a selection operation on the first interaction object triggered based on the first interaction control in the pressed state.

[0105] In some examples, the first control module 5552 further includes triggering a press operation on the first interaction control in at least one of the following ways, the ways including: a press duration on the first interaction control reaching a press duration threshold; a press intensity on the first interaction control reaching a press intensity threshold; and a press area on the first interaction control reaching a press area threshold.

[0106] In some embodiments, the display module 5551 is further configured to, after controlling the first interaction control to be in a pressed state, display a state exit control in the pressed state, and in response to a trigger operation on the state exit control, control the first interaction control to exit the pressed state.

[0107] In some embodiments, the first control module 5552 is further configured to receive a drag operation executed starting from a press action position of the press operation, and if a drag end position of the drag operation indicates selection of the first interaction object, receive a selection operation on the first interaction object triggered based on the first interaction control under the press state.

[0108] In some embodiments, the first control module 5552 is further configured to determine that the drag end position indicates selection of the first interaction object if the drag end position is in a sensitive area of ​​the first interaction object.

[0109] In some embodiments, the first control module 5552 is further configured to determine that the drag end position indicates selection of the first interaction object if the drag end position is within a location area of ​​a selection control of the first interaction object.

[0110] In some embodiments, the display module 5551 is further configured to display a selection roulette, which is used to display selection controls of each of the interaction objects in the form of a roulette around the first interaction control, and the first control module 5552 is further configured to receive a drag operation performed starting from a press action position of the press operation and towards the selection control of the first interaction object within the selection roulette, and the first control module 5552 is further configured to determine that if the drag end position is at the selection control of the first interaction object within the selection roulette, the drag end position indicates selection of the first interaction object.

[0111] In some embodiments, the display module 5551 is further configured to display an operation area for the drag operation, the first control module 5552 is further configured to receive a drag operation performed within the operation area starting from a press action position of the press operation, and the first control module 5552 is further configured to determine that, if the drag end position is a target position within the operation area, the drag end position indicates selection of the first interaction object, wherein the target position corresponds to the location position of the first interaction object.

[0112] In some embodiments, the display module 5551 is further configured to display a sight pattern corresponding to the drag operation, the sight position of the sight pattern is a position indicated in the virtual scene by the action point of the drag operation, and the first control module 5552 is further configured to determine that when the drag operation ends and the sight position of the sight pattern is in a sensitive area of ​​the first interaction object, the drag end position indicates selection of the first interaction object.

[0113] In some embodiments, the virtual scene includes a target virtual object, the target virtual object carrying a virtual aiming item, the display module 5551 is further configured to display a sight pattern of the virtual aiming item, and the first control module 5552 is further configured to determine a first distance between a location of each of the interaction objects and a sight position of the sight pattern after controlling the first interaction control to be in a pressed state, and if the interaction object corresponding to the smallest first distance is the first interaction object, receive a selection operation for the first interaction object triggered based on the first interaction control in the pressed state.

[0114] In some embodiments, the second control module 5553 is further configured to, after controlling the first interaction object to be in a selected state, receive a movement operation on the sight pattern under the pressed state, and when the movement distance of the sight pattern reaches a distance threshold, determine a second distance between the location of each of the interaction objects and the sight position of the sight pattern, control the first interaction object to exit the selected state, and control a second interaction object corresponding to the smallest second distance to be in a selected state, wherein the plurality of interaction objects includes the second interaction object.

[0115] In some embodiments, the second control module 5553 is further configured to, after controlling the first interaction object to be in a selected state, display the first interaction object in a first object style, and display other interaction objects among the plurality of interaction objects other than the first interaction object in a second object style, wherein the second object style is different from the first object style.

[0116] According to the above embodiment of the present application, when a press operation on a first interaction control among at least one interaction control is received, the first interaction control is controlled to be in a pressed state, and at this time, in the pressed state, a selection operation on a first interaction object among a plurality of interaction objects, triggered based on the first interaction control, can be received to select the first interaction object, and when the press operation is released, an interaction operation associated with the first interaction control is automatically performed on the first interaction object. In this way, by integrating a selection function for selecting a first interaction object from a plurality of interaction objects and a function for triggering an interaction operation on the first interaction object into one interaction control, the utilization rate of display resources of the device can be improved, and the human-computer interaction operations required to achieve the interaction goal can be reduced, thereby improving the human-computer interaction efficiency and the utilization rate of processing resources of the device.

[0117] An embodiment of the present application further provides a computer program product, the computer program product including computer-executable instructions or a computer program stored in a computer-readable storage medium, wherein a processor of an electronic device reads and executes the computer-executable instructions or the computer program from the computer-readable storage medium, thereby causing the electronic device to perform the virtual scene interaction method provided by the embodiment of the present application.

[0118] An embodiment of the present application provides a computer-readable storage medium having stored thereon computer-executable instructions or a computer program that, when executed by a processor, causes the processor to perform a virtual scene interaction method provided by an embodiment of the present application.

[0119] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic memory, optical disk, or CD-ROM, or may be any device including one or any combination of the above memories.

[0120] In some embodiments, the computer-executable instructions take the form of programs, software, software modules, scripts, or code, which may be written in any type of programming language (including compiled or interpreted, declarative or procedural languages), and may be arranged in any configuration, including as independent programs, or as modules, components, subroutines, or other units suitable for use in a computing environment.

[0121] As an example, computer-executable instructions do not necessarily correspond to a file in a file system, but may be stored as part of a file that holds other programs or data, for example, within one or more scripts within a HyperText Markup Language (HTML) document, within a single file dedicated to the program being discussed, or within multiple joint files (such as files that store one or more modules, subroutines, or code portions).

[0122] As an example, the computer-executable instructions may be arranged to be executed on a single electronic device, or on multiple electronic devices located at a single location, or on multiple electronic devices distributed across multiple locations and interconnected via a communications network.

[0123] The above is only an example 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 within the scope of protection of the present application.

Claims

1. 1. A method for interacting with a virtual scene, implemented by an electronic device, comprising: displaying a plurality of interaction objects in a virtual scene and displaying at least one interaction control, wherein the plurality of interaction objects include a first interaction object, and the at least one interaction control includes a first interaction control, wherein the interaction control has an interaction operation associated with the interaction object; In response to a pressing operation on the first interaction control, controlling the first interaction control to be in a pressed state; In the pressed state, in response to a selection operation on the first interaction object triggered based on the first interaction control, controlling the first interaction object to be in a selected state; and executing an interaction operation associated with the first interaction control on the first interaction object in response to a release operation for the press operation.

2. The step of displaying at least one interaction control includes: determining at least one target interaction operation executable on the plurality of interaction objects; displaying an interaction control for the at least one target interaction operation, wherein the interaction control and the target interaction operation have a one-to-one correspondence; The method of virtual scene interaction according to claim 1 .

3. The virtual scene interaction method comprises: for each of the interaction objects, displaying interaction instruction information of the interaction object, the interaction instruction information indicating an interaction operation that can be performed on the interaction object; A method for interacting with a virtual scene according to claim 1 or 2.

4. The step of displaying at least one interaction control includes: For each of said interaction controls: If an activation condition for the interaction control is satisfied, displaying the interaction control in an active state using a first control style; and if the activation condition for the interaction control is not satisfied, displaying the interaction control in an inactive state using a second control style. A method for interacting with a virtual scene according to any one of claims 1 to 3.

5. The step of displaying a plurality of interaction objects in the virtual scene includes: displaying a plurality of interaction objects in the virtual scene from a first viewpoint; After controlling the first interaction control to be in a pressed state, the virtual scene interaction method includes: controlling the first viewpoint to be in a locked state; receiving, in the locked state, a selection operation on the first interaction object triggered based on the first interaction control in the pressed state; A method for interacting with a virtual scene according to any one of claims 1 to 4.

6. The virtual scene interaction method comprises: The method further includes triggering a press operation on the first interaction control by at least one of the following methods, wherein the method includes: the press duration on the first interaction control reaches a press duration threshold; the pressure intensity on the first interaction control reaches a pressure intensity threshold; and a press area on the first interaction control reaches a press area threshold. A method for interacting with a virtual scene according to any one of claims 1 to 5.

7. After controlling the first interaction control to be in a pressed state, the virtual scene interaction method includes: displaying the depressed state exit control; and controlling the first interaction control to exit the pressed state in response to a trigger operation on the state exit control. A method for interacting with a virtual scene according to any one of claims 1 to 6.

8. After controlling the first interaction control to be in a pressed state, the virtual scene interaction method includes: receiving a drag operation performed starting from a press action position of the press operation; receiving a selection operation on the first interaction object, triggered based on the first interaction control in the pressed state, when the drag end position of the drag operation indicates selection of the first interaction object; A method for interacting with a virtual scene according to any one of claims 1 to 7.

9. The virtual scene interaction method comprises: If the drag end position is in a sensitive area of ​​the first interaction object, determining that the drag end position indicates selection of the first interaction object. The method of virtual scene interaction according to claim 8.

10. The virtual scene interaction method comprises: The method further includes determining, when the drag end position is in an area where a selection control of the first interaction object is located, that the drag end position indicates selection of the first interaction object. The method of virtual scene interaction according to claim 8.

11. The virtual scene interaction method comprises: displaying a selection roulette, the selection roulette being used to display selection controls of each of the interaction objects in the form of a roulette around the first interaction control; The step of receiving a drag operation performed starting from the pressing action position of the pressing operation includes: receiving a drag operation performed within the selection roulette toward a selection control of the first interaction object, starting from a press action position of the press operation; The virtual scene interaction method comprises: and determining, when the drag end position is in a selection control of the first interaction object within the selection roulette, that the drag end position indicates selection of the first interaction object. The method of virtual scene interaction according to claim 8.

12. The virtual scene interaction method comprises: further comprising the step of displaying an operation area for the drag operation; The step of receiving a drag operation performed starting from the pressing action position of the pressing operation includes: receiving a drag operation executed within the operation area starting from a press action position of the press operation; The virtual scene interaction method comprises: and determining, when the drag end position is a target position within the operation area, that the drag end position indicates selection of the first interaction object, wherein the target position corresponds to a location of the first interaction object. The method of virtual scene interaction according to claim 8.

13. The virtual scene interaction method comprises: The method further includes a step of displaying a sight pattern corresponding to the drag operation, wherein a sight position of the sight pattern is a position indicated in the virtual scene by an action point of the drag operation; The virtual scene interaction method comprises: and determining, when the drag operation is ended and a reticle position of the reticle pattern is in a sensitive area of ​​the first interaction object, that the drag end position indicates selection of the first interaction object. The method of virtual scene interaction according to claim 8.

14. The virtual scene includes a target virtual object, the target virtual object possesses a virtual aiming item, and the virtual scene interaction method includes: further comprising the step of displaying a sight pattern of the virtual aiming item; After controlling the first interaction control to be in a pressed state, the virtual scene interaction method includes: determining a first distance between a location of each of the interaction objects and a position of a star of the star pattern; If the interaction object corresponding to the smallest first distance is the first interaction object, receiving a selection operation on the first interaction object triggered based on the first interaction control in the pressed state. A method for interacting with a virtual scene according to any one of claims 1 to 13.

15. After controlling the first interaction object to be in a selected state, the virtual scene interaction method includes: receiving a movement operation for the front sight pattern in the pressed state; determining a second distance between the location of each of the interaction objects and a position of the target of the target when the movement distance of the target reaches a distance threshold; controlling the first interaction object to leave the selected state and controlling a second interaction object corresponding to the smallest second distance to enter the selected state, wherein the plurality of interaction objects includes the second interaction object.

15. The method of virtual scene interaction of claim 14.

16. After controlling the first interaction object to be in a selected state, the virtual scene interaction method includes: displaying the first interaction object in a first object style; displaying other interaction objects among the plurality of interaction objects other than the first interaction object in a second object style, the second object style being different from the first object style; A method for interacting with a virtual scene according to any one of claims 1 to 15.

17. 1. A virtual scene interaction device, comprising: a display module configured to display a plurality of interaction objects in a virtual scene and to display at least one interaction control, the virtual scene including a goal virtual object, the plurality of interaction objects including a first interaction object, the at least one interaction control including a first interaction control, the interaction control having an interaction operation for the interaction object associated therewith; a first control module configured to control the first interaction control to be in a pressed state in response to a pressing operation on the first interaction control; a second control module configured to control the first interaction object to enter a selected state in response to a selection operation on the first interaction object triggered based on the first interaction control in the pressed state; and a third control module configured to control the target virtual object to perform an interaction operation associated with the first interaction control on the first interaction object in response to a release operation for the press operation.

18. An electronic device, a memory storing computer-executable instructions; A processor configured to execute computer-executable instructions stored in the memory to implement the method for interacting with a virtual scene according to any one of claims 1 to 16.

19. 17. A computer readable storage medium having stored thereon computer executable instructions or a computer program that causes a processor to perform the method for virtual scene interaction according to any one of claims 1 to 16.

20. A computer program product comprising computer executable instructions or a computer program that causes a processor to perform the method for virtual scene interaction according to any one of claims 1 to 16.

Citation Information

Patent Citations

  • Virtual object control method and device, electronic equipment and storage medium

    CN112717403A

  • Method, device, electronic device, and computer program for controlling virtual objects

    JP2023548922A