Prop interaction method and device of virtual scene, electronic equipment, computer readable storage medium and computer program product

By automatically selecting and displaying interactive controls in the virtual scene, the problem of players finding it difficult to quickly locate virtual items is solved, improving human-computer interaction efficiency and the smoothness of the virtual scene.

CN117205560BActive Publication Date: 2026-08-04TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2022-06-02
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

In existing technologies, players have difficulty quickly finding suitable virtual props to interact with in virtual scenes, which increases the complexity of human-computer interaction, wastes computing resources, and affects the smoothness of virtual scenes.

Method used

By displaying interactive virtual items in the human-computer interaction interface and determining their priority based on features such as usage frequency, distance, and orientation, interactive controls are automatically selected and displayed, reducing the manual selection process for players.

Benefits of technology

It improves the efficiency of human-computer interaction, reduces the number of times players make mistakes, saves computing resources, and enhances the smoothness of virtual scene operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117205560B_ABST
    Figure CN117205560B_ABST
Patent Text Reader

Abstract

The application provides a prop interaction method and device of a virtual scene, electronic equipment, a computer readable storage medium and a computer program product; the method comprises: displaying at least part of a region in the virtual scene on a human-computer interaction interface, wherein the at least part of the region comprises a virtual object; in response to at least two virtual props with an interaction function appearing in the at least part of the region, displaying a first virtual prop in the at least two virtual props in a selected state, and displaying at least one interaction control corresponding to the first virtual prop; wherein the interaction control is used to be triggered to execute the interaction function corresponding to the interaction control, and the interaction function is used to interact with the virtual object. Through the application, the virtual prop to be interacted can be recommended to the user to improve the human-computer interaction efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to human-computer interaction technology, and more particularly to a method, device, electronic device, computer-readable storage medium, and computer program product for interacting with props in a virtual scene. Background Technology

[0002] Display technologies based on graphics processing hardware have expanded the channels for perceiving the environment and acquiring information. In particular, multimedia technologies for virtual scenes, with the help of human-computer interaction engine technology, can realize diverse interactions between virtual objects controlled by users or artificial intelligence according to actual application needs. They have various typical application scenarios. For example, in virtual scenes such as games, they can simulate the real battle process between virtual objects.

[0003] Virtual scenes often feature multiple interactive virtual props, allowing users to control virtual objects and interact with them. Examples include actions like a virtual object sitting down, and functions like opening a supply crate to display multiple supplies for the virtual object to choose from. However, current technologies often fail to clearly identify the virtual prop the player is currently interacting with. Users must find the appropriate prop through trial and error, increasing the complexity of human-computer interaction. Furthermore, this constant trial and error wastes computational and communication resources and can even affect the smoothness of the virtual scene's operation. Summary of the Invention

[0004] This application provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for virtual scene prop interaction, which can recommend virtual props to users to improve human-computer interaction efficiency.

[0005] The technical solution of this application embodiment is implemented as follows: This application provides a method for interacting with props in a virtual scene, including: The human-computer interaction interface displays at least a portion of the virtual scene, wherein the at least a portion of the virtual scene includes virtual objects; In response to the appearance of at least two interactive virtual props in the at least partial area, it is displayed that the first virtual prop of the at least two virtual props is selected, and Display at least one interactive control corresponding to the first virtual prop; wherein, the interactive control is used to be triggered to execute the interactive function corresponding to the interactive control, and the interactive function is used to interact with the virtual object.

[0006] This application provides a prop interaction device for a virtual scene, including: A first display module is configured to display at least a portion of the virtual scene on a human-computer interaction interface, wherein the at least a portion of the virtual scene includes virtual objects; The first display module is further configured to, in response to the appearance of at least two virtual props with interactive functions in the at least partial area, display that the first virtual prop among the at least two virtual props is in a selected state, and display at least one interactive control corresponding to the first virtual prop; wherein, the interactive control is configured to be triggered to execute the interactive function corresponding to the interactive control, and the interactive function is configured to interact with the virtual object.

[0007] In the above scheme, the first display module is further configured to: in response to the appearance of at least two virtual props with interactive functions in the at least partial area, apply a first display mode to the at least two virtual props in the at least partial area; wherein the prominence of the first display mode is positively correlated with the feature values ​​of the at least two virtual props, and the feature values ​​include at least one of the following: the usage frequency of the virtual props, the distance between the virtual props and the virtual object, and the orientation angle between the virtual props and the virtual object.

[0008] In the above scheme, the first display module is further configured to: in response to the appearance of at least two virtual props with interactive functions in the at least part of the area, apply a first display mode to the at least two virtual props in the human-computer interaction interface, and apply a second display mode to other virtual props in the human-computer interaction interface; wherein, the second display mode is different from the first display mode, and the other virtual props do not have the interactive function.

[0009] In the above scheme, the first display module is further configured to: before displaying the first virtual prop among the at least two virtual props as selected, determine a first sector area with the virtual object as the center, a set distance as the radius, and a first angle as the central angle, wherein the orientation of the virtual object coincides with the angle bisector of the central angle of the first sector area; determine at least one first candidate virtual prop that overlaps with the first sector area, wherein the projection area of ​​the first candidate virtual prop on the ground of the virtual scene overlaps with the first sector area; and select one of the at least one first candidate virtual props as the first virtual prop.

[0010] In the above scheme, the first display module is further configured to: when the first sector area includes one first candidate virtual prop, determine the first candidate virtual prop as the first virtual prop; when the first sector area includes two first candidate virtual props, take the first candidate virtual prop with the larger area of ​​the first overlapping area as the first virtual prop, the first overlapping area being the overlapping area of ​​the first candidate virtual prop and the first sector area; when the first sector area includes at least three first candidate virtual props, perform the following processing: determine a second sector area with the virtual object as the center, the set distance as the radius, and a second angle as the central angle, wherein the orientation of the virtual object coincides with the angle bisector of the central angle of the second sector area, and the second angle is smaller than the first angle; determine at least one second candidate virtual prop overlapping with the second sector area, wherein the projection area of ​​the second candidate virtual prop on the ground of the virtual scene overlaps with the second sector area; take the second candidate virtual prop with the largest area of ​​the second overlapping area as the first virtual prop, the second overlapping area being the overlapping area of ​​the second candidate virtual prop and the second sector area.

[0011] In the above scheme, the first display module is further configured to: before displaying that the first virtual prop among the at least two virtual props is in a selected state, perform any of the following processes: sort the at least two virtual props according to their usage frequency, and select the virtual prop ranked first as the first virtual prop; sort the at least two virtual props according to their scene distance, and select the virtual prop ranked first as the first virtual prop, wherein the scene distance is the distance between the virtual prop and the virtual object in the virtual scene; sort the at least two virtual props according to their most recent usage time, and select the virtual prop ranked first as the first virtual prop, wherein the most recent usage time is the moment when the virtual object last used the virtual prop.

[0012] In the above scheme, the first display module is further configured to: before displaying that the first virtual prop among the at least two virtual props is in a selected state, acquire historical interaction data and prop parameters for the at least two virtual props in the virtual scene, wherein the historical interaction data for each virtual prop includes scene parameters for each use of the virtual prop; perform the following processing through a first neural network model: extract scene features from the scene parameters and extract prop features from the prop parameters; perform fusion processing on the scene features and the prop features to obtain a first fused feature; map the first fused feature to a first probability that each virtual prop is compatible with the virtual scene; and sort the at least two virtual props in descending order of the first probability, and select the virtual prop ranked first as the first virtual prop.

[0013] In the above scheme, the first display module is further configured to: display a switching control corresponding to the at least one second virtual prop that is not in the selected state; wherein the second virtual prop has the interactive function, and the switching control is used to be triggered to display the interactive control corresponding to the at least one second virtual prop.

[0014] In the above scheme, the first display module is further configured to: when the number of the second virtual props not in the selected state is one, in response to the trigger operation of the switching control, display at least one interactive control of the second virtual prop and hide at least one interactive control of the first virtual prop.

[0015] In the above scheme, the first display module is further configured to: when there are multiple second virtual props that are not in the selected state, in response to a trigger operation on the switching control, display prop identifiers corresponding one-to-one with the multiple second virtual props; in response to a trigger operation on any one of the prop identifiers, display at least one interactive control of the second virtual prop corresponding to the triggered prop identifier, and hide at least one interactive control of the first virtual prop.

[0016] In the above scheme, the first display module is further configured to: display prop identifiers corresponding one-to-one with the plurality of second virtual props in a set order; wherein the number of the plurality of second virtual props is any one of the following: 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 area of ​​the virtual scene, or a number positively correlated with the number of props of the second virtual props.

[0017] In the above scheme, the setting order is any one of the following: the usage frequency of the second virtual prop in descending order or in ascending order; the scene distance of the second virtual prop in ascending order or in descending order, where the scene distance is the distance between the virtual prop and the virtual object in the virtual scene; the recent usage time of the second virtual prop in ascending order or in descending order, where the recent usage time is the moment when the virtual object last used the second virtual prop; the interaction efficiency between the second virtual prop and the virtual object in ascending order or in descending order.

[0018] In the above scheme, the first display module 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, wherein the orientation of the virtual object coincides with the angle bisector of the central angle of the second sector area; obtain a third overlapping area between each second virtual prop and the second sector area, wherein the third overlapping area is the overlapping area between the projection area of ​​the second virtual prop on the ground of the virtual scene and the second sector area, and obtain the interaction efficiency that is positively correlated with the area of ​​the third overlapping area.

[0019] This application provides a method for interacting with props in a virtual scene, including: The human-computer interaction interface displays at least a portion of the virtual scene, wherein the at least a portion of the virtual scene includes virtual objects; In response to the appearance of at least two virtual props in the at least partial area, a first virtual prop with interactive function among the at least two virtual props and at least one interactive control corresponding to the first virtual prop are displayed based on the selected state, wherein the interactive control is used to be triggered to execute the interactive function corresponding to the interactive control, and the interactive function is used to interact with the virtual object; For at least one second virtual item that is not in the selected state, a switching control corresponding to the at least one second virtual item is displayed; wherein, the switching control is used to trigger the display of the interactive control corresponding to the at least one second virtual item.

