Virtual scene interaction method and device, equipment, storage medium and program product
By integrating the selection and interaction of interactive objects in the virtual scene, and using the pressing and releasing operations of interactive controls, the problem of low interaction efficiency in the virtual scene is solved, and more efficient interaction and resource utilization are achieved.
Patent Information
- Application Number
- CN202310384552.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2024-10-15
AI Technical Summary
In existing virtual scenes, the interaction efficiency for multiple interactive objects is low, and multiple human-computer interaction operations are required to achieve specific interaction operations.
By displaying multiple interactive objects and at least one interactive control in the virtual scene, responding to press and release operations, automatically performing interactive operations, and integrating selection and interactive functions into one control, it improves interaction efficiency and resource utilization.
It simplifies the selection and interaction of interactive objects, reduces human-computer interaction steps, and improves interaction efficiency and resource utilization in virtual scenes.
Smart Images

Figure CN118778801A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of virtualization and human-computer interaction, and in particular to a method, device, equipment, storage medium and program product for interacting with a virtual scene. Background Art
[0002] Display technology based on graphics processing hardware has expanded the channels for perceiving the environment and obtaining information, especially multimedia technology for virtual scenes. With the help of human-computer interaction engine technology, it can realize diversified interactions between virtual objects controlled by users or artificial intelligence according to actual application needs. It has various typical application scenarios. For example, in game scenarios, it can simulate the real interaction process between virtual objects.
[0003] In the related art, when interacting with a specific interactive object among multiple interactive objects, it is often necessary to first select from the multiple interactive objects through a provided selection control, and then after selecting, trigger the interaction with the specific interactive object by clicking the provided interaction control. However, this requires multiple human-computer interaction operations to achieve, and the human-computer interaction efficiency is low. Summary of the invention
[0004] The embodiments of the present application provide a virtual scene interaction method, device, electronic device, computer-readable storage medium and computer program product, which can improve human-computer interaction efficiency and display resource utilization.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] The present application provides a virtual scene interaction method, including:
[0007] Displaying a plurality of interactive objects in a virtual scene and displaying at least one interactive control;
[0008] The virtual scene includes a target virtual object, the multiple interactive objects include a first interactive object, and the interactive control is associated with an interactive operation for the interactive object;
[0009] In response to a pressing operation on a first interactive control among the at least one interactive control, controlling the first interactive control to be in a pressed state;
[0010] In response to a selection operation on the first interactive object triggered by the first interactive control in the pressed state, controlling the first interactive object to be in a selected state;
[0011] In response to a release operation for the pressing operation, the target virtual object is controlled to perform an interactive operation associated with the first interactive control for the first interactive object.
[0012] The embodiment of the present application also provides an interactive device for a virtual scene, including:
[0013] A display module, used to display multiple interactive objects in a virtual scene and display at least one interactive control; wherein the virtual scene includes a target virtual object, the multiple interactive objects include a first interactive object, and the interactive control is associated with an interactive operation for the interactive object;
[0014] A first control module, configured to control a first interactive control among the at least one interactive control to be in a pressed state in response to a pressing operation on the first interactive control;
[0015] a second control module, configured to control the first interactive object to be in a selected state in response to a selection operation on the first interactive object triggered by the first interactive control in the pressed state;
[0016] The third control module is used to control the target virtual object to perform the interactive operation associated with the first interactive control on the first interactive object in response to a release operation on the pressing operation.
[0017] In the above scheme, the display module is also used to determine at least one target interaction operation that can be performed on the multiple interaction objects; and display an interaction control for the at least one target interaction operation, wherein the interaction control is in a one-to-one correspondence with the target interaction operation.
[0018] In the above solution, the display module is further used to display corresponding interaction indication information for each interaction object, and the interaction indication information is used to indicate the interaction operations that can be performed on the interaction object.
[0019] In the above scheme, the display module is also used to perform the following processing for each of the interactive controls: when the activation condition of the interactive control is met, the first control style is used to display the interactive control in an activated state; when the activation condition of the interactive control is not met, the second control style is used to display the interactive control in an inactivated state.
[0020] In the above scheme, the display module is also used to display multiple interactive objects in the virtual scene and under the first perspective; the first control module is also used to control the first perspective to be in a locked state after controlling the first interactive control to be in a pressed state; in the locked state, a selection operation for the first interactive object triggered by the first interactive control in the pressed state is received.
[0021] In the above scheme, the first control module is also used to receive a pressing operation on the first interactive control among the at least one interactive control when the pressing duration of the first interactive control reaches a pressing duration threshold; or to receive a pressing operation on the first interactive control among the at least one interactive control when the pressing strength of the first interactive control reaches a pressing strength threshold.
[0022] In the above scheme, the display module is also used to display the state exit control of the pressed state; when a trigger operation for the state exit control is received, the first interactive control is controlled to exit the pressed state, and when there is a second interactive object in a selected state, the target virtual object is controlled to not perform the interactive operation associated with the first interactive control for the second interactive object.
[0023] In the above scheme, the first control module is also used to receive a drag operation performed from the pressing action position of the pressing operation; when the drag end position of the drag operation is used to indicate that the selected interactive object is the first interactive object, a selection operation for the first interactive object triggered by the first interactive control in the pressing state is received.
[0024] In the above solution, the first control module is further used to determine that the dragging end position is used to indicate that the selected interactive object is the first interactive object when the dragging end position is in the sensing area of the first interactive object.
[0025] In the above scheme, the first control module is further used to determine that the dragging end position is used to indicate that the selected interactive object is the first interactive object when the dragging end position is in the area where the selection control of the first interactive object is located.
[0026] In the above scheme, the display module is also used to display a selection wheel, and the selection wheel is used to display the selection controls of each interactive object in the form of a wheel around the first interactive control; the first control module is also used to receive a drag operation performed from the pressing position of the pressing operation to the selection control of the first interactive object in the selection wheel.
[0027] In the above scheme, the display module is also used to display the operation area of the drag operation; the first control module is also used to receive the drag operation started from the pressing action position of the pressing operation within the operation area; the first control module is also used to determine the drag end position when the drag end position is the target position within the operation area to indicate that the selected interactive object is the first interactive object; wherein the target position corresponds to the position of the first interactive object.
[0028] In the above scheme, the display module is also used to display the crosshair pattern corresponding to the dragging operation, and the crosshair position of the crosshair image is the position indicated by the action point of the dragging operation in the virtual scene; the first control module is also used to determine the dragging end position to indicate that the selected interactive object is the first interactive object when the dragging operation is ended and the crosshair position of the crosshair pattern is located in the sensing area of the first interactive object.
[0029] In the above scheme, the target virtual object holds a virtual aiming prop, and the display module is also used to display the crosshair pattern of the virtual aiming prop; the first control module is also used to determine the first distance between the position of each interactive object and the crosshair position of the crosshair image after controlling the first interactive control to be in a pressed state; when the interactive object corresponding to the smallest first distance is the first interactive object, a selection operation for the first interactive object triggered by the first interactive control in the pressed state is received.
[0030] In the above scheme, the second control module is also used to receive a moving operation for the crosshair pattern in the pressed state after the first interactive object is controlled to be in the selected state; when the moving distance of the crosshair pattern reaches a distance threshold, determine the second distance between the position of each interactive object and the crosshair position of the crosshair image; control the first interactive object to exit the selected state, and control the second interactive object corresponding to the smallest second distance to be in the selected state.
[0031] In the above scheme, the second control module is also used to display the first interactive object through a first object style after controlling the first interactive object to be in a selected state; and to display other interactive objects among the multiple interactive objects except the first interactive object through a second object style, and the second object style is different from the first object style.
[0032] The present application also provides an electronic device, including:
[0033] A memory for storing computer executable instructions;
[0034] The processor is used to implement the virtual scene interaction method provided in the embodiment of the present application when executing the computer executable instructions stored in the memory.
[0035] An embodiment of the present application also provides a computer-readable storage medium storing computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the virtual scene interaction method provided in the embodiment of the present application is implemented.
[0036] An embodiment of the present application also provides a computer program product, including computer executable instructions or a computer program. When the computer executable instructions or the computer program are executed by a processor, the virtual scene interaction method provided in the embodiment of the present application is implemented.
[0037] The embodiments of the present application have the following beneficial effects:
[0038] By applying the above-mentioned embodiment of the present application, when a pressing operation is received for a first interactive control among at least one interactive control, the first interactive control is controlled to be in a pressed state. At this time, in this pressed state, a selection operation for a first interactive object among multiple interactive objects triggered by the first interactive control can be received to select the first interactive object. When the pressing operation is released, the target virtual object is automatically controlled to perform the interactive operation associated with the first interactive control for the first interactive object. In this way, the selection function of the first interactive object among multiple interactive objects and the function of triggering the interactive operation of the target virtual object for the first interactive object are integrated into one interactive control, which not only improves the utilization rate of display resources, but also reduces the human-computer interaction operations required to achieve the interactive purpose, thereby improving the efficiency of human-computer interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1A It is a schematic diagram of an application mode of the virtual scene interaction method provided in an embodiment of the present application;
[0040] Figure 1B It is a schematic diagram of an application mode of the virtual scene interaction method provided in an embodiment of the present application;
[0041] Figure 2 is a structural diagram of an electronic device 500 for implementing a virtual scene interaction method provided in an embodiment of the present application;
[0042] Figure 3 It is a flowchart of a virtual scene interaction method provided in an embodiment of the present application;
[0043] Figure 4 is a display schematic diagram of an interface of a virtual scene provided in an embodiment of the present application;
[0044] Figure 5 is a schematic diagram of a selection process of an interactive object provided in an embodiment of the present application;
[0045] Figure 6 is a schematic diagram of a selection process of an interactive object provided in an embodiment of the present application;
[0046] Figure 7 is a schematic diagram of a selection process of an interactive object provided in an embodiment of the present application;
[0047] Figure 8 is a schematic diagram of a selection process of an interactive object provided in an embodiment of the present application;
[0048] Fig. 9 It is a display schematic diagram of the state exit control provided in the embodiment of the present application;
[0049] Fig.10 It is a flowchart of the interactive method of the virtual scene provided in the embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0051] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0052] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0053] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0054] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0055] 1) Client: an application running in the terminal to provide various services, such as a client that supports virtual scenes (such as a game client).
[0056] 2) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed.
[0057] 3) Virtual scene is a virtual scene displayed (or provided) when the application is running on the terminal. The virtual scene can be a simulation of the real world, a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene can be any of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene.
[0058] For example, the virtual scene may include the sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities. The user may control the virtual object to perform activities in the virtual scene, including but not limited to: 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 (for example, the user plays the role of a virtual object in the game from his own perspective); it may also be displayed from a third-person perspective (for example, the user chases the virtual object in the game to play the game); it may also be displayed from a bird's-eye view perspective, and the above perspectives may be switched arbitrarily.
[0059] 4) Scene data, which represents the characteristic data of the virtual scene, for example, the position of the virtual object in the virtual scene, the position of the virtual building in the virtual scene, and the area occupied by the virtual building, etc. Of course, different types of characteristic data may be included according to the type of virtual scene; for example, in the virtual scene of the game, the scene data may include the waiting time required for various functions configured in the game (depending on the number of times the same function can be used within a specific time), and may also represent the attribute values of various states of the game character, for example, health value (also called red volume), magic value (also called blue volume), status value, blood volume, etc.
[0060] 5) Virtual objects, images of various people and objects that can interact in a virtual scene, or movable objects in a virtual scene. The movable objects can be virtual characters, virtual animals, cartoon characters, etc., such as people, animals, plants, oil drums, walls, stones, etc. displayed in a virtual scene. The virtual object can be a virtual image in the virtual scene that represents the user. A virtual scene can include multiple virtual objects, each of which has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene.
[0061] For example, the virtual object may be a user character controlled by an operation on the client, an artificial intelligence (AI) trained to fight in a virtual scene, or a non-player character (NPC) set in an interactive virtual scene. The number of virtual objects participating in the interaction in the virtual scene may be preset or dynamically determined according to the number of clients participating in the interaction.
[0062] 6) Interactive objects, which can be virtual objects (such as monster objects controlled by robot programs, etc.), virtual props (such as virtual bombs, virtual bows and arrows, virtual vehicles, etc.), virtual resources (such as virtual gold coins, virtual medicines, etc.) and other virtual objects.
[0063] 7) Virtual props, props for users to interact with in virtual scenes, can assist users in interacting in virtual scenes. For example, a user can control a virtual object to move in a virtual vehicle in the virtual scene. For example, the virtual vehicle can be a virtual car, a virtual aircraft, a virtual yacht, etc., which are only exemplified by the above scenes, and the embodiments of the present application do not specifically limit this. Users can control virtual objects to interact with other virtual objects in a confrontational manner through virtual props. For example, the virtual props can be virtual grenades, virtual cluster mines, virtual sticky grenades and other throwing virtual props, or virtual guns, virtual pistols, virtual rifles and other shooting virtual props. The present application does not specifically limit the types of virtual props.
[0064] 8) Virtual resources: various real or fictional objects in virtual scenes that users (such as players) can control to collect virtual objects, such as virtual gold coins, virtual medicines, virtual plants (such as flowers, grass, mushrooms), virtual fruits (such as apples, oranges), virtual objects, etc.
[0065] The embodiments of the present application provide a virtual scene interaction method, device, electronic device, computer-readable storage medium, and computer program product, which can improve the human-computer interaction efficiency and display resource utilization.
[0066] It should be noted that when the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0067] To facilitate easier understanding of the virtual scene interaction method provided in the embodiments of the present application, an exemplary implementation scenario of the virtual scene interaction method provided in the embodiments of the present application is described below. The virtual scene in the virtual scene interaction method provided in the embodiments of the present application can be completely based on the terminal device output, or based on the collaborative output of the terminal device and the server.
[0068] In some embodiments, the virtual scene can be an environment for game characters to interact. For example, it can be an environment for game characters to fight in the virtual scene. By controlling the actions of virtual objects, both parties can interact in the virtual scene, allowing users to experience the virtual scene in the game.
[0069] In one implementation scenario, see Figure 1A , Figure 1A It is a schematic diagram of the application mode of the interactive method of the virtual scene provided by the embodiment of the present application, which is applicable to some application modes that completely rely on the computing power of the terminal 400 to complete the relevant data calculation of the virtual scene 100, such as stand-alone / offline mode games, and the output of the virtual scene is completed through the terminal 400 such as a smart phone, a tablet computer and a virtual reality / augmented reality device. When forming the visual perception of the virtual scene 100, the terminal 400 calculates the data required for display through the graphics computing hardware, and completes the loading, parsing and rendering of the display data, and the graphics output hardware outputs the video frame that can form the visual perception of the virtual scene, for example, presenting a two-dimensional video frame on the display screen of a smart phone, or projecting a video frame on the lenses of augmented reality / virtual reality glasses to achieve a three-dimensional display effect; in addition, in order to enrich the perception effect, the device can also use different hardware to form one or more of auditory perception, tactile perception, motion perception and taste perception.
[0070] As an example, terminal 400 runs a client (e.g., a stand-alone game client), and during the operation of the client, a virtual scene is output based on scene data of the virtual scene, where the virtual scene is an environment for game characters to interact, such as a plain, street, valley, etc. for game characters to fight against each other; after outputting the virtual scene, multiple interactive objects in the virtual scene are displayed, and at least one interactive control is displayed; wherein the virtual scene includes a target virtual object, the multiple interactive objects include a first interactive object, and the interactive control is associated with an interactive operation for the interactive object; in response to a pressing operation on a first interactive control among the at least one interactive control, the first interactive control is controlled to be in a pressed state; in response to a selection operation on the first interactive object triggered by the first interactive control in the pressed state, the first interactive object is controlled to be in a selected state; in response to a release operation on the pressing operation, the target virtual object is controlled to perform the interactive operation associated with the first interactive control on the first interactive object.
[0071] In another implementation scenario, see Figure 1B , Figure 1B 1 is a schematic diagram of an application mode of the interactive method of a virtual scene provided in an embodiment of the present application, which is applied to a terminal 400 and a server 200. Generally, it is applicable to an application mode that relies on the computing power of the server 200 to complete the calculation of the virtual scene and outputs the virtual scene at the terminal 400. Taking the visual perception of the virtual scene 100 as an example, the server 200 calculates the display data related to the virtual scene and sends it to the terminal 400. The terminal 400 relies on the graphics computing hardware to complete the loading, parsing and rendering of the display data, and relies on the graphics output hardware to output the virtual scene to form a visual perception, for example, a two-dimensional video frame can be presented on the display screen of a smart phone, or a video frame that realizes a three-dimensional display effect can be projected on the lenses of augmented reality / virtual reality glasses; for the perception of the form of the virtual scene, it can be understood that the corresponding hardware output of the terminal can be used, for example, using a microphone output to form an auditory perception, using a vibrator output to form a tactile perception, and so on.
[0072] As an example, the terminal 400 runs a client (e.g., a network version of a game client), obtains scene data of a virtual scene by connecting to a game server (i.e., server 200), and outputs a virtual scene based on the obtained scene data, so as to interact with other users in the virtual scene. After outputting the virtual scene, the terminal 400 displays multiple interactive objects in the virtual scene and displays at least one interactive control; wherein the virtual scene includes a target virtual object, the multiple interactive objects include a first interactive object, and the interactive control is associated with an interactive operation for the interactive object; in response to a pressing operation on a first interactive control in at least one interactive control, the first interactive control is controlled to be in a pressed state; in response to a selection operation on the first interactive object triggered by the first interactive control in the pressed state, the first interactive object is controlled to be in a selected state; in response to a release operation on the pressing operation, the target virtual object is controlled to perform an interactive operation associated with the first interactive control on the first interactive object.
[0073] In some embodiments, the terminal 400 or the server 200 can implement the interactive method of the virtual scene provided in the embodiment of the present application by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (Application, APP), that is, a program that needs to be installed in the operating system to run (such as a game client); it can also be a small program, that is, a program that can be run only by downloading it to a browser environment; it can also be a small program that can be embedded in any APP (such as a game small program). In short, the above-mentioned computer program can be an application, module or plug-in in any form.
[0074] The embodiments of the present application can be implemented with the help of cloud technology, which refers to a hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize data calculation, storage, processing, and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form a resource pool that can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources.
[0075] As an example, a server (such as server 200) can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The terminal (such as terminal 400) can be a smart phone, a tablet computer, a laptop computer, a desktop computer, an intelligent voice interaction device (such as a smart speaker), a smart home appliance (such as a smart TV), a smart watch, a car terminal, a wearable device, a virtual reality (VR) device, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and the embodiments of the present application are not limited to this.
[0076] In some embodiments, multiple servers may form a blockchain, and the servers are nodes on the blockchain. Information connections may exist between each node in the blockchain, and information may be transmitted between nodes through information connections. Among them, data related to the interactive method of the virtual scene provided in the embodiment of the present application (such as scene data of the virtual scene) may be stored on the blockchain.
[0077] The following describes an electronic device for implementing a virtual scene interaction method provided by an embodiment of the present application. Figure 2 , Figure 2It is a structural diagram of an electronic device 500 for implementing an interactive method for a virtual scene provided in an embodiment of the present application. The electronic device 500 provided in an embodiment of the present application may be a terminal or a server. The electronic device 500 provided in an 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 various components in the electronic device 500 are coupled together through a bus system 540. It can be understood that the bus system 540 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Figure 2 Various buses are labeled as bus system 540 .
[0078] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0079] The user interface 530 includes one or more output devices 531 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0080] The memory 550 may be removable, non-removable, or a combination thereof. The memory 550 may include one or more storage devices physically located away from the processor 510. The memory 550 includes a volatile memory or a non-volatile memory, and may also include both a volatile memory and a non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 550 described in the embodiments of the present application is intended to include any suitable type of memory.
[0081] In some embodiments, the memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.
[0082] Operating system 551, including system programs for processing various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0083] A network communication module 552, used to reach other electronic devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.;
[0084] a presentation module 553 for enabling presentation of information via one or more output devices 531 (e.g., display screen, speaker, etc.) associated with the user interface 530 (e.g., a user interface for operating peripherals and displaying content and information);
[0085] The input processing module 554 is used to detect one or more user inputs or interactions from one of the one or more input devices 532 and translate the detected inputs or interactions.
[0086] In some embodiments, the virtual scene interaction device provided in the embodiments of the present application can be implemented in a software manner. Figure 2 An interactive device 555 of a virtual scene stored in a memory 550 is shown, which may be software in the form of a program or plug-in, including the following software modules: 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 therefore may be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.
[0087] The following describes the interactive method of the virtual scene provided by the embodiment of the present application. In some embodiments, the interactive method of the virtual scene provided by the embodiment of the present application can be implemented by various electronic devices, for example, it can be implemented by a terminal alone, it can also be implemented by a server alone, or it can be implemented by a terminal and a server in collaboration. Figure 3 , Figure 3 : is a flowchart of a virtual scene interaction method provided in an embodiment of the present application. The virtual scene interaction method provided in an embodiment of the present application includes:
[0088] Step 101: The terminal displays a plurality of interactive objects in a virtual scene and displays at least one interactive control.
[0089] The virtual scene includes a target virtual object, the multiple interactive objects include a first interactive object, and the interactive control is associated with an interactive operation for the interactive object.
[0090] In step 101, the terminal may run a client (e.g., a game client) that supports a virtual scene, and the terminal outputs a virtual scene during the operation of the client. For example, the terminal may obtain scene data of a 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 includes a target virtual object, which may be a virtual character controlled by a user entering 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.
[0091] In the embodiment of the present application, the virtual scene also includes interactive objects, which may be virtual objects (such as monster objects controlled by a robot program, etc.), virtual props (such as virtual bombs, virtual bows and arrows, virtual vehicles, etc.), virtual resources (such as virtual gold coins, virtual medicines, etc.), etc. The user may control the target virtual object to interact with the interactive object in the virtual scene, such as attacking the interactive object (such as a monster object controlled by a robot program), collecting the interactive object (such as virtual gold coins), using the interactive object (such as a virtual bomb), activating the interactive object (such as a virtual object that supports a certain virtual skill (such as attacking, replenishing health points, etc.)), picking up the interactive object (such as a virtual bow and arrow), recycling the interactive object (such as virtual medicine), etc.
[0092] In an embodiment of the present application, an interactive control is also provided for triggering the control target virtual object to perform an interactive operation on the interactive object. In practical applications, the interactive control can be displayed in the interface of the virtual scene, such as a preset area in the interface of the virtual scene. The number of the interactive controls can be one or more, which can be determined specifically according to the number of interactive operations that can be performed on multiple interactive objects. Each interactive control is associated with an interactive operation for the interactive object. The interactive operation can be an attack operation, a collection operation, an activation operation, a use operation, a recycling operation, a pickup operation, and the like.
[0093] In some embodiments, the terminal may display at least one interactive control in the following manner: determining at least one target interactive operation that can be performed on multiple interactive objects; displaying an interactive control for at least one target interactive operation, wherein the interactive control and the target interactive operation are in a one-to-one correspondence. Here, the number of interactive controls is determined according to the number of interactive operations that can be performed on multiple interactive objects. That is, the number of interactive controls is the same as the number of target interactive operations that can be performed on multiple interactive objects, that is, the interactive control and the target interactive operation are in a one-to-one correspondence. In this way, it is not necessary to display the corresponding interactive control for each interactive object, thereby reducing the occlusion of the virtual scene by the interactive control, improving the utilization of display resources and the user's experience of participating in the virtual scene.
[0094] In some embodiments, while displaying multiple interactive objects in a virtual scene, the terminal may also display corresponding interaction indication information for each interactive object, and the interaction indication information is used to indicate the interactive operations that can be performed on the interactive object. Here, the interaction indication information can be displayed independently of the interactive object, or it can be displayed dependent on the interactive object. For example, the interaction indication information is displayed in the associated area of the interactive object (such as above the interactive object), and the interaction indication information is displayed by assigning different object colors to the interactive objects corresponding to different interactive operations, and so on.
[0095] In some embodiments, the terminal may display at least one interactive control in the following manner: for each interactive control, the following processing is performed respectively: when the activation condition of the interactive control is met, the first control style is used to display the interactive control in an activated state; when the activation condition of the interactive control is not met, the second control style is used to display the interactive control in an inactivated state. Here, each interactive control may also be provided with a corresponding activation condition. When the activation condition of the interactive control is met, the interactive control is activated, and the first control style is used to display the interactive control in an activated state; and when the activation condition of the interactive control is not met, the second control style is used to display the interactive control in an inactivated state. The activation state is used to indicate that the interactive operation of the target virtual object on the interactive object can be triggered by the interactive control. The first control style is different from the second control style. For example, a highlighted control style may be used to display an interactive control in an activated state, and a control style with a preset gray value may be used to display an interactive control in an inactivated state.
[0096] In practical applications, the activation condition may be pre-set, for example, whether the object state (such as health, life, attack value, etc.) of the target virtual object meets the state condition, whether the activation times of the interactive object has reached the activation times threshold, whether the interactive object is in an interactive state, etc.
[0097] As an example, see Figure 4 , Figure 4 : is a display diagram of the interface of the virtual scene provided by the embodiment of the present application. Here, in the interface of the virtual scene, 4 interactive objects and 4 interactive controls are displayed. Among them, interactive control A and interactive control B are in an activated state, and interactive control C and interactive control D are in an inactivated state. Interactive objects 1-3 are in an interactive state, and interactive object 4 is in a non-interactive state. At this time, the corresponding interactive operations can only be performed on interactive objects 1-3 through the interactive controls.
[0098] Step 102: In response to a pressing operation on a first interactive control among at least one interactive control, controlling the first interactive control to be in a pressed state.
[0099] In step 102, the first interactive control may be controlled to be in a pressed state by triggering a pressing operation on the first interactive control. In some embodiments, the terminal may receive the pressing operation in the following manner: when the pressing duration of the first interactive control reaches a pressing duration threshold, the pressing operation on the first interactive control among the at least one interactive control is received; or when the pressing force on the first interactive control reaches a pressing force threshold, the pressing operation on the first interactive control among the at least one interactive control is received.
[0100] In some embodiments, the terminal may display multiple interactive objects in a virtual scene in the following manner: display multiple interactive objects in the virtual scene and under a first perspective; accordingly, after controlling the first interactive control to be in a pressed state, the terminal also controls the first perspective to be in a locked state; in the locked state, a selection operation for the first interactive object triggered by the first interactive control in the pressed state is received.
[0101] Here, the terminal displays multiple interactive objects observed from the first perspective. After the first interactive control is controlled to be in a pressed state, the terminal also controls the first perspective to be in a locked state. At this time, when the user operates on the human-computer interaction interface of the terminal, the first perspective will no longer change, which is convenient for the user to select the interactive object and improves the efficiency of human-computer interaction.
[0102] In some embodiments, after the terminal controls the first interactive control to be in a pressed state, the terminal may receive a selection operation for the first interactive object in the following manner: receiving a drag operation performed from the pressing position of the pressing operation; when the drag end position of the drag operation is used to indicate that the selected interactive object is the first interactive object, receiving a selection operation for the first interactive object triggered by the first interactive control in the pressed state. Here, while maintaining the pressing operation, the user can perform a drag operation from the pressing position of the pressing operation to select the first interactive object from multiple interactive objects. The terminal receives a drag operation performed from the pressing position of the pressing operation. When the drag end position of the drag operation is used to indicate that the selected interactive object is the first interactive object, receiving a selection operation for the first interactive object triggered by the first interactive control in the pressed state. In this way, by triggering the pressing operation and continuing to perform the drag operation on the basis of the pressing operation, the selection of the interactive object can be performed, the operation is coherent and simple, and the user can achieve it with one hand, and the simplified selection operation of the interactive object improves the efficiency of human-computer interaction and the user's virtual scene experience.
[0103] In some embodiments, the terminal may determine the drag end position to indicate that the selected interactive object is the first interactive object in the following manner: when the drag end position is in the sensing area of the first interactive object, the drag end position is determined to indicate that the selected interactive object is the first interactive object. Here, the sensing area of the first interactive object may be an area of a target shape centered on the first interactive object, such as a circular area, a square area, etc. As an example, see Figure 5 , Figure 5 is a schematic diagram of the selection process of the interactive object provided by the embodiment of the present application. Here, in response to the pressing operation on the first interactive control, the first interactive control is controlled to be in a pressed state, such as Figure 5 As shown in (1); when the first interactive control is in a pressed state, a drag operation is received starting from the pressing action position of the pressing operation; when the drag end position of the drag operation is in the sensing area of the first interactive object, the drag end position is determined to indicate that the selected interactive object is the first interactive object, and at this time, the first interactive object is controlled to be in a selected state, such as Figure 5 As shown in (2).
[0104] In some embodiments, the terminal may determine the drag end position to indicate that the selected interactive object is the first interactive object in the following manner: when the drag end position is in the area where the selection control of the first interactive object is located, the drag end position is determined to indicate that the selected interactive object is the first interactive object. Here, a corresponding selection control may be set for each first interactive object. As an example, see Figure 6 , Figure 6 is a schematic diagram of the selection process of the interactive object provided by the embodiment of the present application. Here, in response to the pressing operation on the first interactive control, the first interactive control is controlled to be in a pressed state, such as Figure 6 As shown in (1); when the first interactive control is in a pressed state, a drag operation is received starting from the pressing action position of the pressing operation; when the drag end position of the drag operation is in the area where the selection control of the first interactive object is located, the drag end position is determined to indicate that the selected interactive object is the first interactive object, and at this time, the first interactive object is controlled to be in a selected state, such as Figure 6 As shown in (2).
[0105] In some embodiments, the terminal may display a selection wheel, which is used to display the selection controls of each interactive object in the form of a wheel around the first interactive control; accordingly, the terminal may receive a drag operation performed from the pressing position of the pressing operation in the following manner: receiving a drag operation performed from the pressing position of the pressing operation to the selection control of the first interactive object in the selection wheel. Figure 6, around the first interactive control, the selection controls of each interactive object are displayed in the form of a wheel, forming a selection wheel. When performing a drag operation, the drag operation can be performed from the pressing position of the pressing operation to the selection control of the first interactive object in the selection wheel.
[0106] In some embodiments, the terminal may display an operation area for the drag operation; accordingly, the terminal may receive a drag operation executed from the pressing position of the pressing operation in the following manner: in the operation area, a drag operation executed from the pressing position of the pressing operation is received; accordingly, the terminal may determine the drag end position to indicate that the selected interactive object is the first interactive object in the following manner: when the drag end position is the target position in the operation area, the drag end position is determined to indicate that the selected interactive object is the first interactive object; wherein the target position corresponds to the position of the first interactive object. Here, an operation area may be provided for the drag operation. The user may perform the drag operation in the operation area. The operation area may be centered on the first interactive control. When the first interactive control is in a pressed state, a drag operation executed from the pressing position of the pressing operation may be received in the operation area. It should be noted that each position in the operation area also has a corresponding position in the virtual scene. In this way, when the target position corresponds to the position of the first interactive object, if the drag end position is the target position in the operation area, the drag end position is determined to indicate that the selected interactive object is the first interactive object.
[0107] As an example, see Figure 7 , Figure 7 is a schematic diagram of the selection process of the interactive object provided by the embodiment of the present application. Here, in response to the pressing operation on the first interactive control, the first interactive control is controlled to be in a pressed state, such as Figure 7 As shown in (1); at the same time, an operation area for dragging operation is set with the first interactive control as the center; when the first interactive control is in a pressed state, a dragging operation is received in the operation area starting from the pressing action position of the pressing operation; when the dragging end position of the dragging operation is the target position, the dragging end position is determined to indicate that the selected interactive object is the first interactive object, and at this time, the first interactive object is controlled to be in a selected state, such as Figure 7 As shown in (2).
[0108] In some embodiments, the terminal may display a crosshair pattern corresponding to the drag operation, and the crosshair position of the crosshair image is the position indicated by the action point of the drag operation in the virtual scene; accordingly, the terminal may determine the end position of the drag to indicate that the selected interactive object is the first interactive object in the following manner: when the drag operation ends and the crosshair position of the crosshair pattern is located in the sensing area of the first interactive object, the end position of the drag is determined to indicate that the selected interactive object is the first interactive object. Here, in order to facilitate the user to select the interactive object through the drag operation, the crosshair pattern corresponding to the drag operation may also be displayed, and the crosshair position of the crosshair image is the position indicated by the action point of the drag operation in the virtual scene. In this way, when the drag operation ends and the crosshair position of the crosshair pattern is located in the sensing area of the first interactive object, the end position of the drag is determined to indicate that the selected interactive object is the first interactive object.
[0109] In some embodiments, the target virtual object holds a virtual aiming prop, and the terminal can display the crosshair pattern of the virtual aiming prop; accordingly, after controlling the first interactive control to be in a pressed state, the terminal can receive a selection operation for the first interactive object in the following manner: determining a first distance between the position of each interactive object and the crosshair position of the crosshair image; when the interactive object corresponding to the smallest first distance is the first interactive object, receiving a selection operation for the first interactive object triggered by the first interactive control in the pressed state.
[0110] Here, the target virtual object may hold a virtual aiming prop with an aiming function, such as a virtual shooting prop. At this time, the terminal displays the crosshair pattern of the virtual aiming prop in the interface of the virtual scene. When the user triggers a pressing operation on the first interactive control, an interactive object can be automatically selected through the crosshair pattern, thereby reducing the user's human-computer interaction operations. Specifically, after the first interactive control is controlled to be in a pressed state, the first distance between the position of each interactive object and the crosshair position of the crosshair image is determined; thereby, the interactive object corresponding to the smallest first distance is selected as the first interactive object.
[0111] In some embodiments, the terminal can switch from selecting a first interactive object to selecting a second interactive object in the following manner: in a pressed state, receiving a move operation for a crosshair pattern; when the moving distance of the crosshair pattern reaches a distance threshold, determining a second distance between the position of each interactive object and the crosshair position of the crosshair image; controlling the first interactive object to exit the selected state, and controlling the second interactive object corresponding to the smallest second distance to be in the selected state.
[0112] Here, after an interactive object is selected by default, the user can also switch the selected interactive object by adjusting the position of the crosshair pattern. Specifically, in the pressed state, a movement operation for the crosshair pattern is received; when the movement distance of the crosshair pattern reaches the distance threshold, the second distance between the position of each interactive object and the crosshair position of the crosshair image is determined; thereby controlling the first interactive object to exit the selected state, and controlling the second interactive object corresponding to the smallest second distance to remain in the selected state.
[0113] As an example, see Figure 8 , Figure 8 is a schematic diagram of the selection process of the interactive object provided by the embodiment of the present application. Here, in response to the pressing operation on the first interactive control, the first interactive control is controlled to be in a pressed state, such as Figure 8 As shown in (1); at the same time, in the interface of the virtual scene, the crosshair pattern of the virtual aiming prop is displayed; at this time, by pressing the operation, the first interactive object closest to the accurate pattern is selected by default, that is, the first interactive object is controlled to be in the selected state; receiving the moving operation for the crosshair pattern. At this time, the selected interactive object is switched from the first interactive object to the second interactive object closest to the moved crosshair pattern, that is, the first interactive object is controlled to exit the selected state, and the second interactive object is controlled to be in the selected state, as shown in FIG. Figure 8 As shown in (2).
[0114] Step 103: In response to a selection operation on the first interactive object triggered by the first interactive control in a pressed state, controlling the first interactive object to be in a selected state.
[0115] In step 103, when a selection operation on a first interactive object is received which is triggered by the first interactive control in a pressed state, the first interactive object is controlled to be in a selected state in response to the selection operation on the first interactive object.
[0116] In some embodiments, after the terminal controls the first interactive object to be in a selected state, the first interactive object may be displayed through a first object style; and other interactive objects except the first interactive object among the multiple interactive objects may be displayed through a second object style, and the second object style is different from the first object style. Here, the first object style may be a highlight display style, and the second object style may be a preset grayscale display style, such as Figure 8 Of course, other display styles are also possible and are not limited here.
[0117] Step 104: In response to a release operation for the pressing operation, the target virtual object is controlled to perform an interactive operation associated with the first interactive control for the first interactive object.
[0118] In step 104, the user can trigger the target virtual object's interactive operation on the first interactive object by releasing the pressing operation. In response to the release operation on the pressing operation, the terminal controls the target virtual object to perform the interactive operation associated with the first interactive control on the first interactive object. In this way, by releasing the pressing operation, the interactive operation of the target virtual object on the first interactive object can be automatically triggered, which simplifies the control process of the interactive operation and improves the efficiency of human-computer interaction.
[0119] In some embodiments, the terminal can exit the pressed state in the following manner: displaying a state exit control of the pressed state; when receiving a trigger operation for the state exit control, controlling the first interactive control to exit the pressed state, and when there is a second interactive object in a selected state, controlling the target virtual object to not perform the interactive operation associated with the first interactive control for the second interactive object.
[0120] Here, a state exit control may also be provided for the user to control the first interactive control to exit the pressed state based on the state exit control. It should be noted that the exit pressed state here actually refers to the terminal's selection operation of the interactive object and the interactive operation with the interactive object. Therefore, when a trigger operation for the state exit control is received, if there is a second interactive object in the selected state, the target virtual object will also be controlled to not perform the interactive operation associated with the first interactive control for the second interactive object.
[0121] As an example, see Fig. 9 , Fig. 9 : is a display diagram of the state exit control provided in the embodiment of the present application. Here, when the first interactive control is in the pressed state, the state cancel control "Cancel" is displayed; at the same time, the second interactive object is in the selected state, such as Fig. 9 As shown in (1); in response to the trigger operation of "cancel" on the state cancel control, the first interactive control is controlled to exit the pressed state, and the target virtual object is controlled to not perform the interactive operation associated with the first interactive control on the second interactive object, that is, the second interactive object is controlled to be in an unselected state, such as Fig. 9 As shown in (2).
[0122] By applying the above-mentioned embodiment of the present application, when a pressing operation is received for a first interactive control among at least one interactive control, the first interactive control is controlled to be in a pressed state. At this time, in this pressed state, a selection operation for a first interactive object among multiple interactive objects triggered by the first interactive control can be received to select the first interactive object. When the pressing operation is released, the target virtual object is automatically controlled to perform the interactive operation associated with the first interactive control for the first interactive object. In this way, the selection function of the first interactive object among multiple interactive objects and the function of triggering the interactive operation of the target virtual object for the first interactive object are integrated into one interactive control, which not only improves the utilization rate of display resources, but also reduces the human-computer interaction operations required to achieve the interactive purpose, thereby improving the efficiency of human-computer interaction.
[0123] The following will take a virtual scene as a game scene as an example to illustrate an exemplary application of an embodiment of the present application in an actual application scenario.
[0124] In some embodiments of the present application, the selection and interaction of interactive objects can be achieved through the following interactive methods: 1) Distance restriction type. The player needs to control the virtual object to approach the interactive object to be selected. At this time, the human-computer interaction interface displays the corresponding interactive control, and the player can click the interactive control to interact. However, this interactive method cannot be applied to a large range and there are multiple interactive objects to choose from at the same time. 2) Slide screen selection type. The player aims and selects the interactive object by sliding the screen. At this time, the human-computer interaction interface displays the corresponding interactive control, and the player can click the interactive control to interact. However, this interactive method requires aiming and selecting one by one, and the operation is cumbersome. 3) Direct selection type. The player can directly use his finger to click the displayed interactive button on the interactive object in the game scene to interact. Although this method reduces the steps of selecting interactive objects, a) the interactive control is not necessarily in the operation hot zone; b) the interactive control will move with the player's movement and is difficult to click; c) each interactive object displays the corresponding interactive control, which will cause too much occlusion of the virtual scene.
[0125] Based on this, the embodiment of the present application also provides an interactive method of a virtual scene to at least solve the above-mentioned problems. In the embodiment of the present application, the selection function for the interactive object (i.e., the interactive object) and the function of triggering the interactive operation for the selected interactive object are integrated into an interactive control. In this way, the player can quickly select the first interactive object from multiple interactive objects through an interactive control, such as pressing and dragging the interactive control with one finger, and after the pressing is released, perform the corresponding interactive operation for the first interactive object. Thereby reducing the window period time of the selection operation of the interactive object, simplifying the player's operation steps, and improving the operation efficiency.
[0126] Next, the interactive method of the virtual scene provided in the embodiment of the present application is described in detail.
[0127] 1) When there are multiple interactive objects of the same type in the game scene, and there is only one interactive effect after the interaction (i.e., the interactive operation that can be performed on the multiple interactive objects):
[0128] like Figure 4 As shown, in the initial state, the player can clearly see the interactive object UI and the interactive controls at the preset positions in the game scene.
[0129] like Fig. 9 As shown, when the player wants to achieve interactive effect A on a certain interactive object, the player needs to select the interactive object. At this time, the player can trigger a press operation on the interactive control to control the interactive control to enter the pressed state. Of course, a press cancel control "Cancel" can also be displayed in the pressed state, and the press cancel control can be used to control the interactive control to exit the pressed state.
[0130] In the pressed state, if the game scene includes a crosshair with an aiming function, a) Figure 8 As shown in (1), the system can select the interactive object closest to the crosshair by default. At this time, the UI state of the interactive object is switched from the unselected state to the selected state, so that the player can trigger the interactive effect for the interactive object by releasing the pressing operation. b) Figure 8 As shown in (2), if the player needs to select other objects, they can change the selected interactive object by dragging the pressed finger in the pressed state, for example Figure 8 As shown in (2), the default selected interactive object is changed from "first interactive object" to "second interactive object". At the same time, the UI selection state of the interactive object is changed.
[0131] like Figure 6 As shown, when the interactive control is pressed to select an interactive object, if there are only multiple interactive objects with the same interactive effect in the game scene, the multiple interactive objects can be numbered and selected using a roulette wheel, so that when the player releases the pressing operation, the interactive effect for the selected interactive object is triggered.
[0132] 2) When there are multiple interactive objects of different types in the game scene, different object display styles (such as object icons) can be used to distinguish different types of interactive objects, such as Figure 4 It should be noted that when there are multiple interactive objects in the game scene and multiple interactive effects are applied at the same time, interactive controls corresponding to the interactive effects can be added in the preset area on the screen, and the above interaction method 1) is also applicable. Figure 4 shown.
[0133] Next, the interactive method of the virtual scene provided by the embodiment of the present application is further described. Fig.10 , Fig.10 : is a flowchart of a virtual scene interaction method provided in an embodiment of the present application, including:
[0134] Step 1: First, determine whether the player character meets the prerequisites for stimulating the interactive effect, such as whether it is within the available range of the interactive effect, whether the player character's own state is limited, whether the activation times are met, etc. If the prerequisites for stimulating the interactive effect are met, proceed to step 3; if not, proceed to step 2;
[0135] Step 2: The interactive control is grayed out. You cannot enter the selection operation and the operation ends;
[0136] Step 3: The interactive button lights up, and it is determined whether the interactive object visible on the terminal screen is interactive, such as whether the interactive object exists, whether it is at an interactive time, whether other interactive conditions that have been set are met, etc. If the interactive object is interactive, go to step 5; if the interactive object is not interactive, go to step 4;
[0137] Step 4: The corresponding interactive object UI on the screen is grayed out, and the selection operation cannot be performed. The operation ends.
[0138] Step 5: The corresponding interactive object UI on the screen lights up, and then proceed to step 6;
[0139] Step 6: The player presses the interactive control, and the interactive object UI closest to the crosshair becomes selected;
[0140] Step 7: Check if the player drags his finger. If the player drags his finger, go to step 9; if not, go to step 8;
[0141] Step 8: The UI state of the interactive object remains unchanged. If the pressing operation is released directly, go to step 12; if the finger is dragged again, go to step 9.
[0142] Step 9, determine whether the total dragging distance exceeds the switching threshold, if so, proceed to step 10; if not, return to step 7;
[0143] Step 10, determine whether there are other interactive objects in the dragging direction, if yes, proceed to step 11; if no, proceed to step 8;
[0144] Step 11: The UI status of other interactive objects becomes selected, and the UI status of the current interactive object becomes unselected; if the dragging continues, the process goes to step 9; if the dragging stops, the process goes to step 8;
[0145] Step 12: trigger the interaction effect of the corresponding object.
[0146] By applying the above-mentioned embodiments of the present application, in a game scene where a player selects an interactive object from a variety of interactive objects and releases a corresponding interactive effect, the selection of an interactive object and the triggering of an interactive effect for the interactive object are simplified, thereby improving the operating efficiency. During the interaction process, the player can quickly control the interactive object to release the corresponding interactive effect, thereby enhancing the experience of the game scene.
[0147] The following is a description of an exemplary structure of a virtual scene interaction device 555 provided in an embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules in the interaction device 555 of the virtual scene stored in the memory 550 may include: a display module 5551, which is used to display multiple interactive objects in the virtual scene and display at least one interactive control; wherein the virtual scene includes a target virtual object, the multiple interactive objects include a first interactive object, and the interactive control is associated with an interactive operation for the interactive object; a first control module 5552, which is used to control the first interactive control to be in a pressed state in response to a pressing operation on a first interactive control in the at least one interactive control; a second control module 5553, which is used to control the first interactive object to be in a selected state in response to a selection operation on the first interactive object triggered by the first interactive control in the pressed state; and a third control module 5554, which is used to control the target virtual object to perform the interactive operation associated with the first interactive control on the first interactive object in response to a release operation on the pressing operation.
[0148] In some embodiments, the display module 5551 is further used to determine at least one target interaction operation that can be performed on the multiple interactive objects; and display an interaction control for the at least one target interaction operation, wherein the interaction control is in a one-to-one correspondence with the target interaction operation.
[0149] In some embodiments, the display module 5551 is further used to display corresponding interaction indication information for each of the interaction objects, where the interaction indication information is used to indicate the interaction operations that can be performed on the interaction object.
[0150] In some embodiments, the display module 5551 is also used to perform the following processing for each of the interactive controls: when the activation condition of the interactive control is met, the first control style is used to display the interactive control in an activated state; when the activation condition of the interactive control is not met, the second control style is used to display the interactive control in an inactivated state.
[0151] In some embodiments, the display module 5551 is also used to display multiple interactive objects in the virtual scene and under the first perspective; the first control module 5552 is also used to control the first perspective to be in a locked state after the first interactive control is controlled to be in a pressed state; in the locked state, a selection operation for the first interactive object triggered by the first interactive control in the pressed state is received.
[0152] In some embodiments, the first control module 5552 is also used to receive a press operation on a first interactive control among the at least one interactive control when the press duration for the first interactive control reaches a press duration threshold; or to receive a press operation on a first interactive control among the at least one interactive control when the press strength for the first interactive control reaches a press strength threshold.
[0153] In some embodiments, the display module 5551 is also used to display the state exit control of the pressed state; when a trigger operation for the state exit control is received, the first interactive control is controlled to exit the pressed state, and when there is a second interactive object in a selected state, the target virtual object is controlled to not perform the interactive operation associated with the first interactive control for the second interactive object.
[0154] In some embodiments, the first control module 5552 is also used to receive a drag operation performed starting from the pressing action position of the pressing operation; when the drag end position of the drag operation is used to indicate that the selected interactive object is the first interactive object, a selection operation for the first interactive object triggered by the first interactive control in the pressing state is received.
[0155] In some embodiments, the first control module 5552 is further used to determine that the dragging end position is used to indicate that the selected interactive object is the first interactive object when the dragging end position is in the sensing area of the first interactive object.
[0156] In some embodiments, the first control module 5552 is further used to determine that the dragging end position is used to indicate that the selected interactive object is the first interactive object when the dragging end position is in the area where the selection control of the first interactive object is located.
[0157] In some embodiments, the display module 5551 is also used to display a selection wheel, and the selection wheel is used to display the selection controls of each of the interactive objects in the form of a wheel around the first interactive control; the first control module 5552 is also used to receive a drag operation performed from the pressing position of the pressing operation to the selection control of the first interactive object in the selection wheel.
[0158] In some embodiments, the display module 5551 is also used to display the operation area of the drag operation; the first control module 5552 is also used to receive a drag operation started from the pressing action position of the pressing operation within the operation area; the first control module 5552 is also used to determine that the drag end position is used to indicate that the selected interactive object is the first interactive object when the drag end position is the target position within the operation area; wherein the target position corresponds to the position of the first interactive object.
[0159] In some embodiments, the display module 5551 is also used to display a crosshair pattern corresponding to the dragging operation, and the crosshair position of the crosshair image is the position indicated by the action point of the dragging operation in the virtual scene; the first control module 5552 is also used to determine the dragging end position to indicate that the selected interactive object is the first interactive object when the dragging operation is ended and the crosshair position of the crosshair pattern is located in the sensing area of the first interactive object.
[0160] In some embodiments, the target virtual object holds a virtual aiming prop, and the display module 5551 is also used to display the crosshair pattern of the virtual aiming prop; the first control module 5552 is also used to determine the first distance between the position of each of the interactive objects and the crosshair position of the crosshair image after the first interactive control is controlled to be in a pressed state; when the interactive object corresponding to the smallest first distance is the first interactive object, a selection operation for the first interactive object triggered by the first interactive control in the pressed state is received.
[0161] In some embodiments, the second control module 5553 is also used to receive a moving operation for the crosshair pattern in the pressed state after the first interactive object is controlled to be in the selected state; when the moving distance of the crosshair pattern reaches a distance threshold, determine the second distance between the position of each interactive object and the crosshair position of the crosshair image; control the first interactive object to exit the selected state, and control the second interactive object corresponding to the smallest second distance to be in the selected state.
[0162] In some embodiments, the second control module 5553 is further used to display the first interactive object through a first object style after controlling the first interactive object to be in a selected state; and to display other interactive objects among the multiple interactive objects except the first interactive object through a second object style, and the second object style is different from the first object style.
[0163] By applying the above-mentioned embodiment of the present application, when a pressing operation is received for a first interactive control among at least one interactive control, the first interactive control is controlled to be in a pressed state. At this time, in this pressed state, a selection operation for a first interactive object among multiple interactive objects triggered by the first interactive control can be received to select the first interactive object. When the pressing operation is released, the target virtual object is automatically controlled to perform the interactive operation associated with the first interactive control for the first interactive object. In this way, the selection function of the first interactive object among multiple interactive objects and the function of triggering the interactive operation of the target virtual object for the first interactive object are integrated into one interactive control, which not only improves the utilization rate of display resources, but also reduces the human-computer interaction operations required to achieve the interactive purpose, thereby improving the efficiency of human-computer interaction.
[0164] The embodiment of the present application also provides a computer program product, which includes computer executable instructions or computer programs, and the computer executable instructions or computer programs are stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instructions or computer programs from the computer-readable storage medium, and the processor executes the computer executable instructions or computer programs, so that the electronic device performs the virtual scene interaction method provided in the embodiment of the present application.
[0165] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the processor will execute the virtual scene interaction method provided in the embodiment of the present application.
[0166] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
[0167] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0168] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0169] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.
[0170] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. A virtual scene interaction method, characterized in that: The method comprises: Displaying a plurality of interactive objects in a virtual scene and displaying at least one interactive control; The virtual scene includes a target virtual object, the multiple interactive objects include a first interactive object, and the interactive control is associated with an interactive operation for the interactive object; In response to a pressing operation on a first interactive control among the at least one interactive control, controlling the first interactive control to be in a pressed state; In response to a selection operation on the first interactive object triggered by the first interactive control in the pressed state, controlling the first interactive object to be in a selected state; In response to a release operation for the pressing operation, the target virtual object is controlled to perform an interactive operation associated with the first interactive control for the first interactive object.
2. The method according to claim 1, characterized in that The displaying of at least one interactive control comprises: Determining at least one target interactive operation that can be performed on the multiple interactive objects; An interactive control of the at least one target interactive operation is displayed, wherein the interactive control is in a one-to-one correspondence with the target interactive operation.
3. The method according to claim 1, characterized in that The method further comprises: For each of the interactive objects, corresponding interaction indication information is displayed respectively, and the interaction indication information is used to indicate the interactive operations that can be performed on the interactive object.
4. The method according to claim 1, characterized in that The displaying of at least one interactive control comprises: For each of the interactive controls, the following processing is performed respectively: When the activation condition of the interactive control is met, the first control style is adopted to display the interactive control in an activated state; When the activation condition of the interactive control is not met, the second control style is adopted to display the interactive control in an inactivated state.
5. The method according to claim 1, characterized in that The display of multiple interactive objects in the virtual scene includes: Displaying a plurality of interactive objects in the virtual scene from a first perspective; After controlling the first interactive control to be in a pressed state, the method further includes: Controlling the first viewing angle to be in a locked state; In the locked state, a selection operation on the first interactive object triggered by the first interactive control in the pressed state is received.
6. The method according to claim 1, characterized in that The method further comprises: When the pressing duration for the first interactive control reaches a pressing duration threshold, a pressing operation for the first interactive control among the at least one interactive control is received; or, When the pressing force on the first interactive control reaches a pressing force threshold, a pressing operation on the first interactive control among the at least one interactive control is received.
7. The method according to claim 1, characterized in that The method further comprises: A state exit control showing the pressed state; When a trigger operation for exiting the state control is received, the first interactive control is controlled to exit the pressed state, and When there is a second interactive object in a selected state, the target virtual object is controlled to target the second interactive object without performing the interactive operation associated with the first interactive control.
8. The method according to claim 1, characterized in that After controlling the first interactive control to be in a pressed state, the method further includes: receiving a drag operation performed from a pressing action position of the pressing operation; When the dragging end position of the dragging operation is used to indicate that the selected interactive object is the first interactive object, a selection operation for the first interactive object triggered by the first interactive control in the pressed state is received.
9. The method according to claim 8, characterized in that The method further comprises: When the dragging end position is in the sensing area of the first interactive object, determining the dragging end position is used to indicate that the selected interactive object is the first interactive object.
10. The method according to claim 8, characterized in that The method further comprises: When the dragging end position is in the area where the selection control of the first interactive object is located, determining the dragging end position is used to indicate that the selected interactive object is the first interactive object.
11. The method according to claim 10, characterized in that The method further comprises: Displaying a selection wheel, the selection wheel is used to display selection controls of each of the interactive objects in the form of a wheel around the first interactive control; The receiving of the drag operation started from the pressing action position of the pressing operation includes: A drag operation is received, starting from a pressing action position of the pressing operation and being performed toward a selection control of the first interactive object in the selection wheel.
12. The method according to claim 8, characterized in that The method further comprises: Displaying the operation area of the drag operation; The receiving of the drag operation started from the pressing action position of the pressing operation includes: In the operation area, a drag operation is received starting from a pressing position of the pressing operation; The method further comprises: When the dragging end position is the target position in the operation area, determining the dragging end position is used to indicate that the selected interactive object is the first interactive object; The target position corresponds to the position of the first interactive object.
13. The method according to claim 8, characterized in that The method further comprises: Displaying a crosshair pattern corresponding to the dragging operation, wherein the crosshair position of the crosshair image is the position indicated by the action point of the dragging operation in the virtual scene; The method further comprises: When the dragging operation ends and the crosshair position of the crosshair pattern is located in the sensing area of the first interactive object, determining the dragging end position is used to indicate that the selected interactive object is the first interactive object.
14. The method according to claim 1, wherein: The target virtual object holds a virtual aiming prop, and the method further comprises: Displaying the crosshair pattern of the virtual aiming prop; After controlling the first interactive control to be in a pressed state, the method further includes: Determine a first distance between a position of each of the interactive objects and a crosshair position of the crosshair image; When the interactive object corresponding to the smallest first distance is the first interactive object, a selection operation for the first interactive object triggered by the first interactive control in the pressed state is received.
15. The method according to claim 14, characterized in that After controlling the first interactive object to be in a selected state, the method further includes: In the pressed state, a movement operation for the crosshair pattern is received; When the moving distance of the crosshair pattern reaches a distance threshold, determining a second distance between the position of each interactive object and the crosshair position of the crosshair image; The first interactive object is controlled to exit the selected state, and the second interactive object corresponding to the smallest second distance is controlled to remain in the selected state.
16. The method according to claim 1, wherein: After controlling the first interactive object to be in a selected state, the method further includes: Displaying the first interactive object through a first object style; The other interactive objects among the multiple interactive objects except the first interactive object are displayed through a second object style, and the second object style is different from the first object style.
17. An interactive device for a virtual scene, characterized in that: The device comprises: A display module, used to display multiple interactive objects in a virtual scene and display at least one interactive control; wherein the virtual scene includes a target virtual object, the multiple interactive objects include a first interactive object, and the interactive control is associated with an interactive operation for the interactive object; A first control module, configured to control a first interactive control among the at least one interactive control to be in a pressed state in response to a pressing operation on the first interactive control; a second control module, configured to control the first interactive object to be in a selected state in response to a selection operation on the first interactive object triggered by the first interactive control in the pressed state; The third control module is used to control the target virtual object to perform the interactive operation associated with the first interactive control on the first interactive object in response to a release operation on the pressing operation.
18. An electronic device, characterized in that: The electronic device comprises: A memory for storing computer executable instructions; A processor, configured to implement the virtual scene interaction method described in any one of claims 1 to 16 when executing the computer executable instructions stored in the memory.
19. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that: When the computer executable instructions or computer programs are executed by a processor, the virtual scene interaction method described in any one of claims 1 to 16 is implemented.
20. A computer program product comprising computer executable instructions or a computer program, characterized in that When the computer executable instructions or computer programs are executed by a processor, the virtual scene interaction method described in any one of claims 1 to 16 is implemented.
Citation Information
Cited By
Interaction method and device in virtual scene, electronic equipment, computer readable storage medium and computer program product
CN119971482A
Interaction method and device in virtual scene, electronic device, computer readable storage medium and computer program product
CN119971482B
Interface display control method and device, electronic equipment and storage medium
CN119971515A
Interface display control method and device, electronic equipment and storage medium
CN119971515B
Interaction method and apparatus in virtual scene, electronic device, computer-readable storage medium, and computer program product
WO2026200444A1
