Virtual backpack processing method and device, equipment, storage medium and program product
By moving and opening virtual backpacks in virtual scenes, the problem of players having to go to fixed areas to check their backpacks is solved, improving the interaction efficiency of virtual objects and the utilization of hardware resources.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2026-04-17
AI Technical Summary
In multiplayer virtual scenarios, players must go to a fixed storage area to view their virtual inventory, resulting in low viewing efficiency.
Display a virtual backpack of virtual objects in a virtual scene, respond to resource viewing commands, control the virtual backpack to move to the target location and open it, and display the resources in the backpack.
It improves the efficiency of viewing virtual backpacks for virtual objects, reduces restrictions, and enhances human-computer interaction efficiency and hardware resource utilization.
Smart Images

Figure CN121868848A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technology, and in particular to a method, apparatus, electronic device, computer-readable storage medium, and computer program product for processing a virtual backpack. Background Technology
[0002] In games using this technology, virtual inventory systems are generally divided into two types. The first type is visible only to the player's own view, while the second type is displayed directly within a virtual scene involving multiple players. This second type of inventory is usually displayed in a fixed storage area, which includes the virtual inventory of multiple players. Each player can find and view their own inventory by approaching the storage area. However, for the second type of inventory, players must go to the fixed storage area to view it. This significantly restricts the player's ability to access their inventory, thus reducing the efficiency of player interactions based on the virtual inventory. Summary of the Invention
[0003] This application provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for processing virtual backpacks, which can improve the efficiency of virtual objects performing interactive operations based on virtual backpacks.
[0004] The technical solution of this application embodiment is implemented as follows:
[0005] This application provides a method for processing a virtual backpack, including:
[0006] Virtual objects are displayed in a virtual scene, each virtual object having a virtual backpack, which is used to hold the virtual resources of the virtual object.
[0007] In response to a resource viewing command for the virtual backpack, control the virtual backpack to move to the target location;
[0008] Open the virtual backpack at the target location and display the virtual resources in the virtual backpack.
[0009] This application provides a virtual backpack processing device, including:
[0010] The first display module is used to display virtual objects in a virtual scene. The virtual objects have virtual backpacks, which are used to hold the virtual resources of the virtual objects.
[0011] A control module is used to control the virtual backpack to move to the target location in response to a resource viewing command for the virtual backpack;
[0012] The second display module is used to open the virtual backpack at the target location and display the virtual resources in the virtual backpack.
[0013] In the above scheme, the device further includes a third display module, which is used to display a resource viewing control, which is used to view the virtual resources of the virtual object carried in the virtual backpack; and to receive a resource viewing instruction for the virtual backpack in response to a trigger operation on the resource viewing control.
[0014] In the above scheme, the control module is further configured to respond to a resource viewing command for the virtual backpack and display the process of the virtual backpack moving from the initial position to the target position; wherein, the initial position is a first target distance from the target position, and during the movement of the virtual backpack, the size of the virtual backpack is inversely proportional to the distance of the virtual backpack from the target position.
[0015] In the above scheme, the initial position is in the air, the target position is on the same horizontal plane as the initial position, and the first target distance is the horizontal distance between the initial position and the target position; the control module is also used to display the process of the virtual backpack floating horizontally from the initial position in the air to the target position.
[0016] In the above scheme, the initial position is in the air, the target position is in the same vertical plane as the initial position, and the first target distance is the vertical distance between the initial position and the target position; the control module is also used to display the process of the virtual backpack descending vertically from the initial position in the air to the target position.
[0017] In the above scheme, the control module is further configured to respond to a resource viewing command for the virtual backpack, control the virtual object to take the virtual backpack out of the virtual pocket, and place the virtual backpack at the target location.
[0018] In the above scheme, the device further includes a closing module, which is used to close the virtual backpack in response to a closing command for the virtual backpack and display the process of the virtual backpack disappearing.
[0019] In the above scheme, the number of virtual resources is multiple; the second display module is further used to display multiple virtual resources in the virtual backpack; the device further includes a fourth display module, which is used to display at least one of a sorting control and a filtering control at an associated position in the virtual backpack; wherein, the sorting control is used to arrange multiple virtual resources in a target order; and the filtering control is used to filter out a target virtual resource from multiple virtual resources.
[0020] In the above scheme, there are multiple virtual resources, and these virtual resources exist in multiple categories; the device further includes a fifth display module, which is used to display multiple function tabs at the associated position of the virtual backpack, the function tabs correspond to the categories, and the target function tab is selected; the second display module is also used to display the virtual resources of the category corresponding to the target function tab in the virtual backpack.
[0021] In the above scheme, the selected function tab is the first function tab, and the virtual resources of the virtual backpack include at least two display modes, with a one-to-one correspondence between the display modes and the categories; the second display module is further configured to display the virtual resources of the category corresponding to the selected first function tab using the first display mode; the device further includes a sixth display module, which is configured to switch the selected function tab from the first function tab to the second function tab in response to a switching command for the target function tab, and display the virtual resources of the category corresponding to the selected second function tab using the second display mode.
[0022] In the above scheme, the second display module is further configured to, based on the first display mode, display virtual resources of the category corresponding to the first function tab in the selected state in the virtual backpack in the open state; the sixth display module is further configured to, based on the second display mode, change the virtual resources displayed in the virtual backpack in the open state into resource identifiers, and display the virtual resources of the category corresponding to the second function tab in the selected state in a film projection manner at the associated position of the virtual backpack including the resource identifiers.
[0023] In the above scheme, the virtual resource corresponding to the category of the second function tab is an object skill, and there are multiple object skills, among which the target object skill is selected; the device also includes a seventh display module, which is used to display the description information of the target object skill; wherein, the description information is used to introduce the target object skill, and the description information includes at least one of the target object skill's name, cooldown time, and usage effect.
[0024] In the above scheme, the device further includes an eighth display module, which is used to display practice controls for the target object skill; in response to a trigger operation on the practice controls, display the skill practice page; and on the skill practice page, in response to at least one skill release operation on the virtual object, display the process of the virtual object practicing the target object skill.
[0025] In the above scheme, the device further includes a ninth display module, which is used to display driving controls, the driving controls being used to transform the virtual backpack into a virtual vehicle; in response to a trigger operation on the driving controls, transforming the virtual backpack into a virtual vehicle and controlling the virtual object to ride in the virtual vehicle; in response to a driving operation on the virtual vehicle, controlling the virtual object to drive the virtual vehicle.
[0026] In the above scheme, the ninth display module is further used to display driving controls and interactive controls; wherein, the driving controls are used to control the direction of travel of the virtual vehicle; the interactive controls are used to interact with the virtual vehicle during its travel; and upon receiving a trigger operation for at least one of the driving controls and the interactive controls, the trigger operation is used as a driving operation for the virtual vehicle.
[0027] In the above scheme, the ninth display module is also used to display a disembarkation control, which is used to end the state of the virtual object riding the virtual vehicle; in response to a trigger operation on the disembarkation control, the virtual object is controlled to disembark from the virtual vehicle.
[0028] In the above scheme, the ninth display module is also used to respond to the movement operation of the virtual object, control the virtual object to move in the virtual scene; when the distance between the virtual object and the virtual vehicle is greater than the second target distance, transform the virtual vehicle back into the virtual backpack, and display the process of the virtual backpack disappearing.
[0029] In the above scheme, the ninth display module is also used to display the duration of the virtual object's ride, which is used to indicate the duration of the virtual object's ride in the virtual vehicle; when the duration of the ride exceeds the target duration, the virtual vehicle is transformed back into the virtual backpack, and the process of the virtual backpack disappearing is displayed.
[0030] In the above scheme, the ninth display module is also used to display a collapse control, which is used to transform the virtual vehicle back into the virtual backpack and collapse the virtual backpack; in response to the trigger operation of the collapse control, the virtual vehicle is transformed back into the virtual backpack and the process of the virtual backpack disappearing is displayed.
[0031] In the above scheme, when a trigger operation is received for the driving control, the virtual backpack is in an initial state. The ninth display module is also used to display a backpack control, which is used to transform the virtual vehicle back into the virtual backpack. In response to the trigger operation for the backpack control, the virtual vehicle is transformed into the virtual backpack, and the virtual backpack is controlled to be in the initial state.
[0032] In the above scheme, the ninth display module is also used to display a view reset control, which is used to adjust the view of the virtual object riding in the virtual vehicle; when the view of the virtual object riding in the virtual vehicle is inconsistent with the driving direction of the virtual vehicle, in response to the triggering operation of the view reset control, the view of the virtual object is controlled to turn to the driving direction of the virtual vehicle.
[0033] In the above scheme, the device further includes a tenth display module, which is used to display a decoration control for decorating the virtual backpack; in response to a trigger operation on the decoration control, it displays a plurality of textures for decorating the backpack; and in response to a selection operation on a target texture among the plurality of textures, it displays the target texture on the virtual backpack.
[0034] In the above scheme, the tenth display module is further configured to, in response to a drag operation on the target texture on the virtual backpack, drag the target texture from the current position to the target position; and, in response to a determination operation on the target position, decorate the target texture on the target position on the virtual backpack.
[0035] In the above scheme, the tenth display module is further configured to display at least one operation control in the associated area of the target texture, the at least one operation control including at least one of a flip control, a delete control, and a confirm control; in response to a trigger operation on a target operation control among the at least one operation controls, the operation indicated by the target operation control is performed on the target texture.
[0036] In the above scheme, the tenth display module is further configured to display at least one decoration mode in response to a trigger operation on the decoration control; wherein the decoration mode includes at least one of a closed mode, an open mode, and a driving mode, and different decoration modes are used to indicate the decoration of the virtual backpack in different states of the virtual backpack; in response to a target decoration mode being selected in the at least one decoration mode, the virtual backpack in the target state indicated by the target decoration mode is displayed; in response to a selection operation on a target texture in the plurality of textures, the target texture is displayed on the virtual backpack in the target state.
[0037] In the above scheme, the number of the at least one decoration mode is multiple. The tenth display module is further configured to display a one-click application control in response to a trigger operation on the decoration control. The one-click application control is used to apply the target texture to the virtual backpack in the state indicated by each decoration mode; and to apply the target texture to the virtual backpack in other states in response to a trigger operation on the one-click application control. The other states are the states indicated by other decoration modes, and the other decoration modes are decoration modes other than the target decoration mode among the multiple decoration modes.
[0038] This application provides an electronic device, including:
[0039] Memory is used to store executable instructions or computer programs.
[0040] The processor, when executing computer-executable instructions or computer programs stored in the memory, implements the virtual backpack processing method provided in the embodiments of this application.
[0041] This application provides a computer-readable storage medium storing computer-executable instructions or computer programs, which, when executed by a processor, implement the virtual backpack processing method provided in this application.
[0042] This application provides a computer program product including computer-executable instructions or a computer program stored in a computer-readable storage medium. A processor of an electronic device reads the computer-executable instructions or computer program from the computer-readable storage medium and executes the computer-executable instructions or computer program, causing the electronic device to perform the virtual backpack processing method provided in this application.
[0043] The embodiments of this application have the following beneficial effects:
[0044] After displaying a virtual object with a virtual backpack in the virtual scene, in response to a resource viewing command for the virtual backpack, the virtual backpack is moved to the target location, where it is opened and the virtual resources within are displayed. Thus, for a virtual backpack that can be displayed in the virtual scene, the virtual object can carry it with it, directly triggering a resource viewing command to open the virtual backpack at the target location and display the virtual resources within. Compared to a solution where the virtual object must go to a fixed storage area to open the virtual backpack and view its resources, this reduces the limitations on the virtual object's ability to view the virtual backpack, improves the efficiency of interactive operations based on the virtual backpack, and also enhances human-computer interaction efficiency and the utilization of electronic device hardware resources. Attached Figure Description
[0045] Figure 1 This is a schematic diagram of the architecture of the virtual backpack processing system provided in the embodiments of this application;
[0046] Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;
[0047] Figure 3 This is a flowchart illustrating the virtual backpack processing method provided in an embodiment of this application;
[0048] Figure 4 This is a schematic diagram of the sorting control and filtering control provided in the embodiments of this application;
[0049] Figure 5 This is a schematic diagram of the process for displaying virtual resources in a virtual backpack, provided in an embodiment of this application.
[0050] Figure 6 This is a schematic diagram of the functional tabs provided in an embodiment of this application;
[0051] Figure 7 This is a schematic diagram illustrating the display of virtual resources using a first display mode and a second display mode, provided in an embodiment of this application.
[0052] Figure 8 This is a schematic diagram illustrating the target object skill provided in the embodiments of this application;
[0053] Figure 9 This is a schematic diagram of the practice control provided in an embodiment of this application;
[0054] Figure 10 This is a flowchart illustrating the process of performing other interactive operations on a virtual backpack, as provided in an embodiment of this application.
[0055] Figure 11This is a schematic diagram of the driving controls provided in an embodiment of this application;
[0056] Figure 12 This is a schematic diagram illustrating the process of transforming a virtual backpack into a virtual vehicle, as provided in an embodiment of this application.
[0057] Figure 13 This is a schematic diagram of the multiplication control provided in the embodiments of this application;
[0058] Figure 14 This is a schematic diagram of the view reset control provided in an embodiment of this application;
[0059] Figure 15 This is a schematic diagram of the backpack control provided in an embodiment of this application;
[0060] Figure 16 This is a schematic diagram of the driving control and interactive control provided in the embodiments of this application;
[0061] Figure 17 This is a schematic diagram of the process for decorating a virtual backpack according to an embodiment of this application;
[0062] Figure 18 This is a schematic diagram of the decorative control provided in an embodiment of this application;
[0063] Figure 19 This is a schematic diagram of multiple textures provided in the embodiments of this application;
[0064] Figure 20 This is a schematic diagram illustrating the display of a target texture on a virtual backpack, as provided in an embodiment of this application.
[0065] Figure 21 This is a schematic diagram of the operation controls provided in an embodiment of this application;
[0066] Figure 22 This is a schematic diagram of at least one decoration pattern provided in the embodiments of this application;
[0067] Figure 23 This is a schematic diagram of the one-click application control provided in an embodiment of this application;
[0068] Figure 24 This is a schematic diagram of an open suitcase provided in an embodiment of this application;
[0069] Figure 25 This is a schematic diagram of the display mode corresponding to the skill tab provided in the embodiments of this application;
[0070] Figure 26 This is a schematic diagram of a suitcase in a drivable state provided in an embodiment of this application;
[0071] Figure 27This is a schematic diagram illustrating the decoration of a suitcase according to an embodiment of this application;
[0072] Figure 28 This is a flowchart illustrating a virtual backpack processing method provided in an embodiment of this application. Detailed Implementation
[0073] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0074] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0075] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0076] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0077] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.
[0078] 1) In response to, used to indicate the conditions or states on which the operation performed depends. When the conditions or states on which it depends are met, one or more operations performed may be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.
[0079] 2) Client, also known as user terminal, refers to the program that provides local services to users in contrast to the server. Except for some applications that can only run locally, it is generally installed on the terminal and needs to work in conjunction with the server. That is, there needs to be a corresponding server and service program on the network to provide the corresponding services. Thus, a specific communication connection needs to be established between the client and the server to ensure the normal operation of the application, such as virtual scene clients (such as game clients) and video clients.
[0080] 3) Artificial Intelligence (AI) is the theory, methods, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that attempts to understand the essence of intelligence and produce a new kind of intelligent machine that can react in a way similar to human intelligence. AI studies the design principles and implementation methods of various intelligent machines, enabling them to possess the functions of perception, reasoning, and decision-making.
[0081] 4) Virtual resources, which are virtual things used in the game. For example, they can be props used by the target in the game, experience points to increase the target's level in the game, or virtual clothing, skins, etc. that the target can use for decoration, as well as goods in the game store.
[0082] 5) Human-computer interaction interface, which is an interface or virtual scene display interface used to provide human-computer interaction functions.
[0083] For example, graphical user interfaces (GUIs) include augmented reality (AR) interfaces, virtual reality (VR) interfaces, voice user interfaces (VUIs), interactive projection interfaces (using projection technology to display information on a flat surface), eye-tracking interfaces (interfaces controlled by detecting the user's gaze), holographic interfaces (three-dimensional holograms formed by projecting images using holographic projection technology, allowing users to see stereoscopic images without wearing special glasses), multimodal interfaces (interfaces that combine multiple interaction methods, such as tactile, visual, and auditory interaction), and brain-machine interfaces (BMIs).
[0084] 6) A virtual scene is a virtual scene displayed (or provided) by an application when it runs on a terminal. This virtual scene can be a simulation of the real world, a semi-simulated / semi-fictional virtual environment, or a purely fictional virtual environment. A virtual scene can be any of the following: two-dimensional, 2.5-dimensional, or three-dimensional.
[0085] For example, a virtual scene can include the sky, land, and ocean. The land can include environmental elements such as deserts and cities. Users can control virtual objects to perform activities within this virtual scene, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up items, shooting, attacking, and throwing at least one of these activities. The virtual scene can be displayed from a first-person perspective (e.g., the user plays the role of a virtual object in the game from their own perspective); it can also be displayed from a third-person perspective (e.g., the user chases after a virtual object in the game); or it can be displayed from a bird's-eye view. Users can switch freely between these perspectives.
[0086] 7) Virtual objects: These are interactive representations of people and objects within a virtual scene, or movable objects within the virtual scene. These movable objects can be virtual characters, virtual animals, anime characters, etc., such as people, animals, plants, oil drums, walls, stones, vehicles, etc., displayed in the virtual scene. A virtual object can be a virtual avatar representing the user within the virtual scene. A virtual scene can include multiple virtual objects, each with its own shape and volume, occupying a portion of the space within the virtual scene.
[0087] For example, the virtual object can be a user character controlled through client operations, an artificial intelligence (AI) trained and set up for virtual scene battles, or a non-user character (NPC) set up for interaction in the virtual scene. The number of virtual objects participating in the interaction in the virtual scene can be preset or dynamically determined based on the number of clients joining the interaction.
[0088] 8) Third-person perspective: The in-game camera is positioned a certain distance behind the player character, showing the view of the character and all combat elements within a certain environment.
[0089] 9) First-person perspective: The in-game camera is positioned at the player character's eye level, showing the character's body and all combat elements within a certain surrounding environment.
[0090] See Figure 1, Figure 1 This is a schematic diagram of the architecture of the virtual backpack processing system 100 provided in this application embodiment. The terminal (terminal 400 is shown as an example) is connected to the server 200 through the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two, and data transmission is achieved using wireless or wired links.
[0091] Among them, server 200 is used to send display data of virtual scene to terminal 400;
[0092] Terminal 400 is used to: receive display data of a virtual scene and display the virtual scene based on the display data; display virtual objects in the virtual scene, each virtual object having a virtual backpack, the virtual backpack being used to hold the virtual resources of the virtual object; respond to a resource viewing command for the virtual backpack and control the virtual backpack to move to a target location; open the virtual backpack at the target location and display the virtual resources in the virtual backpack.
[0093] In some embodiments, server 200 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. Terminal 400 can be a smartphone, tablet, laptop, desktop computer, set-top box, smart voice interaction device, smart home appliance, virtual reality device, vehicle terminal, aircraft, portable music player, personal digital assistant, dedicated messaging device, portable gaming device, smart speaker, and smartwatch, but is not limited to these. The terminal and server can be directly or indirectly connected via wired or wireless communication, which is not limited in this embodiment.
[0094] The electronic device implementing the virtual backpack processing method provided in the embodiments of this application will now be described. See also Figure 2 , Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device can be a server or a terminal. The electronic device is used as an example. Figure 1 Taking the terminal shown as an example, Figure 2The illustrated electronic device includes at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The various components in terminal 400 are coupled together via a bus system 440. It is understood that the bus system 440 is used to implement communication between these components. In addition to a data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in… Figure 2 The general labeled all buses as Bus System 440.
[0095] Processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0096] User interface 430 includes one or more output devices 431 that enable the display of media content, including one or more speakers and / or one or more visual displays. User interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0097] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices physically located away from the processor 410.
[0098] The memory 450 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 450 described in this application embodiment is intended to include any suitable type of memory.
[0099] In some embodiments, memory 450 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.
[0100] Operating system 451 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks;
[0101] The network communication module 452 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: Bluetooth, WiFi, and Universal Serial Bus (USB), etc.
[0102] Presentation module 453 is configured to enable the display of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 431 (e.g., a display screen, a speaker, etc.) associated with user interface 430;
[0103] The input processing module 454 is used to detect and translate one or more user inputs or interactions from one or more input devices 432.
[0104] In some embodiments, the apparatus provided in this application can be implemented in software. Figure 2 A processing device 455 for a virtual backpack stored in memory 450 is shown. This device can be software in the form of programs and plugins, and includes the following software modules: a first display module 4551, a control module 4552, and a second display module 4553. These modules are logically connected and can therefore be arbitrarily combined or further separated according to the functions they implement. The functions of each module will be described below.
[0105] In other embodiments, the apparatus provided in this application can be implemented in hardware. As an example, the virtual backpack processing apparatus provided in this application can be a processor in the form of a hardware decoding processor, which is programmed to execute the virtual backpack processing method provided in this application. For example, the processor in the form of a hardware decoding processor can be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0106] In some embodiments, the terminal or server can implement the virtual backpack processing method provided in this application by running a computer program. For example, the computer program can be a native program or software module in an operating system; it can be a native application (APP), i.e., a local client, i.e., a program that needs to be installed in the operating system to run, such as an instant messaging APP or a web browser APP; it can also be a mini-program, i.e., a program that only needs to be downloaded into a browser environment to run; or it can be a mini-program that can be embedded in any APP. In short, the above-mentioned computer program can be any form of client, module, or plugin.
[0107] Based on the above description of the virtual backpack processing system and electronic device provided in the embodiments of this application, the processing method of the virtual backpack provided in the embodiments of this application is described below. In actual implementation, the processing method of the virtual backpack provided in the embodiments of this application can be implemented by the terminal or the server alone, or by the terminal and the server working together, so that... Figure 1 The following description uses the example of terminal 400 executing the virtual backpack processing method provided in this embodiment of the application. See also... Figure 3 , Figure 3 This is a flowchart illustrating the virtual backpack processing method provided in this application embodiment. Next, it will be combined with... Figure 3 The steps shown are explained.
[0108] Step 101: The terminal displays virtual objects in the virtual scene. The virtual objects have virtual backpacks, which are used to hold the virtual resources of the virtual objects.
[0109] In practice, the terminal has an application that supports virtual scenes installed. This application can be any of the following: a multiplayer online role-playing game, a first-person shooter, a third-person shooter, a multiplayer online tactical battle royale game, a virtual reality application, a 3D map application, or a multiplayer shooting survival game. Users can use the terminal to play games within the application. When a user opens the application on the terminal and the application is running, the terminal displays a virtual scene page. Here, the virtual scene is observed from either a first-person or third-person perspective, and it includes virtual objects. These virtual objects can be player characters controlled by the current player or player characters controlled by other players (teammates) belonging to the same group as the current player.
[0110] In this embodiment, the virtual object has a virtual backpack, which is used to carry the virtual resources of the virtual object. Here, "having a virtual backpack" means that the virtual object is equipped with a virtual backpack. This virtual backpack can be displayed on the virtual object, such as being carried on its back or held in its hand, or it can be hidden from view; this embodiment does not limit this. Simultaneously, "virtual backpack" refers to a container with carrying capacity, which can be in the form of a backpack, suitcase, wallet, etc.; this embodiment does not limit this either. "The virtual backpack carries the virtual resources of the virtual object" means that all of the virtual resources of the virtual object are contained in the virtual backpack. Virtual resources can be items or skills used by the target object in game matches, experience points to increase the target object's level in the game, or virtual clothing or skins that the target object can use for decoration.
[0111] Step 102: In response to the resource viewing command for the virtual backpack, control the virtual backpack to move to the target location.
[0112] In practice, resource viewing commands for the virtual backpack can be triggered by at least one of the keyboard, mouse, and joystick, or by the displayed function controls. Specifically, in response to a resource viewing command for the virtual backpack, before controlling the virtual backpack to move to the target location, a resource viewing control can be displayed. The resource viewing control is used to view the virtual resources of the virtual objects contained in the virtual backpack. In response to the triggering operation of the resource viewing control, a resource viewing command for the virtual backpack is received.
[0113] It should be noted that the style of the resource viewing control can be preset, and the display position of the resource viewing control on the view interface of the terminal displayed in the virtual scene can also be preset. This application embodiment does not limit this; however, the resource viewing control can only be displayed when the virtual object has a virtual backpack.
[0114] In practice, the process of controlling the virtual backpack to move to the target location in response to a resource viewing command for the virtual backpack can take many forms. For example, the virtual backpack may appear from the sky or a virtual object may be taken out of a pocket. Next, we will use two of these forms as examples to explain the process of controlling the virtual backpack to move to the target location in response to a resource viewing command for the virtual backpack.
[0115] In some embodiments, the process of controlling the virtual backpack to move to the target location in response to a resource viewing instruction for the virtual backpack may be, in response to a resource viewing instruction for the virtual backpack, displaying the process of the virtual backpack moving from the initial position to the target position; wherein, the initial position is a first target distance from the target position, and during the movement of the virtual backpack, the size of the virtual backpack is inversely proportional to the distance of the virtual backpack from the target position.
[0116] It should be noted that both the initial position and the target position can be preset. The initial position can be in the air or on the ground, while the target position is located around the virtual object. It can be within the target range corresponding to the virtual object or any preset position within the target range. The target range is a hemispherical area with the virtual object as the center and the distance to the third target as the radius. The target position can be on the ground or in the air, and the distance to the first target is greater than the distance to the third target.
[0117] The virtual backpack can move in the air or on the ground. For example, when the initial position is on the ground and the target position is also on the ground, the virtual backpack can move on the ground. When the initial position is on the ground and the target position is in the air, or the initial position is in the air and the target position is on the ground, or the initial position is in the air and the target position is also in the air, the virtual backpack can move in the air.
[0118] The size of the virtual backpack is inversely proportional to its distance from the target location. Before the virtual backpack moves, its first and second dimensions are obtained. The first dimension is smaller than the second dimension, which is a pre-set standard size for the virtual backpack. The virtual backpack with the first dimension is then displayed at the initial position. The virtual backpack is then controlled to move towards the target location. During the movement, the virtual backpack gradually increases in size until it reaches the target location, at which point its size becomes the second dimension. The virtual backpack with the second dimension is then displayed at the target location.
[0119] Next, taking the initial position in the air as an example, we will explain the process of the virtual backpack moving from the initial position to the target position.
[0120] When the initial position is in the air and the target position is on the same horizontal plane as the initial position, the first target distance is the horizontal distance between the initial position and the target position; therefore, displaying the process of the virtual backpack moving from the initial position to the target position can be displaying the process of the virtual backpack floating horizontally from the initial position in the air to the target position.
[0121] It should be noted that when the target position and the initial position are on the same horizontal plane, the target position is also in the air, thus showing the process of the virtual backpack floating horizontally from the initial position in the air to the target position. That is, the virtual backpack moves horizontally from the initial position in the air to the target position by floating. Here, the air can be inside or outside a building, and this embodiment of the application does not limit it.
[0122] When the initial position is in the air and the target position is in the same vertical plane as the initial position, the first target distance is the vertical distance between the initial position and the target position; therefore, displaying the process of the virtual backpack moving from the initial position to the target position can be displaying the process of the virtual backpack descending vertically from the initial position in the air to the target position.
[0123] It should be noted that when the target position and the initial position are in the same vertical plane, the target position can be in the air or on the ground. The air can be inside or outside a building. This application does not limit this.
[0124] In other embodiments, the process of controlling the virtual backpack to move to the target location in response to a resource viewing command for the virtual backpack may be to control the virtual object to take the virtual backpack out of the virtual pocket and place the virtual backpack at the target location in response to the resource viewing command for the virtual backpack.
[0125] It should be noted that, as mentioned above, the target location here is also located around the virtual object. It can be within the target range corresponding to the virtual object, or it can be any pre-set location within the target range. The target range is a hemispherical area with the virtual object as the center and the distance to the third target as the radius. The target location can be on the ground or in the air, and the distance to the first target is greater than the distance to the third target.
[0126] Step 103: Open the virtual backpack at the target location and display the virtual resources in the virtual backpack.
[0127] In practice, the number of virtual resources in the virtual backpack can be at least one. When there is only one virtual resource, it is directly displayed in the virtual backpack. When there are multiple virtual resources, the process of displaying the virtual resources in the virtual backpack can be to display multiple virtual resources in the virtual backpack. Here, when multiple virtual resources are displayed in the virtual backpack, at least one of a sorting control and a filtering control will also be displayed in the associated position of the virtual backpack. The sorting control is used to arrange the multiple virtual resources in a target order, and the filtering control is used to filter out the target virtual resource from the multiple virtual resources.
[0128] It should be noted that the associated position of the virtual backpack can be one of the following: the top, bottom, left, or right position outside or inside the virtual backpack; the target order can be sorted according to the value of each virtual resource, the acquisition time of each virtual resource, or the name of each virtual resource, etc. This application embodiment does not limit this; the filtering control can be used to filter out virtual resources whose value is greater than the target value from multiple virtual resources, that is, the target virtual resource can be a virtual resource with a value greater than the target value, or the filtering control can be used to filter out virtual resources whose acquisition time is within the target time period from multiple virtual resources, that is, the target virtual resource can be a virtual resource whose acquisition time is within the target time period, etc. This application embodiment does not limit this. For example, see... Figure 4 , Figure 4 This is a schematic diagram of the sorting control and filtering control provided in the embodiments of this application, based on Figure 4 The dashed box 401 indicates the sort control and the filter control.
[0129] In actual implementation, see Figure 5 , Figure 5 This is a schematic diagram of the process for displaying virtual resources in a virtual backpack according to an embodiment of this application, based on... Figure 5 When there are multiple virtual resources, and these virtual resources exist in multiple categories, after opening the virtual backpack at the target location, you can also display the virtual resources in the virtual backpack by following these steps.
[0130] Step 201: The terminal displays multiple function tabs at the associated location of the virtual backpack. The function tabs correspond to categories, and the target function tab is selected.
[0131] It should be noted that the associated position of the virtual backpack can be any of the following: top, bottom, left, or right side of the virtual backpack, either externally or internally. There is a one-to-one correspondence between function tabs and categories. When a target function tab is selected, it means that the target function tab is displayed with special effects, such as highlighting or a halo effect. The categories of virtual resources can be based on their functions. For example, categories can include virtual object skills, virtual object skins or character outfits, or virtual object items used in gameplay.
[0132] For example, see Figure 6 , Figure 6 This is a schematic diagram of the functional tabs provided in the embodiments of this application, based on Figure 6The dashed box 601 indicates three function tabs, including Character, Skills, and Items; among them, the category corresponding to Skills is the skills of virtual objects, the category corresponding to Items is the items of virtual objects in the game, and the category corresponding to Character is the skins or character outfits of virtual objects.
[0133] Step 202: Display the virtual resources corresponding to the category of the target function tab in the virtual backpack.
[0134] For example, see [link to previous article] Figure 6 ,based on Figure 6 At this point, the target function tab is "Character". Therefore, the virtual resources corresponding to the category of the target function tab in the virtual backpack are displayed, that is, the virtual resources corresponding to the skin or character outfit of the virtual object are displayed.
[0135] In actual implementation, the virtual resources corresponding to different function tabs are displayed in different ways. Specifically, the function tab in the selected state is the first function tab. The virtual resources in the virtual backpack include at least two display modes, and there is a one-to-one correspondence between the display modes and the categories. The process of displaying the virtual resources of the category corresponding to the target function tab in the virtual backpack can be as follows: First display mode is used to display the virtual resources of the category corresponding to the selected first function tab. After displaying the virtual resources of the category corresponding to the target function tab in the virtual backpack, in response to the switching command for the target function tab, the selected function tab can be switched from the first function tab to the second function tab, and the second display mode is used to display the virtual resources of the category corresponding to the selected second function tab.
[0136] It should be noted that the first display mode is different from the second display mode. The first display mode can be the backpack viewing mode, which is the mode of viewing virtual resources from a backpack, while the second display mode can be the film projection mode, which is the mode of using a projector to project film and displaying virtual resources on the film. Next, the process of displaying the virtual resources corresponding to the category of the selected target function tab based on different display modes will be explained.
[0137] In actual implementation, the process of displaying virtual resources of the category corresponding to the selected first function tab in the first display mode can be as follows: based on the first display mode, display the virtual resources of the category corresponding to the selected first function tab in the virtual backpack in the open state. The process of displaying virtual resources of the category corresponding to the selected second function tab in the second display mode can be as follows: based on the second display mode, change the virtual resources displayed in the open virtual backpack into resource identifiers, and display the virtual resources of the category corresponding to the selected second function tab in the associated position of the virtual backpack including the resource identifiers using a slideshow method.
[0138] It should be noted that, in the process of displaying virtual resources of the category corresponding to the selected second function tab using the second display mode, converting virtual resources into resource identifiers means transforming each displayed virtual resource into a single resource identifier. In the process of displaying resource identifiers in an open virtual backpack, since the virtual backpack contains resource identifiers, it cannot directly display virtual resources within the backpack. The resource identifier can be an image, which can be two-dimensional or three-dimensional; this embodiment does not limit its scope.
[0139] Meanwhile, the associated position of the virtual backpack refers to one of the following: the top position, the bottom position, the left position, and the right position of the virtual backpack; the process of displaying the virtual resources of the category corresponding to the selected second function tab in the form of a slideshow can be to slide at least one slide and display one virtual resource of the category corresponding to the selected second function tab in each slide; wherein, the slideshow can be a static slideshow or a scrolling slideshow, etc., and this application embodiment does not limit the specificity of the slideshow.
[0140] It should be noted that when displaying virtual resources of the category corresponding to the selected second function tab in the associated location of the virtual backpack including resource identifiers using a slideshow method, if at least one slideshow is a static slideshow, the default virtual resource in the selected state can be displayed directly. Then, in response to a selection operation (such as a click or scroll operation) targeting the target virtual resource, the selected virtual resource is switched from the default virtual resource to the target virtual resource indicated by the selection operation. Alternatively, all virtual resources in the unselected state can be displayed, and then, in response to a selection operation (such as a click operation) targeting the target virtual resource, the unselected target virtual resource is switched to the selected state. If at least one slideshow is a scrolling slideshow, the virtual resources in the unselected state are displayed in a scrolling manner. Then, in response to a selection operation (such as a click operation) targeting the target virtual resource, the scrolling of at least one virtual resource stops, and the target virtual resource, which has switched from the unselected state to the selected state, is displayed.
[0141] For example, see Figure 7 , Figure 7 This is a schematic diagram illustrating the display of virtual resources using a first display mode and a second display mode, provided in an embodiment of this application. Figure 7 ,like Figure 7 As shown in Figure a, the character is selected in the two function tabs indicated by 701. At this time, the first display mode, i.e., the backpack viewing mode, is used, and the display is as follows. Figure 7 The interface shown in 'a' then responds to the following: Figure 7 The skill triggering operation in the two function tabs indicated by 701 in section a, with the skills in both function tabs selected, is displayed in the second display mode, i.e., film projection mode, as shown below. Figure 7 The interface shown in b; where, Figure 7 In section b, 703 indicates the virtual backpack in the open state, and 704 indicates the resource identifier. Therefore, in the associated position of the virtual backpack including the resource identifier, the virtual resources corresponding to the category of the selected second function tab are displayed in a slideshow manner. That is, in the position below the virtual backpack including the resource identifier, the virtual resources corresponding to the category of the selected skill function tab, as indicated by the dashed box 702, are displayed in a slideshow manner.
[0142] In some embodiments, the virtual resource corresponding to the category of the second function tab is an object skill, and there are multiple object skills, among which the target object skill is selected; after switching the selected function tab from the first function tab to the second function tab, the description information of the target object skill can also be displayed; wherein, the description information is used to introduce the target object skill, and the description information includes at least one of the target object skill's name, cooldown time, and usage effect.
[0143] It should be noted that the description of the target skill can be displayed in the associated position of the target skill, that is, one of the positions above, below, to the left, and to the right of the target skill; the cooldown time refers to the time between using the target skill and the next time the target skill can be used; for example, see Figure 8 , Figure 8 This is a schematic diagram illustrating the descriptive information of the target object skill provided in the embodiments of this application, based on Figure 8 The target's skill is "Diamond Meteor Fist," and the dashed box 801 indicates the description of the target's skill.
[0144] In some embodiments, the virtual object can also practice object skills. Specifically, after switching the selected function tab from the first function tab to the second function tab, a practice control for the target object skill can be displayed; in response to a trigger operation on the practice control, a skill practice page is displayed; and on the skill practice page, in response to at least one skill release operation on the virtual object, the process of the virtual object practicing the target object skill is displayed.
[0145] It should be noted that the skill practice page is used for virtual objects to practice corresponding object skills. It can also allow the practice of other object skills. In some embodiments, at least one object skill, including a target object skill, is displayed on the skill practice page and is also selected. Then, in response to a selection operation for a target other object skill among the other object skills, the selected object skill is switched from the target object skill to a target other object skill. The other object skill is any object skill other than the target object skill among the at least one object skill. Then, on the skill practice page, in response to at least one skill release operation for the virtual object, the process of the virtual object practicing the target other object skill is displayed.
[0146] In other embodiments, only the target object skill is displayed on the skill practice page. If other object skills are to be practiced on the skill practice page, the corresponding skill practice interface for those other object skills needs to be opened. Specifically, different object skills correspond to different skill practice pages. In response to a closing operation on the skill practice page corresponding to the target object skill, the skill practice page corresponding to the target object skill is closed. Then, in response to a selection operation on other object skills, the selected object skill is switched from the target object skill to other object skills. Other object skills are at least one object skill other than the target object skill. Then, in response to a trigger operation on the practice control, the skill practice page corresponding to the other object skill is displayed. On the skill practice page corresponding to the other object skill, in response to at least one skill release operation on the virtual object, the process of the virtual object practicing the other object skill is displayed. When the other object skill is selected, the displayed description information of the target object skill is also switched to the description information of the other object skill.
[0147] It should be noted that the process of displaying a virtual object practicing the skills of other objects or the target object's skills is the process of displaying a virtual object releasing the skills of other objects or the target object's skills at least once.
[0148] For example, see Figure 9 , Figure 9 This is a schematic diagram of the practice control provided in the embodiments of this application, based on Figure 9 The dashed box 901 indicates the practice control, which, in response to a trigger operation on the practice control, displays the skill practice page corresponding to the skill of the target other object.
[0149] In some embodiments, after opening the virtual backpack, it is also possible to close the virtual backpack. Specifically, after displaying the virtual resources in the virtual backpack, it is also possible to close the virtual backpack in response to a closing command and display the process of the virtual backpack disappearing.
[0150] It should be noted that the command to close the virtual backpack can be triggered by the displayed function controls, or by at least one of the keyboard, mouse, and joystick. This application embodiment does not limit this. The process of displaying the virtual backpack disappearing can be achieved through special effects, for example, in a way that is the opposite of the process of controlling the virtual backpack to move to the target position as described above. Specifically, it can be that the virtual backpack is moved from the target position to the initial position, wherein during the movement of the virtual backpack, the size of the virtual backpack is inversely proportional to the distance between the virtual backpack and the target position. Here, as mentioned above, the virtual backpack can move in the air or on the ground; this application embodiment will not elaborate on this. Alternatively, the process of displaying the virtual backpack disappearing can also be achieved by controlling the virtual object to put the virtual backpack back into the virtual pocket; this application embodiment does not limit this.
[0151] In some embodiments, other interactive operations can also be performed on the virtual backpack, such as switching the virtual backpack's form from backpack form to vehicle form. Specifically, see [link to documentation]. Figure 10 , Figure 10 This is a flowchart illustrating the process of performing other interactive operations on a virtual backpack, as provided in an embodiment of this application. Figure 10 The process of performing other interactive operations on the virtual backpack is achieved by the following steps.
[0152] Step 301: The terminal displays driving controls, which are used to transform the virtual backpack into a virtual vehicle.
[0153] It should be noted that the driving controls can be displayed at any location in the view interface of the terminal displayed in the virtual scene; for example, see... Figure 11 , Figure 11 This is a schematic diagram of the driving control provided in an embodiment of this application, based on Figure 11 1101 indicates the driving controls.
[0154] Step 302: In response to a trigger operation on the driving controls, the virtual backpack is transformed into a virtual vehicle, and the virtual object is controlled to ride in the virtual vehicle.
[0155] It should be noted that when transforming a virtual backpack into a virtual vehicle, the virtual vehicle can be any form of virtual transportation, such as a virtual car, virtual airplane, or virtual spaceship. This application does not limit this. Controlling a virtual object to ride in a virtual vehicle means controlling the virtual object to sit in the driver's seat of the virtual vehicle.
[0156] For example, see Figure 12 , Figure 12 This is a schematic diagram illustrating the process of transforming a virtual backpack into a virtual vehicle, as provided in an embodiment of this application. Figure 12 , Figure 12 In section a, 1201 indicates the driving control, and thus, in response to a trigger operation on the driving control, it will... Figure 12 The virtual backpack indicated by the dashed box 1202 in a is transformed as follows: Figure 12 The virtual vehicle indicated by the dashed box 1203 in b, and the control of the virtual object to ride in the virtual vehicle, that is, as shown in the image. Figure 12 The interface shown in b.
[0157] In some embodiments, after controlling the virtual object to ride in the virtual vehicle, a disembarkation control can be displayed, which is used to end the virtual object's ride in the virtual vehicle; in response to a trigger operation on the disembarkation control, the virtual object is controlled to disembark from the virtual vehicle.
[0158] It should be noted that the "disembarkation control" is used to end the virtual object's riding in the virtual vehicle, i.e., to control the virtual object to disembark. "Disembarkation" refers to ending the riding state, that is, getting off the object being ridden. For example, see [link to example]. Figure 13 , Figure 13 This is a schematic diagram of the multiplication control provided in the embodiments of this application, based on Figure 13 The dashed box 1301 indicates the lower control.
[0159] In practice, after a virtual object gets on or off a virtual vehicle, the virtual vehicle can automatically transform back into a virtual backpack, and then the virtual backpack can be put away. Alternatively, the virtual vehicle can transform back into a virtual backpack and then be put away by the virtual object's put-away operation. The following will explain the process of the virtual vehicle transforming back into a virtual backpack and then putting away the virtual backpack.
[0160] This addresses the situation where a virtual vehicle automatically transforms back into a virtual backpack and then collapses the virtual backpack.
[0161] In some embodiments, in response to a trigger operation on the disembarkation control, after the virtual object disembarks from the virtual vehicle, the virtual vehicle is immediately controlled to revert to the virtual backpack, and then the process of the virtual backpack disappearing is displayed.
[0162] In some embodiments, in response to a trigger operation on the disembarkation control, after controlling the virtual object to disembark from the virtual vehicle, the virtual object can also be controlled to move in the virtual scene in response to a movement operation on the virtual object; when the distance between the virtual object and the virtual vehicle is greater than the distance to the second target, the virtual vehicle is transformed back into a virtual backpack, and the process of the virtual backpack disappearing is displayed.
[0163] It should be noted that the second target distance is preset, and this application embodiment does not limit it; as for the process of displaying the disappearance of the virtual backpack, it is similar to the process of displaying the disappearance of the virtual backpack when the closing command is triggered as described above, and this application embodiment will not elaborate on it.
[0164] In other embodiments, in response to a trigger operation on the ride control, after the virtual object gets on and off the virtual vehicle, the ride duration of the virtual object can also be displayed, which indicates the duration for which the virtual object finishes riding the virtual vehicle; when the ride duration exceeds the target ride duration, the virtual vehicle is transformed back into a virtual backpack, and the process of the virtual backpack disappearing is displayed.
[0165] It should be noted that the target multiplication time is preset, and this application embodiment does not limit it; as for the process of displaying the disappearance of the virtual backpack, it is similar to the process of displaying the disappearance of the virtual backpack when the closing command is triggered as described above, and this application embodiment will not elaborate on it.
[0166] In this way, when the virtual object moves away from the virtual vehicle or has not ridden in the vehicle for a long time, the virtual vehicle will automatically turn back into a virtual backpack without the user having to operate it actively, thus simplifying the user's interaction with the virtual backpack.
[0167] This addresses the scenario where a virtual vehicle is transformed back into a virtual backpack and then the virtual backpack is collapsed again through the collapse operation of a virtual object.
[0168] In some embodiments, in response to a trigger operation on the disembarkation control, after controlling the virtual object to disembark from the virtual vehicle, a collapse control may also be displayed. The collapse control is used to transform the virtual vehicle back into a virtual backpack and collapse the virtual backpack. In response to a trigger operation on the collapse control, the virtual vehicle is transformed back into a virtual backpack, and the process of the virtual backpack disappearing is displayed.
[0169] It should be noted that the collapse control can be displayed anywhere in the view interface of the virtual scene. When a trigger operation is received for the collapse control, the virtual vehicle reverts to the virtual backpack. Thus, the virtual vehicle only reverts to the virtual backpack when the user triggers the collapse control, avoiding the possibility of reverting the virtual vehicle to the virtual backpack when the user does not need it, thereby improving the user experience. The process of displaying the disappearance of the virtual backpack is similar to the process of displaying the disappearance of the virtual backpack when a close command is triggered, as described above; therefore, this embodiment will not elaborate on it further.
[0170] In actual implementation, the perspective of the virtual object riding in the virtual vehicle can also be adjusted. Specifically, after controlling the virtual object to ride in the virtual vehicle, a perspective reset control can be displayed. The perspective reset control is used to adjust the perspective of the virtual object riding in the virtual vehicle. When the perspective of the virtual object riding in the virtual vehicle is inconsistent with the driving direction of the virtual vehicle, in response to the trigger operation of the perspective reset control, the perspective of the virtual object is controlled to turn to the driving direction of the virtual vehicle.
[0171] It should be noted that the perspective of the virtual object riding in the virtual vehicle refers to the field of view of the virtual object riding in the virtual vehicle; and the inconsistency between the perspective direction of the virtual object and the driving direction of the virtual vehicle means that the angle between the perspective direction of the virtual object and the driving direction of the virtual vehicle is greater than the first target angle, such as 15 degrees. Specifically, starting from the position of the virtual object riding in the virtual vehicle, a detection ray is emitted in the reference direction to obtain the perspective ray; where the reference direction is the direction indicated by the current perspective of the virtual object; the angle between the ray corresponding to the driving direction of the virtual vehicle and the perspective ray is taken as the angle between the perspective direction of the virtual object and the driving direction of the virtual vehicle.
[0172] Then, when the included angle is greater than the first target angle, such as 15 degrees, it is determined that the viewpoint of the virtual object riding in the virtual vehicle is inconsistent with the driving direction of the virtual vehicle; in response to the trigger operation of the viewpoint reset control, the viewpoint of the virtual object is controlled to turn towards the driving direction of the virtual vehicle; wherein, controlling the viewpoint of the virtual object to turn towards the driving direction of the virtual vehicle is also controlling the viewpoint of the virtual object to be consistent with the driving direction of the virtual vehicle. Here, consistency means that the included angle between the ray corresponding to the driving direction of the virtual vehicle and the viewpoint ray is less than or equal to the second target angle, such as 5 degrees. Therefore, when the included angle is less than or equal to the second target angle, such as 5 degrees, it is determined that the viewpoint of the virtual object riding in the virtual vehicle is consistent with the driving direction of the virtual vehicle.
[0173] For example, see Figure 14 , Figure 14 This is a schematic diagram of the view reset control provided in the embodiments of this application, based on Figure 14 The dashed box 1401 indicates the view reset control, so that when the view of the virtual object riding the virtual vehicle is inconsistent with the driving direction of the virtual vehicle, in response to the trigger operation of the view reset control, the view of the virtual object is controlled to turn to the driving direction of the virtual vehicle.
[0174] In actual implementation, when a trigger operation is received for the driving control, the virtual backpack is in its initial state. In response to the trigger operation for the driving control, after the virtual backpack is transformed into a virtual vehicle, the backpack control can also be displayed. The backpack control is used to transform the virtual vehicle back into a virtual backpack. In response to the trigger operation for the backpack control, the virtual vehicle is transformed into a virtual backpack, and the virtual backpack is controlled to be in its initial state.
[0175] It should be noted that the initial state includes an on state or a off state. When the virtual backpack is on, virtual resources can be directly displayed in the virtual backpack, which can be as described above, displaying the resource identifier of the virtual resource. This application embodiment does not limit this. Furthermore, regarding the process of transforming a virtual vehicle into a virtual backpack in response to a trigger operation on the backpack control, the trigger operation on the backpack control can be performed when the virtual backpack has become a virtual vehicle but the virtual object has not yet boarded the virtual vehicle, or when the virtual object has boarded the virtual vehicle but the virtual vehicle has not yet moved, or when the virtual object has boarded the virtual vehicle and the virtual vehicle is moving. This application embodiment does not limit this.
[0176] For example, see Figure 15 , Figure 15 This is a schematic diagram of the backpack control provided in an embodiment of this application, based on Figure 15 The dashed box 1501 indicates the backpack control, which, in response to a trigger operation on the backpack control, transforms the virtual vehicle into a virtual backpack.
[0177] Step 303: In response to a driving operation for the virtual vehicle, control the virtual object to drive the virtual vehicle.
[0178] In some embodiments, after a virtual object rides a virtual vehicle, it can also drive the virtual vehicle. Specifically, in response to a driving operation on the virtual vehicle, before controlling the virtual object to drive the virtual vehicle, a driving control and an interactive control can be displayed. The driving control is used to control the direction of travel of the virtual vehicle; the interactive control is used to interact with the virtual vehicle during its travel; and upon receiving a trigger operation on at least one of the driving control and the interactive control, the trigger operation is treated as a driving operation on the virtual vehicle.
[0179] It should be noted that the driving control used to control the movement direction of the virtual vehicle means that the user can control the movement and direction of the virtual vehicle through the driving control. The driving control can be in the form of a wheel or a non-wheel form. When the driving control is in the form of a wheel, it includes draggable items and draggable areas. The trigger operation for the driving control is based on the dragging operation performed on the draggable items in the draggable areas, and the driving direction of the virtual vehicle is related to the dragging direction of the draggable items. When the driving control is not in the form of a wheel, it includes forward and backward driving controls and left and right driving controls. The forward and backward driving controls are used to control the virtual vehicle to move forward or backward, and the left and right driving controls are used to control the virtual vehicle to turn left or right. The trigger operation for the driving control is a trigger operation for at least one of the forward and backward driving controls and the left and right driving controls.
[0180] The interactive controls include at least one of an acceleration control, a brake control, and a horn control, thereby controlling the virtual object to drive the virtual vehicle in response to a driving operation triggered by the interactive controls. That is, in response to a trigger operation of the acceleration control, the virtual vehicle is controlled to accelerate; in response to a trigger operation of the brake control, the virtual vehicle is controlled to brake; or in response to a trigger operation of the horn control, the virtual vehicle is controlled to sound its horn, etc. The embodiments of this application do not limit this.
[0181] For example, see Figure 16 , Figure 16 This is a schematic diagram of the driving control and interactive control provided in the embodiments of this application, based on Figure 16 The dashed box 1601 indicates the driving control, and the dashed box 1602 indicates the interaction control, thereby receiving a trigger operation for at least one of the driving control and the interaction control, and treating the trigger operation as a driving operation for the virtual vehicle.
[0182] It should be noted that the timing of transforming the virtual vehicle back into a virtual backpack, as mentioned above, can be when the virtual backpack has been transformed into a virtual vehicle but the virtual object has not yet ridden in the virtual vehicle, or when the virtual object has ridden in the virtual vehicle but the virtual vehicle has not yet started moving, or when the virtual object has ridden in the virtual vehicle and the virtual vehicle is in motion. This application does not limit the specific timing of this event.
[0183] In some embodiments, the virtual backpack can also be decorated, specifically, see [link to relevant documentation]. Figure 17 , Figure 17 This is a flowchart illustrating the process of decorating a virtual backpack according to an embodiment of this application, based on... Figure 17 The process of decorating a virtual backpack is achieved through the following steps.
[0184] Step 401: The terminal displays a decoration control, which is used to decorate the virtual backpack.
[0185] It should be noted that the decorative control can be displayed anywhere in the view interface of the terminal displayed in the virtual scene; for example, see... Figure 18 , Figure 18 This is a schematic diagram of the decorative control provided in the embodiments of this application, based on Figure 18 1801 indicates a decorative control.
[0186] Step 402, in response to a triggered operation on the decoration control, displays multiple textures for decorating the backpack.
[0187] It should be noted that the triggering operation for the decoration control can try many click operations of the decoration control, including single click or double click, etc., and the multiple textures used to decorate the backpack can be preset; for example, see Figure 19 , Figure 19 This is a schematic diagram of multiple textures provided in the embodiments of this application, based on Figure 19 , Figure 19 The value indicated by 1901 in 'a' is a decorative control, and thus, in response to a triggering operation on the decorative control, it will behave as follows: Figure 19 The virtual knapsack indicated by the dashed box 1902 in a is transformed as follows: Figure 19 The virtual backpack indicated by b in 1903, that is, as shown in Figure 12 The interface shown in b, and displays as follows Figure 19 The dashed box 1904 in b indicates multiple textures.
[0188] Step 403: In response to the selection operation of the target texture among multiple textures, display the target texture on the virtual backpack.
[0189] It should be noted that there can be one or more target textures. As for displaying target textures on the virtual backpack, the display position of the target textures on the virtual backpack can be random. For example, when there is one target texture, it can be displayed in the middle of the virtual backpack. When there are multiple target textures, they can be scattered in any position of the virtual backpack. This application does not limit this.
[0190] For example, see Figure 20 , Figure 20 This is a schematic diagram illustrating the display of a target texture on a virtual backpack, based on an embodiment of this application. Figure 20 In response to a selection operation for a target texture indicated by 2002 among multiple textures, the target texture indicated by dashed box 2001 is displayed on the virtual backpack.
[0191] In some embodiments, after the target texture is displayed on the virtual backpack, the position of the target texture can be adjusted. Specifically, in response to a selection operation of the target texture among multiple textures, after the target texture is displayed on the virtual backpack, the target texture can be dragged from its current position to a target position in response to a drag operation of the target texture on the virtual backpack; and in response to a determination operation of the target position, the target texture can be decorated at the target position on the virtual backpack.
[0192] It should be noted that the determination of the target location can be achieved through a determination control. Specifically, after dragging the target texture from the current location to the target location, the determination control is displayed, and then a trigger operation is received for the determination control, which is used as the determination operation for the target location. Alternatively, after dragging the target texture from the current location to the target location, the display duration of the target texture is displayed. This display duration indicates the duration for which the target texture will be displayed at the target location. When the display duration reaches the target display duration, the target texture is applied to the target location on the virtual backpack. Here, the target display duration can also be preset, such as 5 seconds, etc. This embodiment does not limit this.
[0193] In some embodiments, after displaying the target texture on the virtual backpack, the target texture can be edited. Specifically, in response to a selection operation of the target texture among multiple textures, after displaying the target texture on the virtual backpack, at least one operation control can be displayed in the associated area of the target texture. The at least one operation control includes at least one of a flip control, a delete control, and a confirm control. In response to a trigger operation of the target operation control among the at least one operation control, the operation indicated by the target operation control is performed on the target texture.
[0194] It should be noted that the associated region refers to one of the upper, lower, left, and right regions of the target texture; the flip control is used to mirror the texture, the delete control is used to delete the corresponding texture from the virtual backpack, and the confirm control is used to decorate the corresponding texture onto the virtual backpack; thus, in response to a trigger operation of at least one target operation control, the process of performing the operation indicated by the target operation control on the target texture can be, in response to a trigger operation of the flip control, mirroring the target texture (including horizontal or vertical flipping), or deleting the target texture from the virtual backpack in response to a trigger operation of the delete control, or decorating the target texture onto the virtual backpack in response to a trigger operation of the confirm control.
[0195] For example, see Figure 21 , Figure 21 This is a schematic diagram of the operation controls provided in the embodiments of this application, based on Figure 21The dashed box 2101 indicates three operation controls, which are, from left to right, a flip control, a delete control, and a confirm control.
[0196] In some embodiments, after displaying the decoration control, at least one decoration mode may be displayed in response to a triggering operation on the decoration control; wherein the decoration mode includes at least one of a closed mode, an open mode, and a driving mode, and different decoration modes are used to indicate the decoration of the virtual backpack in different states of the virtual backpack; in response to a target decoration mode being selected in at least one decoration mode, the virtual backpack in the target state indicated by the target decoration mode is displayed; thus, the process of displaying a target texture on the virtual backpack in response to a selection operation on a target texture in multiple textures may be that the target texture is displayed on the virtual backpack in the target state in response to a selection operation on a target texture in multiple textures.
[0197] It should be noted that "closed mode" refers to decorating a virtual backpack that is closed, "open mode" refers to decorating a virtual backpack that is open, and "driving mode" refers to decorating a virtual backpack that is in vehicle mode, i.e., decorating a virtual vehicle. When the virtual backpack is open, virtual resources can be directly displayed in the virtual backpack, which can be as described above, displaying the resource identifier of the virtual resource. This application embodiment does not limit this aspect.
[0198] For example, see Figure 22 , Figure 22 This is a schematic diagram of at least one decoration pattern provided in the embodiments of this application, based on Figure 22 The dashed box 2201 indicates three decoration modes; among them, the off mode is selected.
[0199] It should be noted that, for a virtual backpack in the target state indicated by the target decoration mode, when the target decoration mode is the closed mode, the virtual backpack in the closed state is displayed in response to the closed mode being selected; when the target decoration mode is the open mode, the virtual backpack in the open state is displayed in response to the open mode being selected; when the target decoration mode is the driving mode, the virtual backpack in the vehicle state is displayed in response to the driving mode being selected.
[0200] In practical implementation, textures can also be applied with a single click, that is, applied to virtual backpacks in various decoration modes. Specifically, there are multiple decoration modes. After displaying the decoration control, a one-click application control can be displayed in response to a trigger operation on the decoration control. The one-click application control is used to apply the target texture to the virtual backpack in the state indicated by each decoration mode. Thus, in response to a selection operation of the target texture among multiple textures, after displaying the target texture on the virtual backpack in the target state, the target texture can also be applied to the virtual backpack in other states in response to a trigger operation on the one-click application control. Here, "other states" refers to the states indicated by other decoration modes, and "other decoration modes" refers to decoration modes other than the target decoration mode among the multiple decoration modes.
[0201] It's important to note that, in response to the trigger operation of the one-click application control, besides applying the target texture to the virtual backpack in other states, if the target texture has been edited (e.g., flipped as mentioned earlier), the target texture applied to the virtual backpack in other states will also be edited. For example, if the target state is closed, in response to the selection operation of the target texture among multiple textures, after displaying the target texture on the virtual backpack in the closed state, in response to the trigger operation of the one-click application control, the target texture will be applied to the virtual backpack in the vehicle state and the open state. This simplifies the user's decoration process, improves the efficiency of decorating the virtual backpack, and thus improves human-computer interaction efficiency and user experience.
[0202] For example, see Figure 23 , Figure 23 This is a schematic diagram of the one-click application control provided in the embodiments of this application, based on Figure 23 The dashed box 2301 indicates the one-click application control, which, in response to a trigger operation on the one-click application control, applies the target texture to the virtual backpack in other states.
[0203] In some embodiments, decorating the virtual backpack can involve not only applying an image to the virtual backpack but also changing its color. Specifically, in response to a trigger operation on the decoration control, multiple backpack color schemes for changing the virtual backpack's color are displayed; in response to a selection operation on a target backpack color scheme, the color on the virtual backpack is changed from the current color to the color indicated by the target backpack color scheme. Thus, by changing the color of the virtual backpack, the display style of the virtual backpack is enriched, improving human-computer interaction efficiency and user experience.
[0204] In actual implementation, the virtual scene also includes other virtual objects. In response to the resource viewing command for the virtual backpack, before controlling the virtual backpack to move to the target position, other virtual objects can also be displayed in the virtual scene. Therefore, in response to the resource viewing command for the virtual backpack, after controlling the virtual backpack to move to the target position, the process of other virtual objects passing through the virtual backpack can also be displayed.
[0205] It should be noted that when other virtual objects pass through the virtual backpack, they can also see the virtual backpack in various states, including open, closed, and vehicle states.
[0206] By applying the above embodiments of this application, after a virtual object with a virtual backpack is displayed in a virtual scene, in response to a resource viewing command for the virtual backpack, the virtual backpack is controlled to move to a target location, thereby opening the virtual backpack at the target location and displaying the virtual resources within it. Thus, for a virtual backpack that can be displayed in a virtual scene, the virtual object can carry the virtual backpack with it, thereby directly triggering a resource viewing command for the virtual backpack, opening the virtual backpack at the target location, and then displaying the virtual resources within it. Compared to a solution where the virtual object must go to a fixed storage area to open the virtual backpack and view its virtual resources, this reduces the restrictions on the virtual object viewing the virtual backpack, improves the efficiency of the virtual object performing interactive operations based on the virtual backpack, and also improves human-computer interaction efficiency and the utilization rate of electronic device hardware resources.
[0207] The following will describe an exemplary application of the embodiments of this application in a real-world application scenario.
[0208] In games using this technology, virtual backpacks are mostly divided into two types: the first type is a virtual backpack that players can only see in their own view interface, and the second type can be directly displayed in a virtual scene that includes multiple players. However, the second type of virtual backpack has the following three drawbacks: First, viewing is restricted: players must go to a fixed storage area to view their collection, and cannot show it to other players at any time in the game; second, operation is cumbersome: adjusting and placing items in the storage cabinet requires time and effort, and the operation process may be quite complicated; third, interactivity is insufficient: as a fixed and static storage device, its appearance is monotonous and lacks diversity or expandability.
[0209] Based on this, embodiments of this application provide a method, apparatus, electronic device, computer-readable storage medium, and computer program product for processing a virtual backpack. After displaying a virtual object with a virtual backpack in a virtual scene, in response to a resource viewing command for the virtual backpack, the virtual backpack is controlled to move to a target location, thereby opening the virtual backpack at the target location and displaying the virtual resources in the virtual backpack. This achieves the following technical effects: First, portability and sharing: Users can carry the virtual backpack with them and show it to others anywhere and at any time, increasing opportunities for interaction within the community and enhancing the possibility of showcasing individual character traits. Second, versatility: The virtual backpack in this embodiment can appear in various forms to adapt to different functional scenarios, greatly enriching the diversity and playability of the presentation. Third, enhanced gaming fun: The virtual backpack can be transformed into a vehicle, allowing users to even drive it to explore the environment in the game, enhancing the product's playability and practical value. Fourth, convenient management: By combining a 2D UI interface and 3D model technology, the system automatically stacks items, allowing users to manage items using a suitcase or backpack without cumbersome steps.
[0210] Next, the technical solution of this application will be explained from the product side.
[0211] In practical implementation, the technical solution of this application is suitable for use in open-world games, allowing players to view and manage their inventory, and generating a variety of fun gameplay options based on the inventory. Specifically, upon the virtual object's first entry into the game, a default suitcase (virtual inventory) is acquired. During gameplay, except for certain level matches, the inventory can be opened via the inventory button in the menu. Specifically, in response to the triggering of the inventory button (resource viewing control), a suitcase appearance animation (appearing from the sky or the character taking it out of their pocket) is played, simultaneously displaying the automatic opening of the inventory while the camera zooms in, showing the opened inventory and the items inside. Figure 24 As shown, Figure 24 This is a schematic diagram of an open suitcase provided in an embodiment of this application.
[0212] It's worth noting that a character (virtual object) will be displayed next to the suitcase. The page background is the current open-world scene, and it can also display other players passing by or real-time events occurring in other open-world locations. Then, in response to the close button, the suitcase will close, playing a disappearing animation, while simultaneously restoring the game's default camera view.
[0213] It should be noted that items or props acquired by virtual objects in the game will be automatically displayed in a list format, that is, automatically arranged in the backpack list according to the item type and acquisition time, without the need for additional placement. The list can be browsed by sorting and filtering. In particular, these items will be displayed in the contents area of the opened suitcase according to the size and position of the 3D suitcase, thus creating the effect of items being packed in a suitcase.
[0214] In actual implementation, different function tabs for the suitcase will also be displayed. When a click operation is received on a different function tab, such as switching from the character tab to the skill tab, the suitcase's status and corresponding camera angles will change accordingly, enriching the display of diverse content and enhancing the player's gaming experience. Figure 25 As shown, Figure 25 This is a schematic diagram of the display mode corresponding to the skill tab provided in the embodiments of this application.
[0215] Also see Figure 26 , Figure 26 This is a schematic diagram of a suitcase in a drivable state provided in an embodiment of this application, based on... Figure 26 When a click is received on the luggage list page for the driving function button (driving control), the luggage will automatically close and transform into a drivable state. At this time, the character will automatically jump onto the luggage car, and the driving UI will appear on the screen. In this way, the virtual object can drive the luggage to move quickly in the game scene.
[0216] It should be noted that the driving functions are basically the same as those of common vehicles in the game, supporting basic operations such as steering, acceleration, deceleration, and horn use. Then, in response to the trigger operation of the disembarkation control (get off the vehicle control), the virtual object is controlled to disembark, and the suitcase can then be stowed. If no action is taken from the virtual object to stow the suitcase, it will automatically stow after a certain period of time or after the virtual object moves a certain distance away from the suitcase. When the suitcase is in vehicle mode, in response to the click operation of the backpack button (backpack control), the suitcase vehicle will also play a transformation animation, transforming into an open suitcase, while simultaneously switching to the suitcase item viewing state in conjunction with the camera movement.
[0217] In practice, after the suitcase is opened, clicking on the decorative buttons allows for editing of the suitcase's color and exterior decals. For details, see [link to documentation]. Figure 27 , Figure 27 This is a schematic diagram of decorating a suitcase according to an embodiment of this application, based on... Figure 27The system allows users to edit the surface decoration style of the suitcase in different states, such as switching between suitcase mode and vehicle mode. Users can also choose to synchronize the decoration status of different modes with one click. In different state modes, clicking on different color patterns will switch the suitcase color scheme, and clicking on different decal patterns (textures) will apply decals to the suitcase. Users can also switch the angle, size, and position of the decals.
[0218] It should be noted that when the backpack function is opened to view the suitcase, other players can see a suitcase appear next to the player. The appearance of the suitcase is a custom decoration of the player. When the virtual object drives the suitcase in the game scene, other players can also see the color and decal status of the suitcase vehicle, thus achieving the purpose of social interaction and personalized display.
[0219] Next, the technical solution of this application will be described from a technical perspective. First, multiple highly detailed suitcase models are designed using 3D modeling tools (such as Blender) to ensure their appearance matches the player character or game environment. Then, these 3D models are imported into a game development platform (Unreal Engine). Next, in the game scene, an interactive suitcase object is generated via scripts / code. This object has basic collision detection capabilities to ensure its presence in physical space. Then, an animation controller manages the transitions between different deformation states, and material and texture processing modules are used to achieve personalized customization.
[0220] It's worth noting that multiple predefined forms need to be created for the suitcase, such as unfolded and compressed modes. Then, a series of state machines are written using an animation controller to achieve a smooth and coherent transition from one form to another. For example, when the backpack is opened, the suitcase automatically unfolds and reveals its internal structure; when closed, it returns to its original state. Next, a user interface (UI) is provided, allowing the suitcase's appearance to be changed based on the user interface, with the display effect updated in real time using material and texture processing modules.
[0221] In actual implementation, see Figure 28 , Figure 28 This is a flowchart illustrating a virtual backpack processing method provided in an embodiment of this application, based on... Figure 28The virtual backpack processing method provided in this application embodiment is implemented through steps 2801 to 2810. Specifically, after loading the backpack model into the scene, when a click operation is received on the backpack button in the menu, an animation including the appearance of the suitcase (several preset methods can be selected, such as falling from the sky or the character taking it out) and the opening of the suitcase (the suitcase lid automatically opens, and the camera simultaneously advances to the interior view of the suitcase) is played, and the opened suitcase and its contents are displayed. The current background is the current open world scene, and other players and events can also be displayed in real time. Then, when a click operation is received on the close button, an animation of the suitcase disappearing is played, and the camera returns to the default game view.
[0222] In practice, when a virtual object acquires new items or props in the game, the system stores these items in a list in the inventory database and sorts them according to predefined rules (such as type and acquisition time), eliminating the need for manual placement by the user. Then, when the suitcase is opened, these props are dynamically arranged and displayed in three-dimensional space, with each prop having a specific position, making them appear as if they are actually packed inside a virtual 3D suitcase.
[0223] In actual implementation, different function tabs (such as character, skills, etc.) are provided on the UI. When a click operation is received on a certain tab, the suitcase transforms into the corresponding page state, and the camera moves to adjust to the best viewing position adapted to the new state.
[0224] In practice, when a click is received on the drive button, the system automatically saves the current backpack contents and switches to a closed state. Then, a transformation animation plays, converting the static backpack into a drivable vehicle. Next, the UI is updated, including basic control elements such as steering, acceleration, deceleration, and horn. The player then jumps into the vehicle, at which point time / distance logic begins to detect whether to transform the vehicle back into a luggage compartment and stow the luggage. When a click is received on the disembarkation button, the system returns to its original state, such as transforming the vehicle back into a luggage compartment and stowing the luggage.
[0225] In actual implementation, the system also provides an interface for changing color skin stickers, allowing for detailed optimization through drag / rotate tools on the designated editing page; specifically, it can conveniently set various shapes of the same style device at once, separate and refine the operation methods of different shapes of suitcases, and arrange multi-level undo and redo functions to maintain historical records, ensuring a flexible error correction order.
[0226] Thus, the technical solution of this application can produce the following beneficial effects:
[0227] 1. Enhance game immersion: First, the traditional UI backpack function is transformed into a 3D suitcase model, which players can operate and interact with in the virtual world, increasing the player's sense of realism and presence in the environment; Second, the suitcase can change shape according to different scenarios or needs, making players feel that they are operating a real object, rather than simply clicking on interface buttons, thereby enhancing the player's immersion.
[0228] 2. Enhance user experience and gameplay fun: First, in addition to storing items, the suitcase also supports various interactive methods such as personalization and driving, making the gameplay more diverse and rich; Second, the animation controller achieves smooth transitions, providing intuitive and coherent visual feedback, making the player's operation feel more natural and smooth.
[0229] 3. Enhanced Personalization and Social Attributes: Players can customize their backpack equipment according to their personal preferences, including colors, patterns, decorations, etc. They can then take these items out and display them at any time, enhancing their unique identity. This not only improves human-computer interaction efficiency but also enhances the user experience.
[0230] By applying the above embodiments of this application, after a virtual object with a virtual backpack is displayed in a virtual scene, in response to a resource viewing command for the virtual backpack, the virtual backpack is controlled to move to a target location, thereby opening the virtual backpack at the target location and displaying the virtual resources within it. Thus, for a virtual backpack that can be displayed in a virtual scene, the virtual object can carry the virtual backpack with it, thereby directly triggering a resource viewing command for the virtual backpack, opening the virtual backpack at the target location, and then displaying the virtual resources within it. Compared to a solution where the virtual object must go to a fixed storage area to open the virtual backpack and view its virtual resources, this reduces the restrictions on the virtual object viewing the virtual backpack, improves the efficiency of the virtual object performing interactive operations based on the virtual backpack, and also improves human-computer interaction efficiency and the utilization rate of electronic device hardware resources.
[0231] The following description continues to illustrate the exemplary structure of the virtual backpack processing device 455 provided in the embodiments of this application as a software module. In some embodiments, such as Figure 2 As shown, the software modules stored in the processing device 455 of the virtual backpack in the memory 450 may include:
[0232] The first display module 4551 is used to display virtual objects in a virtual scene. The virtual objects have virtual backpacks, which are used to carry the virtual resources of the virtual objects.
[0233] The control module 4552 is used to control the virtual backpack to move to the target location in response to a resource viewing command for the virtual backpack;
[0234] The second display module 4553 is used to open the virtual backpack at the target location and display the virtual resources in the virtual backpack.
[0235] In some embodiments, the device further includes a third display module, which is configured to display a resource viewing control for viewing the virtual resources of the virtual object carried in the virtual backpack; and to receive a resource viewing instruction for the virtual backpack in response to a trigger operation on the resource viewing control.
[0236] In some embodiments, the control module 4552 is further configured to, in response to a resource viewing instruction for the virtual backpack, display the process of the virtual backpack moving from an initial position to the target position; wherein the initial position is a first target distance from the target position, and during the movement of the virtual backpack, the size of the virtual backpack is inversely proportional to the distance of the virtual backpack from the target position.
[0237] In some embodiments, the initial position is in the air, the target position is on the same horizontal plane as the initial position, and the first target distance is the horizontal distance between the initial position and the target position; the control module 4552 is also used to display the process of the virtual backpack floating horizontally from the initial position in the air to the target position.
[0238] In some embodiments, the initial position is in the air, the target position is in the same vertical plane as the initial position, and the first target distance is the vertical distance between the initial position and the target position; the control module 4552 is also used to display the process of the virtual backpack descending vertically from the initial position in the air to the target position.
[0239] In some embodiments, the control module 4552 is further configured to, in response to a resource viewing instruction for the virtual backpack, control the virtual object to take the virtual backpack out of the virtual pocket and place the virtual backpack at the target location.
[0240] In some embodiments, the device further includes a shut-down module, which is configured to shut down the virtual backpack in response to a shut-down command for the virtual backpack and display the process of the virtual backpack disappearing.
[0241] In some embodiments, the number of virtual resources is multiple; the second display module 4553 is further configured to display multiple virtual resources in the virtual backpack; the device further includes a fourth display module, which is configured to display at least one of a sorting control and a filtering control at an associated position in the virtual backpack; wherein the sorting control is configured to arrange multiple virtual resources in a target order; and the filtering control is configured to filter out a target virtual resource from the multiple virtual resources.
[0242] In some embodiments, the number of virtual resources is multiple, and the multiple virtual resources exist in multiple categories; the device further includes a fifth display module, which is used to display multiple function tabs at the associated position of the virtual backpack, the function tabs correspond to the categories, and the target function tab is selected; the second display module 4553 is also used to display the virtual resources of the category corresponding to the target function tab in the virtual backpack.
[0243] In some embodiments, the selected function tab is a first function tab, and the virtual resources of the virtual backpack include at least two display modes, with a one-to-one correspondence between the display modes and the categories; the second display module 4553 is further configured to display the virtual resources of the category corresponding to the first function tab in the selected state using the first display mode; the device further includes a sixth display module, which is configured to, in response to a switching instruction for the target function tab, switch the selected function tab from the first function tab to the second function tab, and display the virtual resources of the category corresponding to the second function tab in the selected state using the second display mode.
[0244] In some embodiments, the second display module 4553 is further configured to, based on the first display mode, display virtual resources of the category corresponding to the first function tab in the selected state in the virtual backpack in the open state; the sixth display module is further configured to, based on the second display mode, change the virtual resources displayed in the virtual backpack in the open state into resource identifiers, and display the virtual resources of the category corresponding to the selected second function tab in a film projection manner at the associated position of the virtual backpack including the resource identifiers.
[0245] In some embodiments, the virtual resource corresponding to the category of the second function tab is an object skill, and there are multiple object skills, among which the target object skill is selected; the device further includes a seventh display module, which is used to display the description information of the target object skill; wherein, the description information is used to introduce the target object skill, and the description information includes at least one of the target object skill's name, cooldown time, and usage effect.
[0246] In some embodiments, the device further includes an eighth display module, the eighth display module being configured to display practice controls for the target object skill; display the skill practice page in response to a trigger operation on the practice controls; and display the process of the virtual object practicing the target object skill in response to at least one skill release operation on the skill practice page.
[0247] In some embodiments, the device further includes a ninth display module, which is configured to display driving controls, the driving controls being configured to transform the virtual backpack into a virtual vehicle; in response to a trigger operation on the driving controls, transform the virtual backpack into a virtual vehicle and control the virtual object to ride in the virtual vehicle; and in response to a driving operation on the virtual vehicle, control the virtual object to drive the virtual vehicle.
[0248] In some embodiments, the ninth display module is further configured to display a driving control and an interactive control; wherein the driving control is configured to control the direction of travel of the virtual vehicle; the interactive control is configured to interact with the virtual vehicle during its travel; and upon receiving a trigger operation for at least one of the driving control and the interactive control, the trigger operation is configured to be used as a driving operation for the virtual vehicle.
[0249] In some embodiments, the ninth display module is further configured to display a disembarkation control, the disembarkation control being used to end the state of the virtual object riding the virtual vehicle; and in response to a trigger operation on the disembarkation control, to control the virtual object to disembark from the virtual vehicle.
[0250] In some embodiments, the ninth display module is further configured to, in response to a movement operation on the virtual object, control the virtual object to move in the virtual scene; when the distance between the virtual object and the virtual vehicle is greater than the second target distance, transform the virtual vehicle back into the virtual backpack and display the process of the virtual backpack disappearing.
[0251] In some embodiments, the ninth display module is further configured to display the duration of the virtual object's ride in the virtual vehicle, the duration of the ride in the virtual vehicle being used to indicate the duration of the virtual object's ride in the virtual vehicle; when the duration of the ride in the virtual vehicle exceeds the target duration of the ride in the virtual vehicle, the virtual vehicle is transformed back into the virtual backpack, and the process of the virtual backpack disappearing is displayed.
[0252] In some embodiments, the ninth display module is further configured to display a collapse control, the collapse control being configured to transform the virtual vehicle back into the virtual backpack and collapse the virtual backpack; in response to a trigger operation on the collapse control, the virtual vehicle is transformed back into the virtual backpack, and the process of the virtual backpack disappearing is displayed.
[0253] In some embodiments, when a trigger operation is received for the driving control, the virtual backpack is in an initial state. The ninth display module is further configured to display a backpack control, which is used to transform the virtual vehicle back into the virtual backpack. In response to a trigger operation for the backpack control, the virtual vehicle is transformed into the virtual backpack, and the virtual backpack is controlled to be in the initial state.
[0254] In some embodiments, the ninth display module is further configured to display a view reset control, which is used to adjust the view of the virtual object riding in the virtual vehicle; when the view of the virtual object riding in the virtual vehicle is inconsistent with the driving direction of the virtual vehicle, in response to the triggering operation of the view reset control, the view of the virtual object is controlled to turn towards the driving direction of the virtual vehicle.
[0255] In some embodiments, the device further includes a tenth display module, the tenth display module being configured to display a decoration control for decorating the virtual backpack; in response to a triggering operation on the decoration control, displaying a plurality of textures for decorating the backpack; and in response to a selection operation on a target texture among the plurality of textures, displaying the target texture on the virtual backpack.
[0256] In some embodiments, the tenth display module is further configured to, in response to a drag operation on the target texture on the virtual backpack, drag the target texture from its current position to a target position; and, in response to a determination operation on the target position, decorate the target texture on the target position on the virtual backpack.
[0257] In some embodiments, the tenth display module is further configured to display at least one operation control in the associated area of the target texture, the at least one operation control including at least one of a flip control, a delete control, and a confirm control; and to perform the operation indicated by the target operation control on the target texture in response to a trigger operation of the target operation control among the at least one operation controls.
[0258] In some embodiments, the tenth display module is further configured to display at least one decoration mode in response to a trigger operation on the decoration control; wherein the decoration mode includes at least one of a closed mode, an open mode, and a driving mode, and different decoration modes are used to indicate decoration of the virtual backpack in different states of the virtual backpack; in response to a target decoration mode being selected in the at least one decoration mode, the virtual backpack in the target state indicated by the target decoration mode is displayed; in response to a selection operation on a target texture in the plurality of textures, the target texture is displayed on the virtual backpack in the target state.
[0259] In some embodiments, the number of the at least one decoration mode is multiple, and the tenth display module is further configured to display a one-click application control in response to a trigger operation on the decoration control, the one-click application control being configured to apply the target texture to the virtual backpack in the state indicated by each of the decoration modes; and to apply the target texture to the virtual backpack in other states in response to a trigger operation on the one-click application control; wherein the other states are states indicated by other decoration modes, and the other decoration modes are decoration modes other than the target decoration mode among multiple decoration modes.
[0260] This application provides a computer program product including computer-executable instructions or a computer program stored in a computer-readable storage medium. A processor of an electronic device reads the computer-executable instructions or computer program from the computer-readable storage medium and executes the computer-executable instructions or computer program, causing the electronic device to perform the virtual backpack processing method described above in this application.
[0261] This application provides a computer-readable storage medium storing computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the processor will execute the virtual backpack processing method provided in this application. For example, ... Figure 3 The method for processing the virtual backpack is shown.
[0262] In some embodiments, the computer-readable storage medium may be a read-only memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory, magnetic surface memory, optical disk, or CD-ROM, etc.; or it may be a device that includes one or any combination of the above-mentioned memories.
[0263] In some embodiments, computer-executable instructions may take the form of programs, software, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
[0264] As an example, computer-executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple co-located files (e.g., files that store one or more modules, subroutines, or code sections).
[0265] As an example, computer-executable instructions can be deployed to execute on a single electronic device, or on multiple electronic devices located in one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.
[0266] In summary, the embodiments of this application have the following beneficial effects:
[0267] (1) For virtual backpacks that can be displayed in a virtual scene, virtual objects can carry the virtual backpack with them, thereby directly triggering resource viewing instructions for the virtual backpack, opening the virtual backpack at the target location, and then displaying the virtual resources in the virtual backpack; in this way, compared with the solution that virtual objects must go to a fixed storage area to open the virtual backpack to view the virtual resources in the virtual backpack, the restrictions on virtual objects when viewing the virtual backpack are reduced, the efficiency of virtual objects performing interactive operations based on the virtual backpack is improved, and the efficiency of human-computer interaction and the utilization rate of hardware resources of electronic devices are also improved.
[0268] (2) When the virtual object moves away from the virtual vehicle or has not ridden the vehicle for a long time, the virtual vehicle will automatically turn back into a virtual backpack without the user having to operate it actively, which simplifies the user's interaction operation based on the virtual backpack.
[0269] (3) It simplifies the user's decoration process and improves the efficiency of users decorating virtual backpacks, thereby improving human-computer interaction efficiency and user experience.
[0270] (4) By changing the color of the virtual backpack, the display style of the virtual backpack is enriched, and the efficiency of human-computer interaction and user experience are improved.
[0271] It should be noted that in this application embodiment, data such as user operation data is involved. When this application embodiment is applied to a specific product or technology, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0272] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.
Claims
1. A method for processing a virtual backpack, characterized in that, The method includes: Virtual objects are displayed in a virtual scene, each virtual object having a virtual backpack, which is used to hold the virtual resources of the virtual object. In response to a resource viewing command for the virtual backpack, control the virtual backpack to move to the target location; Open the virtual backpack at the target location and display the virtual resources in the virtual backpack.
2. The method as described in claim 1, characterized in that, The step of controlling the virtual backpack to move to the target location in response to a resource viewing command for the virtual backpack includes: In response to a resource viewing command for the virtual backpack, the process of the virtual backpack moving from its initial position to the target position is displayed; Wherein, the initial position is a first target distance from the target position, and during the movement of the virtual backpack, the size of the virtual backpack is inversely proportional to the distance between the virtual backpack and the target position.
3. The method as described in claim 2, characterized in that, The initial position is in the air, the target position is on the same horizontal plane as the initial position, and the first target distance is the horizontal distance between the initial position and the target position; The process of displaying the virtual backpack moving from its initial position to the target position includes: This shows the process of the virtual backpack floating horizontally from its initial position in the air to the target position.
4. The method as described in claim 2, characterized in that, The initial position is in the air, the target position is in the same vertical plane as the initial position, and the first target distance is the vertical distance between the initial position and the target position; The process of displaying the virtual backpack moving from its initial position to the target position includes: This shows the process of the virtual backpack descending vertically from its initial position in the air to the target position.
5. The method as described in claim 1, characterized in that, The step of controlling the virtual backpack to move to the target location in response to a resource viewing command for the virtual backpack includes: In response to a resource viewing command for the virtual backpack, the virtual object is controlled to take the virtual backpack out of a virtual pocket and place the virtual backpack at the target location.
6. The method as described in claim 1, characterized in that, The number of virtual resources is multiple; displaying the virtual resources in the virtual backpack includes: The virtual backpack displays multiple virtual resources; The method further includes: At the associated location of the virtual backpack, at least one of a sorting control and a filtering control is displayed; The sorting control is used to arrange multiple virtual resources in a target order; the filtering control is used to filter out the target virtual resource from the multiple virtual resources.
7. The method as described in claim 1, characterized in that, The number of virtual resources is multiple, and these virtual resources exist in multiple categories; after opening the virtual backpack at the target location, the method further includes: Multiple function tabs are displayed at the associated location of the virtual backpack. These function tabs correspond to the categories, and the target function tab is selected. The display of virtual resources in the virtual backpack includes: Displays the virtual resources corresponding to the category of the target function tab in the virtual backpack.
8. The method as described in claim 7, characterized in that, The selected function tab is the first function tab, and the virtual resources in the virtual backpack include at least two display modes, with a one-to-one correspondence between the display modes and the categories. The virtual resources displayed in the virtual backpack that correspond to the category of the target function tab include: The first display mode is adopted to display the virtual resources of the category corresponding to the first function tab that is selected. After displaying the virtual resources of the category corresponding to the target function tab in the virtual backpack, the method further includes: In response to the switching command for the target function tab, the selected function tab is switched from the first function tab to the second function tab, and the virtual resources corresponding to the category of the selected second function tab are displayed in the second display mode.
9. The method as described in claim 8, characterized in that, The first display mode, which displays virtual resources of the category corresponding to the selected first function tab, includes: Based on the first display mode, in the virtual backpack that is in the open state, virtual resources of the category corresponding to the first function tab that is in the selected state are displayed; The second display mode, which displays virtual resources of the category corresponding to the selected second function tab, includes: Based on the second display mode, the virtual resources displayed in the virtual backpack that is in the open state are transformed into resource identifiers, and the virtual resources of the category corresponding to the selected second function tab are displayed in the associated position of the virtual backpack that includes the resource identifiers, using a film projection method.
10. The method as described in claim 8, characterized in that, The virtual resource corresponding to the second function tab is an object skill. There are multiple object skills, and the target object skill is selected among the multiple object skills. After switching the selected function tab from the first function tab to the second function tab, the method further includes: Display descriptive information about the target object's skills; The explanatory information is used to introduce the target object's skill, and the explanatory information includes at least one of the target object's skill name, cooldown time, and usage effect.
11. The method as described in claim 10, characterized in that, After switching the selected function tab from the first function tab to the second function tab, the method further includes: Displays a practice control for the skill of the target object; In response to a trigger operation on the practice control, the skill practice page is displayed; On the skill practice page, in response to at least one skill release operation for the virtual object, the process of the virtual object practicing the target object's skill is displayed.
12. The method as described in claim 1, characterized in that, The method further includes: Display driving controls, which are used to transform the virtual backpack into a virtual vehicle; In response to a trigger operation on the driving control, the virtual backpack is transformed into a virtual vehicle, and the virtual object is controlled to ride in the virtual vehicle; In response to a driving operation on the virtual vehicle, the virtual object is controlled to drive the virtual vehicle.
13. The method as described in claim 12, characterized in that, After controlling the virtual object to ride in the virtual vehicle, the method further includes: Display dismount control, the dismount control being used to end the state of the virtual object riding the virtual vehicle; In response to a trigger operation on the disembarkation control, the virtual object is controlled to disembark from the virtual vehicle.
14. The method as described in claim 13, characterized in that, After controlling the virtual object to disembark from the virtual vehicle in response to a trigger operation on the disembarkation control, the method further includes: In response to a movement operation on the virtual object, control the virtual object to move within the virtual scene; When the distance between the virtual object and the virtual vehicle is greater than the distance to the second target, the virtual vehicle is transformed back into the virtual backpack, and the process of the virtual backpack disappearing is displayed.
15. The method as described in claim 13, characterized in that, After controlling the virtual object to disembark from the virtual vehicle in response to a trigger operation on the disembarkation control, the method further includes: The display shows the duration of the virtual object's ride, which indicates the duration of the virtual object's ride in the virtual vehicle. When the duration of the next step exceeds the target duration of the next step, the virtual vehicle is transformed back into the virtual backpack, and the process of the virtual backpack disappearing is displayed.
16. The method as described in claim 12, characterized in that, Upon receiving a trigger operation for the driving control, the virtual backpack is in an initial state. After transforming the virtual backpack into a virtual vehicle in response to the trigger operation for the driving control, the method further includes: Display backpack control, which is used to transform the virtual vehicle back into the virtual backpack; In response to a trigger operation on the backpack control, the virtual vehicle is transformed into the virtual backpack, and the virtual backpack is controlled to be in the initial state.
17. The method as described in claim 12, characterized in that, After controlling the virtual object to ride in the virtual vehicle, the method further includes: Display view reset control, the view reset control is used to adjust the view of the virtual object riding the virtual vehicle; When the viewpoint of the virtual object riding in the virtual vehicle is inconsistent with the driving direction of the virtual vehicle, in response to the triggering operation of the viewpoint reset control, the viewpoint of the virtual object is controlled to turn towards the driving direction of the virtual vehicle.
18. The method as described in claim 1, characterized in that, After activating the virtual backpack at the target location, the method further includes: Display decoration controls, which are used to decorate the virtual backpack; In response to a triggering operation on the decoration control, multiple textures for decorating the backpack are displayed; In response to a selection operation of a target texture among the plurality of textures, the target texture is displayed on the virtual backpack.
19. The method as described in claim 18, characterized in that, In response to a selection operation of a target texture among the plurality of textures, after displaying the target texture on the virtual backpack, the method further includes: In response to a drag operation on the target texture on the virtual backpack, the target texture is dragged from its current position to the target position; In response to a determination operation for a target location, the target texture is applied to the target location on the virtual backpack.
20. The method as described in claim 18, characterized in that, After displaying the decorative control, the method further includes: In response to a trigger operation on the decoration control, at least one decoration mode is displayed; The decoration mode includes at least one of the following: off mode, on mode, and driving mode. Different decoration modes are used to indicate the decoration of the virtual backpack in different states. In response to a target decoration mode being selected in at least one of the decoration modes, a virtual backpack in the target state indicated by the target decoration mode is displayed; The step of displaying the target texture on the virtual backpack in response to a selection operation of a target texture among the plurality of textures includes: In response to a selection operation of a target texture among the plurality of textures, the target texture is displayed on the virtual backpack when the target state is in effect.
21. The method as described in claim 20, characterized in that, The number of the at least one decoration pattern is multiple, and after displaying the decoration control, the method further includes: In response to a trigger operation on the decoration control, a one-click application control is displayed, which is used to apply the target texture to the virtual backpack in the state indicated by each decoration mode. In response to a selection operation of a target texture among the plurality of textures, after displaying the target texture on the virtual backpack in the target state, the method further includes: In response to a trigger operation on the one-click application control, the target texture is applied to the virtual backpack in other states; The other states refer to the states indicated by other decoration patterns, which are decoration patterns other than the target decoration pattern among a plurality of decoration patterns.
22. A processing device for a virtual backpack, characterized in that, The device includes: The first display module is used to display virtual objects in a virtual scene. The virtual objects have virtual backpacks, which are used to hold the virtual resources of the virtual objects. A control module is used to control the virtual backpack to move to the target location in response to a resource viewing command for the virtual backpack; The second display module is used to open the virtual backpack at the target location and display the virtual resources in the virtual backpack.
23. An electronic device, characterized in that, include: Memory is used to store executable instructions or computer programs. A processor, when executing computer-executable instructions or computer programs stored in the memory, implements the virtual backpack processing method according to any one of claims 1 to 21.
24. A computer-readable storage medium, characterized in that, The device stores computer-executable instructions or computer programs for inducing a processor to execute, thereby implementing the virtual backpack processing method according to any one of claims 1 to 21.
25. A computer program product comprising computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, the virtual backpack processing method according to any one of claims 1 to 21 is implemented.