[0020] This application provides a prop interaction device for a virtual scene, including: The second display module is used to display at least a portion of the virtual scene on the human-computer interaction interface, wherein the at least a portion of the virtual scene includes virtual objects; The second display module is further configured to respond to the appearance of at least two virtual props in the at least partial area, and display, based on the selected state, a first virtual prop with interactive function among the at least two virtual props, and at least one interactive control corresponding to the first virtual prop, wherein the interactive control is configured to be triggered to execute the interactive function corresponding to the interactive control, and the interactive function is configured to interact with the virtual object; The second display module is further configured to display a switching control corresponding to the at least one second virtual item that is not in the selected state; wherein the switching control is used to trigger the display of an interactive control corresponding to the at least one second virtual item.

[0021] This application provides an electronic device, including: Memory, used to store executable instructions; The processor, when executing executable instructions stored in the memory, implements the prop interaction method for a virtual scene provided in the embodiments of this application.

[0022] This application provides a computer-readable storage medium storing executable instructions, which, when executed by a processor, implement the virtual scene prop interaction method provided in this application.

[0023] This application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the virtual scene prop interaction method provided in this application.

[0024] The embodiments of this application have the following beneficial effects: In response to the appearance of at least two virtual props with interactive functions in at least some areas, the system displays that the first virtual prop among the at least two virtual props is selected, and displays at least one interactive control corresponding to the first virtual prop, thereby directly showing the automatically selected first virtual prop and the corresponding interactive control to the player, saving the player from the process of manually selecting the virtual prop that needs to be interacted with, and effectively improving the efficiency of human-computer interaction. Attached Figure Description

[0025] Figure 1A-1B This is a schematic diagram of the interface for the virtual scene prop interaction method provided in related technologies; Figure 2 This is a schematic diagram of the structure of the prop interaction system for a virtual scene provided in the embodiments of this application; Figure 3 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application; Figures 4A-4C This is a flowchart illustrating the virtual scene prop interaction method provided in the embodiments of this application; Figures 5A-5E This is a schematic diagram of the interface of the prop interaction method in the virtual scene provided in the embodiments of this application; Figure 6 This is a flowchart illustrating the virtual scene prop interaction method provided in the embodiments of this application; Figures 7A-7B This is a schematic diagram of the overlapping area of ​​the prop interaction method in the virtual scene provided in the embodiments of this application; Figures 8A-8E This is a schematic diagram of the overlapping area calculation of the prop interaction method in the virtual scene provided in the embodiments of this application. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0027] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0028] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0030] In the implementation of this application, the collection and processing of relevant data should strictly comply with the requirements of relevant laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.

[0031] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.

[0032] 1) Virtual scenes utilize the scene output by the device that is different from the real world. Visual perception of virtual scenes can be formed with the naked eye or with the assistance of the device. For example, two-dimensional images are output through a display screen, and three-dimensional images are output through stereoscopic display technologies such as stereoscopic projection, virtual reality and augmented reality. In addition, various possible hardware can be used to form various perceptions that simulate the real world, such as auditory perception, tactile perception, olfactory perception and motion perception.

[0033] 2) In response, used to indicate the conditions or states on which the operation performed depends. When the conditions or states on which it depends are met, one or more operations performed may be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.

[0034] 3) Client: An application running in a terminal that provides various services, such as a game client.

[0035] 4) Interactive props refer to virtual props with interactive functions. Players control virtual objects to interact with interactive props. For example, virtual objects can ride "vehicles". "Vehicles" are interactive props. Virtual objects cannot interact with tables in buildings. Therefore, "tables" are not interactive props, but only ordinary virtual items.

[0036] See Figure 1A The human-computer interaction interface 301A displays multiple virtual props 302A, which are obtained through range recognition or crosshair recognition. In response to the triggering operation of the interactive control 303A for each virtual prop 302A, a pickup operation for the corresponding virtual prop 302A is completed. See also... Figure 1B The human-computer interaction interface 301B only displays the synthesis table 302B and the non-player controlled character 303B. The synthesis table 302B and the non-player controlled character 303B are obtained through range recognition. In response to the trigger operation of the interaction control 304B for the synthesis table 302B, the synthesis table is triggered to perform the synthesis process.

[0037] In related technologies, there is no interaction priority between interactive virtual props, there are no clear prompts in the virtual scene indicating which virtual props should be interacted with first, and there is no interaction mechanism set up between multiple interactive virtual props.

[0038] In related technologies, players can place interactive virtual items in a virtual scene. This leads to numerous possibilities for the planar and spatial positions of these items, making the rules for accurate interaction between virtual objects and items more complex and difficult to achieve. Furthermore, different interaction actions may occur between a virtual object and multiple interactive virtual items, making it impossible for players to determine which virtual item a virtual object will interact with. There is no interaction priority among the interactive virtual items in these technologies; the virtual scene lacks clear indications of which virtual item has priority for interaction, and there is no established interaction mechanism between virtual objects and multiple interactive virtual items, making accurate interaction difficult when multiple virtual items are present.

[0039] This application provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for virtual scene prop interaction, which can recommend virtual props to users to improve human-computer interaction efficiency. The following describes exemplary applications of the electronic device provided in this application. The electronic device provided in this application can be implemented as various types of user terminals such as laptops, tablets, desktop computers, set-top boxes, and mobile devices (e.g., mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable gaming devices, virtual reality hardware devices).

[0040] The virtual scene prop interaction method provided in this application embodiment can be applied to virtual reality hardware devices. The virtual scene can be output entirely based on the virtual reality hardware device, or output based on the collaboration of the terminal and the server. The server calculates the scene display data of the virtual scene, which includes the prop display data of a first virtual prop in a selected state, and sends the scene display data to the virtual reality hardware device. The virtual reality hardware device displays at least a portion of the virtual scene, including virtual objects, and displays at least two virtual props with interactive functions in the at least a portion of the virtual scene. It displays the first virtual prop in a selected state among the at least two virtual props, and displays at least one interactive control corresponding to the first virtual prop. The interactive tool of the virtual reality hardware device receives the account's trigger operation for the interactive control. The virtual reality hardware device sends the operation data of the trigger operation to the server through the network. The server calculates the response data of the interactive function corresponding to the interactive control based on the operation data, and sends the response data to the virtual reality hardware device through the network. Based on the response data, the interaction process between the virtual object and the virtual prop is displayed in the virtual reality hardware device.

[0041] To facilitate a clearer understanding of the virtual scene prop interaction method provided in this application embodiment, an exemplary implementation scenario of the virtual scene prop interaction method provided in this application embodiment will be described first. The virtual scene can be output entirely based on the terminal, or output based on the collaboration between the terminal and the server.

[0042] In some embodiments, the virtual scene can be an environment for game characters to interact, such as a virtual scene for game characters to fight each other. By controlling the actions of virtual objects, two parties can interact in the virtual scene, thereby allowing users to relieve life stress during the game.

[0043] In one implementation scenario, see Figure 2 , Figure 2 This is a schematic diagram of the application mode of the prop interaction method for virtual scene provided in the embodiments of this application. It is applied to terminal 400 and server 200. Generally, it is suitable for application modes that rely on the computing power of server 200 to complete the calculation of virtual scene and output the virtual scene on terminal 400.

[0044] As an example, a user logs in to a client running on terminal 400 (e.g., a web-based game application) with an account. Server 200 calculates scene display data for the virtual scene, including the display data of a first virtual item in a selected state. The server sends the scene display data to terminal 400. At least a portion of the virtual scene, including virtual objects, is displayed in the client's human-computer interaction interface. At least two virtual items with interactive functions are displayed in the at least a portion of the virtual scene, including the first virtual item in a selected state, and at least one interactive control corresponding to the first virtual item is also displayed. Terminal 400 receives a trigger operation from the account for the interactive control. Terminal 400 sends the operation data of the trigger operation to server 200 via network 300. Server 200 calculates the response data for the corresponding interactive function of the interactive control based on the operation data. Server 200 sends the response data to terminal 400 via network 300. Based on the response data, the interaction process between the virtual object and the virtual item is displayed in the human-computer interaction interface of terminal 400.

[0045] As an example, a user logs in to a client running on terminal 400 (e.g., a web-based game application) with an account. The client calculates scene display data for the virtual scene, including the display data of a first virtual item that is selected. The client's human-computer interaction interface displays at least a portion of the virtual scene containing virtual objects, displays at least two virtual items with interactive functions in the at least a portion of the area, displays the first virtual item that is selected among the at least two virtual items, and displays at least one interactive control corresponding to the first virtual item. Terminal 400 receives a trigger operation from the account for the interactive control. The client calculates the response data of the interactive function corresponding to the interactive control based on the operation data, and displays the interaction process between the virtual object and the virtual item in the human-computer interaction interface of terminal 400 based on the response data.

[0046] In some embodiments, the terminal 400 can implement the virtual scene prop interaction method provided in this application embodiment by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (APP), that is, a program that needs to be installed in the operating system to run, such as a game APP (i.e., the client mentioned above) or a live streaming APP; it can also be a mini-program, that is, a program that only needs to be downloaded into the browser environment to run; or it can be a game mini-program that can be embedded in any APP. In short, the above-mentioned computer program can be any form of application, module or plugin.

[0047] The embodiments of this application can be implemented with the help of cloud technology, which refers to a hosting technology that unifies a series of resources such as hardware, software, and network within a wide area network or local area network to realize the computation, storage, processing, and sharing of data.

[0048] Cloud technology is a general term encompassing network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form resource pools, allowing for on-demand use with flexibility and convenience. Cloud computing technology will become a crucial support. The backend services of cloud computing systems require substantial computing and storage resources.

[0049] As an example, server 200 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Terminal 400 can be a smartphone, tablet, laptop, desktop computer, smart speaker, or smartwatch, but is not limited to these. Terminal 400 and server 200 can be directly or indirectly connected via wired or wireless communication, which is not limited in this embodiment.

