Method and device for item interaction in virtual scene, electronic device, and computer program
The method and device enhance virtual scene interaction by automatically selecting and displaying interaction-ready items and their controls, reducing manual selection and enhancing efficiency.
Patent Information
- Application Number
- JP2024532934
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-06-02
- Filing Date
- 2023-03-31
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2043-03-31
AI Technical Summary
Existing human-computer interaction technologies in virtual scenes face challenges in identifying the appropriate virtual item for interaction, leading to increased trial and error, which wastes computing and communication resources and affects the smooth execution of virtual scenes.
A method and device that automatically select and display a virtual item with interaction functionality and its corresponding controls, eliminating the need for manual selection by the user, and provide switching controls for multiple items.
Improves human-computer interaction efficiency by directly displaying the recommended virtual item and its controls, reducing manual selection processes and optimizing resource utilization.
Smart Images

Figure 2024541655000001_ABST
Abstract
Description
[Technical field]
[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) This application is filed based on a Chinese patent application bearing application number 202210625554.5, filed with the China Patent Office on June 2, 2022, and claims priority to the Chinese patent application, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to human-computer interaction (HCI) technology, and in particular to a method and apparatus for item interaction in a virtual scene, an electronic device, a computer-readable storage medium, and a computer program product. [Background technology]
[0003] Display technology based on graphics processing hardware has expanded the channels for sensing the environment and acquiring information. In particular, multimedia technology for virtual scenes can realize diverse interactions between virtual objects controlled by users or artificial intelligence according to actual application needs through human-computer interaction engine technology, and has various typical application scenarios, such as simulating the process of competition between virtual objects in virtual scenes such as games.
[0004] A virtual scene is usually arranged with multiple virtual items with interaction functions, so that the virtual object can be controlled to interact with the virtual items, for example, behavioral interaction such as making the virtual object sit in a chair, or functional interaction such as opening a supply box to display multiple supplies for the virtual object to select. In the related technology, it is difficult to identify the virtual item with which the player is currently interacting, and the user needs to repeat trial and error many times to find the appropriate virtual item, which increases the complexity of human-computer interaction, and the repeated trial and error wastes computing and communication resources, and further affects the smooth running of the virtual scene. Summary of the Invention [Problem to be solved by the invention]
[0005] The present embodiments provide a virtual scene item interaction method and device, an electronic device, a computer-readable storage medium, and a computer program product, which can improve human-computer interaction efficiency by recommending virtual items to a user for interaction. [Means for solving the problem]
[0006] The technical solution of the present embodiment is realized as follows.
[0007] An embodiment of the present application provides a method for item interaction in a virtual scene, performed by an electronic device, the method comprising: displaying at least a portion of the virtual scene in a human-computer interaction interface, the at least a portion of the virtual scene including a virtual object; In response to at least two virtual items having an interaction function appearing in the at least a portion of the area, indicating that a first virtual item of the at least two virtual items is in a selected state; displaying at least one interaction control corresponding to the first virtual item, the interaction control being used to trigger execution of the interaction function corresponding to the interaction control, the interaction function being used to cause the virtual object to interact with the first virtual item.
[0008] An embodiment of the present application provides an apparatus for item interaction in a virtual scene, the apparatus comprising: a first display module configured to display at least a portion of the virtual scene in a human-computer interaction interface, the at least a portion of the virtual scene including a virtual object; The first display module is further configured to, in response to at least two virtual items having an interaction function appearing in the at least a portion of the area, display a first virtual item of the at least two virtual items being in a selected state and display at least one interaction control corresponding to the first virtual item, where the interaction control is used to trigger execution of the interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item.
[0009] An embodiment of the present application provides a method for item interaction in a virtual scene, performed by an electronic device, the method comprising: displaying at least a portion of the virtual scene in a human-computer interaction interface, the at least a portion of the virtual scene including a virtual object; In response to at least two virtual items appearing in the at least a portion of the area, displaying a first virtual item having an interaction function among the at least two virtual items and at least one interaction control corresponding to the first virtual item based on a selection state, where the interaction control is used to trigger execution of the interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item; and for at least one second virtual item not in the selected state, displaying a toggle control corresponding to the at least one second virtual item, where the toggle control is used to trigger display of an interaction control corresponding to the at least one second virtual item.
[0010] An embodiment of the present application provides an apparatus for item interaction in a virtual scene, the apparatus comprising: a second display module configured to display at least a portion of the virtual scene in a human-computer interaction interface, the at least a portion of the virtual scene including a virtual object; The second display module is further configured to, in response to at least two virtual items appearing in the at least a portion of the area, display a first virtual item having an interaction function among the at least two virtual items and at least one interaction control corresponding to the first virtual item based on a selection state, where the interaction control is used to trigger execution of the interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item; The second display module is further configured to, for at least one second virtual item not in the selected state, display a switching control corresponding to the at least one second virtual item, where the switching control is used to trigger display of an interaction control corresponding to the at least one second virtual item.
[0011] An embodiment of the present application provides an electronic device, the electronic device comprising: a memory configured to store computer-executable instructions; A processor configured to execute computer-executable instructions stored in the memory to implement a method for item interaction in a virtual scene according to an embodiment of the present disclosure.
[0012] An embodiment of the present application provides a computer-readable storage medium having stored thereon computer-executable instructions which, when executed by a processor, cause the processor to perform a method for item interaction in a virtual scene according to an embodiment of the present application.
[0013] An embodiment of the present application provides a computer program product comprising computer-executable instructions that, when executed by a processor, cause the processor to perform a method for item interaction in a virtual scene according to an embodiment of the present application. Effect of the Invention
[0014] The present embodiment has the following beneficial effects:
[0015] In response to at least two virtual items having an interaction function appearing in at least a portion of the area, a first virtual item of the at least two virtual items is displayed as being in a selected state, and at least one interaction control corresponding to the first virtual item is displayed, thereby directly displaying the automatically selected first virtual item and its corresponding interaction control to the player, thus eliminating the process of the player manually selecting the virtual item with which to currently interact, thereby improving human-computer interaction efficiency. [Brief description of the drawings]
[0016] [Figure 1A] 1 is a schematic diagram of an interface of an item interaction method in a virtual scene according to the related art; [Figure 1B] 1 is a schematic diagram of an interface of an item interaction method in a virtual scene according to the related art; [Diagram 2] FIG. 2 is an exemplary structural diagram of an item interaction system in a virtual scene according to an embodiment of the present application; [Diagram 3] 1 is an exemplary structural diagram of an electronic device according to an embodiment of the present application; [Figure 4A] 1 is an exemplary flowchart of a method for item interaction in a virtual scene according to an embodiment of the present disclosure. [Figure 4B] 1 is an exemplary flowchart of a method for item interaction in a virtual scene according to an embodiment of the present disclosure. [Figure 4C] 1 is an exemplary flowchart of a method for item interaction in a virtual scene according to an embodiment of the present disclosure. [Figure 5A] 1 is a schematic diagram of an interface of an item interaction method in a virtual scene according to an embodiment of the present disclosure; [Figure 5B] 1 is a schematic diagram of an interface of an item interaction method in a virtual scene according to an embodiment of the present disclosure; [Figure 5C]1 is a schematic diagram of an interface of an item interaction method in a virtual scene according to an embodiment of the present disclosure; [Figure 5D] 1 is a schematic diagram of an interface of an item interaction method in a virtual scene according to an embodiment of the present disclosure; [Figure 5E] 1 is a schematic diagram of an interface of an item interaction method in a virtual scene according to an embodiment of the present disclosure; [Figure 6] 1 is an exemplary flowchart of a method for item interaction in a virtual scene according to an embodiment of the present disclosure. [Figure 7A] 1 is a schematic diagram of an overlapping area of an item interaction method in a virtual scene according to an embodiment of the present disclosure; [Figure 7B] 1 is a schematic diagram of an overlapping area of an item interaction method in a virtual scene according to an embodiment of the present disclosure; [Figure 8A] FIG. 2 is a schematic diagram of calculation of overlapping area of the virtual scene item interaction method according to an embodiment of the present application; [Figure 8B] FIG. 2 is a schematic diagram of calculation of overlapping area of the virtual scene item interaction method according to an embodiment of the present application; [Figure 8C] FIG. 2 is a schematic diagram of calculation of overlapping area of the virtual scene item interaction method according to an embodiment of the present application; [Figure 8D] FIG. 2 is a schematic diagram of calculation of overlapping area of the virtual scene item interaction method according to an embodiment of the present application; [Figure 8E] FIG. 2 is a schematic diagram of calculation of overlapping area of the virtual scene item interaction method according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in more detail hereinafter with reference to the drawings, and the described embodiments should not be understood as limitations to the present application, and all other embodiments obtained by those skilled in the art without creative efforts shall be included in the protection scope of the present invention.
[0018] In the following description, the term "some embodiments" refers to a subset of all possible embodiments, and it is understood that the terms "some embodiments" may refer to the same or different subsets of all possible embodiments, which may be combined with each other without conflict.
[0019] The terms "first / second / third" referred to in the following description are merely intended to distinguish between similar objects and do not represent a particular order of the objects, and it is to be understood that "first / second / third" may, in some cases, be interchangeable with a particular order or precedence, whereby the embodiments of the present application described herein may be performed in an order other than that illustrated or described.
[0020] Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. The terms used herein are for the purpose of describing the present application only and are not intended to be limiting of the present application.
[0021] Before describing the present embodiment in more detail, the nouns and terms referred to in the present embodiment will be explained. The nouns and terms referred to in the present embodiment have the following interpretations.
[0022] 1) Regarding "virtual scene," a scene different from the real world output by a device can be used to form visual detection of the virtual scene with the naked eye or with the aid of a device, such as a two-dimensional image output by a display screen, or a three-dimensional image output using stereoscopic display technologies such as stereoscopic projection, virtual reality, and augmented reality technology. Furthermore, various possible hardware can be used to form various detections that simulate the real world, such as auditory detection, tactile detection, olfactory detection, and motion detection.
[0023] 2) The term “in response to…” refers to a condition or state upon which the operation to be performed depends, and when the dependent condition or state is satisfied, the operation or operations to be performed may be performed in real time or may have a configured delay, and unless otherwise specified, there is no execution order restriction between the operations to be performed.
[0024] 3) "Client" refers to an application that runs on a terminal to provide various services, such as a game client.
[0025] 4) “Interaction item” refers to a virtual item with an interaction function, and a player controls a virtual object to interact with the interaction item. For example, if a virtual object can ride a “vehicle”, the “vehicle” belongs to an interaction item; if a virtual object cannot interact with a table in a building, the “table” does not belong to an interaction item, but is just a normal virtual item.
[0026] Referring to Fig. 1A, a plurality of virtual items 302A of virtual objects are displayed in the human-computer interaction interface 301A, and the virtual items 302A are obtained by range identification or sight identification, and in response to a trigger operation on the interaction control 303A of each virtual item 302A, a pick-up operation of the corresponding virtual item 302A is completed. Referring to Fig. 1B, a synthesis table 302B and a non-player-controlled character 303B are displayed in the human-computer interaction interface 301B, and the synthesis table 302B and the non-player-controlled character 303B are obtained by range identification, and in response to a trigger operation on the interaction control 304B of the synthesis table 302B, the synthesis table is triggered to perform synthesis processing.
[0027] In the related art, there is no interaction priority between interactable virtual items, there is no indication of which virtual item should be preferentially interacted with in a virtual scene, and no interaction mechanism is set up between a virtual object and multiple interactable virtual items.
[0028] In the related technology, the player can place interactable virtual items in the virtual scene, so there are more possibilities for the planar and spatial positions of the virtual items, and the rules for realizing accurate interactions between virtual objects and virtual items are more complicated, making it difficult to realize accurate interactions. Furthermore, there may be different interaction actions between a virtual object and multiple interactable virtual items, so the player cannot determine which virtual item the virtual object will interact with. In the related technology, there is no interaction priority between interactable virtual items, there is no presentation to clarify which virtual item should be preferentially interacted with in the virtual scene, and no interaction mechanism is set between a virtual object and multiple interactable virtual items, so it is difficult to realize accurate interactions when multiple virtual items exist.
[0029] The present embodiment provides a method and apparatus for item interaction in a virtual scene, an electronic device, a computer-readable storage medium, and a computer program product, which can improve human-computer interaction efficiency by recommending virtual items to a user to interact with. The following describes exemplary applications of the electronic device according to the present embodiment, which may be implemented as various types of user terminals, such as notebook computers, tablet computers, desktop computers, set-top boxes, and mobile devices (e.g., mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable game consoles, and virtual reality hardware devices).
[0030] The item interaction method for a virtual scene according to an embodiment of the present application can be applied to a virtual reality hardware device, and the virtual scene may be output entirely by the virtual reality hardware device or may be output jointly by a terminal and a server, in which the server calculates scene display data of the virtual scene, the scene display data including item display data of a first virtual item in a selected state, transmits the scene display data to the virtual reality hardware device, displays at least a portion of an area of the virtual scene including virtual objects on the virtual reality hardware device, displays at least two virtual items having an interaction function in at least a portion of the area, displays a first virtual item in a selected state among the at least two virtual items, and displays at least one interaction control corresponding to the first virtual item. An interaction tool of the virtual reality hardware device receives a trigger operation of an account for an interaction control, the virtual reality hardware device transmits operation data of the trigger operation to a server via a network, the server calculates response data of an interaction function corresponding to the interaction control based on the operation data, the server transmits the response data to the virtual reality hardware device via the network, and displays the interaction process between the virtual object and the virtual item on the virtual reality hardware device based on the response data.
[0031] In order to make it easier to understand the item interaction method for a virtual scene according to an embodiment of the present application, we will first describe an exemplary implementation scenario of the item interaction method for a virtual scene according to an embodiment of the present application, in which the virtual scene may be output entirely by the terminal, or may be output jointly by the terminal and the server.
[0032] In some embodiments, the virtual scene may be an environment for interaction of game characters, for example a virtual scene in which game characters compete against each other in the virtual scene.
[0033] In one implementation scenario, refer to FIG. 2, which is a schematic diagram of an application scenario of the virtual scene item interaction method according to an embodiment of the present application, which is applied to a terminal 400 and a server 200, and is generally applied to an application scenario in which the computing capability of the server 200 is relied upon to perform calculations of the virtual scene and output the virtual scene to the terminal 400.
[0034] As an example, a user logs into a client (e.g., an online version of a game application) running on the terminal 400 through an account, the server 200 calculates scene display data of a virtual scene, where the scene display data includes item display data of a first virtual item in a selected state, transmits the scene display data to the terminal 400, and displays, in a human-computer interaction interface of the client, at least a portion of the area of the virtual scene including virtual objects, displays at least two virtual items having an interaction function in at least a portion of the area, displays a first virtual item in a selected state among the at least two virtual items, and displays at least one interaction control corresponding to the first virtual item. The terminal 400 receives a trigger operation of an account for the interaction control, the terminal 400 transmits operation data of the trigger operation to the server 200 via the network 300, the server 200 calculates response data of an interaction function corresponding to the interaction control based on the operation data, the server 200 transmits the response data to the terminal 400 via the network 300, and displays the interaction process between the virtual object and the virtual item on the human-computer interaction interface of the terminal 400 based on the response data.
[0035] As an example, a user logs into a client (e.g., an online version of a game application) executed on the terminal 400 through an account, the client calculates scene display data of a virtual scene, the scene display data includes item display data of a first virtual item in a selected state, displays at least a portion of the virtual scene including a virtual object, displays at least two virtual items having an interaction function in at least a portion of the region, displays the first virtual item in a selected state among the at least two virtual items, and displays at least one interaction control corresponding to the first virtual item. The terminal 400 receives a trigger operation of the account for the interaction control, the client calculates response data of an interaction function corresponding to the interaction control based on the operation data, and displays an interaction process between the virtual object and the virtual item in the human-computer interaction interface of the terminal 400 based on the response data.
[0036] In some embodiments, the terminal 400 can realize the virtual scene item interaction method according to the present embodiment by executing a computer program. For example, the computer program may be a native program or software module in an operating system, a native application (APP), i.e., a program that needs to be installed in an operating system for execution (such as a game APP (i.e., the above-mentioned client) or a live APP), or a mini-program, i.e., a program that can be executed simply by downloading it to a browser environment, or a game mini-program that can be embedded in any APP. In short, the above-mentioned computer program may be any form of application, module, or plug-in.
[0037] The embodiments of the present application can be realized using Cloud Technology, which is a hosting technology that integrates a set of resources such as hardware, software, and networks within a wide area network or a local area network to realize computing, storage, processing, and sharing of data.
[0038] Cloud technology is a collective term for network technology, information technology, integration technology, management platform technology, and application technology based on cloud computing business model application, which can form a resource pool and be used as needed, flexible and convenient. Cloud computing technology is an important support. The back-end service of technical network systems requires a large amount of computing and storage resources.
[0039] As an example, the server 200 may be an independent physical server, a server cluster or a distributed system consisting of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, big data and artificial intelligence platforms. The terminal 400 may be, but is not limited to, a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal 400 and the server 200 may be directly or indirectly connected by a wired or wireless communication method, and are not limited in the embodiment of the present application.
[0040] Referring to FIG. 3, FIG. 3 is an exemplary structural diagram of an electronic device applying the virtual scene item interaction method according to the embodiment of the present application, and is taken as an example to describe that the electronic device is a terminal. The terminal 400 shown in FIG. 3 includes at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. Each component in the terminal 400 is coupled by a bus system 440. It can be understood that the bus system 440 is used to realize the connection communication between these components. In addition to the data bus, the bus system 440 further includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, various buses are denoted as the bus system 440 in FIG. 3.
[0041] The processor 410 may be an integrated circuit chip having signal processing capabilities, such as a general purpose processor, a digital signal processor (DSP), or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc., where the general purpose processor may be a microprocessor or any conventional processor, etc.
[0042] The user interface 430 includes one or more output devices 431 that enable media content to be presented, said output devices 431 including one or more speakers and / or one or more visual display screens, and further includes one or more input devices 432 that include user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons or controls, etc.
[0043] Memory 450 may be removable, non-removable, or a combination thereof, and example hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. Memory 450 may include one or more storage devices that are separate in physical location from processor 410.
[0044] The memory 450 may include volatile or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be read only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 450 described in the present embodiments is intended to include any suitable type of memory.
[0045] In some embodiments, memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as illustratively described below.
[0046] The operating system 451 includes system programs for processing various basic system services and executing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., which are used to realize various basic services and process hardware-based tasks.
[0047] The network communications module 452 is configured to reach other electronic devices via one or more (wired or wireless) network interfaces 420, illustratively including Bluetooth® technology, Wireless Fidelity (Wi-Fi), Universal Serial Bus (USB), and the like.
[0048] The presentation module 453 is configured to present information via one or more output devices 431 (e.g., a display, a speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripherals and displaying content and information).
[0049] The input processing module 454 is configured to detect one or more user inputs or interactions from one or more input devices 432 and to interpret the detected inputs or interactions.
[0050] In some embodiments, the virtual scene item interaction device according to the embodiments of the present application can be implemented in a software form, and FIG. 3 shows a virtual scene item interaction device 455-1 stored in memory 450, which may be software in the form of a program, plug-in, etc. and includes a first display module 4551; FIG. 3 further shows a virtual scene item interaction device 455-2 stored in memory 450, which may be software in the form of a program, plug-in, etc. and includes a second display module 4552; these modules are logical and can be combined or divided arbitrarily according to the functions to be realized; the functions of each module are described below.
[0051] The method for item interaction in a virtual scene according to the embodiment of the present application will now be described with reference to exemplary applications and implementations of a terminal according to the embodiment of the present application.
[0052] In the following, the virtual scene item interaction method according to the embodiment of the present application will be described, and as mentioned above, the electronic device for implementing the virtual scene item interaction method according to the embodiment of the present application may be a terminal device, so the following will not repeatedly describe the execution subject of each step.
[0053] Referring to FIG. 4A, FIG. 4A is an exemplary flowchart of an item interaction method in a virtual scene according to an embodiment of the present application, which will be described with reference to steps 101 to 102 shown in FIG. 4A.
[0054] In step 101, at least a portion of a region in a virtual scene is displayed in a human-computer interaction interface.
[0055] As an example, at least a portion of the region includes a virtual object, and at least a portion of the region of the virtual scene that includes the virtual object can be displayed in the human-computer interaction interface, where at least a portion of the region can be all of the region or a portion of the region, and the virtual object can be completely displayed in the human-computer interaction interface (i.e., the entire virtual object is displayed) or partially displayed in the human-computer interaction interface (e.g., the upper body of the virtual object is displayed).
[0056] In step 102, in response to at least two virtual items having an interaction function appearing in at least a portion of the area, a first virtual item of the at least two virtual items is displayed as being in a selected state, and at least one interaction control corresponding to the first virtual item is displayed.
[0057] As an example, referring to FIG. 5B, the human-computer interaction interface 501B displays a chair 502B and a supply box 503B, both of which are virtual items, the chair 502B is a first virtual item, and a selected mark 504B is displayed on the chair 502B (indicating that it is in a selected state). The human-computer interaction interface further displays an interaction control 505B for the chair 502B, and in response to a trigger operation on the interaction control 505B, a virtual object 506B sits on the chair 502B, the number of first virtual items is one, the first virtual item that is in a selected state is displayed, and a corresponding interaction control is displayed, thereby clearly indicating to the user which virtual item to preferentially interact with.
[0058] As an example, an interaction control is used to trigger the execution of an interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item. The first virtual item can correspond to one interaction control or multiple interaction controls, for example, if the first virtual item is a chair, there is a corresponding interaction control called "sit", and when the "sit" interaction control is triggered, the virtual object is controlled to sit in the chair, and if the first virtual item is a vehicle, there are corresponding interaction controls called "drive" and "ride", and when the "drive" interaction control is triggered, the virtual object is controlled to enter the driver's seat of the vehicle.
[0059] As an example, the at least two virtual items with interaction capabilities may be located anywhere within a portion of the area, or the at least two virtual items with interaction capabilities may be within an interaction range of a virtual object, the interaction range being a circle centered on the virtual object and with a radius of a specified distance.
[0060] As an example, the interaction range of the virtual object is at least a portion of the area displayed in the human-computer interaction interface, or the interaction range of the virtual object may be located within at least a portion of the area displayed in the human-computer interaction interface, i.e., the interaction range of the virtual object is a sub-area of at least a portion of the area displayed in the human-computer interaction interface.
[0061] In response to at least two virtual items having an interaction function appearing in at least a portion of the area, a first virtual item of the at least two virtual items is displayed as being in a selected state, and at least one interaction control corresponding to the first virtual item is displayed, thereby directly displaying the automatically selected first virtual item and its corresponding interaction control to the player, thus eliminating the process of the player manually selecting the virtual item with which to currently interact, thereby improving human-computer interaction efficiency.
[0062] For example, in response to a change in the orientation of the virtual object in the virtual scene or a movement of the virtual object in the virtual scene, a third virtual item among the at least two virtual items is displayed as being in a selected state and a first virtual item is displayed as being in a non-selected state, for example, when the position of the virtual object changes from the first virtual item to the third virtual item, and the distance between the virtual object and the first virtual item is greater than a first distance threshold and the distance between the virtual object and the third virtual item is less than a second distance threshold, the most suitable virtual item for interacting with the virtual object is changed from the first virtual item to the third virtual item, so that the third virtual item is automatically displayed as being in a selected state and the first virtual item is displayed as being in a non-selected state. According to the embodiment of the present application, the automatically selected virtual item is adaptively adjusted based on the position and direction relationship between the virtual object and the virtual item, thereby improving the efficiency of human-computer interaction and the degree of intelligence of the virtual scene.
[0063] In some embodiments, in response to at least two virtual items having an interaction function appearing in at least a portion of the region, a first display scheme is applied to the at least two virtual items in at least a portion of the region, where the salience of the first display scheme is positively correlated with the feature values of the at least two virtual items, and the feature values include at least one of the following: a frequency of use of the virtual items, a distance between the virtual items and the virtual object, and a direction angle between the virtual items and the virtual object. By applying first display schemes with different salience to the virtual items, the differences between the virtual items can be reflected, and more information can be presented to the user, such as comparative information of frequency of use, comparative information of distance, etc., so as to enrich the information that the player obtains through the human-computer interaction interface, and help improve the user experience and information display efficiency.
[0064] As an example, the direction angle of a virtual object can be obtained in the following manner: A first connecting line between the virtual item and the virtual object is obtained, a first ray with the virtual object as an end point and facing the sight direction (the direction of the virtual object) is obtained, and the angle between the first connecting line and the first ray is set as the direction angle between the virtual item and the virtual object, and the direction angle indicates the degree of deviation of the virtual item from the virtual object.
[0065] As an example, a virtual item in the human-computer interaction interface may be displayed according to a first display manner, for example, the first display manner may be applying a stroke special effect to the virtual item, where the stroke special effect is a special effect that deepens the lines of the virtual item. Referring to FIG. 5D , a chair 502D and a supply box 503D are displayed in a human-computer interaction interface 501D, where the chair and the supply box are both virtual items, and the salience of the chair is higher than the salience of the supply box, for example, the chair is used more frequently than the supply box, so the salience of the chair is higher than the salience of the supply box, or the distance between the chair and the virtual object is greater than the distance between the supply box and the virtual object, so the salience of the chair is higher than the salience of the supply box.
[0066] In some embodiments, in response to at least two virtual items having an interaction function appearing in at least a portion of the area, a first display scheme is applied to the at least two virtual items in the human-computer interaction interface, and a second display scheme is applied to other virtual items in the human-computer interaction interface, where the second display scheme is different from the first display scheme, and the other virtual items do not have the interaction function. By applying different display schemes to the virtual items having the interaction function and the virtual items not having the interaction function, the player is prompted to pay attention to the virtual items having the interaction function, which can enrich the information the player obtains through the human-computer interaction interface and help improve the user experience and information display efficiency.
[0067] As an example, referring to FIG. 5E, a chair 502E and a supply box 503E are displayed in a human-computer interaction interface 501E, and a stone 504E is further displayed in the human-computer interaction interface, where the chair 502E and the supply box 503E are virtual items having an interaction function (the chair 502E and the supply box 503E are a first virtual item), and the stone 504E is another virtual item not having an interaction function (the stone 504E is another virtual item), whereby a first display method based on stroke special effects is applied to the chair 502E and the supply box 503E, and a second display method of non-stroke special effects is applied to the stone 504E, and the first display method is not limited to stroke special effects, and there may be a difference between the first display method and the second display method.
[0068] In some embodiments, before displaying that a first virtual item of the at least two virtual items is in a selected state, a first sectorial area is determined with the virtual object as a center, a set distance as a radius, and a first angle as a central angle, where an orientation of the virtual object overlaps with a corner bisector of the central angle of the first sectorial area, and at least one first candidate virtual item that overlaps with the first sectorial area is determined, where a projection area of the virtual scene of the first candidate virtual item onto the ground overlaps with the first sectorial area, and one of the at least one first candidate virtual items is determined to be the first virtual item.
[0069] As an example, referring to FIG. 8A, the ground is a plane consisting of XY coordinate axes, and a first sector 804A (sight field of view) is obtained with the position of virtual object 803A as the center and a set distance r as the radius. The area occupied by the first sector here is the first sector area, and the ray of light of the virtual object facing the sight direction (i.e., the direction of the virtual object) is the bisector of the corner of the first sector. FIG. 8A shows a projection 801A of virtual item A1 onto the ground in the virtual scene and a projection 802A of virtual item A2 onto the ground in the virtual scene. Since only the projections of the two virtual items are superimposed on the first sector 804A, this indicates that two first candidate virtual items are within the sight field of view, and one of the two first candidate virtual items is set as the first virtual item. For example, the virtual item A1 corresponding to the projection 801A shown in FIG. 8A is set as the first virtual item.
[0070] In some embodiments, determining one of the at least one first candidate virtual item as the first virtual item can be realized by the following technical solutions: if the first sector area includes one first candidate virtual item, determine the first candidate virtual item as the first virtual item; if the first sector area includes two first candidate virtual items, determine the first candidate virtual item whose first overlapping area is relatively larger as the first virtual item, and the first overlapping area is the overlapping area between the first candidate virtual item and the first sector area. When the first sectorial area includes at least three first candidate virtual items, the method executes a process of determining a second sectorial area with the virtual object as its center, the set distance as its radius, and a second angle as its central angle, where the orientation of the virtual object overlaps with a bisector of the angle of the central angle of the second sectorial area, and the second angle is smaller than the first angle; a process of determining at least one second candidate virtual item that overlaps with the second sectorial area, where a projection area of the virtual scene of the second candidate virtual item onto the ground overlaps with the second sectorial area; and a process of designating the second candidate virtual item having the largest area of the second overlapping area as the first virtual item, where the second overlapping area is an overlapping area of the second candidate virtual item and the second sectorial area. According to the embodiment of the present application, a first virtual item that is preferentially recommended in various scene environments is clearly determined, and the first virtual item is the virtual item that is most convenient for the player to operate, so that the trial and error process of the player to find a virtual item that is inconvenient to interact with is omitted, thereby effectively improving the user experience and the efficiency of human-computer interaction.
[0071] As an example, referring to FIG. 8A, the ground is a plane consisting of XY coordinate axes, and a first sector 804A (sight field of view) is obtained with the position of virtual object 803A as the center and a set distance r as the radius, where the area occupied by the first sector is the first sector area, and the ray of light of the virtual object facing the sight direction (i.e., the direction of the virtual object) is the bisector of the angle of the first sector. FIG. 8A shows a projection 801A of virtual item A1 onto the ground in the virtual scene and a projection 802A of virtual item A2 onto the ground in the virtual scene, and only the projections of the two virtual items are superimposed on the first sector 804A, which indicates that two first candidate virtual items are within the sight field, and one of the two first candidate virtual items is the first virtual item. Since the virtual object has a higher priority for interaction with the first candidate virtual item having a larger proportion of the projection in the sight field, the first candidate virtual item having a relatively large overlapping area between the projection and the first sector area can be directly used as the first virtual item with which the virtual object has a higher priority for interaction. For example, the virtual item A1 corresponding to the projection 801A shown in FIG. 8A is set as the first virtual item with which the virtual object has a higher priority for interaction.
[0072] As an example, referring to FIG. 8B, the ground is a plane consisting of XY coordinate axes, the position of the virtual object 804B is set as the center of the circle, and a first sector 805B (first sight field) is obtained with a radius of a set distance r. The area occupied by the first sector here is the first sector area, and the ray of the virtual object facing the sight direction (i.e., the direction of the virtual object) is the bisector of the angle of the first sector 805B. FIG. 8B shows a projection 801B of the virtual item B1 onto the ground in the virtual scene, a projection 802B of the virtual item B2 onto the ground in the virtual scene, and a projection 803B of the virtual item B3 onto the ground in the virtual scene. Since the projections of the three first candidate virtual items are superimposed on the first sector 805B, this indicates that there are at least three first candidate virtual items within the first sight field. Therefore, a second sight field can be obtained to determine the first candidate virtual item to be preferentially interacted with, and the position of the virtual object 804B is set as the center of the circle, A second sector 806B (second sight field) with a radius of the set distance r is acquired, the area occupied by the second sector is the second sector area, the ray of the virtual object facing the sight direction (i.e., the direction of the virtual object) is the bisector of the angle of the second sector 806B, the second sector is smaller than the first sector (the central angle of the second sector is smaller than the central angle of the first sector), the virtual item B1, the virtual item B2, and the virtual item B3 are all within the first sight field, and the virtual items B1 and B2 are Since both virtual item B1 and virtual item B2 are within the second sight field of view, and virtual item B3 is not within the second sight field of view, virtual item B1 and virtual item B2 are second candidate virtual items, and the second candidate virtual item having the largest overlapping area between the projection and the second sector area can be directly used as the first virtual item to be preferentially interacted with, that is, the second candidate virtual item B2 corresponding to the projection 802B shown in FIG. 8B can be the first virtual item to be preferentially interacted with.
[0073] In some embodiments, before displaying that a first virtual item of the at least two virtual items is in a selected state, the method performs one of the following operations: sorting the at least two virtual items according to a usage frequency, and taking the first virtual item as the top virtual item after sorting, where the usage frequency is the usage frequency of the current virtual object or the usage frequency of all virtual objects; sorting the at least two virtual items according to a scene distance, and taking the first virtual item as the top virtual item after sorting, where the scene distance is the distance between the virtual item and the virtual object in the virtual scene; sorting the at least two virtual items according to a last usage time, and taking the first virtual item as the top virtual item after sorting, where the last usage time is the time when the virtual object last used the virtual item. The above sorting method can clearly and explicitly define the first virtual item to be displayed in the selected state, so that the user does not need to manually select the virtual item, which improves human-computer interaction efficiency, and further improves the utilization of display resources by only displaying the interaction control of the top virtual item after sorting.
[0074] As an example, the above sorting process may be an ascending sorting process or a descending sorting process. In order to recommend an optimal first virtual item to a user, when sorting based on frequency of use and last use time, a descending sorting method can be adopted, and when sorting based on scene distance, an ascending sorting method can be adopted, that is, the first virtual item is the virtual item that is most frequently used among the at least two virtual items, or the virtual item that is closest to the virtual object among the at least two virtual items, or the virtual item that was last used by the virtual object among the at least two virtual items.
[0075] In some embodiments, before displaying that a first virtual item of the at least two virtual items is in a selected state, historical interaction data and item parameters for the at least two virtual items in the virtual scene are obtained, the historical interaction data for each virtual item includes scene parameters for each use of the virtual item, and the following steps are performed: extracting scene features from the scene parameters and extracting item features from the item parameters through a first neural network model; performing a fusion process on the scene features and the item features to obtain a first fusion feature; mapping the first fusion feature to a first probability that each virtual item fits the virtual scene; and sorting the at least two virtual items according to descending order of the first probability, and taking the top virtual item after sorting as the first virtual item. The neural network model can improve the degree of intelligence and accuracy of displaying the interaction control of the first virtual item, and can effectively improve the efficiency of interaction between the user and the virtual items, and the manner of displaying only the interaction control of the top virtual item after sorting can effectively improve the utilization efficiency of display resources.
[0076] As an example, the historical interaction data for each virtual item includes scene parameters for each use of the virtual item, where the scene parameters include match data, environmental data, and virtual object state data, etc., and the item parameters are parameters of the virtual item itself, such as the use of the virtual item.
[0077] The following describes how to train the above neural network model: Collect sample scene parameters and sample item parameters of each sample virtual item from a sample virtual scene, construct a training sample according to the collected sample scene parameters and sample item parameters, use the training sample as the input of the neural network model to be trained, and use whether the sample virtual item is a virtual item that is preferentially used in the sample virtual scene as annotation data, when multiple virtual items are displayed simultaneously and the sample virtual item is preferentially used, the annotation of the sample virtual item is 1, when multiple virtual items are displayed simultaneously and the sample virtual item is not preferentially used, the annotation of the sample virtual item is 0, and train the neural network model to be trained according to the training sample and annotation data, so that the first neural network model can be used to directly determine whether a virtual item is a first virtual item that is preferentially recommended in the subsequent steps.
[0078] In some embodiments, referring to FIG. 4B, FIG. 4B is an exemplary flowchart of an item interaction method in a virtual scene according to an embodiment of the present application, and step 103 in FIG. 4B can be further performed based on FIG. 4A.
[0079] In step 103, for the at least one second virtual item not in a selected state, display a switching control corresponding to the at least one second virtual item.
[0080] As an example, the second virtual item has an interaction function and the toggle control is used to trigger the display of at least one interaction control of the second virtual item.
[0081] In some embodiments, when the number of the second virtual items not in a selected state is 1, in response to a trigger operation on the switching control, at least one interaction control of the second virtual item is displayed (indicating that the second virtual item is in a selected state and the first virtual item is in an unselected state) and at least one interaction control of the first virtual item is hidden. The embodiments of the present application realize switching between the interaction controls of the two virtual items, thereby realizing interaction with multiple virtual items via one interaction control.
[0082] As an example, the second virtual item may correspond to one interaction control or multiple interaction controls, for example, if the second virtual item is a chair, there may be a corresponding interaction control called "sit", and when the "sit" interaction control is triggered, the virtual object is controlled to sit in the chair; if the second virtual item is a vehicle, there may be corresponding interaction controls called "drive" and "get in", and when the "drive" interaction control is triggered, the virtual object is controlled to get into the driver's seat of the vehicle.
[0083] 5B, the human-computer interaction interface 501B displays a chair 502B and a supply box 503B, the chair 502B displays a selected mark 504B (indicating that it is in a selected state), the chair 502B is a first virtual item, the supply box 503B does not display a selected mark 504B (indicating that it is not in a selected state), and the supply box 503B is a second virtual item. The human-computer interaction interface further displays an interaction control 505B for the chair 502B, and in response to a trigger operation on the switching control 507B, the human-computer interaction interface hides the interaction control 505B for the chair 502B, displays an interaction control 508B for the supply box 503B, and displays the selected mark 504B for the supply box 503B.
[0084] In some embodiments, when the number of second virtual items not in a selected state is more than one, in response to a trigger operation on the switching control, item identifiers (e.g., identification controls) corresponding one-to-one to the second virtual items are displayed, and in response to a trigger operation on any one of the item identifiers, at least one interaction control of the second virtual item corresponding to the triggered item identifier is displayed (indicating that the second virtual item is in a selected state and the first virtual item is in an unselected state) and at least one interaction control of the first virtual item is hidden. The embodiments of the present application realize switching between the interaction controls of at least three virtual items, thereby realizing interaction with multiple virtual items via a limited number of controls.
[0085] As an example, referring to FIG. 5C, the human-computer interaction interface 501C displays a first chair 502C, a crate 503C, and a second chair 504C, the first chair 502C displays a selected mark 505C, the first chair 502C is a first virtual item, the crate 503C and the second chair 504C are second virtual items, and the human-computer interaction interface further displays an interaction control 506C for the first chair 502C, and in response to a trigger operation on the switching control 511C, a hue In the man-computer interaction interface, the interaction control 506C of the first chair 502C is hidden, and an identification control 508C of the supply box 503C and an identification control 509C of the second chair are displayed, and in response to a trigger operation on the identification control 508C of the supply box 503C, a selected mark 505C is displayed on the supply box 503C, and in the human-computer interaction interface, the identification control 508C of the supply box 503C and the identification control 509C of the second chair are hidden, and the interaction control 510C of the supply box 503C is displayed.
[0086] In some embodiments, the above-mentioned display of item identifiers having one-to-one correspondence with the plurality of second virtual items can be realized by the following technical solution: Display item identifiers (e.g., identification controls) having one-to-one correspondence with the plurality of second virtual items according to a set order, where the number of the plurality of second virtual items is one of a set number (wherein the set number may be an average value of the number of second virtual items in a plurality of historical virtual scenes), a number positively correlated with the size of the human-computer interaction interface, a number positively correlated with the area of the free space of the virtual scene, and a number positively correlated with the number of items of the second virtual items. Displaying the item identifiers of the second virtual items can form recommendations for users and effectively improve the utilization rate of display resources.
[0087] As an example, the number of the second virtual items in an unselected state is 5, that is, there are five second virtual items in an unselected state in the virtual scene. Referring to FIG. 5C , in response to a trigger operation on the switching control 511C, the human-computer interaction interface hides the interaction control 506C of the first chair 502C, and displays the identification control 508C of the supply box 503C and the identification control 509C of the second chair, and the number of the second virtual items is 2, which means that two item identifiers of the second virtual items are displayed for the five second virtual items in an unselected state. The number of second virtual items for which item identifiers are displayed may be a set number, and the number may be positively correlated with the size of the human-computer interaction interface, such that the larger the size of the human-computer interaction interface, the more second virtual items for which item identifiers are displayed, e.g., if the size of the human-computer interaction interface is larger than the size of the current human-computer interaction interface, item identifiers of four second virtual items may be displayed for five second virtual items. The number may further be positively correlated with the area of free space in the virtual scene, such that the larger the area of free space in the virtual scene, the more second virtual items for which item identifiers are displayed in the human-computer interaction interface, e.g., if the area of free space in the virtual scene is larger than the area of free space in the current virtual scene, item identifiers of four second virtual items may be displayed for five second virtual items. This number may also be positively correlated with the item count of the second virtual items, such that the greater the item count of the second virtual items, the more second virtual items for which item identifiers are displayed, e.g., for five second virtual items, item identifiers of three second virtual items may be displayed, and for four second virtual items, item identifiers of two second virtual items may be displayed.
[0088] In some embodiments, the set order is one of the following: descending or ascending order of the frequency of use of the second virtual item, ascending or descending order of the scene distance of the second virtual item (the scene distance is the distance between the virtual item and the virtual object in the virtual scene), reverse chronological order or chronological order of the last use time of the second virtual item (the last use time is the time when the virtual object last used the second virtual item), and ascending or descending order of the interaction efficiency of the second virtual item and the virtual object. The above sorting method can clearly and explicitly define the second virtual items that need to display item identifiers related to switching, and by displaying them in order, it is possible to present more abundant item information to the player and improve the human-computer interaction efficiency.
[0089] For example, the above sorting process may be an ascending sorting process or a descending sorting process. In order to recommend a virtual item that matches the user's interest to the user, a descending sorting method may be adopted when sorting based on the frequency of use, the last time of use, and the interaction efficiency, and an ascending sorting method is adopted when sorting based on the scene distance, that is, the second virtual item whose item identifier is displayed is a virtual item that is used relatively frequently among the second virtual items in an unselected state, or a second virtual item that is relatively close to the virtual object among the second virtual items in an unselected state, or a second virtual item that has been used by the virtual object in a recent period among the second virtual items in an unselected state, or a second virtual item that has a relatively high interaction efficiency among the second virtual items in an unselected state. In order to increase the diversity of use of the virtual items, when sorting based on the frequency of use, the last time of use, and the interaction efficiency, an ascending sorting process can be adopted, and when sorting based on the scene distance, a descending sorting method can be adopted, that is, the second virtual item whose item identifier is displayed is a virtual item that is used relatively less frequently among the second virtual items in an unselected state, or a second virtual item that is relatively far from the virtual object among the second virtual items in an unselected state, or a second virtual item that has not been used by the virtual object in a recent period among the second virtual items in an unselected state, or a second virtual item that has a relatively low interaction efficiency among the second virtual items in an unselected state.
[0090] In some embodiments, a second sector area is determined with the virtual object as the center, the set distance as the radius, and the second angle as the central angle, where the orientation of the virtual object overlaps with the bisector of the central angle of the second sector area, and the second angle is smaller than the first angle; a third overlap area between each second virtual item and the second sector area is obtained; and an interaction efficiency is obtained that is positively correlated with an area of the third overlap area, where the third overlap area is an overlap area between the projection area of the virtual scene of the second virtual item onto the ground and the second sector area.
[0091] As an example, referring to FIG. 8E, FIG. 8E shows a projection 801E of a virtual item E1 onto the ground in a virtual scene, a projection 802E of a virtual item E2 onto the ground in a virtual scene, a projection 803E of a virtual item E3 onto the ground in a virtual scene, and a projection 807E of a virtual item E4 onto the ground in a virtual scene, where the virtual items E2 and E4 are stacked on top of each other on the Z axis, a second sector 806E (second sight field of view) is obtained with a virtual object 804E as its center and a set distance r as its radius, the area occupied by the second sector 806E is the second sector area, the ray of fire (the direction of the virtual object) of the virtual object facing the sight direction is the bisector of the angle of the second sector 806E, and the virtual object is projected in the virtual scene. The virtual item E1, the virtual item E2 and the virtual item E4 are all within the second sight field, and the virtual item with the largest overlapping area between the projection and the second sector can be directly used as the first virtual item to be preferentially interacted with, that is, the virtual item E2 corresponding to the projection 802E shown in FIG. 8E is the first virtual item to be preferentially interacted with, the virtual item E1 corresponding to the projection 801E and the virtual item E4 corresponding to the projection 804E are the second virtual items, and the area of the third overlapping area corresponding to the projection 801E is larger than the area of the third overlapping area corresponding to the projection 804E, which indicates that the interaction efficiency of the virtual item E1 is higher than the interaction efficiency of the virtual item E4.
[0092] In some embodiments, reference is made to FIG. 4C, which is an exemplary flowchart of a method for item interaction in a virtual scene according to an embodiment of the present disclosure, which will be described with reference to steps 201 to 203 shown in FIG. 4C.
[0093] In step 201, at least a portion of a region within a virtual scene is displayed in a human-computer interaction interface.
[0094] As an example, at least some of the regions include virtual objects.
[0095] In step 202, in response to the at least two virtual items appearing in at least a portion of the area, a first virtual item having an interaction function among the at least two virtual items and at least one interaction control corresponding to the first virtual item are displayed based on a selection state.
[0096] As an example, the interaction control is used to trigger the execution of an interaction function corresponding to the interaction control, and the interaction function is used for a virtual object to interact with a first virtual item.
[0097] In step 203, for the at least one second virtual item not in a selected state, display a switching control corresponding to the at least one second virtual item.
[0098] As an example, the toggle control is used to trigger the display of an interaction control for at least one second virtual item.
[0099] Regarding the embodiment of steps 201 to 203, reference may be made to the embodiment of steps 101 to 103.
[0100] According to the embodiment of the present application, in response to at least two virtual items having an interaction function appearing in at least a part of an area, a first virtual item of the at least two virtual items is displayed as being in a selected state, and at least one interaction control corresponding to the first virtual item is displayed, thereby directly displaying the automatically selected first virtual item and its corresponding interaction control to the player, thereby omitting the process of the player manually selecting the virtual item with which the player should currently interact, thereby improving the human-computer interaction efficiency; and by using a switching control to realize switching display between the interaction controls of multiple virtual items, it is possible to realize the interaction of multiple virtual items in a situation with a limited number of controls, and effectively improve the utilization rate of display resources.
[0101] The following describes an exemplary application of the present embodiment in one practical application scenario.
[0102] In some embodiments, a user logs into a client (e.g., an online version of a game application) executed on a terminal through an account, and a server calculates scene display data of a virtual scene, the scene display data including item display data of a first virtual item in a selected state, transmits the scene display data to the terminal, and displays at least a part of an area of the virtual scene including a virtual object, displays at least two virtual items having an interaction function in at least a part of an area, displays a first virtual item in a selected state among the at least two virtual items, and displays at least one interaction control corresponding to the first virtual item, in a human-computer interaction interface of the client. The terminal receives a trigger operation of the account for the interaction control, the terminal transmits operation data of the trigger operation to the server via a network, and the server calculates response data of an interaction function corresponding to the interaction control based on the operation data, the server transmits the response data to the terminal via a network, and displays an interaction process between the virtual object and the virtual item in a human-computer interaction interface of the terminal based on the response data.
[0103] In a game scene, a player controls a virtual object to interact with an interactable virtual item in a virtual scene. After the virtual object selects a virtual item, the virtual object can take various interaction actions with the virtual item. For example, if the virtual item is a chair, the virtual object can sit on the chair. If the virtual item is a bathtub, the virtual object can fill or drain water into the bathtub. However, when multiple virtual items are within the interaction range of a virtual object at the same time, the virtual object needs to first receive a user's selection operation for a chair, and then receive a user's sitting operation of sitting on the chair. That is, the user needs to perform two operations to realize the interaction. The item interaction method for a virtual scene according to the embodiment of the present application can identify a virtual item to be currently interacted with, and efficiently and accurately switch between more interactable virtual items, thereby effectively improving the efficiency of human-computer interaction. For example, the interaction process for a virtual item can be realized by simply receiving a user's sitting operation of sitting on a chair.
[0104] 5A , in some embodiments, a virtual item 502A is displayed in the human-computer interaction interface 501A, a selected mark 503A is displayed on the virtual item 502A, and an interaction control 504A is further displayed in the human-computer interaction interface, and in response to a trigger operation on the interaction control 504A, a virtual object 505A sits on the virtual item 502A. When there is only one virtual item with an interaction function within the identification range of the virtual object, the virtual item with the interaction function and the interaction control corresponding to the virtual item are displayed.
[0105] In some embodiments, referring to FIG. 5B , a chair 502B and a supply box 503B are displayed in a human-computer interaction interface 501B, and a selected mark 504B is displayed on the chair 502B, and the human-computer interaction interface further displays an interaction control 505B for the chair 502B, and in response to a trigger operation on the interaction control 505B, a virtual object 506B sits in the chair 502B, and in response to a trigger operation on the switch control 507B, the human-computer interaction interface hides the interaction control 505B for the chair 502B, displays an interaction control 508B for the supply box 503B, and displays the selected mark 504B on the supply box 503B. When there are only two virtual items with interaction capabilities within the identification range of a virtual object, the currently recommended virtual item with interaction capabilities, an interaction control corresponding to the virtual item, and a switching control for quickly switching to the other virtual item are displayed.
[0106] In some embodiments, referring to FIG. 5C, FIG. 5C is a schematic diagram of an interface of an item interaction method in a virtual scene according to an embodiment of the present disclosure, in which a first chair 502C, a supply box 503C, and a second chair 504C are displayed in a human-computer interaction interface 501C, a selected mark 505C is displayed on the first chair 502C, and an interaction control 506C of the first chair 502C is further displayed in the human-computer interaction interface, and in response to a trigger operation on the interaction control 506C of the first chair 502C, a virtual object 507C is displayed on the first chair 502C. sit down, in response to a trigger operation on the switching control 511C, hide the interaction control 506C of the first chair 502C, and display the identification control 508C of the supply box 503C and the identification control 509C of the second chair in the human-computer interaction interface, and in response to a trigger operation on the identification control 508C of the supply box 503C, display a selected mark 505C on the supply box 503C, and hide the identification control 508C of the supply box 503C and the identification control 509C of the second chair in the human-computer interaction interface, and display the interaction control 510C of the supply box 503C. If there are at least three virtual items with interaction functions within the identification range of the virtual object, based on a judgment mechanism, perform switching of the interaction controls of the virtual items, and display the currently recommended virtual item.
[0107] In some embodiments, when there are multiple virtual items with interaction functions in a virtual scene that are close to a virtual object, the virtual item currently recommended for interaction can be accurately displayed without the player having to move the sight to select a virtual item with interaction function, and an identification process based on the quantity can be performed on the multiple virtual items with interaction function within the current identification range, and different identification processes can be performed for different quantity situations to realize accurate switching between the multiple virtual items.
[0108] In some embodiments, referring to FIG. 6, FIG. 6 is an exemplary flowchart of an item interaction method in a virtual scene according to an embodiment of the present application, in which a player can control a virtual object to interact with a virtual item that can be freely placed in the virtual scene, and the player can accurately and conveniently complete interactions with multiple virtual items by identifying and switching between virtual items. In step 601, an identification process is performed on the virtual scene to obtain a virtual item to be interacted with, in step 602, a trigger operation for the virtual item is received, and in step 603, an interaction between the virtual object and the virtual item is performed. Step 601 can be realized through step 6011, and in step 6011, if one virtual item is identified, the virtual item is set as the virtual item to be interacted with. Step 601 can be realized through steps 6012 and 6013, in which if two virtual items are identified in step 6012, the virtual item with the relatively larger identification range is set as the virtual item to be interacted with, and in response to a switching operation in step 6013, interaction controls of the two virtual items are switched and displayed in response to a switching operation. Step 601 can be realized through steps 6014 and 6015, in which if at least three virtual items are identified in step 6014, secondary range identification based on a sight is performed, and the virtual item with the largest identification range is set as the virtual item to be interacted with, and in response to a switching operation in step 6015, interaction controls of the at least three virtual items are switched and displayed in response to a switching operation.
[0109] In some embodiments, a player controls a virtual object to interact with different objects (virtual items) in a game scene, and different types of operations such as viewing, interacting, picking up, etc. may occur. The player controls a virtual object to interact with objects in the virtual scene. When multiple objects exist simultaneously in the virtual scene, referring to FIG. 7A to FIG. 7B, the virtual object interacts with object A, object B, and object C, and the objects may be in a stacked state, for example, object B and object D may be in a stacked state.
[0110] In some embodiments, referring to FIG. 8A, FIG. 8A shows a projection 801A of a virtual item A1 onto the ground in a virtual scene, and a projection 802A of a virtual item A2 onto the ground in a virtual scene, the ground is a plane consisting of XY coordinate axes, a sector 804A (sight field of view) is obtained with a virtual object 803A as the center and a set distance r as the radius, the ray of the virtual object facing the sight direction is the bisector of the angle of the sector, and the projections of only two virtual items are overlapped with the sector, which indicates that the two virtual items are within the sight field of view, and the virtual item with a larger proportion of the projection in the sight field is preferentially interacted with, and therefore the virtual item with a relatively large overlapping area between the projection and the sector can be directly used as the virtual item with preferential interaction, for example, the virtual item A1 corresponding to the projection 801A shown in FIG. 8A is the virtual item with preferential interaction. By operating a trigger on the switching control, it is possible to realize switching between the interaction controls of two virtual items, and the player does not need to change the proportion of the projection of the virtual item in the sight's field of view by controlling the virtual object to move the sight.
[0111] In some embodiments, referring to FIG. 8B, FIG. 8B shows a projection 801B of a virtual item B1 onto the ground in the virtual scene, a projection 802B of a virtual item B2 onto the ground in the virtual scene, and a projection 803B of a virtual item B3 onto the ground in the virtual scene; a first sector 805B (first sight field) is obtained with a virtual object 804B as the center and a set distance r as the radius; the ray of the virtual object facing the sight direction is the bisector of the angle of the first sector 805B; the projections of the three virtual items are overlapped with the first sector 805B, which indicates that there are at least three virtual items in the sight field; the sight field is obtained twice based on the sight direction to determine the virtual item to be preferentially interacted with; the virtual object 804B is the center and the set distance r is the radius; A second sector 806B (second sight field) is obtained, and the ray of the virtual object facing the sight direction is the bisector of the angle of the second sector 806B, the second sector is smaller than the first sector, the virtual item B1, the virtual item B2 and the virtual item B3 are all within the first sight field, the virtual item B1 and the virtual item B2 are both within the second sight field, and the virtual item with the largest overlapping area between the projection and the second sector can be directly used as the virtual item with priority for interaction, that is, the virtual item B2 corresponding to the projection 802B shown in FIG. 8B is the virtual item with priority for interaction, and the operation control can be used to switch between the interaction controls corresponding to the virtual item B1, the virtual item B2 and the virtual item B3.
[0112] In some embodiments, refer to FIG. 8C, which is a schematic diagram of the calculation of the overlap area of the item interaction method of the virtual scene according to the embodiment of the present application. FIG. 8C shows a projection 801C of the virtual item C1 onto the ground in the virtual scene, a projection 802C of the virtual item C2 onto the ground in the virtual scene, and a projection 803C of the virtual item C3 onto the ground in the virtual scene. A sector 805C is obtained with a virtual object 804C as its center and a set distance r as its radius. The ray of the virtual object facing the direction of the sight is the bisector of the angle of the sector 805C. The projections of the virtual items C1 and C2 do not overlap with the sector 805C, and only the projection of the virtual item C3 overlaps with the sector 805C. Therefore, the virtual item C3 is the virtual item that is preferentially interacted with, and the interactions with the virtual items C1 and C2 are not triggered.
[0113] In some embodiments, referring to FIG. 8D, FIG. 8D is a schematic diagram of the calculation of the overlapping area of the item interaction method of the virtual scene according to the embodiment of the present application, in which FIG. 8D shows a projection 801D of a virtual item D1 onto the ground in the virtual scene, a projection 802D of a virtual item D2 onto the ground in the virtual scene, and a projection 803D of a virtual item D3 onto the ground in the virtual scene; a first sector 805D (first sight field) is obtained with a virtual object 804D as the center and a set distance r as the radius; the ray of the virtual object facing the sight direction is the bisector of the angle of the first sector 805D; the projections of the three virtual items are overlapped with the first sector 805D, which indicates that there are at least three virtual items in the sight field; the sight field is obtained twice based on the sight azimuth to determine the virtual item to be preferentially interacted with; A second sector 806D (second sight field) is obtained with the virtual object 804D as the center and the set distance r as the radius, the ray of the virtual object facing the sight direction is the bisector of the angle of the second sector 806D, the second sector is smaller than the first sector, the virtual items D1, D2 and D3 are all within the first sight field, the virtual items D1 and D2 are both within the second sight field, and the virtual item with the largest overlapping area between the projection and the second sector can be directly used as the virtual item with priority for interaction, that is, the virtual item D1 corresponding to the projection 801D shown in FIG. 8D is set as the virtual item with priority for interaction, and the operation control can be used to switch between the interaction controls corresponding to the virtual items D1, D2 and D3.
[0114] In some embodiments, referring to FIG. 8E, FIG. 8E shows a projection 801E of a virtual item E1 onto the ground in the virtual scene, a projection 802E of a virtual item E2 onto the ground in the virtual scene, a projection 803E of a virtual item E3 onto the ground in the virtual scene, and a projection 807E of a virtual item E4 onto the ground in the virtual scene, where the virtual items E2 and E4 are stacked in the Z axis, a first sector 805E (first sight field) is obtained with a virtual object 804E as the center and a set distance r as the radius, and the ray of the virtual object facing the sight direction is the bisector of the angle of the first sector 805E, and the projections of the three virtual items are overlapped with the first sector 805E, which indicates that there are at least three virtual items in the sight field; and the sight field is obtained twice based on the sight bearing to determine the virtual item to be preferentially interacted with; A second sector 806E (second sight field) is obtained with the virtual object 804E as its center and the set distance r as its radius, the ray of the virtual object facing the sight direction is the bisector of the angle of the second sector 806E, the second sector is smaller than the first sector, the virtual items E1, E2, E3 and E4 are all within the first sight field, and the virtual items E1, E2 and E4 are all within the second sight field, and the virtual item with the largest overlapping area between the projection and the second sector can be directly used as the virtual item that has priority for interaction, that is, the virtual item E2 corresponding to the projection 802E shown in FIG. 8E is set as the virtual item that has priority for interaction, and the operation control can be used to switch between the interaction controls corresponding to the virtual items E1, E2 and E4.
[0115] In the related art, when multiple virtual items are densely arranged in a virtual scene, it is difficult to identify a virtual item that will be preferentially interacted with, and in particular, when multiple virtual items are stacked in the Z-axis direction, it may be necessary to frequently move the screen to control the sight to adjust the virtual item that is the object of interaction. According to the embodiment of the present application, it is possible to assist the player in identifying a virtual item that will be preferentially interacted with, and it is possible to realize interaction switching between multiple virtual items using limited controls.
[0116] It can be understood that, although the embodiments of the present application refer to relevant data such as user information, when the embodiments of the present application are applied to a particular product or technology, user permission or consent is required, and the collection, use and processing of the relevant data should comply with the relevant laws, regulations and standards of the relevant country or region.
[0117] The following continues to describe an exemplary structure of the item interaction device 455-1 of a virtual scene according to an embodiment of the present application, which is implemented as a software module. In some embodiments, as shown in FIG. 3, the software module in the item interaction device 455-1 of a virtual scene stored in the memory 450 may include a first display module 4551 configured to display at least a part of an area in the virtual scene in a human-computer interaction interface, where the at least a part of the area includes a virtual object, and the first display module 4551 is further configured to display that a first virtual item of the at least two virtual items is in a selected state in response to at least two virtual items having an interaction function appearing in the at least a part of the area, and to display at least one interaction control corresponding to the first virtual item, where the interaction control is used to trigger the execution of an interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item.
[0118] In some embodiments, the first display module 4551 is further configured to apply a first display scheme to the at least two virtual items in at least a portion of the region in response to the at least two virtual items having interaction capabilities appearing in at least a portion of the region, where the prominence of the first display scheme is positively correlated with feature values of the at least two virtual items, the feature values including at least one of: a frequency of use of the virtual items, a distance between the virtual items and the virtual object, and a direction angle between the virtual items and the virtual object.
[0119] In some embodiments, the first display module 4551 is further configured, in response to at least two virtual items having interaction capabilities appearing in at least a portion of the area, to apply a first display scheme to the at least two virtual items in the human-computer interaction interface, and to apply a second display scheme to other virtual items in the human-computer interaction interface, where the second display scheme is different from the first display scheme, and where the other virtual items do not have the interaction capabilities.
[0120] In some embodiments, before displaying that a first virtual item of the at least two virtual items is in a selected state, the first display module 4551 is further configured to: determine a first sectorial area having the virtual object as a center, the set distance as a radius, and a first angle as a central angle, where an orientation of the virtual object overlaps with a corner bisector of the central angle of the first sectorial area; determine at least one first candidate virtual item that overlaps with the first sectorial area, where a projection area of the virtual scene of the first candidate virtual item onto the ground overlaps with the first sectorial area, and determine one of the at least one first candidate virtual items as the first virtual item.
[0121] In some embodiments, the first display module 4551 further determines the first candidate virtual item as the first virtual item when the first sector area includes one first candidate virtual item; when the first sector area includes two first candidate virtual items, the first candidate virtual item with a larger area of the first overlapping area is the first virtual item; the first overlapping area is an overlapping area between the first candidate virtual item and the first sector area; when the first sector area includes at least three first candidate virtual items, the first display module 4551 further determines the first candidate virtual item as the first virtual item, the virtual object as the circle center, the set distance as the radius, and the second angle as the central angle. The virtual object is configured to execute a process of determining a second sector-shaped area, wherein an orientation of the virtual object overlaps with a bisector of a central angle of the second sector-shaped area, the second angle being smaller than the first angle; a process of determining at least one second candidate virtual item that overlaps with the second sector-shaped area, wherein a projection area of the virtual scene of the second candidate virtual item onto the ground overlaps with the second sector-shaped area; and a process of designating a second candidate virtual item having a largest area of the second overlapping area as a first virtual item, wherein the second overlapping area is an overlapping area between the second candidate virtual item and the second sector-shaped area.
[0122] In some embodiments, before displaying that a first virtual item of the at least two virtual items is in a selected state, the first display module 4551 is further configured to perform one of the following processes: a process of sorting the at least two virtual items according to a usage frequency and setting the top virtual item after sorting as the first virtual item; a process of sorting the at least two virtual items according to a scene distance and setting the top virtual item after sorting as the first virtual item, where the scene distance is a distance between the virtual items and a virtual object in a virtual scene; and a process of sorting the at least two virtual items according to a last use time and setting the top virtual item after sorting as the first virtual item, where the last use time is a time when the virtual object last used the virtual item.
[0123] In some embodiments, before displaying that a first virtual item of the at least two virtual items is in a selected state, the first display module 4551 is further configured to: acquire historical interaction data and item parameters of the at least two virtual items in the virtual scene, where the historical interaction data of each virtual item includes scene parameters for each use of the virtual item; extract scene features from the scene parameters and item features from the item parameters via a first neural network model; perform a fusion process on the scene features and the item features to obtain a first fusion feature; map the first fusion feature to a first probability that each virtual item fits into the virtual scene; and sort the at least two virtual items according to descending order of the first probability, and set the top virtual item after sorting as the first virtual item.
[0124] In some embodiments, the first display module 4551 is further configured to, in the case of at least one second virtual item not in a selected state, display a switching control corresponding to the at least one second virtual item, where the second virtual item has an interaction function, and the switching control is used to trigger the display of the interaction control corresponding to the at least one second virtual item.
[0125] In some embodiments, the first display module 4551 is further configured to: display at least one interaction control of the second virtual item and hide at least one interaction control of the first virtual item in response to a trigger operation on the switching control when the number of second virtual items not in a selected state is one.
[0126] In some embodiments, the first display module 4551 is further configured to, when the number of second virtual items not in a selected state is multiple, in response to a trigger operation on the switching control, display item identifiers that correspond one-to-one to the multiple second virtual items, and in response to a trigger operation on any one of the item identifiers, display at least one interaction control of the second virtual item corresponding to the triggered item identifier and hide at least one interaction control of the first virtual item.
[0127] In some embodiments, the first display module 4551 is further configured to display item identifiers that correspond one-to-one to the plurality of second virtual items according to a set order, where the number of the plurality of second virtual items is one of: a set number, a number that is positively correlated with the size of the human-computer interaction interface, a number that is positively correlated with the area of the free space in the virtual scene, or a number that is positively correlated with the number of items of the second virtual items.
[0128] In some embodiments, the set order is one of: descending or ascending order of frequency of use of the second virtual item, ascending or descending order of scene distance of the second virtual item (scene distance is the distance between the virtual item and the virtual object in the virtual scene), reverse chronological or chronological order of last use time of the second virtual item (last use time is the time when the virtual object last used the second virtual item), or ascending or descending order of interaction efficiency of the second virtual item and the virtual object.
[0129] In some embodiments, the first display module 4551 is further configured to determine a second sector area with the virtual object as the center, the set distance as the radius, and the second angle as the central angle, where the orientation of the virtual object overlaps with the bisector of the central angle of the second sector area, and the second angle is smaller than the first angle; obtain a third overlap area between each second virtual item and the second sector area; and obtain an interaction efficiency that is positively correlated with an area of the third overlap area, where the third overlap area is an overlap area between the projection area of the virtual scene of the second virtual item onto the ground and the second sector area.
[0130] The following continues with a description of an exemplary structure of the virtual scene item interaction device 455-2 according to an embodiment of the present disclosure, implemented as a software module. In some embodiments, as shown in FIG. 3 , the software modules in the virtual scene item interaction unit 455-2 stored in the memory 450 may include a second display module 4552 configured to display at least a portion of the virtual scene in a human-computer interaction interface, where the at least a portion of the region includes a virtual object; the second display module 4552 is further configured to, in response to the at least two virtual items appearing in the at least a portion of the region, display a first virtual item having an interaction function among the at least two virtual items based on a selection state, and at least one interaction control corresponding to the first virtual item, where the interaction control is used to trigger execution of the interaction function corresponding to the interaction control, and the interaction function is used to interact with the virtual object; and the second display module 4552 is further configured to, in the case of the at least one second virtual item not in a selection state, display a switching control corresponding to the at least one second virtual item, where the switching control is used to trigger display of the interaction control corresponding to the at least one second virtual item.
[0131] The present embodiment provides a computer program product including computer-executable instructions stored in a computer-readable storage medium, the computer program product being configured to cause a processor of an electronic device to read and execute the computer-executable instructions from the computer-readable storage medium, thereby causing the electronic device to perform the above-described virtual scene item interaction method of the present embodiment.
[0132] An embodiment of the present application provides a computer-readable storage medium having computer-executable instructions stored thereon, which, when executed by a processor, causes the processor to perform a virtual scene item interaction method according to an embodiment of the present application, for example, the virtual scene item interaction method shown in Figures 4A to 4C.
[0133] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM, or may be any of a variety of devices including one or any combination of the above memories.
[0134] In some embodiments, the computer executable instructions may take the form of a program, software, software module, script or code, and may be written in any form of programming language (including compiled or interpreted, or declarative or procedural languages), and deployed in any form, such as as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0135] As an example, the computer-executable instructions may, but do not necessarily, correspond to a file in a file system, and may be stored in a portion of a file that stores other programs or data, such as in one or more scripts within a HyperText Markup Language (HTML) document, in a single file of the discussed program, or in multiple joint files (e.g., files storing one or more modules, subprograms, or code portions).
[0136] As an example, the computer-executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices at the same location, or on multiple electronic devices distributed at multiple locations and interconnected by a communications network.
[0137] In summary, according to the embodiment of the present application, in response to at least two virtual items having an interaction function appearing in at least a part of an area, a first virtual item of the at least two virtual items is displayed as being in a selected state, and at least one interaction control corresponding to the first virtual item is displayed, thereby directly displaying the automatically selected first virtual item and its corresponding interaction control to a player, thereby omitting the process of the player manually selecting the virtual item with which he or she should currently interact, thereby improving human-computer interaction efficiency.
[0138] The above description is merely an embodiment of the present application, and does not limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and scope of the present application shall be included in the scope of protection of the present application. [Explanation of symbols]
[0139] 200 Servers 300 Network 400 terminals 410 Processor 420 Network Interface 430 User Interface 431 Output Device 432 Input Device 440 Bus System 450 Memory 451 Operating Systems 452 Network Communication Module 453 Presentation Module 454 Input Processing Module 455-1 Virtual scene item interaction device 4551 First display module 455-2 Item interaction device for virtual scenes 4552 Second Display Module
Claims
1. 1. A method for item interaction in a virtual scene, performed by an electronic device, comprising: displaying at least a portion of the virtual scene in a human-computer interaction interface, the at least a portion of the virtual scene including a virtual object; In response to at least two virtual items having an interaction function appearing in the at least a portion of the area, indicating that a first virtual item of the at least two virtual items is in a selected state; displaying at least one interaction control corresponding to the first virtual item, the interaction control being used to trigger execution of the interaction function corresponding to the interaction control, the interaction function being used by the virtual object to interact with the first virtual item; A method for interacting with items in a virtual scene, comprising:
2. The virtual scene item interaction method includes: In response to at least two virtual items having an interaction function appearing in the at least a portion of the area, applying a first display method to the at least two virtual items in the at least a portion of the area; The prominence of the first display manner is positively correlated with feature values of the at least two virtual items, and the feature values include at least one of a frequency of use of the virtual items, a distance between the virtual items and the virtual object, and a direction angle between the virtual items and the virtual object. The method for item interaction in a virtual scene according to claim 1 .
3. The virtual scene item interaction method includes: and in response to at least two virtual items having an interaction function appearing in the at least a portion of the area, applying a first display scheme to the at least two virtual items in the human-computer interaction interface and applying a second display scheme to other virtual items in the human-computer interaction interface; the second display manner is different from the first display manner, and the other virtual item does not have the interaction function; The method for item interaction in a virtual scene according to claim 1 .
4. Before indicating that a first virtual item of the at least two virtual items is in a selected state, the method for item interaction in the virtual scene includes: determining a first sector area having the virtual object as a center, a set distance as a radius, and a first angle as a central angle, wherein a direction of the virtual object overlaps with a bisector of the central angle of the first sector area; determining at least one first candidate virtual item that overlaps with the first sector region, wherein a projection area of the first candidate virtual item onto a ground surface of the virtual scene overlaps with the first sector region; determining a first candidate virtual item of the at least one first candidate virtual item as the first virtual item. The method for item interaction in a virtual scene according to claim 1 .
5. The step of selecting one of the at least one first candidate virtual item as the first virtual item includes: If the first sector region includes one of the first candidate virtual items, determining the first candidate virtual item as the first virtual item; When the first sector area includes two of the first candidate virtual items, a first candidate virtual item having a relatively large area of a first overlapping area is selected as the first virtual item, and the first overlapping area is an overlapping area between the first candidate virtual item and the first sector area; and if the first sector region includes at least three of the first candidate virtual items, performing the following process, the process comprising: determining a second sectorial region having the virtual object as a center, the set distance as a radius, and a second angle as a central angle, wherein an orientation of the virtual object overlaps with a bisector of the central angle of the second sectorial region, and the second angle is smaller than the first angle; determining at least one second candidate virtual item that overlaps with the second sector region, wherein a projection area of the second candidate virtual item onto a ground surface of the virtual scene overlaps with the second sector region; a step of selecting a second candidate virtual item having a largest area of a second overlapping region as the first virtual item, the second overlapping region being an overlapping region between the second candidate virtual item and the second sector-shaped region; The method for item interaction in a virtual scene according to claim 4.
6. Before indicating that a first virtual item of the at least two virtual items is in a selected state, the method for item interaction in the virtual scene includes: sorting the at least two virtual items according to frequency of use, and determining the topmost virtual item after the sorting as the first virtual item; A process of sorting the at least two virtual items according to a scene distance, and setting the top virtual item after sorting as the first virtual item, the scene distance being a distance between the virtual item and the virtual object in the virtual scene; a process of sorting the at least two virtual items according to a last use time, and setting the top virtual item after sorting as the first virtual item, the last use time being a time when the virtual object last used the virtual item; The method for item interaction in a virtual scene according to claim 1 .
7. Before indicating that a first virtual item of the at least two virtual items is in a selected state, the method for item interaction in the virtual scene includes: obtaining historical interaction data and item parameters for the at least two virtual items in the virtual scene, the historical interaction data for each of the virtual items including scene parameters for each use of the virtual item; extracting scene features from the scene parameters and item features from the item parameters via a first neural network model; performing a fusion process on the scene features and the item features to obtain first fusion features; and mapping the first fusion features to a first probability that each of the virtual items fits into the virtual scene; performing a sorting process on the at least two virtual items in descending order of the first probability, and determining the virtual item at the top of the sorting as the first virtual item; The method for item interaction in a virtual scene according to claim 1 .
8. The virtual scene item interaction method includes: For the at least one second virtual item not in the selected state, displaying a switching control corresponding to the at least one second virtual item; the second virtual item has the interaction function, and the switching control is used to trigger the display of at least one interaction control corresponding to the second virtual item. The method for item interaction in a virtual scene according to claim 1 .
9. The virtual scene item interaction method includes: and if the number of the second virtual items not in the selected state is one, in response to a trigger operation on the switching control, displaying at least one interaction control of the second virtual item and hiding at least one interaction control of the first virtual item. The method for item interaction in a virtual scene according to claim 8.
10. The virtual scene item interaction method includes: When the number of the second virtual items not in the selected state is a plurality of items, displaying item identifiers corresponding one-to-one to the plurality of second virtual items in response to a trigger operation on the switching control; and in response to a trigger operation on any one of the item identifiers, displaying at least one interaction control of a second virtual item corresponding to the triggered item identifier and hiding at least one interaction control of the first virtual item. The method for item interaction in a virtual scene according to claim 8.
11. The step of displaying item identifiers that correspond one-to-one to the plurality of second virtual items includes: displaying item identifiers that correspond one-to-one to the second virtual items according to a set order; The number of the plurality of second virtual items is one of a set number, a number positively correlated with the size of the human-computer interaction interface, a number positively correlated with the area of the free space of the virtual scene, and a number positively correlated with the number of items of the second virtual items. The method for item interaction in a virtual scene according to claim 10.
12. The setting sequence is: descending or ascending order of frequency of use of the second virtual item; ascending or descending order of scene distance of the second virtual item; In reverse chronological order or chronological order of the last use of the second virtual item; either an ascending order or a descending order of interaction efficiency between the second virtual item and the virtual object, the scene distance being a distance between the virtual item and the virtual object in the virtual scene, and the last use time being a time when the virtual object last used the second virtual item. The method for item interaction in a virtual scene according to claim 11.
13. The virtual scene item interaction method includes: determining a second sectorial region having the virtual object as a center, a set distance as a radius, and a second angle as a central angle, wherein the orientation of the virtual object overlaps with a bisector of the central angle of the second sectorial region; and acquiring a third overlapping area between each of the second virtual items and the second sector area, and acquiring an interaction efficiency that is positively correlated with an area of the third overlapping area, the third overlapping area being an overlapping area between a projection area of the second virtual item onto the ground of the virtual scene and the second sector area. The method for item interaction in a virtual scene according to claim 12.
14. 1. A method for item interaction in a virtual scene, performed by an electronic device, comprising: displaying at least a portion of the virtual scene in a human-computer interaction interface, the at least a portion of the virtual scene including a virtual object; In response to at least two virtual items appearing in the at least a portion of the area, displaying a first virtual item having an interaction function among the at least two virtual items and at least one interaction control corresponding to the first virtual item based on a selection state, the interaction control being used to trigger execution of the interaction function corresponding to the interaction control, and the interaction function being used for the virtual object to interact with the first virtual item; for at least one second virtual item not in the selected state, displaying a switching control corresponding to the at least one second virtual item, the switching control being used to trigger display of an interaction control corresponding to the at least one second virtual item; A method for interacting with items in a virtual scene, comprising:
15. An apparatus for item interaction in a virtual scene, comprising: a first display module configured to display at least a portion of the virtual scene in a human-computer interaction interface, the at least a portion of the virtual scene including a virtual object; The first display module is further configured to, in response to at least two virtual items having an interaction function appearing in the at least a portion of the area, display that a first virtual item of the at least two virtual items is in a selected state and display at least one interaction control corresponding to the first virtual item, the interaction control being used to trigger execution of the interaction function corresponding to the interaction control, and the interaction function being used for the virtual object to interact with the first virtual item. Item interaction device for virtual scenes.
16. An apparatus for item interaction in a virtual scene, comprising: a second display module configured to display at least a portion of the virtual scene in a human-computer interaction interface, the at least a portion of the virtual scene including a virtual object; The second display module is further configured to, in response to at least two virtual items appearing in the at least a portion of the area, display a first virtual item having an interaction function among the at least two virtual items and at least one interaction control corresponding to the first virtual item based on a selection state, the interaction control is used to trigger execution of the interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item; The second display module is further configured to display, for at least one second virtual item not in the selected state, a switching control corresponding to the at least one second virtual item, the switching control being used to trigger the display of an interaction control corresponding to the at least one second virtual item. Item interaction device for virtual scenes.
17. An electronic device, a memory configured to store computer-executable instructions; An electronic device comprising: a processor configured to implement the method for item interaction in a virtual scene according to any one of claims 1 to 13 or the method for item interaction in a virtual scene according to claim 14 by executing computer-executable instructions stored in the memory.
18. A computer-readable storage medium having stored thereon computer-executable instructions for causing a processor to perform the method for item interaction in a virtual scene according to any one of claims 1 to 13 or the method for item interaction in a virtual scene according to claim 14.
19. A computer program product comprising computer executable instructions for causing a processor to carry out the method for item interaction in a virtual scene according to any one of claims 1 to 13 or the method for item interaction in a virtual scene according to claim 14.
Citation Information
Patent Citations
Interactive prop control method and device, terminal and storage medium
CN110721468A
Virtual article processing method and device, storage medium and terminal
CN112402948A
Method and device for picking up props in game, electronic equipment and readable medium
CN113577762A
Method for controlling virtual object to pick up virtual item, terminal and storage medium
CN114344903A
Video game device, character behavior controlling method and readable recording medium with character behavior controlling program recorded
JP2002095868A
