Method and apparatus for item interaction in a virtual scene, electronic device, and computer program
The item interaction method in virtual scenes addresses the challenge of identifying interactable items by automatically selecting and displaying the relevant virtual item and its interaction control, thereby enhancing interaction efficiency and reducing resource wastage.
Patent Information
- Application Number
- JP2024532934
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-06-02
- Filing Date
- 2023-03-31
- Publication Date
- 2025-06-30
- Estimated Expiration
- 2043-03-31
AI Technical Summary
In virtual scenes, players face difficulty in identifying the virtual item they are currently interacting with, leading to repetitive trial and error, which increases complexity and wastes computing and communication resources.
An item interaction method and apparatus that recommend virtual items for interaction by displaying a first virtual item in a selected state and its corresponding interaction control, directly indicating the selected item and its interaction options to the player.
This approach improves human-computer interaction efficiency by eliminating the need for manual selection of virtual items, enhancing the smooth execution of virtual scenes and reducing resource wastage.
Smart Images

Figure 0007700381000001 
Figure 0007700381000002 
Figure 0007700381000003
Abstract
Description
Technical Field
[0001] (Cross - reference to related applications) This application is filed based on a Chinese patent application with the application number 202210625554.5, filed with the Chinese Patent Office on June 2, 2022. This application claims the priority of the Chinese patent application, and all the contents of the Chinese patent application are incorporated herein by reference.
[0002] This application relates to human - computer interaction (HCI) technology, and in particular, to an item interaction method and apparatus for a virtual scene, an electronic device , and and a computer program to related thereto.
Background Art
[0003] In display technology based on graphic processing hardware, the channels for detecting the environment and acquiring information have been expanded. In particular, the multimedia technology of virtual scenes can, according to the actual application needs, realize various interactions between virtual objects controlled by users or artificial intelligence through human - computer interaction engine technology, and there are various typical application scenarios. For example, in a virtual scene such as a game, the combat process between virtual objects can be simulated.
[0004] In a virtual scene, usually, a plurality of virtual items having interaction functions are arranged, whereby a virtual object can be controlled to interact with the virtual items. For example, it enables behavioral interactions such as making the virtual object sit on a chair, and functional interactions such as opening a supply box to display a plurality of supplies for the virtual object to select. In related technologies, it is difficult for a player to identify the virtual item with which they are currently interacting, and the user has to repeat trial and error many times to find the appropriate virtual item, increasing the complexity of human-computer interaction. Repeating trial and error many times wastes computing resources and communication resources, and further affects the smooth execution of the virtual scene.
Summary of the Invention
Problems to be Solved by the Invention
[0005] Embodiments of the present application provide an item interaction method and apparatus for a virtual scene, an electronic device, a computer-readable storage medium, and a computer program product that can improve human-computer interaction efficiency by recommending virtual items for interaction to the user.
Means for Solving the Problems
[0006] The technical solution of the embodiments of the present application is realized as follows.
[0007] Embodiments of the present application provide an item interaction method for a virtual scene, which is executed by an electronic device. The method includes: displaying at least a part of the area in the virtual scene on a human-computer interaction interface, where the at least a part of the area includes a virtual object; In response to at least two virtual items having an interaction function appearing in the at least partial area, displaying that a first virtual item among the at least two virtual items is in a selected state; Displaying at least one interaction control corresponding to the first virtual item, wherein the interaction control is used to trigger execution of the interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item.
[0008] An embodiment of the present application provides an item interaction device for a virtual scene, the device comprising: A first display module configured to display at least a partial area within the virtual scene on a human-computer interaction interface, the at least partial area including virtual objects; The first display module is further configured to display that a first virtual item among the at least two virtual items is in a selected state in response to at least two virtual items having an interaction function appearing in the at least partial area, and display at least one interaction control corresponding to the first virtual item, where the interaction control is used to trigger execution of the interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item.
[0009] An embodiment of the present application provides an item interaction method for a virtual scene, executed by an electronic device, the method comprising: Displaying at least a partial area within the virtual scene on a human-computer interaction interface, the at least partial area including virtual objects; In response to at least two virtual items appearing in the at least partial area, based on a selected state, displaying a first virtual item having an interaction function among the at least two virtual items and at least one interaction control corresponding to the first virtual item, where the interaction control is used to trigger execution of the interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item; In the case of at least one second virtual item not in the selected state, displaying a switching control corresponding to the at least one second virtual item, where the switching control is used to trigger display of an interaction control corresponding to at least one of the at least one second virtual item, including.
[0010] An embodiment of the present application provides an item interaction device for a virtual scene, and the device includes a second display module configured to display at least a partial area in the virtual scene on a human-computer interaction interface, where the at least partial area includes a virtual object; The second display module is further configured to, in response to at least two virtual items appearing in the at least partial area, based on a selected state, display a first virtual item having an interaction function among the at least two virtual items and at least one interaction control corresponding to the first virtual item, where the interaction control is used to trigger execution of the interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item; The second display module is further configured to display a switching control corresponding to at least one second virtual item that is not in the selected state, where the switching control is used to trigger the display of an interaction control corresponding to at least one of the second virtual items.
[0011] Embodiments of the present application provide an electronic device, where the electronic device includes a memory configured to store computer-executable instructions, a processor configured to implement an item interaction method for a virtual scene according to embodiments of the present application by executing the computer-executable instructions stored in the memory.
[0012] Embodiments of the present application provide a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, cause the processor to execute an item interaction method for a virtual scene according to embodiments of the present application.
[0013] Embodiments of the present application provide a computer program product including computer-executable instructions that, when executed by a processor, cause the processor to execute an item interaction method for a virtual scene according to embodiments of the present application.
Advantages of the Invention
[0014] Embodiments of the present application have the following beneficial effects.
[0015] In response to at least two virtual items having an interaction function appearing in at least a partial area, display that the first virtual item among the at least two virtual items is in a selected state, and by displaying at least one interaction control corresponding to the first virtual item, directly display the automatically selected first virtual item and its corresponding interaction control to the player. In this way, by omitting the process in which the player manually selects the virtual item to be interacted with currently, the human-computer interaction efficiency can be improved.
Brief Description of Drawings
[0016]
Figure 1A
Figure 1B
Figure 2
Figure 3
Figure 4A
Figure 4B
Figure 4C
Figure 5A
Figure 5B
Figure 5C
Figure 5D
Figure 5E
Figure 6
Figure 7A
Figure 7B
Figure 8A
Figure 8B
Figure 8C
Figure 8D
Figure 8E
Embodiments for Carrying Out the Invention
[0017] In order to make the objectives, technical solutions and advantages of the present application clearer, hereinafter, with reference to the drawings, the present application will be described in more detail. The described embodiments should not be construed as limitations to the present application, and all other embodiments obtained by those skilled in the art without creative efforts shall be included in the protection scope of the present invention.
[0018] In the following description, the term "some embodiments" refers to a subset of all possible embodiments, and it is understood that the term "some embodiments" can be the same subset or a different subset of all possible embodiments, and these can be combined with each other without conflict.
[0019] The terms "first / second / third" mentioned in the following description are only for distinguishing similar objects and do not represent a specific order of the objects. It is understood that "first / second / third" can, in some cases, be interchanged with a specific order or sequence, so that the embodiments of the present application described herein can be implemented in an order other than the order shown or described.
[0020] Unless otherwise specified, all technical and scientific terms used in this specification have the same meaning as commonly understood by those skilled in the art. The terms used in this specification are only for explaining the embodiments of the present application and are not for limiting the present application.
[0021] Before further elaborating on the embodiments of the present application, the nouns and terms mentioned in the embodiments of the present application are explained, and the nouns and terms mentioned in the embodiments of the present application are as interpreted below.
[0022] 1) Regarding the "virtual scene", a visual perception of the virtual scene can be formed through the naked eye or with the assistance of a device by using a scene different from the real world output by the device. For example, it includes two-dimensional images output by a display screen, and three-dimensional images output using three-dimensional display technologies such as stereoscopic projection, virtual reality, and augmented reality technologies. Furthermore, various detections simulating the real world, such as auditory detection, tactile detection, olfactory detection, and motion detection, can be formed using various possible hardware.
[0023] 2) The term "in response to..." represents the conditions or states on which the operations to be executed depend. When the dependent conditions or states are satisfied, one or more operations to be executed may be executed in real time or may have a set delay, and unless otherwise specified, there is no restriction on the execution order among the multiple operations to be executed.
[0024] 3) A "client" is an application for providing various services executed on a terminal, such as a game client, etc.
[0025] 4) An "interaction item" refers to a virtual item having an interaction function. A player controls a virtual object to interact with the interaction item. For example, the virtual object can "ride" a "vehicle", and the "vehicle" belongs to the interaction item. If the virtual object cannot interact with a table inside a building, the "table" does not belong to the interaction item and is just an ordinary virtual item.
[0026] Referring to FIG. 1A, a plurality of virtual items 302A of virtual objects are displayed on a human-computer interaction interface 301A. The virtual items 302A are obtained by range identification or aiming identification, and in response to a trigger operation on an interaction control 303A of each virtual item 302A, a pick-up operation of the corresponding virtual item 302A is completed. Referring to FIG. 1B, a synthesis table 302B and a non-player controlled character 303B are displayed on a human-computer interaction interface 301B. The synthesis table 302B and the non-player controlled character 303B are obtained by range identification, and in response to a trigger operation on an interaction control 304B of the synthesis table 302B, the synthesis table is triggered to execute a synthesis process.
[0027] In the related art, there is no priority order for interactions among interactive virtual items, there is no presentation to clarify the virtual items that should be preferentially interacted with in the virtual scene, and no interaction mechanism is set between the virtual object and a plurality of interactive virtual items.
[0028] In the related art, since the player can arrange interactive virtual items in the virtual scene, there are more possibilities regarding the planar position and spatial position of the virtual items, the rules for realizing accurate interaction between the virtual object and the virtual items become more complex, and it becomes difficult to realize accurate interaction. Furthermore, since there may be different interaction actions between the virtual object and a plurality of interactive virtual items, the player cannot determine which virtual item the virtual object interacts with. In the related art, there is no priority order for interactions among interactive virtual items, there is no presentation to clarify the virtual items that should be preferentially interacted with in the virtual scene, and no interaction mechanism is set between the virtual object and a plurality of interactive virtual items. Therefore, it is difficult to realize accurate interaction when there are a plurality of virtual items.
[0029] The embodiments of the present application provide an item interaction method and apparatus for a virtual scene, an electronic device, a computer-readable storage medium, and a computer program product, which can improve the human-computer interaction efficiency by recommending to the user the virtual items for interaction. Hereinafter, an exemplary application of the electronic device according to the embodiments of the present application will be described. The electronic device according to the embodiments of the present application may be implemented as various types of user terminals such as a notebook computer, a tablet computer, a desktop computer, a set-top box, a mobile device (for example, a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable game console, a virtual reality hardware device), etc.
[0030] The item interaction method for a virtual scene according to an embodiment of the present application can be applied to virtual reality hardware devices. The virtual scene may be completely output by the virtual reality hardware device, or may be output in cooperation by the terminal and the server. The server calculates the scene display data of the virtual scene. The scene display data includes the item display data of the first virtual item in the selected state, transmits the scene display data to the virtual reality hardware device, and displays at least a part of the area including the virtual object in the virtual scene on the virtual reality hardware device. At least two virtual items having an interaction function are displayed in at least a part of the area, the first virtual item in the selected state among the at least two virtual items is displayed, and at least one interaction control corresponding to the first virtual item is displayed. The interaction tool of the virtual reality hardware device receives a trigger operation of the account on the interaction control, and the virtual reality hardware device transmits the operation data of the trigger operation to the server via the network. The server calculates response data of the interaction function corresponding to the interaction control based on the operation data, the server transmits the response data to the virtual reality hardware device via the network, and based on the response data, the virtual reality hardware device displays the interaction process between the virtual object and the virtual item.
[0031] To make it easier to understand the item interaction method for a virtual scene according to an embodiment of the present application, first, an exemplary implementation scenario of the item interaction method for a virtual scene according to an embodiment of the present application will be described. The virtual scene may be completely output by the terminal, or may be output in cooperation by the terminal and the server.
[0032] In some embodiments, the virtual scene may be an environment for the interaction of game characters. For example, it may be a virtual scene in which game characters fight in the virtual scene.
[0033] In one implementation scenario, referring to FIG. 2, FIG. 2 is a schematic diagram of an application scenario of an item interaction method for a virtual scene according to an embodiment of the present application, which is applied to a terminal 400 and a server 200. Generally, it depends on the computing ability of the server 200 to perform calculations of the virtual scene and is applied to an application scenario that outputs the virtual scene to the terminal 400.
[0034] As an example, a user logs in to a client (for example, an online version of a game application) running on the terminal 400 through an account. The server 200 calculates scene display data of the virtual scene. The scene display data includes item display data of a first virtual item in a selected state. The server 200 sends the scene display data to the terminal 400. The human-computer interaction interface of the client displays at least a partial area of the virtual scene including virtual objects, displays at least two virtual items having interaction functions in at least a partial area, displays the first virtual item in the selected state among the at least two virtual items, and displays at least one interaction control corresponding to the first virtual item. The terminal 400 receives a trigger operation of the account on the interaction control. The terminal 400 sends the operation data of the trigger operation to the server 200 via the network 300. The server 200 calculates response data of the interaction function corresponding to the interaction control based on the operation data. The server 200 sends the response data to the terminal 400 via the network 300. Based on the response data, the human-computer interaction interface of the terminal 400 displays the interaction process between the virtual object and the virtual item.
[0035] As an example, the user logs in to a client (for example, an online version of a game application) running on the terminal 400 through an account. The client calculates scene display data of a virtual scene, and the scene display data includes item display data of a first virtual item in a selected state. The human-computer interaction interface of the client displays at least a partial area of the virtual scene including virtual objects, displays at least two virtual items having interaction functions in at least a partial area, displays a first virtual item in a selected state among the at least two virtual items, and displays at least one interaction control corresponding to the first virtual item. The terminal 400 receives a trigger operation of the account for the interaction control, and the client calculates response data of an interaction function corresponding to the interaction control based on the operation data, and based on the response data, displays an interaction process between the virtual object and the virtual item on the human-computer interaction interface of the terminal 400.
[0036] In some embodiments, the terminal 400 can implement the item interaction method of the virtual scene according to the embodiments of the present application by executing a computer program. For example, the computer program may be a native program or a software module in an operating system, may be a native application (APP: Application), that is, a program that needs to be installed in the operating system for execution (such as a game APP (that is, the above client), a live APP, etc.), or may be a mini program, that is, a program that can be executed only by being downloaded in a browser environment, or may be a game mini program that can be embedded in any APP. In short, the above computer program may be any form of application, module or plugin.
[0037] The embodiments of the present application can be implemented by cloud technology. Cloud technology is a hosting technology that integrates a series of resources such as hardware, software, and network within a wide area network or a local area network to realize data computing, storage, processing, and sharing.
[0038] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application. It can form a resource pool and can be used as needed, which is flexible and convenient. Cloud computing technology provides important support. A large amount of computing and storage resources are required for the back-end services of the technical network system.
[0039] As an example, the server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, big data, and artificial intelligence platforms. The terminal 400 may be a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal 400 and the server 200 can be directly or indirectly connected by a wired or wireless communication method, which is not limited in the embodiments of the present application.
[0040] Referring to FIG. 3, FIG. 3 is an exemplary structural diagram of an electronic device to which the item interaction method of the virtual scene according to the embodiment of the present application is applied. Taking the electronic device as a terminal as an example for explanation, the terminal 400 shown in FIG. 3 includes at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. Each component in the terminal 400 is coupled by a bus system 440. Understandably, the bus system 440 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 440 further includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity in the description, in FIG. 3, various buses are denoted as the bus system 440.
[0041] The processor 410 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., which are integrated circuit chips having signal processing functions. Here, the general-purpose processor may be a microprocessor or any conventional processor, etc.
[0042] The user interface 430 includes one or more output devices 431 that can present media content. The output device 431 includes one or more speakers and / or one or more visual display screens. The user interface 430 further includes one or more input devices 432. The input device 432 includes user interface components that assist user input, such as a keyboard, a mouse, a microphone, a touch screen display, a camera, and other input buttons and controls.
[0043] Memory 450 may be removable, non-removable, or a combination thereof, and exemplary hardware devices thereof include solid-state memory, hard disk drives, optical disk drives, and the like. Memory 450 may include one or more storage devices physically located away from processor 410.
[0044] Memory 450 may include volatile memory, non-volatile memory, or both volatile and non-volatile memory. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). Memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.
[0045] In some embodiments, memory 450 can store data for supporting various operations, and examples of these data include programs, modules, and data structures, or subsets or supersets thereof, which will be exemplarily described below.
[0046] Operating system 451 includes system programs for processing various basic system services and executing tasks related to hardware, such as a framework layer, a core library layer, a driver layer, etc., and is used to implement various basic services and process hardware-based tasks.
[0047] Network communication module 452 is configured to reach other electronic devices via one or more (wired or wireless) network interfaces 420. Exemplarily, network interface 420 includes Bluetooth (registered trademark) technology, wireless fidelity (Wi-Fi), and universal serial bus (USB), etc.
[0048] The presentation module 453 is configured to present information via one or more output devices 431 (e.g., display, speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripheral devices and displaying content and information).
[0049] The input processing module 454 is configured to detect one or more user inputs or interactions from one or more input devices 432 and interpret the detected inputs or interactions.
[0050] In some embodiments, the item interaction device of the virtual scene according to the embodiments of the present application can be implemented in software form. FIG. 3 shows the item interaction device 455-1 of the virtual scene stored in the memory 450. The item interaction device 455-1 of the virtual scene may be software in the form of a program, a plugin, etc., and includes a first display module 4551. FIG. 3 further shows the item interaction device 455-2 of the virtual scene stored in the memory 450. The item interaction device 455-2 of the virtual scene may be software in the form of a program, a plugin, etc., and includes a second display module 4552. Since these modules are logical, they can be arbitrarily combined or divided according to the functions to be realized. The functions of each module will be described below.
[0051] With reference to the exemplary application and implementation of the terminal according to the embodiments of the present application, the item interaction method of the virtual scene according to the embodiments of the present application will be described.
[0052] Hereinafter, the item interaction method of the virtual scene according to the embodiments of the present application will be described. As described above, the electronic device for realizing the item interaction method of the virtual scene of the embodiments of the present application may be a terminal device. Therefore, hereinafter, the execution subject of each step will not be repeatedly described.
[0053] Referring to FIG. 4A, FIG. 4A is an exemplary flowchart of an item interaction method for a virtual scene according to an embodiment of the present application, and will be described with reference to steps 101 to 102 shown in FIG. 4A.
[0054] In step 101, at least a part of the area within the virtual scene is displayed on the human-computer interaction interface.
[0055] As an example, at least a part of the area includes a virtual object, and at least a part of the area of the virtual scene that includes the virtual object can be displayed on the human-computer interaction interface. Here, at least a part of the area may be all or part of the area. The virtual object may be completely displayed on the human-computer interaction interface (i.e., the whole of the virtual object is displayed), or may be partially displayed on the human-computer interaction interface (for example, the upper body of the virtual object is displayed).
[0056] In step 102, in response to at least two virtual items having interaction functions appearing in at least a part of the area, it is displayed that the first virtual item among the at least two virtual items is in a selected state, and at least one interaction control corresponding to the first virtual item is displayed.
[0057] As an example, referring to FIG. 5B, in the human-computer interaction interface 501B, a chair 502B and a supply box 503B are displayed. Both the chair 502B and the supply box 503B are virtual items. The chair 502B is the first virtual item, and a selected mark 504B is displayed on the chair 502B (indicating that it is in a selected state). In the human-computer interaction interface, an interaction control 505B for the chair 502B is further displayed. In response to a trigger operation on the interaction control 505B, the virtual object 506B sits on the chair 502B. The number of the first virtual items is one, and the first virtual item in the selected state is displayed, and the corresponding interaction control is displayed, thereby playing a role of explicitly indicating to the user the virtual item for preferentially performing an interaction.
[0058] As an example, an interaction control is used to trigger the execution of an interaction function corresponding to the interaction control, and the interaction function is used for a virtual object to interact with the first virtual item. The first virtual item can correspond to one interaction control or a plurality of interaction controls. For example, when the first virtual item is a chair, there is a corresponding interaction control of "sitting down". When the interaction control of "sitting down" is triggered, the virtual object is controlled to sit on the chair. When the first virtual item is a vehicle, there are corresponding interaction controls of "driving" and "getting on". When the interaction control of "driving" is triggered, the virtual object is controlled to enter the driver's seat of the vehicle.
[0059] As an example, at least two virtual items having an interaction function may be at any position within a partial area, or at least two virtual items having an interaction function may be within the interaction range of a virtual object. The interaction range is a circle centered on the virtual object with a specified distance as the radius.
[0060] As an example, the interaction range of a virtual object is at least a partial area displayed on a human-computer interaction interface, or the interaction range of a virtual object may be located inside at least a partial area displayed on a human-computer interaction interface. That is, the interaction range of a virtual object is a sub-area of at least a partial area displayed on a human-computer interaction interface.
[0061] In response to at least two virtual items having an interaction function appearing in at least a partial area, by displaying that a first virtual item among the at least two virtual items is in a selected state and displaying at least one interaction control corresponding to the first virtual item, the automatically selected first virtual item and its corresponding interaction control are directly displayed to the player. In this way, by omitting the process in which the player manually selects the virtual item to be interacted with currently, the human-computer interaction efficiency can be improved.
[0062] As an example, in response to a change in the orientation of a virtual object in a virtual scene or the movement of the virtual object in the virtual scene, a third virtual item among at least two virtual items is in a selected state, and a first virtual item is in an unselected state, for example, the position of the virtual object changes so as to move away from the first virtual item and approach the third virtual item, the distance between the virtual object and the first virtual item is greater than a first distance threshold, and the distance between the virtual object and the third virtual item is less than a second distance threshold. Since the virtual item most suitable for interacting with the virtual object is changed from the first virtual item to the third virtual item, the third virtual item automatically becomes in a selected state, and the first virtual item becomes in an unselected state. According to the embodiments of the present application, by adaptively adjusting the automatically selected virtual item based on the positional and directional relationship between the virtual object and the virtual item, the human-computer interaction efficiency and the degree of intelligence of the virtual scene can be improved.
[0063] In some embodiments, in response to at least two virtual items having an interaction function appearing in at least a partial area, a first display method is applied to the at least two virtual items in the at least partial area. Here, the saliency of the first display method has a positive correlation with the characteristic values of the at least two virtual items, and the characteristic values include at least one of the usage frequency of the virtual item, the distance between the virtual item and the virtual object, and the directional angle between the virtual item and the virtual object. By applying the first display method with different saliencies to the virtual items, the differences between the virtual items can be reflected, and more information such as comparison information on usage frequency and comparison information on distance can be presented to the user. Therefore, it enriches the information obtained by the player through the human-computer interaction interface and helps to improve the user experience and information display efficiency.
[0064] As an example, the direction angle of the virtual object can be obtained in the following manner. Obtain a first connection line between the virtual item and the virtual object, obtain a first ray that has the virtual object as an endpoint and points in the aiming direction (the direction of the virtual object), and use the angle between the first connection line and the first ray as the direction angle between the virtual item and the virtual object. The direction angle represents the degree of deviation of the virtual item with respect to the virtual object.
[0065] As an example, the virtual item in the human-computer interaction interface can be displayed according to a first display method. For example, the first display method may be to apply a stroke special effect to the virtual item. Here, the stroke special effect is a special effect that deepens the line of the virtual item. Referring to FIG. 5D, in the human-computer interaction interface 501D, a chair 502D and a supply box 503D are displayed. Both the chair and the supply box are virtual items. The prominence of the chair is higher than that of the supply box. For example, since the usage frequency of the chair is higher than that of the supply box, the prominence of the chair is higher than that of the supply box, or since the distance between the chair and the virtual object is greater than the distance between the supply box and the virtual object, the prominence of the chair is higher than that of the supply box.
[0066] In some embodiments, in response to at least two virtual items having an interaction function appearing in at least a partial area, in a human-computer interaction interface, a first display method is applied to the at least two virtual items, and in the human-computer interaction interface, a second display method is applied to other virtual items, where the second display method is different from the first display method, and the other virtual items do not have an interaction function. By applying different display methods to the virtual items having an interaction function and the virtual items not having an interaction function, it is possible to prompt the player to pay attention to the virtual items having an interaction function, thereby enriching the information obtained by the player through the human-computer interaction interface and being helpful for improving the user experience and the information display efficiency.
[0067] As an example, referring to FIG. 5E, in the human-computer interaction interface 501E, a chair 502E and a supply box 503E are displayed, and in the human-computer interaction interface, a stone 504E is further displayed, where the chair 502E and the supply box 503E are virtual items having an interaction function (the chair 502E and the supply box 503E are the first virtual items), and the stone 504E is another virtual item not having an interaction function (the stone 504E is another virtual item), whereby a first display method based on a stroke special effect is applied to the chair 502E and the supply box 503E, and a second display method of a non-stroke special effect is applied to the stone 504E. The first display method is not limited to the stroke special effect, and it is sufficient that there is a difference between the first display method and the second display method.
[0068] In some embodiments, before displaying that the first virtual item among at least two virtual items is in a selected state, a first sector region is determined with the virtual object as the center, the set distance as the radius, and the first angle as the central angle. Here, the orientation of the virtual object coincides with the angle bisector of the central angle of the first sector region. At least one first candidate virtual item that overlaps with the first sector region is determined. Here, the projection area of the first candidate virtual item on the ground of the virtual scene overlaps with the first sector region. One of the at least one first candidate virtual items is used as the first virtual item.
[0069] As an example, referring to FIG. 8A, the ground is a plane composed of the XY coordinate axes. A first sector 804A (sighting field of view) is obtained with the position of the virtual object 803A as the center and the set distance r as the radius. The area occupied by the first sector here is the first sector region. The ray in the sighting direction of the virtual object (i.e., the orientation of the virtual object) is the angle bisector of the first sector. In FIG. 8A, the projection 801A of the virtual item A1 on the ground in the virtual scene and the projection 802A of the virtual item A2 on the ground in the virtual scene are shown. Since only the projections of the two virtual items overlap with the first sector 804A, this indicates that the two first candidate virtual items are within the sighting field of view. One of the two first candidate virtual items is used as the first virtual item. For example, the virtual item A1 corresponding to the projection 801A shown in FIG. 8A is used as the first virtual item.
[0070] In some embodiments, designating one of the at least one first candidate virtual item as the first virtual item can be implemented by the following technical solutions. When one first candidate virtual item is included in the first sector region, the first candidate virtual item is designated as the first virtual item. When two first candidate virtual items are included in the first sector region, the first candidate virtual item with a relatively larger area of the first overlapping region is designated as the first virtual item, where the first overlapping region is the overlapping region between the first candidate virtual item and the first sector region. When at least three first candidate virtual items are included in the first sector region, a process of determining a second sector region with the virtual object as the center, the set distance as the radius, and the second angle as the central angle, where the orientation of the virtual object overlaps with the angular bisector of the central angle of the second sector region and the second angle is smaller than the first angle, and a process of determining at least one second candidate virtual item that overlaps with the second sector region, where the projection region of the virtual scene of the second candidate virtual item onto the ground overlaps with the second sector region, and a process of designating the second candidate virtual item with the largest area of the second overlapping region as the first virtual item, where the second overlapping region is the overlapping region between the second candidate virtual item and the second sector region, are executed. According to the embodiments of the present application, in various scene environments, the first virtual item that is preferentially recommended is clearly determined, and since the first virtual item is the virtual item that is most convenient for the player to operate, the process of the player trying out virtual items that are inconvenient to interact with is omitted, thereby effectively improving the user experience and the human-computer interaction efficiency.
[0071] As an example, referring to FIG. 8A, the ground is a plane composed of the XY coordinate axes. A first sector 804A (sighting field of view) with the position of the virtual object 803A as the center and the set distance r as the radius is obtained. The area occupied by the first sector here is the first sector area. The ray in the sighting direction of the virtual object (i.e., the orientation of the virtual object) is the angle bisector of the first sector. In FIG. 8A, the projection 801A of the virtual item A1 onto the ground in the virtual scene and the projection 802A of the virtual item A2 onto the ground in the virtual scene are shown. Since only the projections of the two virtual items overlap with the first sector 804A, this indicates that the two first candidate virtual items are within the sighting field of view. One of the two first candidate virtual items is set as the first virtual item. Since the virtual object preferentially interacts with the first candidate virtual item with a larger projection ratio in the sighting field of view, the first candidate virtual item with a relatively large overlapping area between the projection and the first sector area can be directly used as the first virtual item for preferential interaction. For example, the virtual item A1 corresponding to the projection 801A shown in FIG. 8A is set as the first virtual item for preferential interaction.
[0072] As an example, referring to FIG. 8B, the ground is a plane composed of the XY coordinate axes. A first sector 805B (first star sighting field of view) is obtained with the position of the virtual object 804B as the center and the set distance r as the radius. The area occupied by the first sector here is the first sector area. The ray in the star sighting direction of the virtual object (i.e., the orientation of the virtual object) is the angle bisector of the first sector 805B. In FIG. 8B, the projection 801B of the virtual item B1 on the ground in the virtual scene, the projection 802B of the virtual item B2 on the ground in the virtual scene, and the projection 803B of the virtual item B3 on the ground in the virtual scene are shown. Since the projections of the three first candidate virtual items overlap with the first sector 805B, this indicates that there are at least three first candidate virtual items within the first star sighting field of view. Therefore, a second star sighting field of view can be obtained to determine the first candidate virtual item for preferentially performing an interaction. A second sector 806B (second star sighting field of view) is obtained with the position of the virtual object 804B as the center and the set distance r as the radius. The area occupied by the second sector is the second sector area. The ray in the star sighting direction of the virtual object (i.e., the orientation of the virtual object) is the angle bisector of the second sector 806B. The second sector is smaller than the first sector (the central angle of the second sector is smaller than that of the first sector). The virtual item B1, the virtual item B2, and the virtual item B3 are all within the first star sighting field of view. The virtual item B1 and the virtual item B2 are both within the second star sighting field of view, and the virtual item B3 is not within the second star sighting field of view. Therefore, the virtual item B1 and the virtual item B2 are the second candidate virtual items. The second candidate virtual item with the largest overlapping area between the projection and the second sector area can be directly used as the first virtual item for preferentially performing an interaction. That is, the second candidate virtual item B2 corresponding to the projection 802B shown in FIG. 8B can be used as the first virtual item for preferentially performing an interaction.
[0073] In some embodiments, before displaying that the first virtual item among at least two virtual items is in a selected state, any of the following processes is executed. A sorting process is performed on at least two virtual items according to the usage frequency, and the process of setting the top virtual item after sorting as the first virtual item, where the usage frequency is the usage frequency of the current virtual object or the usage frequency of all virtual objects. A sorting process is performed on at least two virtual items according to the scene distance, and the process of setting the top virtual item after sorting as the first virtual item, where the scene distance is the distance between the virtual item and the virtual object in the virtual scene. A sorting process is performed on at least two virtual items according to the last usage time, and the process of setting the top virtual item after sorting as the first virtual item, where the last usage time is the time when the virtual object last used the virtual item. By the above sorting method, the first virtual item to be displayed in the selected state can be clearly and explicitly defined. Therefore, the user does not need to manually select the virtual item, which improves the human-computer interaction efficiency. Furthermore, by only displaying the interaction control of the top virtual item after sorting, the usage rate of the display resources can be improved.
[0074] As an example, the above sorting process may be an ascending sorting process or a descending sorting process. In order to recommend the optimal first virtual item to the user, when sorting based on the usage frequency and the last usage time, a descending sorting method can be adopted, and when sorting based on the scene distance, an ascending sorting method 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 closest to the virtual object among at least two virtual items, or the virtual item last used by the virtual object among at least two virtual items.
[0075] In some embodiments, before displaying that the first virtual item among at least two virtual items is in a selected state, obtain historical interaction data for at least two virtual items in the virtual scene and item parameters. The historical interaction data for each virtual item includes scene parameters for each use of the virtual item. Through a first neural network model, extract scene features from the scene parameters and extract item features from the item parameters, perform a fusion process on the scene features and the item features to obtain a first fusion feature, map the first fusion feature to a first probability that each virtual item fits the virtual scene, perform a sorting process on at least two virtual items according to the descending order of the first probability, and set the top virtual item after sorting as the first virtual item. By using the neural network model, the degree of intelligence and accuracy in displaying the interaction control of the first virtual item can be improved, the interaction efficiency between the user and the virtual item can be effectively improved, and the utilization efficiency of display resources can be effectively improved by only displaying the interaction control of the top virtual item after sorting.
[0076] As an example, the historical interaction data for each virtual item includes scene parameters for each use of the virtual item. The scene parameters include confrontation data, environmental data, and state data of virtual objects, etc. The item parameters are parameters of the virtual item itself, such as the use of the virtual item.
[0077] The following describes how to train the above neural network model. Sample scene parameters and sample item parameters of each sample virtual item are collected from a 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 of the neural network model to be trained, and whether the sample virtual item is a virtual item preferentially used in the sample virtual scene is used as annotation data. When a plurality of virtual items are displayed simultaneously and the sample virtual item is preferentially used, the annotation of the sample virtual item is 1. When a plurality of virtual items are displayed simultaneously and the sample virtual item is not preferentially used, the annotation of the sample virtual item is 0. Based on the training samples and the annotation data, the neural network model to be trained is trained. Thereby, subsequently, the first neural network model can be used to directly determine whether a certain virtual item is a first virtual item preferentially recommended.
[0078] In some embodiments, referring to FIG. 4B, FIG. 4B is an exemplary flowchart of an item interaction method for a virtual scene according to an embodiment of the present application. Based on FIG. 4A, step 103 in FIG. 4B can be further executed.
[0079] In step 103, for at least one second virtual item that is not in a selected state, a switching control corresponding to the at least one second virtual item is displayed.
[0080] As an example, the second virtual item has an interaction function, and the switching control is used to trigger the display of the interaction control of the at least one second virtual item.
[0081] In some embodiments, when the number of second virtual items that are not in the selected state is 1, in response to a trigger operation on the switching control, at least one interaction control of the second virtual item is displayed (displaying that the second virtual item is in the selected state and the first virtual item is in the unselected state), and at least one interaction control of the first virtual item is hidden. According to the embodiments of the present application, the switched display between the interaction controls of two virtual items is realized, thereby realizing the interaction with a plurality of virtual items through one interaction control.
[0082] As an example, the second virtual item can correspond to one interaction control or a plurality of interaction controls. For example, when the second virtual item is a chair, there is a corresponding interaction control of "sitting down". When the "sitting down" interaction control is triggered, the virtual object is controlled to sit on the chair. When the second virtual item is a vehicle, there are corresponding interaction controls of "driving" and "getting on". When the "driving" interaction control is triggered, the virtual object is controlled to enter the driver's seat of the vehicle.
[0083] As an example, referring to FIG. 5B, in the human-computer interaction interface 501B, a chair 502B and a supply box 503B are displayed. A selected mark 504B is displayed on the chair 502B (indicating that it is in a selected state). The chair 502B is the first virtual item. No selected mark 504B is displayed on the supply box 503B (indicating that it is not in a selected state), and the supply box 503B is the second virtual item. The human-computer interaction interface further displays an interaction control 505B for the chair 502B. In response to a trigger operation on the switching control 507B, in the human-computer interaction interface, the interaction control 505B for the chair 502B is hidden, the interaction control 508B for the supply box 503B is displayed, and a selected mark 504B is displayed on the supply box 503B.
[0084] In some embodiments, when there are multiple second virtual items that are not in a selected state, in response to a trigger operation on the switching control, item identifiers (e.g., identification controls) that correspond 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 interaction control for the second virtual item corresponding to the triggered item identifier is displayed (indicating that the second virtual item is in a selected state and the first virtual item is not in a selected state), and at least one interaction control for the first virtual item is hidden. According to the embodiments of the present application, the switching display between the interaction controls of at least three virtual items is realized, thereby realizing the interaction with multiple virtual items through a limited number of controls.
[0085] As an example, referring to FIG. 5C, in the human-computer interaction interface 501C, a first chair 502C, a supply box 503C, and a second chair 504C are displayed. On the first chair 502C, a selected mark 505C is displayed. The first chair 502C is a first virtual item, and the supply box 503C and the second chair 504C are second virtual items. In the human-computer interaction interface, an interaction control 506C of the first chair 502C is further displayed. 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, 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 selected mark 505C is displayed on the supply box 503C. In the human-computer interaction interface, the identification control 508C of the supply box 503C and the identification control 509C of the second chair are hidden, and the interaction control 510C of the supply box 503C is displayed.
[0086] In some embodiments, the above-mentioned displaying of item identifiers corresponding one-to-one to a plurality of second virtual items can be realized by the following technical solutions. According to the setting order, item identifiers (for example, identification controls) corresponding one-to-one to a plurality of second virtual items are displayed. Here, the number of the plurality of second virtual items is one of a set number (the set number here may be the average value of the number of second virtual items in a plurality of historical virtual scenes), a number that has a positive correlation with the size of the human-computer interaction interface, a number that has a positive correlation with the area of the empty area of the virtual scene, and a number that has a positive correlation with the number of items of the second virtual item. By displaying the item identifiers of the second virtual items, recommendations to the user can be formed, and the utilization rate of the display resources can be effectively improved.
[0087] As an example, it is assumed that the number of second virtual items in the unselected state is 5, that is, there are 5 second virtual items in the unselected state in the virtual scene. Referring to FIG. 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, and the identification control 508C of the supply box 503C and the identification control 509C of the second chair are displayed. The number of a plurality of second virtual items is 2, which indicates that only the item identifiers of 2 second virtual items are displayed for the 5 second virtual items in the unselected state. The number of second virtual items for which the item identifier is displayed may be a set number, and this number may 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 items for which the item identifier is displayed. For example, if the size of the human-computer interaction interface is larger than the size of the current human-computer interaction interface, the item identifiers of 4 second virtual items can be displayed for 5 second virtual items. This number may further be positively correlated with the area of the free space in the virtual scene. The larger the area of the free space in the virtual scene, the more second virtual items for which the item identifier is displayed in the human-computer interaction interface. For example, if the area of the free space in the virtual scene is larger than the area of the free space in the current virtual scene, the item identifiers of 4 second virtual items can be displayed for 5 second virtual items. This number may further be positively correlated with the number of items of the second virtual item. The larger the number of items of the second virtual item, the more second virtual items for which the item identifier is displayed. For example, the item identifiers of 3 second virtual items can be displayed for 5 second virtual items, and the item identifiers of 2 second virtual items can be displayed for 4 second virtual items.
[0088] In some embodiments, the setting order is any one of the following: in descending or ascending order of the usage frequency of the second virtual item, in ascending or descending order of the scene distance of the second virtual item (the scene distance is the distance between the virtual item and the virtual object in the virtual scene), in reverse chronological order or chronological order of the last usage time of the second virtual item (the last usage time is the time when the virtual object last used the second virtual item), and in ascending or descending order of the interaction efficiency between the second virtual item and the virtual object. By the above sorting method, the second virtual item that needs to display the item identifier related to the switching can be clearly and explicitly defined, and by displaying it according to the order, richer item information can be presented to the player, and the human-computer interaction efficiency can be improved.
[0089] As an example, the above sorting process may be an ascending order sorting process or a descending order sorting process. In order to recommend virtual items that match the user's interests, when sorting based on usage frequency, last usage time, and interaction efficiency, a method of sorting in descending order can be adopted. When sorting based on scene distance, a method of sorting in ascending order can be adopted. That is, the second virtual item for which the item identifier is displayed is a virtual item with a relatively high usage frequency among the second virtual items in the unselected state, or a second virtual item that is relatively close to the virtual object among the second virtual items in the unselected state, or a second virtual item that has been used by the virtual object in the most recent period among the second virtual items in the unselected state, or a second virtual item with a relatively high interaction efficiency among the second virtual items in the unselected state. In order to increase the diversity of virtual item usage, when sorting based on usage frequency, last usage time, and interaction efficiency, an ascending order sorting process can be adopted. When sorting based on scene distance, a method of sorting in descending order can be adopted. That is, the second virtual item for which the item identifier is displayed is a virtual item with a relatively low usage frequency among the second virtual items in the unselected state, or a second virtual item that is relatively far from the virtual object among the second virtual items in the unselected state, or a second virtual item that has not been used by the virtual object in the most recent period among the second virtual items in the unselected state, or a second virtual item with a relatively low interaction efficiency among the second virtual items in the unselected state.
[0090] In some embodiments, a second sector region is determined with the virtual object as the center, the set distance as the radius, and the second angle as the central angle. Here, the orientation of the virtual object overlaps with the angle bisector of the central angle of the second sector region, the second angle is smaller than the first angle, the third overlapping region between each second virtual item and the second sector region is obtained, the interaction efficiency that has a positive correlation with the area of the third overlapping region is obtained, and the third overlapping region is the overlapping region between the projection region of the second virtual item on the ground of the virtual scene and the second sector region.
[0091] As an example, referring to FIG. 8E, FIG. 8E shows the projection 801E of the virtual item E1 on the ground in the virtual scene, the projection 802E of the virtual item E2 on the ground in the virtual scene, the projection 803E of the virtual item E3 on the ground in the virtual scene, and the projection 807E of the virtual item E4 on the ground in the virtual scene. Here, the virtual item E2 and the virtual item E4 are in a stacked state on the Z-axis. A second sector 806E (second sight field) is obtained with the virtual object 804E as the center and the set distance r as the radius. The region occupied by the second sector 806E is the second sector region. The ray in the sighting direction of the virtual object (the orientation of the virtual object) is the angle bisector of the second sector 806E. The virtual items E1, E2, and E4 are all within the second sight field. The virtual item with the largest overlapping area between the projection and the second sector can be directly used as the first virtual item for preferentially performing an interaction. That is, the virtual item E2 corresponding to the projection 802E shown in FIG. 8E is used as the first virtual item for preferentially performing an interaction, the virtual item E1 corresponding to the projection 801E and the virtual item E4 corresponding to the projection 804E are used as the second virtual items. The area of the third overlapping region corresponding to the projection 801E is larger than the area of the third overlapping region corresponding to the projection 804E, which indicates that the interaction efficiency of the virtual item E1 is higher than the interaction efficiency of the virtual item E4.
[0092] In some embodiments, referring to FIG. 4C, FIG. 4C is an exemplary flowchart of an item interaction method for a virtual scene according to an embodiment of the present application, and will be described with reference to steps 201 to 203 shown in FIG. 4C.
[0093] In step 201, at least a part of the region within the virtual scene is displayed on the human-computer interaction interface.
[0094] As an example, at least a part of the region includes virtual objects.
[0095] In step 202, in response to at least two virtual items appearing in at least a part of the region, based on the selected state, a first virtual item having an interaction function among the at least two virtual items and at least one interaction control corresponding to the first virtual item are displayed.
[0096] As an example, the interaction control is used to trigger the execution of the interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item.
[0097] In step 203, in the case of 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.
[0098] As an example, the switching control is used to trigger the display of the interaction control of at least one second virtual item.
[0099] Regarding the embodiments of steps 201 to 203, the embodiments of steps 101 to 103 may be referred to.
[0100] According to the embodiments of the present application, in response to at least two virtual items having an interaction function appearing in at least a partial area, it is displayed that the first virtual item among the at least two virtual items is in a selected state, and at least one interaction control corresponding to the first virtual item is displayed, so as to directly display the automatically selected first virtual item and the corresponding interaction control to the player. In this way, by omitting the process in which the player manually selects the virtual item to be interacted with currently, the human-computer interaction efficiency can be improved. By using a switching control to realize the switching display between the interaction controls of a plurality of virtual items, the interaction of a plurality of virtual items in a situation of a limited number of controls can be realized, and the utilization rate of display resources can be effectively improved.
[0101] In the following, an exemplary application of the embodiments of the present application in one actual application scenario will be described.
[0102] In some embodiments, the user logs in to a client (e.g., an online version of a game application) running on a terminal through an account. The server calculates scene display data of a virtual scene, where the scene display data includes item display data of a first virtual item in a selected state. The server sends the scene display data to the terminal. The human-computer interaction interface of the client displays at least a partial area of the virtual scene including virtual objects, displays at least two virtual items having interaction functions in at least a partial area, displays a first virtual item in a selected state among the at least two virtual items, and displays at least one interaction control corresponding to the first virtual item. The terminal receives a trigger operation of the account on the interaction control, and the terminal sends the operation data of the trigger operation to the server via a network. The server calculates response data of an interaction function corresponding to the interaction control based on the operation data, and the server sends the response data to the terminal via the network. Based on the response data, the human-computer interaction interface of the terminal displays an interaction process between the virtual object and the virtual item.
[0103] In a game scene, the player controls a virtual object to interact with virtual items that can be interacted with in the virtual scene. After the virtual object selects a virtual item, the virtual object can perform various interaction actions with the virtual item. For example, if the virtual item is a chair, the virtual object can sit on the chair. If the virtual item is a bathtub, the virtual object can fill the bathtub with water or drain the water in the bathtub. However, when multiple virtual items are within the interaction range of the virtual object at the same time, first, the user's selection operation on the chair needs to be received, and then, the user's sitting operation of sitting on the chair needs to be received. That is, the user needs to perform two operations to realize the interaction. According to the item interaction method of the virtual scene in the embodiments of the present application, the virtual item to be interacted with currently can be identified, and more virtual items that can be interacted with can be switched efficiently and accurately, effectively improving the human-computer interaction efficiency. For example, the interaction process with the virtual item can be realized only by receiving the user's sitting operation of sitting on the chair.
[0104] In some embodiments, referring to FIG. 5A, a virtual item 502A is displayed on a human-computer interaction interface 501A, and a selected mark 503A is displayed on the virtual item 502A. The human-computer interaction interface further displays an interaction control 504A. In response to a trigger operation on the interaction control 504A, a virtual object 505A sits on the virtual item 502A. When there is only one virtual item with an interaction function within the identification range of the virtual object, the virtual item with the interaction function and the interaction control corresponding to the virtual item are displayed.
[0105] In some embodiments, referring to FIG. 5B, a human-computer interaction interface 501B displays a chair 502B and a supply box 503B. A selected mark 504B is displayed on the chair 502B. The human-computer interaction interface further displays an interaction control 505B for the chair 502B. In response to a trigger operation on the interaction control 505B, a virtual object 506B sits on the chair 502B. In response to a trigger operation on a switching control 507B, the interaction control 505B for the chair 502B is hidden in the human-computer interaction interface, an interaction control 508B for the supply box 503B is displayed, and a selected mark 504B is displayed on the supply box 503B. If there are only two virtual items with interaction functions within the identification range of the virtual object, a currently recommended virtual item with an interaction function, an interaction control corresponding to the virtual item, and a switching control for quickly switching to other virtual items are displayed.
[0106] In some embodiments, referring to FIG. 5C, which is a schematic diagram of an interface of an item interaction method for a virtual scene according to an embodiment of the present application, a human-computer interaction interface 501C displays a first chair 502C, a supply box 503C, and a second chair 504C. A selected mark 505C is displayed on the first chair 502C. The human-computer interaction interface further 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 a switching control 511C, the interaction control 506C of the first chair 502C is hidden in the human-computer interaction interface, and an identification control 508C for the supply box 503C and an identification control 509C for the second chair are displayed. In response to a trigger operation on the identification control 508C of the supply box 503C, a selected mark 505C is displayed on the supply box 503C. The identification control 508C for the supply box 503C and the identification control 509C for the second chair are hidden in the human-computer interaction interface, and an interaction control 510C for the supply box 503C is displayed. When there are at least three virtual items with interaction functions within the identification range of the virtual object, based on a judgment mechanism, the switching of the interaction controls of the virtual items is executed to display the currently recommended virtual item.
[0107] In some embodiments, when there are a plurality of virtual items with interaction functions that are close to a virtual object in a virtual scene, it is possible to accurately display a virtual item that recommends the player to interact currently without moving the aiming star to select a virtual item with an interaction function, perform identification processing based on the quantity for a plurality of virtual items with interaction functions within the current identification range, and execute different identification processes for different quantity situations, thereby realizing accurate switching between a plurality of virtual items.
[0108] In some embodiments, referring to FIG. 6, FIG. 6 is an exemplary flowchart of an item interaction method for a virtual scene according to an embodiment of the present application. A player can control a virtual object to interact with virtual items that can be freely arranged in the virtual scene. By identifying and switching virtual items, it is possible to assist the player in accurately and conveniently completing interactions with multiple virtual items. In step 601, an identification process is performed on the virtual scene to obtain a virtual item to be an interaction target. In step 602, a trigger operation on the virtual item is received. In step 603, an interaction between the virtual object and the virtual item is executed. Step 601 can be realized through step 6011. In step 6011, when one virtual item is identified, the virtual item is set as the virtual item to be an interaction target. Step 601 can be realized through steps 6012 and 6013. In step 6012, when two virtual items are identified, the virtual item with a relatively larger identification range is set as the virtual item to be an interaction target. In step 6013, in response to a switching operation, the interaction control of the two virtual items is switched and displayed. Step 601 can be realized through steps 6014 and 6015. In step 6014, when at least three virtual items are identified, secondary range identification based on aiming is performed, and the virtual item with the largest identification range is set as the virtual item to be an interaction target. In step 6015, in response to a switching operation, the interaction control of at least three virtual items is switched and displayed.
[0109] In some embodiments, the player controls a virtual object to interact with different objects (virtual items) in the game scene, and different types of operations such as viewing, interacting, and picking up may occur. The player controls the virtual object to interact with the objects in the virtual scene. When multiple objects exist in the virtual scene simultaneously, referring to FIGS. 7A to 7B, the virtual object interacts with Object A, Object B, and Object C, and the objects may be in a stacked state. For example, Object B and Object D may be in a stacked state.
[0110] In some embodiments, referring to FIG. 8A, FIG. 8A shows the projection 801A of the virtual item A1 onto the ground in the virtual scene and the projection 802A of the virtual item A2 onto the ground in the virtual scene. The ground is a plane composed of the XY coordinate axes. A sector 804A (sighting field of view) with the virtual object 803A as the center and the set distance r as the radius is obtained. The ray in the sighting direction of the virtual object is the angle bisector of the sector. Only the projections of two virtual items overlap with the sector, which indicates that the two virtual items are within the sighting field of view. The virtual item with a larger projection ratio in the sighting field of view is preferentially interacted with. Therefore, the virtual item with a relatively large overlapping area between the projection and the sector can be directly used as the virtual item for preferential interaction. For example, the virtual item A1 corresponding to the projection 801A shown in FIG. 8A is used as the virtual item for preferential interaction. By performing a trigger operation on the switching control, the switching display between the interaction controls of the two virtual items can be realized, and it is not necessary to change the projection ratio of the virtual items in the sighting field of view by the player controlling the virtual object to move the sighting.
[0111] In some embodiments, referring to FIG. 8B, FIG. 8B shows the projection 801B of the virtual item B1 onto the ground in the virtual scene, the projection 802B of the virtual item B2 onto the ground in the virtual scene, and the projection 803B of the virtual item B3 onto the ground in the virtual scene. A first sector 805B (first sighting field of view) with the virtual object 804B as the center and the set distance r as the radius is obtained. The ray in the sighting direction of the virtual object is the angle bisector of the first sector 805B. The projections of the three virtual items overlap with the first sector 805B, which indicates that there are at least three virtual items within the sighting field of view. The sighting field of view is obtained twice based on the sighting azimuth to determine the virtual item for which interaction is preferentially performed. A second sector 806B (second sighting field of view) with the virtual object 804B as the center and the set distance r as the radius is obtained. The ray in the sighting direction of the virtual object is the angle bisector of the second sector 806B. The second sector is smaller than the first sector. The virtual item B1, the virtual item B2, and the virtual item B3 are all within the first sighting field of view. The virtual item B1 and the virtual item B2 are both within the second sighting field of view. The virtual item with the largest overlapping area between the projection and the second sector can be directly used as the virtual item for which interaction is preferentially performed. That is, the virtual item B2 corresponding to the projection 802B shown in FIG. 8B is used as the virtual item for which interaction is preferentially performed. By means of the operation control, the switching display among the interaction controls corresponding to the virtual item B1, the virtual item B2, and the virtual item B3 can be realized.
[0112] In some embodiments, referring to FIG. 8C, FIG. 8C is a schematic diagram of the calculation of the overlapping area of the item interaction method of the virtual scene according to the embodiment of the present application. FIG. 8C shows the projection 801C of the virtual item C1 on the ground in the virtual scene, the projection 802C of the virtual item C2 on the ground in the virtual scene, and the projection 803C of the virtual item C3 on the ground in the virtual scene. A sector 805C with the virtual object 804C as the center and the set distance r as the radius is obtained. The ray in which the virtual object faces the star sighting direction is the angle bisector of the sector 805C. Since the projections of the virtual item C1 and the virtual item C2 do not overlap with the sector 805C and only the projection of the virtual item C3 overlaps with the sector 805C, the virtual item C3 is used as the virtual item for preferentially performing the interaction, and the interactions with the virtual item C1 and the virtual item C2 are not triggered.
[0113] In some embodiments, referring to FIG. 8D, FIG. 8D is a schematic diagram of the calculation of the overlapping area of the item interaction method in the virtual scene according to the embodiments of the present application. In FIG. 8D, the projection 801D of the virtual item D1 on the ground in the virtual scene, the projection 802D of the virtual item D2 on the ground in the virtual scene, and the projection 803D of the virtual item D3 on the ground in the virtual scene are shown. A first sector 805D (first sighting field of view) with the virtual object 804D as the center and the set distance r as the radius is obtained. The ray in the sighting direction of the virtual object is the angle bisector of the first sector 805D. The projections of the three virtual items overlap with the first sector 805D, which indicates that there are at least three virtual items within the sighting field of view. The sighting field of view is obtained twice based on the sighting azimuth to determine the virtual item for preferentially performing the interaction. A second sector 806D (second sighting field of view) with the virtual object 804D as the center and the set distance r as the radius is obtained. The ray in the sighting direction of the virtual object is the angle bisector of the second sector 806D. The second sector is smaller than the first sector. The virtual item D1, the virtual item D2, and the virtual item D3 are all within the first sighting field of view. The virtual item D1 and the virtual item D2 are both within the second sighting field of view. The virtual item with the largest overlapping area between the projection and the second sector can be directly used as the virtual item for preferentially performing the interaction. That is, the virtual item D1 corresponding to the projection 801D shown in FIG. 8D is used as the virtual item for preferentially performing the interaction, and the switching display between the interaction controls corresponding to the virtual item D1, the virtual item D2, and the virtual item D3 can be realized by the operation control.
[0114] In some embodiments, referring to FIG. 8E, FIG. 8E shows the projection 801E of the virtual item E1 onto the ground in the virtual scene, the projection 802E of the virtual item E2 onto the ground in the virtual scene, the projection 803E of the virtual item E3 onto the ground in the virtual scene, and the projection 807E of the virtual item E4 onto the ground in the virtual scene. Here, the virtual item E2 and the virtual item E4 are in a stacked state on the Z-axis. A first sector 805E (first aiming field of view) with the virtual object 804E as the center and the set distance r as the radius is obtained. The ray in which the virtual object faces the aiming direction is the angle bisector of the first sector 805E. The projections of the three virtual items overlap with the first sector 805E, which indicates that there are at least three virtual items within the aiming field of view. The aiming field of view is obtained twice based on the aiming azimuth to determine the virtual item for preferentially performing an interaction. A second sector 806E (second aiming field of view) with the virtual object 804E as the center and the set distance r as the radius is obtained. The ray in which the virtual object faces the aiming direction is the angle bisector of the second sector 806E. The second sector is smaller than the first sector. The virtual item E1, the virtual item E2, the virtual item E3, and the virtual item E4 are all within the first aiming field of view. The virtual item E1, the virtual item E2, and the virtual item E4 are all within the second aiming field of view. The virtual item with the largest overlapping area between the projection and the second sector can be directly used as the virtual item for preferentially performing an interaction. That is, the virtual item E2 corresponding to the projection 802E shown in FIG. 8E is used as the virtual item for preferentially performing an interaction, and the switching display between the interaction controls corresponding to the virtual item E1, the virtual item E2, and the virtual item E4 can be realized by an operation control.
[0115] In related technologies, when a plurality of virtual items are densely arranged in a virtual scene, it is difficult to identify a virtual item that preferentially performs an interaction. In particular, when a plurality of virtual items are stacked in the Z-axis direction, it may be necessary to frequently move the screen to control aiming and adjust the virtual item to be an interaction target. According to an embodiment of the present application, a player can be assisted in identifying a virtual item that preferentially performs an interaction, and interaction switching between a plurality of virtual items can be realized using limited controls.
[0116] As can be understood, in the embodiments of the present application, related data such as user information is mentioned. However, when the embodiments of the present application are applied to specific products or technologies, permission or consent of the user is required, and the collection, use, and processing of related data should comply with relevant laws, regulations, and standards in related countries and regions.
[0117] Next, the exemplary structure of the item interaction device 455-1 of the virtual scene according to the embodiments of the present application, which is implemented as a software module, will be continued. In some embodiments, as shown in FIG. 3, the software module in the item interaction device 455-1 of the virtual scene stored in the memory 450 may include a first display module 4551 configured to display at least a part of the area in the virtual scene on the human-computer interaction interface, where at least a part of the area includes virtual objects, and the first display module 4551 is further configured to display that the first virtual item among at least two virtual items is in a selected state in response to at least two virtual items having interaction functions appearing in at least a part of the area, and to display at least one interaction control corresponding to the first virtual item, where the interaction control is used to trigger the execution of the interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item.
[0118] In some embodiments, the first display module 4551 is further configured to apply a first display method to at least two virtual items in at least a part of the area in response to at least two virtual items having interaction functions appearing in at least a part of the area, where the saliency of the first display method has a positive correlation with the characteristic values of at least two virtual items, and the characteristic values include at least one of the usage frequency of the virtual item, the distance between the virtual item and the virtual object, and the direction angle between the virtual item and the virtual object.
[0119] In some embodiments, the first display module 4551 is further configured to, in response to at least two virtual items having interaction functions appearing in at least a partial area, apply a first display mode to the at least two virtual items and apply a second display mode to other virtual items in a human-computer interaction interface, where the second display mode is different from the first display mode and the other virtual items do not have interaction functions.
[0120] In some embodiments, before displaying that the first virtual item among at least two virtual items is in a selected state, the first display module 4551 further determines a first sector area centered on the virtual object, with the set distance as the radius and the first angle as the central angle, where the orientation of the virtual object overlaps with the angle bisector of the central angle of the first sector area, determines at least one first candidate virtual item that overlaps with the first sector area, where the projection area of the at least one first candidate virtual item on the ground of the virtual scene overlaps with the first sector area, and is configured to use one of the at least one first candidate virtual items as the first virtual item.
[0121] In some embodiments, when the first display module 4551 further includes one first candidate virtual item in the first sector area, 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 a larger area of the first overlapping area is used as the first virtual item, where 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 first candidate virtual items, a process of determining 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 is performed, where the orientation of the virtual object overlaps with the angular bisector of the central angle of the second sector area, and the second angle is smaller than the first angle, and a process of determining at least one second candidate virtual item overlapping with the second sector area is performed, where the projection area of the second candidate virtual item on the ground of the virtual scene overlaps with the second sector area, and a process of using the second candidate virtual item with the largest area of the second overlapping area as the first virtual item is performed, where the second overlapping area is the overlapping area between the second candidate virtual item and the second sector area, and is configured to execute the processes.
[0122] In some embodiments, before the first display module 4551 further displays that the first virtual item among at least two virtual items is in a selected state, a sorting process is performed on at least two virtual items according to the usage frequency, and the top virtual item after sorting is used as the first virtual item; a sorting process is performed on at least two virtual items according to the scene distance, and the top virtual item after sorting is used as the first virtual item, where the scene distance is the distance between the virtual item and the virtual object in the virtual scene; a sorting process is performed on at least two virtual items according to the last usage time, and the top virtual item after sorting is used as the first virtual item, where the last usage time is the time when the virtual object last used the virtual item, and is configured to execute any one of the processes.
[0123] In some embodiments, before the first display module 4551 further displays that the first virtual item among at least two virtual items is in a selected state, it acquires historical interaction data of at least two virtual items in the virtual scene and item parameters. The historical interaction data of each virtual item includes scene parameters for each use of the virtual item. Through the first neural network model, it extracts scene features from the scene parameters, extracts item features from the item parameters, performs a fusion process on the scene features and the item features to obtain a first fusion feature, maps the first fusion feature to a first probability that each virtual item fits into the virtual scene, performs a sorting process on at least two virtual items according to the descending order of the first probability, and sets the top virtual item after sorting as the first virtual item.
[0124] In some embodiments, the first display module 4551 is further configured to display a switching control corresponding to at least one second virtual item when the at least one second virtual item is not in a selected state. Here, the second virtual item has an interaction function, and the switching control is used to trigger the display of an interaction control corresponding to the at least one second virtual item.
[0125] In some embodiments, when the number of second virtual items that are not in a selected state is 1, the first display module 4551 is further configured to display at least one interaction control of the second virtual item and hide at least one interaction control of the first virtual item in response to a trigger operation on the switching control.
[0126] In some embodiments, when the number of second virtual items that are not in the selected state is plural, in response to a trigger operation on the switching control, the first display module 4551 further displays item identifiers that correspond one-to-one to the plural second virtual items, and in response to a trigger operation on any one of the item identifiers, displays at least one interaction control of the second virtual item corresponding to the triggered item identifier, and is configured to hide at least one interaction control of the first virtual item.
[0127] In some embodiments, the first display module 4551 is further configured to display item identifiers that correspond one-to-one to plural second virtual items according to a setting order, where the number of the plural second virtual items is any one of a set number, a number that has a positive correlation with the size of the human-computer interaction interface, a number that has a positive correlation with the area of the free space in the virtual scene, and a number that has a positive correlation with the number of items of the second virtual item.
[0128] In some embodiments, the setting order is any one of the descending order or ascending order of the usage frequency of the second virtual item, the ascending order or descending order of the scene distance of the second virtual item (the scene distance is the distance between the virtual item and the virtual object in the virtual scene), the reverse chronological order or chronological order of the last usage time of the second virtual item (the last usage time is the time when the virtual object last used the second virtual item), and the ascending order or descending order of the interaction efficiency between the second virtual item and the virtual object.
[0129] In some embodiments, the first display module 4551 further determines a second sector region centered on the virtual object, with the set distance as the radius and the second angle as the central angle, where the orientation of the virtual object coincides with the angle bisector of the central angle of the second sector region, the second angle is smaller than the first angle, obtains a third overlapping region between each second virtual item and the second sector region, and is configured to obtain an interaction efficiency that has a positive correlation with the area of the third overlapping region, where the third overlapping region is the overlapping region between the projection region of the second virtual item on the ground of the virtual scene and the second sector region.
[0130] Next, the exemplary structure of the item interaction device 455-2 for a virtual scene according to the embodiments of the present application, implemented as a software module, will be continued. In some embodiments, as shown in FIG. 3, the software module in the item interaction device 455-2 for a virtual scene stored in the memory 450 can include a second display module 4552 configured to display at least a part of the region within the virtual scene on the human-computer interaction interface, where at least a part of the region includes a virtual object, and the second display module 4552 is further configured to, in response to at least two virtual items appearing in at least a part of the region, based on the selection state, display a first virtual item having an interaction function among at least two virtual items and at least one interaction control corresponding to the first virtual item, where the interaction control is used to trigger the execution of the interaction function corresponding to the interaction control, the interaction function is used to interact with the virtual object, and the second display module 4552 is further configured to, in the case of at least one second virtual item that is not in the selected state, display a switching control corresponding to the at least one second virtual item, where the switching control is used to trigger the display of the interaction control corresponding to the at least one second virtual item.
[0131] Embodiments of the present application provide a computer program product including computer-executable instructions stored in a computer-readable storage medium. By reading and executing the computer-executable instructions from the computer-readable storage medium, a processor of an electronic device causes the electronic device to execute the item interaction method of the virtual scene in the embodiments of the present application.
[0132] Embodiments of the present application provide a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are executed by a processor, the processor is caused to execute the item interaction method of a virtual scene according to the embodiments of the present application, for example, the item interaction method of the virtual scene shown in FIGS. 4A to 4C.
[0133] In some embodiments, the computer-readable storage medium may be a memory such as FRAM (registered trademark), ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM, or may be various devices including one of the above memories or arbitrarily combined.
[0134] In some embodiments, the computer-executable instructions can be in the form of a program, software, software module, script, or code, and can be described in any form of programming language (including compiler-type languages or interpreted languages, or declarative languages or procedural languages), and can be deployed as an independent program or in any form such as being deployed as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0135] As an example, the computer-executable instructions may or may not correspond to files in a file system and can be stored in part of a file that stores other programs or data. For example, they can be stored in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file of the program under discussion, or in multiple shared files (e.g., files that store one or more modules, subprograms, or code portions).
[0136] As an example, the computer-executable instructions may be deployed to be executed on one electronic device, or may be deployed to be executed on multiple electronic devices in the same location, or may be deployed to be executed on multiple electronic devices that are distributed in multiple locations and interconnected by a communication network.
[0137] In summary, according to the embodiments of the present application, in response to at least two virtual items having an interaction function appearing in at least a partial area, it is displayed that the first virtual item among the at least two virtual items is in a selected state, and at least one interaction control corresponding to the first virtual item is displayed, thereby directly displaying the automatically selected first virtual item and the corresponding interaction control to the player. In this way, the process in which the player manually selects the virtual item to be interacted with currently is omitted, and the human-computer interaction efficiency can be improved.
[0138] The above description is only an example of the embodiments of the present application and does not limit the protection scope of the present application. All modifications, equivalent replacements, improvements, etc. made within the spirit and scope of the present application shall be included in the protection scope of the present application.
Description of Reference Numerals
[0139] 200 Server 300 Network 400 Terminal 410 Processor 420 Network Interface 430 User Interface 431 Output Device 432 Input Device 440 Bus System 450 Memory 451 Operating System 452 Network Communication Module 453 Presentation Module 454 Input Processing Module 455-1 Virtual Scene Item Interaction Device 4551 First Display Module 455-2 Virtual Scene Item Interaction Device 4552 Second Display Module
Claims
1. A method for item interaction in a virtual scene, executed by an electronic device, comprising: displaying at least a part of the virtual scene on a human-computer interaction interface, wherein the at least a part of the region includes virtual objects; displaying that a first virtual item among the at least two virtual items is in a selected state in response to the appearance of at least two virtual items having interaction functions in the at least a part of the region; displaying at least one interaction control corresponding to the first virtual item, wherein the interaction control is used to trigger the execution of the interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item; displaying a switching control corresponding to at least one second virtual item that is not in the selected state, wherein the second virtual item has the interaction function, and the switching control is used to trigger the display of the interaction control corresponding to at least one of the second virtual items; A method for item interaction in a virtual scene, comprising the above steps.
2. The method for item interaction in the virtual scene further comprises: applying a first display method to the at least two virtual items in the at least a part of the region in response to the appearance of at least two virtual items having interaction functions in the at least a part of the region; in the first display method, the degree to which the virtual item is more prominently displayed has a positive correlation with the characteristic value of the at least two virtual items, and the characteristic value includes at least one of the usage frequency of the virtual item, the distance between the virtual item and the virtual object, and the direction angle between the virtual item and the virtual object; The method for item interaction in a virtual scene according to Claim 1.
3. The method for item interaction in the virtual scene further comprises: In response to at least two virtual items having an interaction function appearing in at least a part of the region, in the human-computer interaction interface, a first display method is applied to the at least two virtual items, and in the human-computer interaction interface, a step of applying a second display method to other virtual items is further included, The second display method is different from the first display method, and the other virtual items do not have the interaction function. The item interaction method of the virtual scene according to claim 1.
4. Before displaying that a first virtual item among the at least two virtual items is in a selected state, the item interaction method of the virtual scene includes: Determining a first sector region 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 overlaps with the angle bisector of the central angle of the first sector region; Determining at least one first candidate virtual item that overlaps with the first sector region, wherein the projection region of the first candidate virtual item on the ground of the virtual scene overlaps with the first sector region; Further including the step of designating one of the at least one first candidate virtual item as the first virtual item. The item interaction method of the virtual scene according to claim 1.
5. The step of designating one of the at least one first candidate virtual item as the first virtual item includes: When one first candidate virtual item is included in the first sector region, determining the first candidate virtual item as the first virtual item; When two first candidate virtual items are included in the first sector region, designating the first candidate virtual item with a relatively larger area of the first overlapping region as the first virtual item, wherein the first overlapping region is the overlapping region between the first candidate virtual item and the first sector region; When at least three first candidate virtual items are included in the first sector region, including the step of performing the following processing, and the processing includes: Determining a second sector region centered on the virtual object, with the set distance as the radius and the second angle as the central angle, wherein the orientation of the virtual object overlaps with the angle bisector of the central angle of the second sector region, and the second angle is smaller than the first angle; Determining at least one second candidate virtual item that overlaps with the second sector region, wherein the projection region of the second candidate virtual item onto the ground of the virtual scene overlaps with the second sector region; Taking the second candidate virtual item with the largest area of the second overlapping region as the first virtual item, wherein the second overlapping region is the overlapping region between the second candidate virtual item and the second sector region; including the steps of The method for item interaction in a virtual scene according to claim 4.
6. Before displaying that the first virtual item among the at least two virtual items is in a selected state, the method for item interaction in the virtual scene is Performing a sorting process on the at least two virtual items according to the usage frequency, and taking the top virtual item after sorting as the first virtual item; Performing a sorting process on the at least two virtual items according to the scene distance, and taking the top virtual item after sorting as the first virtual item, wherein the scene distance is the distance between the virtual item and the virtual object in the virtual scene; the process of Performing a sorting process on the at least two virtual items according to the last usage time, and taking the top virtual item after sorting as the first virtual item, wherein the last usage time is the time when the virtual object last used the virtual item; further including the step of executing any one of the processes The method for item interaction in a virtual scene according to claim 1.
7. Before displaying that the first virtual item among the at least two virtual items is in a selected state, the method for item interaction in the virtual scene is A step of obtaining historical interaction data and item parameters for the at least two virtual items in the virtual scene, wherein the historical interaction data of each virtual item includes scene parameters for each use of the virtual item. A process of extracting scene features from the scene parameters and item features from the item parameters through a first neural network model; a process of performing a fusion process on the scene features and the item features to obtain a first fusion feature; and a process of mapping the first fusion feature to a first probability that each virtual item fits into the virtual scene. Further including a step of performing a sorting process on the at least two virtual items according to the descending order of the first probability, and setting the top virtual item after sorting as the first virtual item. The item interaction method for a virtual scene according to claim 1.
8. The item interaction method for a virtual scene is as follows. When the number of the second virtual items not in the selected state is 1, in response to a trigger operation on the switching control, displaying at least one interaction control of the second virtual item and hiding at least one interaction control of the first virtual item. The item interaction method for a virtual scene according to claim 1.
9. The item interaction method for a virtual scene is as follows. When the number of the second virtual items not in the selected state is plural, in response to a trigger operation on the switching control, displaying item identifiers corresponding one-to-one to the plural second virtual items. In response to a trigger operation on any one of the item identifiers, displaying at least one interaction control of the second virtual item corresponding to the triggered item identifier and hiding at least one interaction control of the first virtual item. The item interaction method for a virtual scene according to claim 1.
10. The step of displaying item identifiers corresponding one-to-one to the plural second virtual items is as follows. displaying item identifiers corresponding one-to-one with the plurality of second virtual items according to the setting order; the number of the plurality of second virtual items is any one of a set number, a number having a positive correlation with the size of the screen of the human-computer interaction interface, a number having a positive correlation with the area of the free space in the virtual scene, and a number having a positive correlation with the number of items of the second virtual item; The method for item interaction in a virtual scene according to claim 9.
11. The setting order is descending or ascending order of the usage frequency of the second virtual item, ascending or descending order of the scene distance of the second virtual item, reverse chronological order or chronological order of the last usage time of the second virtual item, ascending or descending order of the interaction efficiency between the second virtual item and the virtual object, and the scene distance is the distance between the virtual item and the virtual object in the virtual scene, and the last usage time is the time when the virtual object last used the second virtual item; The method for item interaction in a virtual scene according to claim 10.
12. The method for item interaction in the virtual scene is determining 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 direction of the virtual object overlaps with the angular bisector of the central angle of the second sector area; obtaining a third overlapping area between each second virtual item and the second sector area, and obtaining an interaction efficiency having a positive correlation with the area of the third overlapping area, wherein the third overlapping area is the overlapping area between the projection area of the second virtual item on the ground of the virtual scene and the second sector area; The method for item interaction in a virtual scene according to claim 11.
13. A method for item interaction in a virtual scene, executed by an electronic device, displaying at least a part of the virtual scene on a human-computer interaction interface, wherein the at least a part of the area includes a virtual object; In response to at least two virtual items appearing in the at least partial area, based on a selected state, a step of displaying a first virtual item having an interaction function among the at least two virtual items and at least one interaction control corresponding to the first virtual item, wherein the interaction control is used to trigger execution of the interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item, and a step of displaying a switching control corresponding to at least one second virtual item that is not in the selected state, wherein the switching control is used to trigger display of an interaction control corresponding to at least one of the at least one second virtual item, and An item interaction method for a virtual scene, including the above steps.
14. An item interaction device for a virtual scene, comprising a first display module configured to display at least a partial area within the virtual scene on a human-computer interaction interface, the at least partial area including a virtual object, and the first display module is further configured to display that a first virtual item among the at least two virtual items having an interaction function is in a selected state in response to the at least two virtual items appearing in the at least partial area, and display at least one interaction control corresponding to the first virtual item, wherein the interaction control is used to trigger execution of the interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item, The 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, where the at least one second virtual item has the interaction function, and the switching control is used to trigger the display of an interaction control corresponding to at least one of the at least one second virtual item. An item interaction device for a virtual scene.
15. An item interaction device for a virtual scene, comprising: a second display module configured to display at least a part of the virtual scene on a human-computer interaction interface, where the at least a part of the region includes virtual objects. The second display module is further configured to, in response to at least two virtual items appearing in the at least a part of the region, based on a selected state, display a first virtual item having an interaction function among the at least two virtual items and at least one interaction control corresponding to the first virtual item, where the interaction control is used to trigger the execution of the interaction function corresponding to the interaction control, and the interaction function is used for the virtual object to interact with the first virtual item. The second display module is further configured to display a switching control corresponding to at least one second virtual item that is not in the selected state, where the switching control is used to trigger the display of an interaction control corresponding to at least one of the at least one second virtual item. An item interaction device for a virtual scene.
16. An electronic device, comprising: a memory configured to store computer-executable instructions; a processor configured to implement the item interaction method for a virtual scene according to any one of claims 1 to 12 or the item interaction method for a virtual scene according to claim 13 by executing the computer-executable instructions stored in the memory.
17. A computer program for causing a computer to execute the item interaction method of a virtual scene according to any one of claims 1 to 12, or the item interaction method of a virtual scene according to claim 13.
Citation Information
Patent Citations
Interactive prop control method and device, terminal and storage medium
CN110721468A
Virtual article processing method and device, storage medium and terminal
CN112402948A
Method and device for picking up props in game, electronic equipment and readable medium
CN113577762A
Method for controlling virtual object to pick up virtual item, terminal and storage medium
CN114344903A
Video game device, character behavior controlling method and readable recording medium with character behavior controlling program recorded
JP2002095868A