[0050] See Figure 3 , Figure 3 This is a schematic diagram of the structure of an electronic device for the virtual scene prop interaction method provided in this application embodiment. The description takes the electronic device as a terminal. Figure 3 The terminal 400 shown includes at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The various components in the terminal 400 are coupled together via a bus system 440. It is understood that the bus system 440 is used to implement communication between these components. In addition to a data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 3 The general labeled all buses as Bus System 440.

[0051] Processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0052] User interface 430 includes one or more output devices 431 that enable the presentation of media content, including one or more speakers and / or one or more visual displays. User interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0053] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices physically located away from the processor 410.

[0054] The memory 450 may include volatile memory or non-volatile memory, or both. 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 this application embodiment is intended to include any suitable type of memory.

[0055] In some embodiments, memory 450 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.

[0056] Operating system 451 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks; The network communication module 452 is used to reach other computing devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: Bluetooth, WiFi, and Universal Serial Bus (USB), etc. Presentation module 453 is configured to enable the presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 431 associated with user interface 430 (e.g., a display screen, a speaker, etc.). The input processing module 454 is used to detect and translate one or more user inputs or interactions from one or more input devices 432.

[0057] In some embodiments, the virtual scene prop interaction device provided in this application can be implemented in software. Figure 3 The diagram shows a prop interaction device 455-1 for a virtual scene stored in memory 450, which can be software in the form of programs and plugins, including: a first display module 4551. Figure 3 Also shown is a prop interaction device 455-2 for a virtual scene stored in memory 450, which may be software in the form of programs and plug-ins, including: a second display module 4552. These modules are logical and can therefore be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.

[0058] The method for interacting with props in a virtual scene provided in this application will be described by referring to the exemplary application and implementation of the terminal provided in the embodiments of this application.

[0059] See Figure 4A , Figure 4A This is a flowchart illustrating the virtual scene prop interaction method provided in the embodiments of this application, which will be combined with... Figure 4A Steps 101-102 are shown and explained.

[0060] In step 101, at least a portion of the virtual scene is displayed on the human-computer interaction interface.

[0061] As an example, at least a portion of the area includes a virtual object. The virtual scene containing at least a portion of the virtual object can be displayed in the human-computer interaction interface. The at least a portion of the area can be the entire area or a portion of the area. The virtual object can be fully displayed in the human-computer interaction interface (i.e., the whole body of the virtual object is displayed) or partially displayed in the human-computer interaction interface (e.g., the upper body of the virtual object is displayed).

[0062] In step 102, in response to the appearance of at least two virtual props with interactive functions in at least a portion of the area, it is shown that the first virtual prop of the at least two virtual props is selected, and at least one interactive control corresponding to the first virtual prop is displayed.

[0063] As an example, see Figure 5B The human-computer interaction interface 501B displays a chair 502B and a supply box 503B. The chair 502B has a selection mark 504B (indicating that it is in a selected state). The human-computer interaction interface also displays the interactive control 505B of the chair 502B. In response to the trigger operation of the interactive control 505B, the virtual object 506B sits on the chair 502B. The number of first virtual props is one. The first virtual prop is displayed in a selected state and the corresponding interactive control is displayed, which can clearly indicate to the user the virtual props that should be interacted with first.

[0064] As an example, interactive controls are used to be triggered to execute the corresponding interactive functions, which are used to interact with virtual objects. The first virtual prop can correspond to one or more interactive controls. For example, when the first virtual prop is a chair, there is a corresponding "sit down" interactive control. When the "sit down" interactive control is triggered, it controls the virtual object to sit on the chair. When the first virtual prop is a vehicle, there are corresponding "drive" and "ride" interactive controls. When the "drive" interactive control is triggered, it controls the virtual object to enter the driver's seat of the vehicle.

[0065] As an example, at least two interactive virtual props can be located anywhere in a portion of the area, or at least two interactive virtual props can be within the interaction range of a virtual object, where the interaction range is a circle with a radius specified by a distance from the virtual object.

[0066] As an example, the interaction range of a virtual object is at least a portion of the area displayed in the human-computer interaction interface, or the interaction range of a virtual object may be within at least a portion of the area displayed in the human-computer interaction interface, that is, the interaction range of a virtual object is a sub-region of at least a portion of the area displayed in the human-computer interaction interface.

[0067] In response to the appearance of at least two virtual props with interactive functions in at least some areas, the system displays that the first virtual prop among the at least two virtual props is selected, and displays at least one interactive control corresponding to the first virtual prop, thereby directly showing the automatically selected first virtual prop and the corresponding interactive control to the player, saving the player from the process of manually selecting the virtual prop that needs to be interacted with, and effectively improving the efficiency of human-computer interaction.

[0068] As an example, for at least one second virtual item that is not selected, a switching control corresponding to the at least one second virtual item is displayed. When the number of second virtual items not selected is one, in response to a trigger operation on the switching control, at least one interactive control of the second virtual item is displayed, and at least one interactive control of the first virtual item is hidden. When the number of second virtual items not selected is multiple, in response to a trigger operation on the switching control, item identifiers corresponding one-to-one with the multiple second virtual items are displayed; in response to a trigger operation on any item identifier, at least one interactive control of the second virtual item corresponding to the triggered item identifier is displayed, and at least one interactive control of the first virtual item is hidden. This embodiment of the application achieves the switching display between interactive controls of at least two virtual items, thereby enabling interaction with multiple virtual items using a limited number of controls.

[0069] As an example, in response to a change in the orientation of a virtual object within a virtual scene or the virtual object moving within the virtual scene, a third virtual prop is displayed as selected, while the first virtual prop is deselected. For instance, if the virtual object's position changes, moving away from the first virtual prop and closer to the third virtual prop, the most suitable virtual prop for interacting with the virtual object changes from the first virtual prop to the third virtual prop. Therefore, the third virtual prop is automatically selected, while the first virtual prop remains deselected. Through the embodiments of this application, the automatically selected virtual prop can be adaptively adjusted according to the positional and directional relationship between the virtual object and the virtual prop, improving human-computer interaction efficiency and the intelligence level of the virtual scene.

[0070] In some embodiments, in response to the appearance of at least two interactive virtual props in at least a portion of the area, a first display mode is applied to the at least two virtual props in the at least a portion of the area. The salience of the first display mode is positively correlated with the characteristic values ​​of the at least two virtual props, which include at least one of the following: the usage frequency of the virtual props, the distance between the virtual props and virtual objects, and the orientation angle between the virtual props and virtual objects. A first line connecting the virtual props and virtual objects is obtained, and a first ray extending from the virtual object as its endpoint towards the crosshair direction (the orientation of the virtual object) is obtained. The angle between the first line and the first ray is used as the orientation angle between the virtual props and virtual objects, whereby the orientation angle characterizes the degree of deviation of the virtual props relative to the virtual objects. By applying first display modes with different salience levels to the virtual props, the differences between the virtual props can be highlighted, and richer information can be provided to the user, such as comparisons of usage frequency and distance. This enriches the information obtained by the player through the human-computer interaction interface, improving user experience and information display efficiency.

[0071] As an example, virtual props in the human-computer interaction interface can be displayed in a first display mode. For instance, the first display mode could be applying a stroke effect to the virtual prop, where the stroke effect is an effect that deepens the lines of the virtual prop. See [link to relevant documentation]. Figure 5D The human-computer interaction interface 501D displays a chair 502D and a supply box 503D. Both the chair and the supply box are virtual props. The chair is more prominent than the supply box. For example, the chair is used more frequently than the supply box, so the chair is more prominent than 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 chair is more prominent than the supply box.

[0072] In some embodiments, in response to the appearance of at least two interactive virtual props in at least a portion of the area, a first display mode is applied to the at least two virtual props in the human-computer interaction interface, and a second display mode is applied to the other virtual props in the human-computer interaction interface; wherein, the second display mode differs from the first display mode, and the other virtual props do not have interactive functions. By applying different display modes to virtual props with and without interactive functions, players can be drawn to the virtual props with interactive functions, resulting in richer information for players through the human-computer interaction interface, which is beneficial to improving user experience and information display efficiency.

[0073] As an example, see Figure 5EThe human-computer interaction interface 501E displays a chair 502E and a supply box 503E. The human-computer interaction interface also displays a stone 504E. Among them, the chair 502E and the supply box 503E are virtual props with interactive functions, while the stone 504E is another virtual prop without interactive functions. Therefore, a first display method based on an outline effect is applied to the chair 502E and the supply box 503E, and a second display method without an outline effect is applied to the stone 504E. The first display method is not limited to an outline effect, and the first display method and the second display method can be different.

[0074] In some embodiments, before displaying that the first virtual prop among at least two virtual props is selected, a first sector area is determined with the virtual object as the center, a set distance as the radius, and a first angle as the central angle, wherein the orientation of the virtual object coincides with the angle bisector of the central angle of the first sector area; at least one first candidate virtual prop is determined that overlaps with the first sector area, wherein the projection area of ​​the first candidate virtual prop on the ground of the virtual scene overlaps with the first sector area; and one of the at least one first candidate virtual prop is selected as the first virtual prop.

[0075] In some embodiments, the above-mentioned designation of one of the at least one first candidate virtual items as the first virtual item can be achieved through the following technical solutions: when the first sector area includes one first candidate virtual item, the first candidate virtual item is determined as the first virtual item; when the first sector area includes two first candidate virtual items, the first candidate virtual item with the larger area of ​​the first overlapping area is designated as the first virtual item, and the first overlapping area is the area where the first candidate virtual item overlaps with the first sector area; when the first sector area includes at least three first candidate virtual items, the execution... The following processing is performed: A second sector area is determined with the virtual object as the center, a set distance as the radius, and a second angle as the central angle. The orientation of the virtual object coincides with the angle bisector of the central angle of the second sector area, and the second angle is smaller than the first angle. At least one second candidate virtual prop is determined that overlaps with the second sector area, wherein the projection area of ​​the second candidate virtual prop on the ground of the virtual scene overlaps with the second sector area. The second candidate virtual prop with the largest area in the second overlapping region is selected as the first virtual prop. The second overlapping region is the area where the second candidate virtual prop overlaps with the second sector area. Through this embodiment, the preferred first virtual prop can be clearly identified in various scenarios. Furthermore, the first virtual prop is the one most convenient for the player to operate, eliminating the need for players to experiment with inconveniently interactive virtual props, thereby effectively improving user experience and human-computer interaction efficiency.

[0076] As an example, see Figure 8A , Figure 8AThe diagram shows the projection 801A of virtual prop A1 onto the ground in a virtual scene and the projection 802A of virtual prop A2 onto the ground in a virtual scene. The ground is the plane formed by the XY coordinate axes. A first sector 804A (crosshair field of view) is obtained with virtual object 803A as the center and a set distance r as the radius. The ray facing the crosshair direction of the virtual object is the angle bisector of the first sector. Since only the projections of two virtual props overlap with the first sector, it indicates that both virtual props are within the crosshair field of view. Interaction is prioritized with the virtual prop whose projection occupies a larger proportion of the crosshair field of view. Therefore, the virtual prop with the larger overlap area between its projection and the sector can be directly selected as the first virtual prop for priority interaction. For example, [the diagram shows the projection of virtual prop A1 onto the ground in a virtual scene]. Figure 8A The virtual prop A1 corresponding to the projection 801A shown is the first virtual prop for priority interaction.

[0077] As an example, see Figure 8B , Figure 8B The projections 801B, 802B, and 803B of virtual prop B1, B2, and B3 on the ground in the virtual scene are shown. A first sector 805B (first crosshair field of view) with virtual object 804B as the center and a set distance r as the radius is obtained. The ray facing the crosshair direction of the virtual object is the angle bisector of the first sector 805B. Since the projections of three virtual props overlap with the first sector 805B, it indicates that at least three virtual props exist within the crosshair field of view. Based on the crosshair orientation, the second... The secondary crosshair field of view is used to determine the first virtual prop for priority interaction. A second sector 806B (second crosshair field of view) is obtained with virtual object 804B as the center and a set distance r as the radius. The ray facing the crosshair direction from the virtual object is the angle bisector of the second sector 806B. The second sector is smaller than the first sector. Virtual props B1, B2, and B3 are all within the first crosshair field of view, while virtual props B1 and B2 are both within the second crosshair field of view. Therefore, the virtual prop with the largest overlap area between its projection and the second sector can be directly selected as the first virtual prop for priority interaction. Figure 8B The virtual prop B2 corresponding to the projection 802B shown is the first virtual prop for priority interaction.

[0078] In some embodiments, before displaying the first virtual prop among at least two virtual props in a selected state, any of the following processes are performed: sorting the at least two virtual props according to usage frequency, and designating the virtual prop at the top of the sort as the first virtual prop, where 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 props according to scene distance, and designating the virtual prop at the top of the sort as the first virtual prop, where scene distance is the distance between the virtual prop and the virtual object in the virtual scene; sorting the at least two virtual props according to recent usage time, and designating the virtual prop at the top of the sort as the first virtual prop, where recent usage time is the time when the virtual object last used the virtual prop. These sorting methods clearly define the first virtual prop that needs to be displayed in a selected state, eliminating the need for users to manually select virtual props, thus improving human-computer interaction efficiency. Furthermore, displaying only the interactive controls of the top-ranked virtual prop improves the utilization of display resources.

[0079] As an example, the above sorting process can be either ascending or descending. In order to recommend the best first virtual item to the user, when sorting based on usage frequency and recent usage time, a descending sorting process can be adopted, and when sorting based on scene distance, an ascending sorting process can be adopted. That is, the first virtual item is the virtual item with the highest usage frequency among at least two virtual items, or the virtual item that is closest to the virtual object among at least two virtual items, or the virtual item that was most recently used by the virtual object among at least two virtual items.

[0080] In some embodiments, before displaying the first virtual prop among at least two virtual props in a selected state, historical interaction data and prop parameters for the at least two virtual props in the virtual scene are obtained. The historical interaction data for each virtual prop includes scene parameters for each use of the virtual prop. The following processing is performed through a first neural network model: scene features are extracted from the scene parameters, and prop features are extracted from the prop parameters; the scene features and prop features are fused to obtain a first fused feature; the first fused feature is mapped to a first probability of each virtual prop being compatible with the virtual scene; the at least two virtual props are sorted according to the first probability from high to low, and the virtual prop ranked first is selected as the first virtual prop. The neural network model can improve the intelligence and accuracy of the interactive controls for displaying the first virtual prop, effectively improving the efficiency of user interaction with virtual props. Furthermore, by displaying only the interactive controls for the first virtual prop, the utilization efficiency of display resources can be effectively improved.

[0081] As an example, the historical interaction data for each virtual item includes scene parameters for each use of the virtual item. Scene parameters include battle data, environment data, and virtual object status data, etc. Item parameters are the parameters of the virtual item itself, such as the purpose of the virtual item, etc. Sample scene parameters and sample item parameters of each sample virtual item are collected in the sample virtual scene. Training samples are constructed based on the collected sample scene parameters and sample item parameters. The training samples are used as the input to the first neural network model to be trained. Whether the sample virtual item is the preferred virtual item in the sample virtual scene is used as the labeling data. When multiple virtual items are displayed at the same time and the sample virtual item is used first, the label of the sample virtual item is 1. When multiple virtual items are displayed at the same time and the sample virtual item is not used first, the label of the sample virtual item is 0. The first neural network model is trained based on the training samples and the labeling data, so that it can be directly determined whether a certain virtual item is the first recommended virtual item in the future.

[0082] In some embodiments, see Figure 4B , Figure 4B This is a flowchart illustrating the virtual scene prop interaction method provided in the embodiments of this application, based on... Figure 4A It can also execute Figure 4B Step 103.

[0083] In step 103, for at least one second virtual item that is not selected, a switching control corresponding to the at least one second virtual item is displayed.

[0084] As an example, the second virtual prop has interactive functionality, and the toggle control is used to trigger the display of interactive controls corresponding to at least one second virtual prop.

[0085] In some embodiments, when the number of second virtual items not in a selected state is one, in response to a trigger operation on the switching control, at least one interactive control of the second virtual item is displayed (indicating that the second virtual item is selected and the first virtual item is unselected), and at least one interactive control of the first virtual item is hidden. This embodiment of the application achieves the switching display between the interactive controls of two virtual items, thereby enabling interaction with multiple virtual items through a single interactive control.

[0086] As an example, the second virtual prop can correspond to one or more interactive controls. For instance, when the second virtual prop is a chair, there is a "sit down" interactive control. When the "sit down" interactive control is triggered, the virtual object is controlled to sit on the chair. When the second virtual prop is a vehicle, there are "drive" and "ride" interactive controls. When the "drive" interactive control is triggered, the virtual object is controlled to enter the driver's seat of the vehicle.

[0087] As an example, see Figure 5B The human-computer interaction interface 501B displays a chair 502B and a supply box 503B. The chair 502B displays a selection mark 504B (indicating that it is selected), while the supply box 503B does not display a selection mark 504B (indicating that it is not selected). The human-computer interaction interface also displays the interactive control 505B of the chair 502B. In response to the trigger operation of the switching control 507B, the interactive control 505B of the chair 502B is hidden in the human-computer interaction interface, and the interactive control 508B of the supply box 503B is displayed, with the selection mark 504B displayed in the supply box 503B.

[0088] In some embodiments, when there are multiple second virtual items that are not selected, in response to a trigger operation on a switching control, item identifiers (e.g., identifier controls) corresponding one-to-one with the multiple second virtual items are displayed; in response to a trigger operation on any item identifier, at least one interactive control of the second virtual item corresponding to the triggered item identifier is displayed (showing that the second virtual item is selected and the first virtual item is unselected), and at least one interactive control of the first virtual item is hidden. This embodiment of the application achieves the switching display between interactive controls of at least three virtual items, thereby enabling interaction with multiple virtual items using a limited number of controls.

[0089] As an example, see Figure 5C The human-computer interaction interface 501C displays a first chair 502C, a supply box 503C, and a second chair 504C. A selection mark 505C is displayed on the first chair 502C. The human-computer interaction interface also displays the interactive control 506C of the first chair 502C. In response to a trigger operation on the switching control 511C, the interactive control 506C of the first chair 502C is hidden in the human-computer interaction interface, and the identification control 508C of the supply box 503C and the identification control 509C of the second chair are displayed. In response to a trigger operation on the identification control 508C of the supply box 503C, a selection mark 505C is displayed in the supply box 503C. The identification control 508C of the supply box 503C and the identification control 509C of the second chair are hidden in the human-computer interaction interface, and the interactive control 510C of the supply box 503C is displayed.

[0090] In some embodiments, the above-mentioned display of prop icons corresponding one-to-one with multiple second virtual props can be achieved through the following technical solution: displaying prop icons (e.g., icon controls) corresponding one-to-one with multiple second virtual props in a predetermined order; wherein the number of multiple second virtual props is any one of the following: a predetermined number, a number positively correlated with the size of the human-computer interaction interface, a number positively correlated with the area of ​​the free area of ​​the virtual scene, or a number positively correlated with the number of props in the second virtual props. By displaying the prop icons of a predetermined number of second virtual props, a recommendation function can be formed to the user, and the utilization rate of display resources can be effectively improved.

[0091] As an example, let's take a scenario where the number of unselected second virtual items is 5. See [link / reference] Figure 5C In response to a trigger operation on the switching control 511C, the interaction control 506C of the first chair 502C is hidden in the human-computer interaction interface, while the identification control 508C of the supply box 503C and the identification control 509C of the second chair are displayed. The number of multiple second virtual props is 2, indicating that only the item icons of 2 second virtual props are displayed for 5 second virtual props. This number can be a set number; the number can also be positively correlated with the size of the human-computer interaction interface. The larger the size of the human-computer interaction interface, the more second virtual props will display item icons. For example, when the size of the human-computer interaction interface is larger than the current size of the human-computer interaction interface, the item icons of 4 second virtual props can be displayed for 5 second virtual props. The number can also be positively correlated with the area of ​​the free area in the virtual scene. The larger the area of ​​the free area in the virtual scene, the more second virtual props will be displayed in the human-computer interaction interface. For example, when the area of ​​the free area in the virtual scene is larger than the area of ​​the current virtual scene's free area, the prop icons of 4 second virtual props can be displayed for 5 second virtual props. The number can also be positively correlated with the number of second virtual props. The larger the number of second virtual props, the more second virtual props will be displayed. For example, the prop icons of 3 second virtual props can be displayed for 5 second virtual props, and the prop icons of 2 second virtual props can be displayed for 4 second virtual props.

[0092] In some embodiments, the order of selection can be any of the following: the usage frequency of the second virtual item from high to low or from low to high; the scene distance of the second virtual item from small to large or from large to small, where scene distance is the distance between the virtual item and the virtual object in the virtual scene; the recent usage time of the second virtual item from near to far or from far to near, where recent usage time is the moment when the virtual object last used the second virtual item; or the interaction efficiency between the second virtual item and the virtual object from small to large or from large to small. This sorting method clearly defines the second virtual item that needs to display its identifier for switching, and displaying it in sequence provides players with richer item information, improving human-computer interaction efficiency.

[0093] As an example, the above sorting process can be either ascending or descending. In order to recommend virtual props to users, when sorting based on usage frequency, recent usage time, and interaction efficiency, a descending sorting process can be adopted. When sorting based on scene distance, an ascending sorting process can be adopted. That is, the second virtual prop that displays the prop icon is either the second virtual prop that is in the unselected state and has a high usage frequency, or the second virtual prop that is in the unselected state and is close to the virtual object, or the second virtual prop that has been used by the virtual object in the recent period of time, or the second virtual prop that has a high interaction efficiency.

[0094] In some embodiments, a second sector area is determined with the virtual object as the center, a set distance as the radius, and a second angle as the central angle, wherein the orientation of the virtual object coincides with the angle bisector of the central angle of the second sector area, and the second angle is smaller than the first angle; a third overlapping area between each second virtual prop and the second sector area is obtained, the third overlapping area being the overlapping area between the projection area of ​​the second virtual prop on the ground of the virtual scene and the second sector area, and the interaction efficiency positively correlated with the area of ​​the third overlapping area is obtained.

[0095] As an example, see Figure 8E , Figure 8EThe image shows the projections 801E of virtual prop E1, 802E, 803E, and 807E of virtual prop E4 on the ground in a virtual scene. Virtual props E2 and E4 are stacked on the Z-axis. A second sector 806E (second crosshair view) is obtained with virtual object 804E as its center and a radius of a set distance r. The ray facing the crosshair direction of the virtual object is the angle bisector of the second sector 806E. Virtual props E1, E2, and E4 are all within the second crosshair view. The virtual prop with the largest overlap area between its projection and the second sector can be directly selected as the first virtual prop for priority interaction. Figure 8E The virtual prop E2 corresponding to projection 802E is shown as the first virtual prop for priority interaction. The virtual props E1 corresponding to projection 801E and E4 corresponding to projection 804E are used as the second virtual props. Since the area of ​​the third overlapping region corresponding to projection 801E is larger than the area of ​​the third overlapping region corresponding to projection 804E, it indicates that the interaction efficiency of virtual prop E1 is higher than that of virtual prop E4.

[0096] In some embodiments, see Figure 4C , Figure 4C This is a flowchart illustrating the virtual scene prop interaction method provided in the embodiments of this application, which will be combined with... Figure 4C Steps 201-203 are shown and explained.

[0097] In step 201, at least a portion of the virtual scene is displayed on the human-computer interaction interface.

[0098] As an example, at least some areas include virtual objects.

[0099] In step 202, in response to the appearance of at least two virtual props in at least a portion of the area, a first virtual prop with interactive functionality and at least one interactive control corresponding to the first virtual prop are displayed based on the selected state.

[0100] As an example, interactive controls are used to trigger the execution of the corresponding interactive functions, which are used to interact with virtual objects.

[0101] In step 203, for at least one second virtual item that is not selected, a switching control corresponding to the at least one second virtual item is displayed.

[0102] As an example, the toggle control is used to trigger an interactive control that corresponds to at least one second virtual item.

[0103] The implementation methods for steps 201 to 203 can refer to the implementation methods for steps 101 to 103.

[0104] In response to the appearance of at least two interactive virtual props in at least a portion of the area, the embodiments of this application display that the first virtual prop among the at least two virtual props is selected, and display at least one interactive control corresponding to the first virtual prop. This directly displays the automatically selected first virtual prop and its corresponding interactive control to the player, eliminating the need for the player to manually select the virtual prop to be interacted with, thus effectively improving the efficiency of human-computer interaction. Furthermore, by switching controls, the display of interactive controls for multiple virtual props can be switched, thereby enabling interaction with multiple virtual props with a limited number of controls, which can effectively improve the utilization rate of display resources.

[0105] The following will describe an exemplary application of the embodiments of this application in a real-world application scenario.

[0106] In some embodiments, a client running on an account-login terminal (e.g., a web-based game application) calculates scene display data for a virtual scene, including the display data of a first virtual item in a selected state. The server sends this scene display data to the terminal. The client's human-computer interaction interface displays at least a portion of the virtual scene containing virtual objects, at least two virtual items with interactive functions within that portion of the scene, the first virtual item in a selected state among the at least two virtual items, and at least one interactive control corresponding to the first virtual item. The terminal receives a trigger operation from the account for the interactive control, sends the operation data of the trigger operation to the server via the network, calculates response data for the corresponding interactive function of the interactive control based on the operation data, sends the response data to the terminal via the network, and displays the interaction process between the virtual object and the virtual item in the terminal's human-computer interaction interface based on the response data.

[0107] In a game scenario, players control virtual objects to interact with interactive virtual props in the virtual scene. After a virtual object selects a virtual prop, it can perform various interactive actions. For example, when the virtual prop is a chair, the virtual object can sit down on the chair; when the virtual prop is a bathtub, the virtual object can fill or empty the bathtub. However, when multiple virtual props are within the interaction range of the virtual object at the same time, the user's selection operation for the chair must be received first, followed by the user's sitting operation on the chair. That is, the user needs to perform two operations to achieve interaction. The virtual scene prop interaction method provided in this application embodiment can clearly identify the currently interacting virtual prop and efficiently and accurately switch between more interactive virtual props, which can effectively improve the efficiency of human-computer interaction. For example, only the user's sitting operation on the chair needs to be received to achieve the interaction process with the virtual prop.

[0108] In some embodiments, see Figure 5A The human-computer interaction interface 501A displays a virtual prop 502A, which has a selection marker 503A. An interactive control 504A is also displayed on the interface. In response to a trigger operation on the interactive control 504A, a virtual object 505A sits on the virtual prop 502A. When there is only one interactive virtual prop within the virtual object's recognition range, the interactive virtual prop and its corresponding interactive control are displayed.

[0109] In some embodiments, see Figure 5B The human-computer interaction interface 501B displays a chair 502B and a supply box 503B. A selection marker 504B is displayed on the chair 502B. The interface also displays the interactive control 505B for the chair 502B. In response to a trigger operation on the interactive control 505B, the virtual object 506B sits on the chair 502B. In response to a trigger operation on the switching control 507B, the interactive control 505B for the chair 502B is hidden in the human-computer interaction interface, and the interactive control 508B for the supply box 503B is displayed, along with the selection marker 504B. When there are only two interactive virtual items within the virtual object's recognition range, the currently recommended interactive virtual item, its corresponding interactive control, and a switching control for quickly switching to other virtual items are displayed.

[0110] In some embodiments, see Figure 5C , Figure 5CThis is a schematic diagram of the interface of the virtual scene prop interaction method provided in the embodiments of this application. The human-computer interaction interface 501C displays a first chair 502C, a supply box 503C, and a second chair 504C. A selection mark 505C is displayed on the first chair 502C. The human-computer interaction interface also displays an interaction control 506C for the first chair 502C. In response to a trigger operation on the interaction control 506C of the first chair 502C, a virtual object 507C sits on the first chair 502C. In response to a trigger operation on the switching control 511... The trigger operation of C hides the interaction control 506C of the first chair 502C in the human-computer interaction interface and displays the identification control 508C of the supply box 503C and the identification control 509C of the second chair. In response to the trigger operation on the identification control 508C of the supply box 503C, a selection mark 505C is displayed in the supply box 503C. The identification control 508C of the supply box 503C and the identification control 509C of the second chair are hidden in the human-computer interaction interface, and the interaction control 510C of the supply box 503C is displayed. When there are at least three interactive virtual props within the recognition range of the virtual object, the interaction control of the virtual props is switched through a judgment mechanism, and the currently recommended virtual prop is displayed.

[0111] In some embodiments, when there are multiple interactive virtual props that are close to the virtual object in the virtual scene, the player does not need to move the crosshair to select the interactive virtual prop. The recommended interactive virtual prop can be accurately displayed. For multiple interactive virtual props within the current recognition range, quantity-based recognition processing is performed, and different recognition processes are executed for different quantities, thereby achieving accurate switching between multiple virtual props.

[0112] In some embodiments, see Figure 6 , Figure 6This is a flowchart illustrating a virtual scene prop interaction method provided in this application embodiment. Players can control virtual objects to interact with freely placed virtual props in the virtual scene. By identifying and switching virtual props, players can accurately and conveniently complete interactions with multiple virtual props. In step 601, the virtual scene is identified to obtain the virtual props to be interacted with. In step 602, a trigger operation for the virtual props is received. In step 603, the interaction between the virtual object and the virtual props is executed. Step 601 can be implemented through step 6011, where, when one virtual prop is identified, it is selected as the virtual prop to be interacted with. Step 601 can also be implemented through steps 6012 and 6013, where, in step 6012, when two virtual props are identified, the virtual prop with the larger identification range is selected as the virtual prop to be interacted with. In step 6013, in response to a switching operation, the interaction controls for the two virtual props are switched and displayed. Step 601 can be implemented through steps 6014 and 6015. In step 6014, when at least three virtual props are identified, a secondary range recognition based on the crosshair is performed, and the virtual prop with the largest recognition range is taken as the virtual prop to be interacted with. In step 6015, in response to the switching operation, the interactive controls of at least three virtual props are switched to be displayed.

[0113] In some embodiments, players control virtual objects to interact with different objects (virtual items) in the game scene, which can involve different types of operations such as viewing, talking, and picking up. When multiple objects exist simultaneously in the virtual scene, see [reference needed]. Figures 7A-7B The virtual object interacts with objects A, B, and C. The objects can be stacked, for example, objects B and D are stacked together.

[0114] In some embodiments, see Figure 8A , Figure 8A The diagram shows the projection 801A of virtual prop A1 onto the ground in the virtual scene and the projection 802A of virtual prop A2 onto the ground in the virtual scene. The ground is the plane formed by the XY coordinate axes. A sector 804A (crosshair field of view) is obtained with virtual object 803A as the center and a set distance r as the radius. The ray facing the crosshair direction of the virtual object is the angle bisector of the sector. Since only the projections of two virtual props overlap with the sector, it indicates that both virtual props are within the crosshair field of view. Interaction is prioritized with the virtual prop whose projection occupies a larger proportion of the crosshair field of view. Therefore, the virtual prop with the larger overlap area between its projection and the sector can be directly selected as the virtual prop to be interacted with first. For example, [the diagram shows the projection of virtual prop A1 onto the ground in the virtual scene and the projection of virtual prop A2 ... Figure 8AThe virtual prop A1 corresponding to projection 801A shown is the virtual prop with priority for interaction. By triggering the switching control, the display of the interaction controls of the two virtual props can be switched, without the player needing to control the virtual object to move the crosshair to change the proportion of the virtual prop's projection in the crosshair's field of view.

[0115] In some embodiments, see Figure 8B , Figure 8B The projections 801B, 802B, and 803B of virtual prop B1, B2, and B3 on the ground in the virtual scene are shown. A first sector 805B (first crosshair field of view) with virtual object 804B as the center and a set distance r as the radius is obtained. The ray facing the crosshair direction of the virtual object is the angle bisector of the first sector 805B. Since the projections of three virtual props overlap with the first sector 805B, it indicates that at least three virtual props exist within the crosshair field of view. Based on the crosshair orientation, the first sector 805B is obtained. A secondary crosshair field of view is used to determine the virtual prop to be interacted with first. A second sector 806B (second crosshair field of view) is obtained, centered on virtual object 804B and with a radius of a set distance r. The ray from the virtual object facing the crosshair direction is the angle bisector of the second sector 806B. The second sector is smaller than the first sector. Virtual props B1, B2, and B3 are all within the first crosshair field of view, while virtual props B1 and B2 are both within the second crosshair field of view. Therefore, the virtual prop with the largest overlap area between its projection and the second sector can be directly selected as the virtual prop to be interacted with first. Figure 8B The virtual prop B2 corresponding to the projection 802B shown is the virtual prop with priority interaction, and the display switching between the interactive controls corresponding to virtual props B1, B2 and B3 can be realized through operation controls.

[0116] In some embodiments, see Figure 8C , Figure 8C This is a schematic diagram illustrating the overlapping area calculation of the virtual scene prop interaction method provided in this application embodiment. Figure 8C The projections 801C of virtual prop C1, 802C of virtual prop C2, and 803C of virtual prop C3 on the ground in the virtual scene are shown. A sector 805C with virtual object 804C as the center and a set distance r as the radius is obtained. The ray facing the crosshair of the virtual object is the angle bisector of sector 805C. Since the projections of virtual prop C1 and virtual prop C2 do not overlap with sector 805C, only the projection of virtual prop C3 overlaps with sector 805C. Therefore, virtual prop C3 is the virtual prop with priority for interaction, and interaction with virtual props C1 and C2 will not be triggered.

[0117] In some embodiments, see Figure 8D , Figure 8D This is a schematic diagram illustrating the overlapping area calculation of the virtual scene prop interaction method provided in this application embodiment. Figure 8D The projections 801D of virtual prop D1, 802D of virtual prop D2, and 803D of virtual prop D3 on the ground in the virtual scene are shown. A first sector 805D (first crosshair field of view) with virtual object 804D as the center and a set distance r as the radius is obtained. The ray facing the crosshair direction of the virtual object is the angle bisector of the first sector 805D. Since the projections of three virtual props overlap with the first sector 805D, it indicates that at least three virtual props exist within the crosshair field of view. Based on the crosshair orientation, the first sector 805D is obtained. A secondary crosshair field of view is used to determine the virtual prop to be interacted with first. A second sector 806D (second crosshair field of view) is obtained, centered on the virtual object 804D and with a radius of a set distance r. The ray from the virtual object facing the crosshair direction is the angle bisector of the second sector 806D. The second sector is smaller than the first sector. Virtual props D1, D2, and D3 are all within the first crosshair field of view, while virtual props D1 and D2 are both within the second crosshair field of view. Therefore, the virtual prop with the largest overlap area between its projection and the second sector can be directly selected as the virtual prop to be interacted with first. Figure 8D The virtual prop D1 corresponding to the projection 801D shown is the virtual prop with priority interaction, and the display switching between the interactive controls corresponding to virtual prop D1, virtual prop D2 and virtual prop D3 can be realized through operation controls.

[0118] In some embodiments, see Figure 8E , Figure 8EThe projections of virtual prop E1 (801E), virtual prop E2 (802E), virtual prop E3 ​​(803E), and virtual prop E4 (807E) onto the ground in the virtual scene are shown. Virtual props E2 and E4 are stacked on the Z-axis. A first sector (first crosshair field of view) is obtained with virtual object 804E as its center and a radius of a set distance r. The ray from the virtual object facing the crosshair direction is the angle bisector of the first sector 805E. Since the projections of the three virtual props overlap with the first sector 805E, this represents the area within the crosshair field of view. There are at least three virtual props. A secondary crosshair view is obtained based on the crosshair orientation to determine the virtual prop to be interacted with first. A second sector 806E (second crosshair view) is obtained with virtual object 804E as the center and a set distance r as the radius. The ray facing the crosshair direction from the virtual object is the angle bisector of the second sector 806E. The second sector is smaller than the first sector. Virtual props E1, E2, E3, and E4 are all within the first crosshair view, and virtual props E1, E2, and E4 are all within the second crosshair view. Therefore, the virtual prop with the largest overlap area between its projection and the second sector can be directly selected as the virtual prop to be interacted with first. Figure 8E The virtual prop E2 corresponding to the projection 802E shown is the virtual prop with priority interaction, and the display switching between the interactive controls corresponding to virtual props E1, E2 and E4 can be realized through operation controls.

[0119] In related technologies, when multiple virtual items are densely placed in a virtual scene, it is difficult to determine the virtual item to be interacted with first, especially when multiple virtual items are stacked along the Z-axis. Frequent screen movement may be required to control the crosshair and adjust the virtual item to be interacted with. The embodiments of this application can help players identify the virtual item to be interacted with first and achieve interaction switching between multiple virtual items with limited controls.

[0120] It is understood that in the embodiments of this application, data such as user information are involved. When the embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0121] The following description continues to illustrate the exemplary structure of the virtual scene prop interaction device 455-1 provided in the embodiments of this application as a software module. In some embodiments, such as Figure 3As shown, the software modules in the virtual scene prop interaction device 455-1 stored in the memory 450 may include: a first display module 4551, used to display at least a portion of the virtual scene on the human-computer interaction interface, wherein the at least a portion of the virtual scene includes virtual objects; the first display module 4551 is further used to, in response to the appearance of at least two virtual props with interactive functions in the at least a portion of the virtual scene, display that the first virtual prop is selected, and display at least one interactive control corresponding to the first virtual prop; wherein the interactive control is used to be triggered to execute the interactive function corresponding to the interactive control, and the interactive function is used to interact with the virtual object.

[0122] In some embodiments, the first display module 4551 is further configured to: in response to the appearance of at least two virtual props with interactive functions in at least a portion of the area, apply a first display mode to the at least two virtual props in at least a portion of the area; wherein the prominence of the first display mode is positively correlated with the characteristic values ​​of the at least two virtual props, and the characteristic values ​​include at least one of the following: the frequency of use of the virtual props, the distance between the virtual props and the virtual objects, and the orientation angle between the virtual props and the virtual objects.

[0123] In some embodiments, the first display module 4551 is further configured to: in response to the appearance of at least two virtual props with interactive functions in at least a portion of the area, apply a first display mode to the at least two virtual props in the human-computer interaction interface, and apply a second display mode to the other virtual props in the human-computer interaction interface; wherein the second display mode is different from the first display mode, and the other virtual props do not have interactive functions.

[0124] In some embodiments, the first display module 4551 is further configured to: before displaying that the first virtual prop among at least two virtual props is in a selected state, determine a first sector area with the virtual object as the center, a set distance as the radius, and a first angle as the central angle, wherein the orientation of the virtual object coincides with the angle bisector of the central angle of the first sector area; determine at least one first candidate virtual prop that overlaps with the first sector area, wherein the projection area of ​​the first candidate virtual prop on the ground of the virtual scene overlaps with the first sector area; and select one of the at least one first candidate virtual prop as the first virtual prop.

[0125] In some embodiments, the first display module 4551 is further configured to: when the first sector area includes one first candidate virtual prop, determine the first candidate virtual prop as the first virtual prop; when the first sector area includes two first candidate virtual props, select the first candidate virtual prop with the larger area of ​​the first overlapping area as the first virtual prop, wherein the first overlapping area is the overlapping area of ​​the first candidate virtual prop and the first sector area; when the first sector area includes at least three first candidate virtual props, perform the following processing: determine a second sector area with the virtual object as the center, a set distance as the radius, and a second angle as the central angle, wherein the orientation of the virtual object coincides with the angle bisector of the central angle of the second sector area, and the second angle is smaller than the first angle; determine at least one second candidate virtual prop that overlaps with the second sector area, wherein the projection area of ​​the second candidate virtual prop on the ground of the virtual scene overlaps with the second sector area; select the second candidate virtual prop with the largest area of ​​the second overlapping area as the first virtual prop, wherein the second overlapping area is the overlapping area of ​​the second candidate virtual prop and the second sector area.

[0126] In some embodiments, the first display module 4551 is further configured to: before displaying that the first virtual prop among at least two virtual props is in a selected state, perform any of the following processes: sorting the at least two virtual props according to their usage frequency, and taking the virtual prop ranked first as the first virtual prop; sorting the at least two virtual props according to their scene distance, and taking the virtual prop ranked first as the first virtual prop, where the scene distance is the distance between the virtual prop and the virtual object in the virtual scene; sorting the at least two virtual props according to their most recent usage time, and taking the virtual prop ranked first as the first virtual prop, where the most recent usage time is the moment when the virtual object last used the virtual prop.

[0127] In some embodiments, the first display module 4551 is further configured to: before displaying that the first virtual prop among at least two virtual props is in a selected state, acquire historical interaction data and prop parameters for at least two virtual props in a virtual scene, wherein the historical interaction data for each virtual prop includes scene parameters for each use of the virtual prop; perform the following processing through a first neural network model: extract scene features from scene parameters and extract prop features from prop parameters; perform fusion processing on scene features and prop features to obtain a first fused feature; map the first fused feature to a first probability of each virtual prop being compatible with the virtual scene; and sort the at least two virtual props in descending order of the first probability, and select the virtual prop ranked first as the first virtual prop.

[0128] In some embodiments, the first display module 4551 is further configured to: display a switching control corresponding to at least one second virtual item that is not in a selected state; wherein the second virtual item has an interactive function, and the switching control is used to be triggered to display the interactive control corresponding to at least one second virtual item.

[0129] In some embodiments, the first display module 4551 is further configured to: when the number of second virtual props not in a selected state is one, in response to a trigger operation on a switching control, display at least one interactive control of the second virtual prop and hide at least one interactive control of the first virtual prop.

[0130] In some embodiments, the first display module 4551 is further configured to: when there are multiple second virtual props that are not in a selected state, in response to a trigger operation on the switching control, display prop identifiers corresponding one-to-one with the multiple second virtual props; in response to a trigger operation on any prop identifier, display at least one interactive control of the second virtual prop corresponding to the triggered prop identifier, and hide at least one interactive control of the first virtual prop.

[0131] In some embodiments, the first display module 4551 is further configured to: display prop identifiers corresponding one-to-one with a plurality of second virtual props in a set order; wherein the number of the plurality of second virtual props is any one of the following: 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 area of ​​the virtual scene, or a number positively correlated with the number of props of the second virtual props.

[0132] In some embodiments, the order of setting is any of the following: the usage frequency of the second virtual props from high to low or from low to high; the scene distance of the second virtual props from small to large or from large to small, where scene distance is the distance between the virtual props and the virtual objects in the virtual scene; the recent usage time of the second virtual props from near to far or from far to near, where recent usage time is the moment when the virtual object last used the second virtual prop; and the interaction efficiency between the second virtual props and the virtual objects from small to large or from large to small.

[0133] In some embodiments, the first display module 4551 is further configured to: determine a second sector area with the virtual object as the center, a set distance as the radius, and a second angle as the central angle, wherein the orientation of the virtual object coincides with the angle bisector of the central angle of the second sector area, and the second angle is smaller than the first angle; obtain a third overlapping area between each second virtual prop and the second sector area, wherein the third overlapping area is the overlapping area between the projection area of ​​the second virtual prop on the ground of the virtual scene and the second sector area, and obtain the interaction efficiency that is positively correlated with the area of ​​the third overlapping area.

[0134] The following description continues to illustrate the exemplary structure of the virtual scene prop interaction device 455-2 provided in the embodiments of this application as a software module. In some embodiments, such as Figure 3 As shown, the software modules in the virtual scene prop interaction device 455-2 stored in the memory 450 may include: a second display module 4552, used to display at least a portion of the virtual scene on the human-computer interaction interface, wherein the at least a portion of the virtual scene includes virtual objects; the second display module 4552 is further used to, in response to the appearance of at least two virtual props in the at least a portion of the virtual scene, display, based on the selected state, a first virtual prop with interactive function and at least one interactive control corresponding to the first virtual prop, wherein the interactive control is used to be triggered to execute the interactive function corresponding to the interactive control, and the interactive function is used to interact with the virtual object; the second display module 4552 is further used to, for at least one second virtual prop that is not in a selected state, display a switching control corresponding to at least one second virtual prop; wherein the switching control is used to be triggered to display the interactive control corresponding to at least one second virtual prop.

[0135] This application provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the virtual scene prop interaction method described above in this application.

[0136] This application provides a computer-readable storage medium storing executable instructions. When these executable instructions are executed by a processor, they cause the processor to execute a virtual scene prop interaction method provided in this application. For example, ... Figures 4A-4C The method of interacting with props in the virtual scene is shown.

[0137] 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 it may be a variety of devices including one or any combination of the above-mentioned memories.

[0138] In some embodiments, executable instructions may take the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a standalone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.

[0139] As an example, executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple collaborating files (e.g., a file that stores one or more modules, subroutines, or code sections).

[0140] As an example, executable instructions can be deployed to execute on a single computing device, or on multiple computing devices located in one location, or on multiple computing devices distributed across multiple locations and interconnected via a communication network.

[0141] In summary, the embodiments of this application, in response to the appearance of at least two virtual props with interactive functions in at least a portion of the area, display that the first virtual prop among the at least two virtual props is selected, and display at least one interactive control corresponding to the first virtual prop, thereby directly showing the automatically selected first virtual prop and the corresponding interactive control to the player, eliminating the process of the player manually selecting the virtual prop that needs to be interacted with, and effectively improving the efficiency of human-computer interaction.

[0142] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.

Claims

1. A prop interaction method of a virtual scene, characterized in that, The method includes: The human-computer interaction interface displays at least a portion of the virtual scene, wherein the at least a portion of the virtual scene includes virtual objects; In response to the appearance of at least two virtual props with interactive functions within the interaction range of the virtual object in the at least partial area, it is displayed that the first virtual prop among the at least two virtual props is selected, and at least one interactive control corresponding to the first virtual prop is displayed; wherein, the interactive control is used to be triggered to execute the interactive function corresponding to the interactive control, and the interactive function is used to interact with the virtual object; When the number of second virtual props not in the selected state is one, in response to a trigger operation on the switching control, at least one interactive control of the second virtual prop is displayed, and at least one interactive control of the first virtual prop is hidden. When there are multiple second virtual items that are not in the selected state, in response to a trigger operation on the switching control, item identifiers corresponding one-to-one with the multiple second virtual items are displayed; in response to a trigger operation on any one of the item identifiers, at least one interactive control of the second virtual item corresponding to the triggered item identifier is displayed, and at least one interactive control of the first virtual item is hidden.

2. The method of claim 1, wherein, The method further includes: In response to the appearance of at least two virtual props with interactive functions within the interaction range of the virtual object in the at least partial area, a first display mode is applied to the at least two virtual props in the at least partial area; The prominence of the first display method is positively correlated with the feature values ​​of the at least two virtual props, and the feature values ​​include at least one of the following: the frequency of use of the virtual props, the distance between the virtual props and the virtual object, and the orientation angle between the virtual props and the virtual object.

3. The method of claim 1, wherein, The method further includes: In response to the appearance of at least two virtual props with interactive functions within the interaction range of the virtual object in the at least part of the area, a first display mode is applied to the at least two virtual props in the human-computer interaction interface, and a second display mode is applied to other virtual props in the human-computer interaction interface; The second display method differs from the first display method, and the other virtual props do not have the interactive function.

4. The method of claim 1, wherein, Before displaying that the first virtual prop among the at least two virtual props is selected, the method further includes: A first sector area is defined with the virtual object as the center, a set distance as the radius, and a first angle as the central angle, wherein the orientation of the virtual object coincides with the angle bisector of the central angle of the first sector area; Identify at least one first candidate virtual prop that overlaps with the first fan-shaped area, wherein the projection area of ​​the first candidate virtual prop on the ground of the virtual scene overlaps with the first fan-shaped area; One of the at least one first candidate virtual items is selected as the first virtual item.

5. The method of claim 4, wherein, The step of selecting one of the at least one first candidate virtual item as the first virtual item includes: When the first sector area includes one of the first candidate virtual items, the first candidate virtual item is determined as the first virtual item; When the first sector area includes two first candidate virtual items, the first candidate virtual item with the larger area of ​​the first overlapping area is taken as the first virtual item. The first overlapping area is the overlapping area between the first candidate virtual item and the first sector area. When the first sector area includes at least three of the first candidate virtual items, the following process is performed: A second sector area is defined with the virtual object as the center, the set distance as the radius, and the second angle as the central angle, wherein the orientation of the virtual object coincides with the angle bisector of the central angle of the second sector area, and the second angle is smaller than the first angle; Identify at least one second candidate virtual prop that overlaps with the second sector area, wherein the projection area of ​​the second candidate virtual prop on the ground of the virtual scene overlaps with the second sector area; The second candidate virtual prop with the largest area in the second overlapping region is taken as the first virtual prop. The second overlapping region is the overlapping area between the second candidate virtual prop and the second sector area.

6. The method of claim 1, wherein, Before displaying that the first virtual prop of the at least two virtual props is selected, the method further includes: Perform any of the following processes: The at least two virtual items are sorted according to their frequency of use, and the virtual item ranked first is taken as the first virtual item. The at least two virtual props are sorted according to scene distance, and the virtual prop ranked first is taken as the first virtual prop. The scene distance is the distance between the virtual prop and the virtual object in the virtual scene. The at least two virtual items are sorted according to their most recent usage time, and the virtual item ranked first is taken as the first virtual item. The most recent usage time is the moment when the virtual object last used the virtual item.

7. The method of claim 1, wherein, Before displaying that the first virtual prop of the at least two virtual props is selected, the method further includes: Obtain historical interaction data and item parameters for at least two virtual items in the virtual scene, wherein the historical interaction data for each virtual item includes scene parameters for each use of the virtual item; The following processing is performed using a first neural network model: scene features are extracted from the scene parameters, and prop features are extracted from the prop parameters; the scene features and the prop features are fused to obtain a first fused feature; the first fused feature is mapped to a first probability that each virtual prop is compatible with the virtual scene. The at least two virtual items are sorted according to the first probability from high to low, and the virtual item ranked first is taken as the first virtual item.

8. The method according to claim 1, characterized in that, The method further includes: For at least one second virtual item that is not in the selected state, a switching control corresponding to the at least one second virtual item is displayed; The second virtual prop has the interactive function, and the switching control is used to trigger the display of an interactive control corresponding to at least one of the second virtual props.

9. The method of claim 1, wherein, The display of item identifiers corresponding one-to-one with the plurality of second virtual items includes: Display the item icons that correspond one-to-one with the multiple second virtual items in a set order; The number of the second virtual props can be any of the following: 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 area of ​​the virtual scene, or a number positively correlated with the number of props of the second virtual props.

10. The method according to claim 9, characterized in that, The set order is any of the following: The second virtual item is used in order of frequency from high to low or from low to high. The scene distances of the second virtual props are arranged in ascending or descending order, where the scene distance is the distance between the second virtual prop and the virtual object in the virtual scene. The most recent usage times of the second virtual item are arranged in either order from most recent to oldest or from oldest to most recent, where the most recent usage time is the moment when the virtual object last used the second virtual item. The interaction efficiency between the second virtual prop and the virtual object is either in ascending order or in descending order.

11. The method of claim 10, wherein, The method further includes: A second sector region is defined with the virtual object as the center, a set distance as the radius, and a second angle as the central angle, wherein the orientation of the virtual object coincides with the angle bisector of the central angle of the second sector region; Obtain the third overlapping area between each of the second virtual props and the second sector area. The third overlapping area is the overlapping area between the projection area of ​​the second virtual prop on the ground of the virtual scene and the second sector area. Obtain the interaction efficiency that is positively correlated with the area of ​​the third overlapping area.

12. A prop interaction method of a virtual scene, the method comprising: The method includes: The human-computer interaction interface displays at least a portion of the virtual scene, wherein the at least a portion of the virtual scene includes virtual objects; In response to the appearance of at least two virtual props within the interaction range of the virtual object in the at least part of the area, a first virtual prop with interactive function and at least one interactive control corresponding to the first virtual prop are displayed based on the selected state, wherein the interactive control is used to be triggered to execute the interactive function corresponding to the interactive control, and the interactive function is used to interact with the virtual object; For at least one second virtual item that is not in the selected state, a switching control corresponding to the at least one second virtual item is displayed; wherein, the switching control is used to trigger the display of the interactive control corresponding to the at least one second virtual item; When the number of second virtual props not in the selected state is one, in response to the trigger operation of the switching control, at least one interactive control of the second virtual prop is displayed, and at least one interactive control of the first virtual prop is hidden. When there are multiple second virtual items that are not in the selected state, in response to a trigger operation on the switching control, item identifiers corresponding one-to-one with the multiple second virtual items are displayed; in response to a trigger operation on any one of the item identifiers, at least one interactive control of the second virtual item corresponding to the triggered item identifier is displayed, and at least one interactive control of the first virtual item is hidden.

13. A prop interaction device for a virtual scene, characterized in that, The device includes: A first display module is configured to display at least a portion of the virtual scene on a human-computer interaction interface, wherein the at least a portion of the virtual scene includes virtual objects; The first display module is further configured to respond to at least two virtual props with interactive functions appearing within the interaction range of the virtual object in the at least partial area, displaying that the first virtual prop among the at least two virtual props is in a selected state, and displaying at least one interactive control corresponding to the first virtual prop; wherein, the interactive control is used to be triggered to execute the interactive function corresponding to the interactive control, and the interactive function is used to interact with the virtual object; The first display module is further configured to, when the number of second virtual props not in the selected state is one, in response to a trigger operation on the switching control, display at least one interactive control of the second virtual prop and hide at least one interactive control of the first virtual prop; The first display module is further configured to, when there are multiple second virtual items that are not in the selected state, in response to a trigger operation on the switching control, display item identifiers corresponding one-to-one with the multiple second virtual items; in response to a trigger operation on any one of the item identifiers, display at least one interactive control of the second virtual item corresponding to the triggered item identifier, and hide at least one interactive control of the first virtual item.

14. The apparatus according to claim 13, characterized in that, The first display module is further configured to respond to at least two virtual props with interactive functions appearing in the at least partial area within the interaction range of the virtual object, and to apply a first display mode to the at least two virtual props in the at least partial area; The prominence of the first display method is positively correlated with the feature values ​​of the at least two virtual props, and the feature values ​​include at least one of the following: the usage frequency of the virtual props, the distance between the virtual props and the virtual object, and the orientation angle between the virtual props and the virtual object.

15. The apparatus according to claim 13, characterized in that, The first display module is further configured to respond to at least two virtual props with interactive functions appearing within the interaction range of the virtual object in the at least part of the area, apply a first display mode to the at least two virtual props in the human-computer interaction interface, and apply a second display mode to other virtual props in the human-computer interaction interface; The second display method differs from the first display method, and the other virtual props do not have the interactive function.

16. The apparatus according to claim 13, characterized in that, The first display module is further configured to determine a first sector area with the virtual object as the center, a set distance as the radius, and a first angle as the central angle before displaying the first virtual prop among the at least two virtual props in a selected state, wherein the orientation of the virtual object coincides with the angle bisector of the central angle of the first sector area; Identify at least one first candidate virtual prop that overlaps with the first fan-shaped area, wherein the projection area of ​​the first candidate virtual prop on the ground of the virtual scene overlaps with the first fan-shaped area; One of the at least one first candidate virtual items is selected as the first virtual item.

17. The apparatus according to claim 16, characterized in that, The first display module is further configured to determine the first candidate virtual item as the first virtual item when the first sector area includes a first candidate virtual item; When the first sector area includes two first candidate virtual items, the first candidate virtual item with the larger area of ​​the first overlapping area is taken as the first virtual item. The first overlapping area is the overlapping area between the first candidate virtual item and the first sector area. When the first sector area includes at least three of the first candidate virtual items, the following process is performed: A second sector area is defined with the virtual object as the center, the set distance as the radius, and the second angle as the central angle, wherein the orientation of the virtual object coincides with the angle bisector of the central angle of the second sector area, and the second angle is smaller than the first angle; Identify at least one second candidate virtual prop that overlaps with the second sector area, wherein the projection area of ​​the second candidate virtual prop on the ground of the virtual scene overlaps with the second sector area; The second candidate virtual prop with the largest area in the second overlapping region is taken as the first virtual prop. The second overlapping region is the overlapping area between the second candidate virtual prop and the second sector area.

18. The apparatus according to claim 13, characterized in that, The first display module is further configured to perform any one of the following processes before the first virtual prop among the at least two virtual props is selected: The at least two virtual items are sorted according to their frequency of use, and the virtual item ranked first is taken as the first virtual item. The at least two virtual props are sorted according to scene distance, and the virtual prop ranked first is taken as the first virtual prop. The scene distance is the distance between the virtual prop and the virtual object in the virtual scene. The at least two virtual items are sorted according to their most recent usage time, and the virtual item ranked first is taken as the first virtual item. The most recent usage time is the moment when the virtual object last used the virtual item.

19. The apparatus according to claim 13, characterized in that, The first display module is further configured to acquire historical interaction data and prop parameters for the at least two virtual props in the virtual scene before the first virtual prop is selected, wherein the historical interaction data for each virtual prop includes scene parameters for each use of the virtual prop; The following processing is performed using the first neural network model: extracting scene features from the scene parameters and extracting prop features from the prop parameters; The scene features and the prop features are fused to obtain a first fused feature; the first fused feature is mapped to a first probability that each virtual prop is compatible with the virtual scene. The at least two virtual items are sorted according to the first probability from high to low, and the virtual item ranked first is taken as the first virtual item.

20. The apparatus according to claim 13, characterized in that, The first display module is further configured to display a switching control corresponding to at least one second virtual item that is not in the selected state; The second virtual prop has the interactive function, and the switching control is used to trigger the display of an interactive control corresponding to at least one of the second virtual props.

21. An apparatus for prop interaction of a virtual scene, the apparatus comprising: a virtual scene; a virtual prop; a virtual user; and a virtual user interface for the virtual user to interact with the virtual prop. The device includes: The second display module is used to display at least a portion of the virtual scene on the human-computer interaction interface, wherein the at least a portion of the virtual scene includes virtual objects; The second display module is further configured to respond to at least two virtual props appearing within the interaction range of the virtual object in the at least part of the area, and to display, based on the selected state, a first virtual prop with an interactive function and at least one interactive control corresponding to the first virtual prop, wherein the interactive control is used to be triggered to execute the interactive function corresponding to the interactive control, and the interactive function is used to interact with the virtual object; The second display module is further configured to display a switching control corresponding to at least one second virtual item that is not in the selected state; wherein the switching control is configured to be triggered to display an interactive control corresponding to at least one second virtual item; When the number of second virtual props not in the selected state is one, in response to the trigger operation of the switching control, at least one interactive control of the second virtual prop is displayed, and at least one interactive control of the first virtual prop is hidden. When there are multiple second virtual items that are not in the selected state, in response to a trigger operation on the switching control, item identifiers corresponding one-to-one with the multiple second virtual items are displayed; in response to a trigger operation on any one of the item identifiers, at least one interactive control of the second virtual item corresponding to the triggered item identifier is displayed, and at least one interactive control of the first virtual item is hidden.

22. An electronic device, comprising: The electronic device includes: Memory, used to store executable instructions; A processor, when executing executable instructions stored in the memory, implements the prop interaction method of any one of claims 1 to 11 or 12 for a virtual scene.

23. A computer-readable storage medium storing executable instructions, characterized in that, When the executable instructions are executed by the processor, they implement the prop interaction method of the virtual scene as described in any one of claims 1 to 11 or 12.

24. A computer program product comprising computer programs or instructions, characterized in that, When the computer program or instructions are executed by the processor, they implement the prop interaction method of the virtual scene as described in any one of claims 1 to 11 or 12.