Element display method and device, equipment, medium and program product
By setting changes conditions for virtual character spray elements in virtual scenes and displaying element change animations, the problem of single spray elements in virtual scenes is solved, and the display diversity and utilization of elements is improved.
Patent Information
- Application Number
- CN202311588100.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-23
- Publication Date
- 2025-05-23
AI Technical Summary
In the prior art, the spray paint pattern display in the virtual scene is relatively single, resulting in the poor information conveyed by the spray paint element, which is difficult to attract the attention of users, and the utilization rate of the spray paint pattern is relatively low.
Provides an element display method. The elements sprayed by virtual characters on the surface of virtual objects will change when they meet specific conditions, displaying element changes animations, thereby improving the display diversity and expressiveness of sprayed elements.
Through element changes, the display diversity and expressiveness of sprayed elements in virtual scenes can be improved, allowing them to convey richer information, increase user attention, and improve the utilization rate of sprayed elements.
Smart Images

Figure CN120022588A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to an element display method, device, equipment, medium and program product. Background Art
[0002] With the development of computer technology and the Internet, online games are developing faster and faster. At present, most online games provide virtual scenes, which include a variety of display elements, such as virtual patterns displayed on virtual props.
[0003] In the related art, a spray paint function is provided in the virtual scene. After using the spray paint props, the user can spray a specified style of spray paint pattern at any location in the virtual scene (for example: on the ground in the virtual scene), and the spray paint pattern will be displayed at the spraying location.
[0004] However, the display of the spray paint pattern in the related art is relatively simple, resulting in the information conveyed by the spray paint element being relatively poor and difficult to attract the user's attention, so that the utilization rate of the spray paint pattern in the virtual scene is low. Summary of the invention
[0005] The embodiments of the present application provide an element display method, device, equipment, medium and program product, which can improve the utilization rate of spray elements in a virtual scene. The technical solution is as follows:
[0006] In one aspect, a method for displaying an element is provided, the method comprising:
[0007] Displaying a virtual object in a virtual scene, wherein the surface of the virtual object is coated with a first spraying element, wherein the first spraying element is an element sprayed onto the surface of the virtual object by a virtual character in the virtual scene;
[0008] When the first spraying element meets the element change condition, displaying an element change animation, wherein the element change animation refers to an animation in which the first spraying element painted on the surface of the virtual object changes into a second spraying element, wherein the first spraying element and the second spraying element are different;
[0009] In response to the element change animation being finished playing, the second spray element is displayed.
[0010] In another aspect, an element display device is provided, the device comprising:
[0011] An element display module, used for displaying a virtual object in a virtual scene, wherein the surface of the virtual object is coated with a first spraying element, wherein the first spraying element is an element sprayed onto the surface of the virtual object by a virtual character in the virtual scene;
[0012] An animation display module, used for displaying an element change animation when the first spraying element meets an element change condition, wherein the element change animation refers to an animation in which the first spraying element painted on the surface of the virtual object changes into a second spraying element, wherein the first spraying element and the second spraying element are different;
[0013] The element display module is further used to display the second spray element in response to the element change animation playing being finished.
[0014] On the other hand, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement any of the above-mentioned element display methods.
[0015] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement any of the above-mentioned element display methods.
[0016] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs any of the above-described element display methods.
[0017] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0018] For the spray elements sprayed on the surface of virtual objects by virtual characters in virtual scenes, when the spray elements meet the element change conditions, the spray elements will change. That is, after being sprayed on the surface of the virtual object, the spray elements are not fixed, but will trigger additional changes when the conditions are met, thereby improving the display diversity of the spray elements in the virtual scene. At the same time, the spray elements that can be changed have stronger expressiveness than the fixed spray elements, that is, the element display method provided in the embodiment of the present application enables the spray elements in the virtual scene to convey richer information and be easier to identify, thereby improving the utilization rate of the spray elements. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 is a structural block diagram of a computer system provided by an exemplary embodiment of the present application;
[0021] Figure 2 is a flow chart of an element display method provided by an exemplary embodiment of the present application;
[0022] Figure 3 is a flow chart of an element display method provided by another exemplary embodiment of the present application;
[0023] Figure 4 is a schematic diagram of an operation type selection interface provided by an exemplary embodiment of the present application;
[0024] Figure 5 is a schematic diagram showing a first spraying element provided by an exemplary embodiment of the present application;
[0025] Figure 6 is a schematic diagram showing a second spraying element provided by an exemplary embodiment of the present application;
[0026] Figure 7 is a display schematic diagram of a second spraying element provided by another exemplary embodiment of the present application;
[0027] Figure 8 is a display schematic diagram of a relationship establishment area provided by an exemplary embodiment of the present application;
[0028] Fig. 9 It is a logical schematic diagram of spray elements of a cooperative spray operation type provided by an exemplary embodiment of the present application;
[0029] Fig.10 is a flowchart of an element display method provided by another exemplary embodiment of the present application;
[0030] Fig.11 is a schematic diagram of changes in a spraying element provided by an exemplary embodiment of the present application;
[0031] Fig.12 is a logic diagram of a spray element that triggers a change provided by an exemplary embodiment of the present application;
[0032] Fig.13 is a logic diagram of a spray element showing a trigger change provided by another exemplary embodiment of the present application;
[0033] Fig.14 is a structural block diagram of an element display device provided by an exemplary embodiment of the present application;
[0034] Fig.15 is a structural block diagram of an element display device provided by another exemplary embodiment of the present application;
[0035] Fig.16 It is a structural block diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the present application clearer, the implementation mode of the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0037] In this application, the terms "first", "second", etc. are used to distinguish identical or similar items with substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first" and "second", nor is there any limitation on quantity and execution order.
[0038] In the related art, a spray paint function is provided in the virtual scene. After using the spray paint prop, the user can spray a specified style of spray paint pattern at any position in the virtual scene (for example, on the ground in the virtual scene), and the spray paint pattern will be displayed at the spraying position. However, the display of the spray paint pattern in the related art is relatively simple, resulting in the information conveyed by the spray paint element being relatively poor and difficult to attract the user's attention, so the utilization rate of the spray paint pattern in the virtual scene is low.
[0039] The present application provides an element display method. After being sprayed onto the surface of a virtual object, the sprayed elements are not fixed, but will trigger additional changes when conditions are met, thereby improving the display diversity of the sprayed elements in the virtual scene. At the same time, the sprayed elements that can be changed have stronger expressiveness than the fixed sprayed elements, that is, the element display method provided in the embodiment of the present application enables the sprayed elements in the virtual scene to convey richer information and be easier to identify, thereby improving the utilization rate of the sprayed elements.
[0040] Figure 1 The structure block diagram of a computer system 100 provided by an exemplary embodiment of the present application is shown. The computer system 100 can be a system architecture for implementing the element display method. The computer system 100 includes: a first terminal 110, a server 120 and a second terminal 130.
[0041] The first terminal 110 is installed and runs an application program that supports virtual scenes. Exemplarily, the application program may be any one of a virtual reality (VR) application program, an augmented reality (AR) application program, a three-dimensional map program, a first-person shooting game (FPS), a third-person shooting game (TPS), a multiplayer online tactical competitive game (MOBA), a simulation game (SLG), etc.
[0042] The first terminal 110 is a terminal used by the first user. The first user uses the first terminal 110 to control the first virtual character in the virtual scene, and the control includes but is not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, and building virtual buildings. The first user can use the first terminal 110 to control the first virtual character to interact with non-user characters (Non-Player Character, NPC) in the virtual scene, and can also use the first terminal 110 to control the first virtual character to spray display elements (for example: spray patterns) at any position in the virtual scene.
[0043] The first terminal 110 is connected to the server 120 via a wireless network or a wired network.
[0044] The server 120 is used to provide background services for the applications of the first terminal 110 and the second terminal 130. Optionally, the server 120 undertakes the main computing work, and the first terminal 110 and the second terminal 130 undertake the secondary computing work; or, the server 120 undertakes the secondary computing work, and the first terminal 110 and the second terminal 130 undertake the main computing work; or, the server 120, the first terminal 110 and the second terminal 130 adopt a distributed computing architecture to perform collaborative computing.
[0045] The second terminal 130 is installed and runs an application program that supports virtual scenes. Exemplarily, the application program may be any one of a VR application program, an AR application program, a three-dimensional map program, FPS, TPS, MOBA, SLG, etc.
[0046] The second terminal 130 is a terminal used by the second user. The second user uses the second terminal 130 to control the second virtual character in the virtual scene, and the control is not limited to at least one of adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, and building virtual buildings. The second user can use the second terminal 130 to control the second virtual character to interact with the NPC in the virtual scene, and can also use the second terminal 130 to control the second virtual character to spray display elements (e.g., spray patterns) at any position in the virtual scene.
[0047] The second terminal 130 is connected to the server 120 via a wireless network or a wired network.
[0048] The virtual characters controlled by the first user through the first terminal 110 and the second user through the second terminal 130 are located at different positions in the same virtual scene, that is, the first user and the second user are in the same battle.
[0049] Optionally, the applications installed on the first terminal 110 and the second terminal 130 are the same, or the applications installed on the two terminals are the same type of applications on different control system platforms. The embodiment of the present application does not limit the form of the applications installed on the first terminal 110 and the second terminal 130, including but not limited to App (Application, application), mini-programs, etc. installed in the first terminal 110 and the second terminal 130, and can also be in the form of web pages.
[0050] The first terminal 110 may generally refer to one of a plurality of terminals, and the second terminal 130 may generally refer to one of a plurality of terminals. This embodiment is only illustrated by taking the first terminal 110 and the second terminal 130 as examples. The first terminal 110 and the second terminal 130 may be of the same or different device types, and the device types include: at least one of a smart phone, a tablet computer, a wearable device, a PC (Personal Computer), an e-book reader, a digital player, a laptop computer, and a desktop computer. The following embodiments are illustrated by taking the terminal including a smart phone as an example.
[0051] It is worth noting that server 120 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network) and big data and artificial intelligence platforms.
[0052] Among them, cloud technology refers to a hosting technology that unifies hardware, software, network and other series of resources in a wide area network or local area network to realize data calculation, storage, processing and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application, which can form a resource pool, which is used on demand and flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the high development and application of the Internet industry, each item may have its own identification mark in the future, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately, and all kinds of industry data require strong system backing support, which can only be achieved through cloud computing. Optionally, the server 120 can also be implemented as a node in the blockchain system.
[0053] It should be noted that before collecting relevant data of users and during the process of collecting relevant data of users, this application can display a prompt interface, pop-up window or output voice prompt information, and the prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining relevant data of users after obtaining the confirmation operation issued by the user to the prompt interface or pop-up window, otherwise (that is, when the confirmation operation issued by the user to the prompt interface or pop-up window is not obtained), the relevant steps of obtaining relevant data of users are terminated, that is, the relevant data of users are not obtained. In other words, all user data collected by this application are collected with the consent and authorization of the user, and the collection, use and processing of relevant user data need to comply with relevant laws, regulations and standards.
[0054] Figure 2 A flowchart of an element display method provided by an exemplary embodiment of the present application is shown, and the method is applied to a computer device as an example for explanation. The computer device may be Figure 1 For the first terminal 110 or the second terminal 130 shown, the method includes steps 210 to 230.
[0055] Step 210: display virtual objects in the virtual scene.
[0056] Optionally, the virtual scene is a virtual scene provided by an application installed on a computer device during operation, and the virtual scene may be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, and a three-dimensional virtual scene. In an exemplary embodiment, the virtual scene is a virtual scene provided by a shooting game. When a game is started in the shooting game, the player enters a game scene corresponding to the game, and the game scene is the virtual scene.
[0057] Optionally, virtual objects in the virtual scene include but are not limited to: virtual walls, virtual tables, virtual doors, virtual vehicles, virtual containers, virtual ground, virtual props, virtual airdrop boxes, etc.
[0058] The surface of the virtual object is coated with a first spraying element.
[0059] Optionally, the surface of the virtual object refers to the part of the virtual object exposed in the virtual scene, such as the wall surface of a virtual wall, the desktop of a virtual table, etc.
[0060] Optionally, the first spray element refers to a display element painted on the surface of the virtual object, and the display element includes at least one of a text symbol, a pattern, a dynamic image, etc., which is not limited in the embodiment of the present application.
[0061] Optionally, the spray element is used to be displayed on the surface of a virtual object to decorate the virtual object; or, the spray element is used to be displayed on the surface of a virtual object to identify the virtual object. The embodiment of the present application does not limit the role of the spray element.
[0062] The first spraying element is an element sprayed onto the surface of the virtual object by the virtual character in the virtual scene.
[0063] In some embodiments, the first painting element refers to the painting on the surface of the virtual object by a virtual character automatically controlled by the background of the application. Schematically, the first painting element is the painting on the surface of the virtual object by an NPC in the virtual scene.
[0064] In some other embodiments, the first spray element refers to the first virtual character spraying on the surface of the virtual object.
[0065] Optionally, the first virtual character refers to a virtual character controlled by the first terminal (i.e., the current terminal). Schematically, a first account is logged in to an application that provides a virtual scene installed in the first terminal, and the first account is an account used by a first user. The first user uses the first account to control the first virtual character to spray the first spray element on the surface of the virtual object on the first terminal.
[0066] In some other embodiments, the first spray element refers to what the second virtual character sprays on the surface of the virtual object.
[0067] Optionally, the second virtual character refers to a second terminal (i.e., a terminal other than the current terminal). Illustratively, a second account is logged into an application for providing a virtual scene installed in the second terminal, and the second account is an account used by a second user. The second user uses the second account (i.e., an account other than the first account) on the second terminal to control the second virtual character to spray the first spray element on the surface of the virtual object.
[0068] In some embodiments, the first spray element refers to the element sprayed on the surface of the virtual object after the spray control is triggered.
[0069] Schematically, the first painting element is described by taking an example in which the first virtual character controlled by the first terminal is sprayed on the surface of the virtual object.
[0070] Optionally, a trigger operation on a spray control is received; in response to the trigger operation, multiple candidate spray elements are displayed; in response to receiving a trigger operation on a first spray element among the multiple candidate spray elements, when the spray target is a virtual object, a spray animation is displayed, and the spray animation refers to an animation of spraying the first spray element onto the surface of the virtual object; in response to the end of the spray animation playback, a virtual object in the virtual scene is displayed whose surface is coated with the first spray element.
[0071] Illustratively, the trigger operation includes at least one of a click operation, a long press operation, a slide operation, a gesture command operation, a voice command operation, etc., which is not limited in the embodiments of the present application.
[0072] Optionally, before receiving the trigger operation on the spray control, a selection operation on the virtual object is received. Schematically, after selecting a virtual wall in the virtual scene by clicking, the virtual wall is used as the virtual object to be painted; or after aiming at a virtual wall in the virtual scene through a sight, the virtual wall is used as the virtual object to be painted.
[0073] Alternatively, after receiving a trigger operation on the spray control, a selection operation on the virtual object is received. Schematically, after the spray control is triggered, a selection interface is displayed, which includes a spray element selection area and a spray target selection area; after selecting a spray element, candidate objects that can be sprayed with the spray element within the current field of view of the first virtual character are displayed, and after clicking to select or aiming at the candidate object, the candidate object is used as a virtual object to be painted. Optionally, a candidate object that can be sprayed with a spray element means that the surface of the candidate object has a paintable area and the area of the paintable area is larger than the element display area corresponding to the first spray element (that is, the area occupied by the first spray element displayed in the virtual scene).
[0074] Step 220, when the first spraying element meets the element change condition, display the element change animation.
[0075] The element change animation refers to an animation in which a first spraying element painted on the surface of a virtual object changes into a second spraying element, wherein the first spraying element and the second spraying element are different.
[0076] Schematically, after the first spray element is sprayed on the surface of the virtual object, the first spray element will change under the element change conditions. That is, in the embodiment of the present application, the first spray element will undergo additional changes after spraying, thereby improving the display diversity of the spray elements in the virtual scene.
[0077] Optionally, the situation that the first spraying element meets the element change condition includes at least one of the following situations:
[0078] Case 1: When the third spraying element is sprayed onto the surface of the virtual object, and the first spraying element and the third spraying element belong to a preset combination, it is determined that the first spraying element meets the element change condition, and the element change animation is displayed.
[0079] Illustratively, assuming that the first sprayed element is a popcorn bucket pattern and the third sprayed element is a popcorn pattern, the first sprayed element and the third sprayed element belong to a preset combination (i.e., combining the first sprayed element and the third sprayed element can obtain a bucket of popcorn element), and the first sprayed element is determined to meet the element change condition; alternatively, the first sprayed element is a corn pattern and the third sprayed element is a firewood pattern, then the first sprayed element and the third sprayed element belong to a preset combination (i.e., combining the first sprayed element and the third sprayed element can obtain a popcorn pattern).
[0080] In this embodiment, when the third spray element matched with the first spray element is sprayed onto the surface of the virtual object, the first spray element originally painted on the virtual object will change, that is, the spray element originally painted will undergo additional changes by additionally spraying the preset matching element, that is, the number of fixed spray elements in the original virtual scene is enriched by combination, thereby increasing the diversity of spray elements in the virtual scene. At the same time, the amount of information that can be expressed by a single spray element can be increased by combination, and the user's enthusiasm for using the spray element is increased, thereby increasing the utilization rate of the spray elements in the virtual scene.
[0081] In schematic form, if the second spray element includes the first spray element and the third spray element, the element change animation can be implemented as an element completion animation, which refers to an animation of completing the third spray element on the basis of the first spray element to obtain the second spray element, for example: spraying a popcorn pattern on a virtual object painted with a popcorn bucket pattern to obtain a bucket popcorn pattern. That is, the spray element is changed by a simple superposition method, which saves the computing power and storage resources of the computer device on the basis of realizing the element change.
[0082] If the second spray element is a spray element obtained by deformation on the basis of the first spray element and the third spray element, the element change animation can be realized as an element transformation animation, which refers to the animation of the first spray element and the third spray element being transformed into the second spray element, for example: transforming a corn pattern and a firewood pattern into a popcorn pattern. That is, a new spray element that is completely different from the first spray element and the second spray element is generated by the deformation method, which further enriches the number of fixed spray elements in the original virtual scene, thereby increasing the diversity of spray elements in the virtual scene. Moreover, since the changed spray element is unknown, the user cannot predict what the displayed spray element is, thereby increasing the attractiveness of the spray element to the user and further increasing the user's enthusiasm for using the spray element.
[0083] Optionally, the third spray element is an element sprayed onto the surface of the virtual object by the first virtual character; or, the third spray element is an element sprayed onto the surface of the virtual object by the second virtual character. Schematically, when the first spray element is sprayed onto the surface of the virtual object by the first virtual character and the third spray element is sprayed onto the surface of the virtual object by the second virtual character, it means that the first virtual character and the second virtual character jointly complete the spraying process of the second spray element.
[0084] Case 2: When the first spraying element is sprayed onto the surface of the virtual object by the target virtual character and the behavior of the target virtual character in the virtual scene meets the element change condition, the element change animation is displayed.
[0085] The virtual scene includes a target virtual character.
[0086] Optionally, the behavior performance includes the performance of the virtual character in terms of action, attack, skill, teamwork, etc., which is not limited in the embodiments of the present application. In an illustrative manner, assuming that the behavior performance refers to the number of enemy virtual characters currently defeated by the virtual character, when the number of enemy virtual characters currently defeated by the target virtual character increases, it is determined that the behavior performance of the target virtual character in the virtual scene meets the element change condition.
[0087] Optionally, the target virtual character includes at least one of a first virtual character and a second virtual character. Illustratively, when the target virtual character includes the first virtual character and the second virtual character, there is an association relationship between the first virtual character and the second virtual character, for example, the first virtual character and the second virtual character belong to the same first camp, and assuming that the behavior performance refers to the number of enemy virtual characters currently defeated by the virtual character, when the number of enemy virtual characters defeated by the first camp increases, it is determined that the behavior performance of any virtual character in the first camp meets the element change condition.
[0088] Indicatively, when the behavior of the target virtual character in the virtual scene meets the element change conditions, an element change animation is displayed, and the element change animation is an animation of changing the first spray element to the second spray element. For example: when the number of enemy virtual characters currently defeated by the target virtual character is 0, the expression pattern - indifference is displayed; when the number of enemy virtual characters currently defeated by the target virtual character increases to 1, an animation of the expression pattern changing from indifference to smile is displayed.
[0089] In this embodiment, the changes in the spray elements painted on the virtual object are associated with the behavioral performance of the virtual character that sprays the element. On the one hand, the diversity of element display in the virtual scene is improved through the change of the element. On the other hand, by associating the element change and the character behavior, the change of the spray element is associated with the user's operation, which improves the interactivity between the user and the spray element in the virtual scene and further improves the utilization rate of the spray element.
[0090] Case 3: when the object state of the virtual object with the first spraying element coated on the surface changes, it is determined that the first spraying element meets the element change condition, and the element change animation is displayed.
[0091] Optionally, the object state of the virtual object includes the usage state, attributes (eg, durability, attack power, etc.) and the like of the virtual object.
[0092] Optionally, when the object state of the virtual object with the first spray element coated on the surface changes, an element change animation is displayed. Schematically, assuming that the virtual object is a virtual airdrop box in a virtual scene, the virtual character can spray a power pattern on the surface of the virtual airdrop box, and the power display of the power pattern is associated with the remaining supplies of the virtual airdrop box. For example: the full power grid in the power pattern is 5 grids. When the virtual airdrop box has 100% of the supplies remaining, the power pattern with 5 grids is displayed. When the remaining supplies in the virtual airdrop box are reduced to 80%, the power pattern with 5 grids of power changes to an animation of a power pattern with 4 grids of power.
[0093] In this embodiment, the change of the spray element painted on the virtual object is associated with the object state of the virtual object. On the one hand, the diversity of element display in the virtual scene is improved through the change of the element. On the other hand, since the spray element displays the surface of the virtual object and the method of viewing the spray element is relatively simple, that is, the spray element can be observed without getting very close, which avoids the need for the user to select or walk into the virtual object to view the object state, thereby improving the efficiency of human-computer interaction and the utilization rate of the spray element in the virtual scene.
[0094] It should be noted that the above example of the first spray element meeting the element change condition is only an illustrative description, and the embodiments of the present application do not limit this. In addition, any two or three of the above situations 1, 2, and 3 may appear on the same spray element. Schematically, for the target spray element, the first virtual character and the second virtual character jointly complete the spraying process of the target spray element (i.e., satisfying situation 1). On this basis, the change of the target spray element after being sprayed is associated with the behavior of the first virtual character and the second virtual character in the virtual scene (i.e., satisfying situation 2).
[0095] Step 230: In response to the element change animation playing being finished, display the second spray element.
[0096] Schematically, after the element change animation is finished playing, the second spray element is displayed on the surface of the virtual object.
[0097] Optionally, when the third spray element is sprayed onto the surface of the virtual object, and the first spray element and the third spray element belong to a preset combination, in response to the end of the element change animation, the second spray element is displayed. Schematically, the spray element containing the first spray element and the third spray element is displayed as the second spray element, for example: a barrel popcorn pattern containing a popcorn bucket pattern and a popcorn pattern is displayed as the second spray element; or, a spray element deformed on the basis of the first spray element and the third spray element is used as the second spray element, for example: a popcorn pattern deformed from a corn pattern and a firewood pattern is displayed as the second spray element.
[0098] Alternatively, when the first spray element is sprayed by the target virtual character onto the surface of the virtual object, and the behavior of the target virtual character in the virtual scene meets the element change condition, in response to the end of the element change animation, the second spray element is displayed. Schematically, the changed first spray element is used as the second spray element, for example: the changed expression pattern-indifference, that is, the expression pattern-smile is displayed as the second spray element.
[0099] Alternatively, when the state of the virtual object with the first spray element on the surface changes, in response to the end of the element change animation, the second spray element is displayed. Schematically, the changed first spray element is used as the second spray element, for example: the changed power pattern of 5 grids is displayed, that is, the power pattern of 4 grids is the second spray element.
[0100] In summary, the element display method provided in the embodiment of the present application is for the spray element sprayed on the surface of the virtual object by the virtual character in the virtual scene. When the spray element meets the element change condition, the spray element will change. That is, after being sprayed on the surface of the virtual object, the spray element is not fixed, but will trigger additional changes when the conditions are met, thereby improving the display diversity of the spray element in the virtual scene. At the same time, the spray element that can be changed has a stronger expressiveness than the fixed spray element, that is, the element display method provided in the embodiment of the present application enables the spray element in the virtual scene to convey richer information and be more easily identified, thereby improving the utilization rate of the spray element.
[0101] In some embodiments, when the third spray element is sprayed onto the surface of the virtual object, and the first spray element and the third spray element belong to a preset combination, it is determined that the first spray element meets the element change condition, and an example is given in which the first spray element is sprayed onto the surface of the virtual object by the first virtual character controlled by the current terminal (i.e., the first terminal). Figure 3 As shown, Figure 2 The illustrated embodiment may also be implemented as the following steps 311 to 330 .
[0102] Step 311: In response to receiving the first spraying operation, display an operation type selection interface.
[0103] Optionally, a trigger operation on a spray control is received as a first spray operation.
[0104] Illustratively, a trigger operation on a spray control is received; in response to the trigger operation, a plurality of candidate spray props are displayed; a trigger operation on a first spray prop among the plurality of candidate spray props is received as a first spray operation. The first spray prop is used to paint a second spray element in a virtual scene. Optionally, the prop form of the first spray prop can be implemented as a second spray element, for example: the virtual character is equipped with the first spray prop, which means that the virtual character is equipped with the second spray element.
[0105] Optionally, the multiple candidate spray props displayed by the above-mentioned triggering spray control include spray props already owned by the first account; or, when the virtual scene is implemented as a game scene of a virtual game, the multiple candidate spray props include temporary spray props obtained by the first account in the game. After the virtual game ends, the first account cannot use the temporary spray props.
[0106] Illustratively, the virtual scene refers to a scene provided by an application program running on the current terminal (ie, the first terminal), and a first account corresponding to the first virtual character is logged into the application program.
[0107] The operation type selection interface includes a cooperative spraying operation type, and the cooperative spraying operation type is used to indicate a spraying operation of determining a second spraying element by a plurality of sub-spraying elements, wherein the plurality of sub-spraying elements include a first spraying element.
[0108] Schematically, the spraying operation type of the spraying element is used to indicate the spraying method of the spraying element, and the cooperative spraying operation type indicates that the second spraying element is decomposable and can be sprayed in stages. That is, the second spraying element can be decomposed into multiple sub-spraying elements, and the second spraying element can be restored by multiple sub-spraying elements. Schematically, the second spraying element can be implemented as a car pattern, then the second spraying element can be decomposed into a car wheel pattern, a car body pattern, etc., and the car wheel pattern, the car body pattern, etc. can be reassembled to obtain the car pattern; or, the second spraying element can be implemented as a furniture pattern, then the second spraying element can be decomposed into a processing machinery pattern, a wood pattern, etc., and the furniture pattern can be obtained by combining the processing machinery pattern, the wood pattern, etc.
[0109] Optionally, the number of the plurality of sub-spraying elements may be two (i.e., the first spraying element and the third spraying element), or may be a number greater than two (e.g., three, etc.). In other words, the second spraying element may be composed of only the first spraying element and the third spraying element, or may be composed of two or more spraying elements including the first spraying element and the third spraying element. This embodiment of the present application is not limited to this.
[0110] Optionally, the spraying process of the second spraying element is divided into multiple stages, each stage corresponds to one or more sub-spraying elements, for example: the spraying process of the second spraying element is divided into three stages, the second spraying element is determined by sub-spraying elements a, b, and c, then the first stage corresponds to sub-spraying element a, the second stage corresponds to sub-spraying element b, and the third stage corresponds to sub-spraying element c; or, the second spraying element is determined by sub-spraying elements a, b, c, and d, then the first stage corresponds to sub-spraying element a, the second stage corresponds to sub-spraying element b, and the third stage corresponds to sub-spraying elements c and d.
[0111] Optionally, when the first virtual character uses the first spray prop on a single virtual object, only one sub-spray element can be sprayed when the cooperative spray operation type is selected. Schematically, assuming that the second spray element is implemented as a popcorn pattern, the popcorn pattern is determined by a firewood pattern and a corn pattern, and when the firewood pattern and the corn pattern in the popcorn pattern are not painted on the virtual object, the first virtual character will spray one of the firewood pattern and the corn pattern onto the surface of the virtual object after triggering the first spray prop; assuming that the firewood pattern is sprayed, when the first virtual character selects the virtual object again to trigger the first spray prop, the firewood pattern or the corn pattern cannot be sprayed onto the virtual object. Alternatively, the first virtual character can spray multiple different sub-spray elements on a single virtual object using the first spray prop, or spray the same sub-spray element multiple times.
[0112] Step 312: In response to receiving a selection operation for a cooperative spraying operation type on an operation type selection interface, display a first spraying animation.
[0113] The first spraying animation is an animation of the first virtual character spraying the first spraying element onto the surface of the virtual object. The virtual scene includes the first virtual character, and the first virtual character is the virtual character controlled by the current terminal.
[0114] Optionally, the first spraying element refers to the sub-spraying element corresponding to the spraying stage that the second spraying element is currently in. The number of sub-spraying elements included in the first spraying element may be one or more, which is not limited in the embodiment of the present application.
[0115] Schematically, the first spraying stage of the second spraying element corresponds to the first spraying element. When a virtual object is selected, if the surface of the current virtual object is not coated with any sub-spraying elements of the second spraying element, then in response to receiving a selection operation for the cooperative spraying operation type in the operation type selection interface, an animation of the first virtual character spraying the first spraying element to the surface of the virtual object is displayed.
[0116] Alternatively, in response to receiving a selection operation for a cooperative spray operation type in an operation type selection interface, a spray element selection area is displayed, which displays multiple sub-candidate spray elements corresponding to the first spray stage, and the first virtual character can select one or more sub-spray elements from the multiple candidate sub-spray elements as the first spray element.
[0117] In other embodiments, the multiple candidate sub-spray elements displayed in the spray element selection area refer to all sub-spray elements that are not currently sprayed on the surface of the virtual object. Schematically, the second spray element is determined by sub-spray elements a, b, and c. When a virtual object is selected, if the surface of the current virtual object is not coated with any sub-spray element of the second spray element, in response to receiving a selection operation for the cooperative spray operation type in the operation type selection interface, the optional sub-spray elements in the displayed spray element selection area include sub-spray elements a, b, and c. The first virtual character can select sub-spray element a for spraying, and the sub-spray element a is the first spray element. If the first virtual character selects the virtual object and the virtual object is sprayed with sub-spray element a, in response to receiving a selection operation for the cooperative spray operation type in the operation type selection interface, the optional sub-spray elements in the displayed spray element selection area include sub-spray elements b and c.
[0118] For illustration, please refer to Figure 4 , which shows a schematic diagram of an operation type selection interface provided by an exemplary embodiment, such as Figure 4 As shown, interface 400 is an operation type selection interface displayed after selecting a virtual wall and triggering a target spray pattern. The sub-spray patterns corresponding to the target spray pattern include a pot pattern and a fireworks pattern. The operation type selection interface includes a "cooperation" button 401, which indicates a cooperative spray operation type. After clicking the "cooperation" button 401, if the virtual wall is not coated with any sub-spray pattern of the target spray pattern, an animation of spraying a pot pattern is displayed.
[0119] It should be noted that the above-mentioned operation type selection interface can also be displayed before receiving the first spraying operation, that is, the operation type selection interface is displayed; in response to receiving the selection operation of the cooperative spraying operation type in the operation type selection interface, the spraying element selection interface is displayed, and the spraying element selection interface includes at least one candidate spraying prop corresponding to the cooperative spraying operation type; in response to receiving the selection operation of the first spraying prop in at least one candidate spraying prop, the first spraying animation is displayed. This embodiment of the application is not limited to this.
[0120] In some other embodiments, the operation type selection interface further includes an independent spraying operation type. In response to receiving a selection operation of the independent spraying operation type in the operation type selection interface, a target spraying animation is displayed, wherein the target spraying animation refers to an animation of the first virtual character spraying the second spraying element onto the surface of the virtual object.
[0121] Alternatively, an operation type selection interface is displayed; in response to receiving a selection operation for an independent spray operation type in the operation type selection interface, a spray element selection interface is displayed, the spray element selection interface including at least one candidate spray prop corresponding to the independent spray operation type; in response to receiving a selection operation for a first spray prop among at least one candidate spray prop, a target spray animation is displayed.
[0122] Step 313 , in response to the completion of the playing of the first spraying animation, a virtual object having a surface coated with the first spraying element is displayed in the virtual scene.
[0123] Indicatively, Figure 4 As shown, after clicking the "cooperation" button 401, the animation of the pot pattern in the spray target spray pattern is played, and after the playback is completed, the pot pattern is displayed on the virtual wall. Figure 5 , which shows a display schematic diagram of a first spraying element, such as Figure 5 As shown, a pot pattern 501 is displayed on the virtual wall 500 .
[0124] Step 320: When the third spraying element is sprayed onto the surface of the virtual object and the first spraying element and the third spraying element belong to a preset combination, display an element change animation.
[0125] Optionally, the virtual scene further includes a second virtual character, which is a virtual character controlled by other terminals; the multiple sub-spraying elements also include a third spraying element, which is an element sprayed by the second virtual character onto the surface of the virtual object.
[0126] Illustratively, after the first virtual character sprays the first spraying element on the surface of the virtual object, if other virtual characters (i.e., the second virtual character) also select the virtual object thereafter, the other virtual characters can see the first spraying element, so that the other virtual characters can choose to cooperate with the first virtual character to perform the spraying process of the second spraying element.
[0127] Optionally, in response to receiving a selection operation on the first spray element, a cooperative spray animation is displayed on the second terminal, where the cooperative spray animation refers to an animation of spraying a third spray element onto the surface of the virtual object; in response to the end of the cooperative spray animation, a second spray element is displayed.
[0128] Alternatively, in response to receiving a first spraying operation on a second terminal, an operation type selection interface is displayed; in response to receiving a selection operation for a cooperative spraying operation type on the operation type selection interface, a cooperative spraying animation is displayed; in response to the end of the cooperative spraying animation playback, a second spraying element is displayed.
[0129] Alternatively, an operation type selection interface is displayed on the second terminal; in response to receiving a selection operation of the cooperative spraying operation type in the operation type selection interface, a spraying element selection interface is displayed, and the spraying element selection interface includes at least one candidate spraying prop corresponding to the cooperative spraying operation type; in response to receiving a selection operation of a first spraying prop in at least one candidate spraying prop, a cooperative spraying animation is displayed; in response to the cooperative spraying animation playing being finished, a second spraying element is displayed. This embodiment of the present application is not limited to this.
[0130] The element change animation refers to an animation in which a first spraying element painted on the surface of a virtual object changes into a second spraying element, wherein the first spraying element and the second spraying element are different.
[0131] In some embodiments, the second spray element includes the first spray element and the third spray element. Optionally, the element completion animation is displayed as the element change animation, and the element completion animation refers to an animation of completing the third spray element on the basis of the first spray element to obtain the second spray element.
[0132] In other embodiments, the second spray element refers to a spray element deformed based on the first spray element and the third spray element. Optionally, the element transformation animation is displayed as the element change animation, and the element transformation animation refers to the animation of the first spray element and the third spray element transforming into the second spray element.
[0133] Step 330: In response to the element change animation playing being finished, display the second spray element.
[0134] Optionally, in the case where the element completion animation is displayed as the element change animation, in response to the element change animation playing ending, the combination element of the first spray element and the third spray element is displayed as the second spray element. Figure 6 , which shows a display schematic diagram of a second spraying element, playing an animation of a fireworks pattern in a spraying target spraying pattern below the pot pattern 601, such as Figure 6 As shown, after the playback ends, the fireworks pattern 602 is displayed on the virtual wall 600, and the combination pattern 603 of the pot pattern and the fireworks pattern is used as the second spraying element.
[0135] Optionally, in the case of displaying the element transformation animation as the element change animation, in response to the end of the element change animation, the element obtained by deforming the first spray element and the third spray element is displayed as the second spray element. Figure 7 , which shows a display schematic diagram of a second spraying element, the sub-spraying patterns of the target spraying pattern refer to the corn pattern and the fireworks pattern, such as Figure 7As shown, the first virtual character's corn pattern 701 is sprayed on the virtual wall 700. After the second virtual character sprays the fireworks pattern 702 on the virtual wall 700, an animation is played to convert the corn pattern 701 and the fireworks pattern 702 into a popcorn pattern. After the playback ends, a popcorn pattern 703 is displayed on the virtual wall 700. The popcorn pattern 703 is the above-mentioned second spray element.
[0136] In some embodiments, the first virtual character corresponds to a first account, and the second virtual character corresponds to a second account; after the third spray element is sprayed onto the surface of the virtual object, a relationship establishment area is displayed, and the relationship establishment area is used to request the first account to establish an association relationship with the second account.
[0137] Optionally, the association relationship includes at least one of a friend relationship, a teammate relationship, etc. Schematically, when the association relationship is implemented as a friend relationship, that is, when the second virtual character sprays the third spray element on the surface of the virtual object, and the first spray element and the third spray element belong to a preset combination, the second account sends a friend adding request to the first account; Schematically, when the association relationship is implemented as a teammate relationship, that is, when the second virtual character sprays the third spray element on the surface of the virtual object, and the first spray element and the third spray element belong to a preset combination, the second account sends a team formation request to the first account.
[0138] For illustration, please refer to Figure 8 , which shows a display schematic diagram of a relationship establishment area, such as Figure 8 As shown, the pot pattern 801 displayed on the virtual wall 800 is sprayed by the first virtual character controlled by user 1. When the second virtual character controlled by user 2 sprays the fireworks pattern 802 onto the virtual wall 800, a combination pattern 803 of the pot pattern and the fireworks pattern is displayed as the above-mentioned second spray element, and a friend relationship establishment area 810 is displayed at the same time. The friend relationship establishment area 810 is used to display a friend adding request initiated by the second account corresponding to user 2 to the first account corresponding to user 1.
[0139] In summary, the element display method provided in the embodiment of the present application is for the spray element sprayed on the surface of the virtual object by the virtual character in the virtual scene. When the spray element meets the element change condition, the spray element will change. That is, after being sprayed on the surface of the virtual object, the spray element is not fixed, but will trigger additional changes when the conditions are met, thereby improving the display diversity of the spray element in the virtual scene. At the same time, the spray element that can be changed has a stronger expressiveness than the fixed spray element, that is, the element display method provided in the embodiment of the present application enables the spray element in the virtual scene to convey richer information and be more easily identified, thereby improving the utilization rate of the spray element.
[0140] In an embodiment of the present application, a cooperative second spraying element is provided, that is, the spraying process of the second spraying element can be completed jointly by two virtual characters. While improving the diversity of the spraying elements, the spraying elements are used to enhance the interactivity between the first virtual character and the second virtual character, thereby improving the utilization rate of the spraying elements displayed in the virtual scene.
[0141] In an embodiment of the present application, after the virtual character controlled by the current terminal completes a part of the spraying process of the spray element, if there are other virtual characters that complete another part of the spraying process of the spray element, an application for adding an association relationship will be automatically displayed on the current terminal, thereby increasing the possibility of establishing an association relationship between users in the virtual scene and further improving the utilization rate of the spray elements displayed in the virtual scene.
[0142] For illustration, the spray element is implemented as a spray pattern as an example. Please refer to Fig. 9 , which shows a logical schematic diagram of spray elements of a cooperative spray operation type. Fig. 9 As shown, when user 901 needs to perform a spraying operation in the virtual scene provided by the application, first, user 901 needs to aim the crosshairs at the target, that is, receive the aiming operation on the virtual object (eg, a blank wall) on the terminal where the application is running.
[0143] With the crosshairs aimed at the target, user 901 can trigger a spray operation on a spray pattern of a cooperative spray operation type on the terminal. After triggering the spray operation, a spray request for the spray pattern is sent to the client 902 of the application, wherein the spray request includes at least the type ID of the spray pattern and the operation type ID corresponding to the spray pattern (for example, whether it is a cooperative spray operation type or an independent spray operation type); the client 902 sends the spray request to the server 903. After receiving the spray request, the server 903 will determine whether the pattern of stage 1 of the spray pattern exists on the current virtual object if the operation type ID indicates that the spray pattern is a cooperative spray operation type.
[0144] If the current virtual object does not have a phase 1 pattern of the spray pattern of the cooperative spray operation type (which may be referred to as a cooperative spray pattern), the server 903 sends a message to the client 902 that there is no phase 1 spraying; the client 902 immediately changes the spray pattern to the phase 1 pattern, and displays the spray animation of the phase 1 pattern. After the playback is completed, the virtual object surface will display the phase 1 pattern. If the current virtual object has a phase 1 pattern of the spray pattern of the cooperative spray operation type, the server 903 sends a message to the client 902 that there is a phase 1 spraying, and at the same time sends a notification to the collaborator to add a friend; the client 902 immediately changes the spray pattern to the phase 2 pattern, and displays the spray animation of the phase 2 pattern. After the playback is completed, the virtual object surface will display the phase 2 pattern, and at the same time, the collaborator's interface will directly pop up an application to add a friend.
[0145] In some embodiments, after the user has painted the first spray element on the surface of the virtual object, the user may leave the location of the virtual object, and the user may not be able to see the process of the first spray element changing into the second spray element in time. In this case, a transmission portal may be provided so that the user can perceive the changes of the first spray element in time.
[0146] Optionally, before the element change animation is displayed, when the second virtual character sprays the third spray element, a transmission entrance is displayed, and the transmission entrance is used to transmit the first virtual character to the location of the virtual object; in response to receiving a trigger operation on the transmission entrance, the first virtual object is displayed at the location of the virtual object. Schematically, while the second virtual character sprays the third spray element on the virtual object, the transmission entrance is displayed on the scene currently displayed on the terminal. If a trigger operation on the transmission entrance is received, indicating that the user agrees to transmit the first virtual object, an animation of transmitting the first virtual object to the location of the virtual object is displayed, and after the animation is played, the first virtual object is displayed at the location of the virtual object.
[0147] Through the automatically displayed transmission entrance, the user can quickly and easily control the first virtual character to move to the position of the virtual object when the spraying element changes. On the one hand, it improves the efficiency of human-computer interaction. On the other hand, it can improve the user's perception of the spraying elements, allowing the user to pay attention to the changes of the spraying elements in time.
[0148] In some embodiments, when the first spraying element is sprayed by the target virtual character onto the surface of the virtual object, and the behavior of the target virtual character in the virtual scene meets the element change condition, it is determined that the first spraying element meets the element change condition. For example, the target virtual character includes the first virtual character, and the first spraying element is sprayed by the first virtual character controlled by the current terminal (i.e., the first terminal) onto the surface of the virtual object. Fig.10As shown, Figure 2 The illustrated embodiment may also be implemented as the following steps 1011 to 1030 .
[0149] Step 1011 , in response to receiving the second spraying operation, displaying a second spraying animation when the behavior performance of the first virtual character in the virtual scene meets the first performance requirement.
[0150] Optionally, optionally, a trigger operation on the spray control is received as a second spray operation.
[0151] In an illustrative manner, a trigger operation on a spray control is received; in response to the trigger operation, a plurality of candidate spray props are displayed; and a trigger operation on a second spray prop among the plurality of candidate spray props is received as a second spray operation. The second spray prop is used to paint a second spray element in a virtual scene.
[0152] Optionally, the multiple candidate spray props displayed by the above-mentioned triggering spray control include spray props already owned by the first account; or, when the virtual scene is implemented as a game scene of a virtual game, the multiple candidate spray props include temporary spray props obtained by the first account in the game. After the virtual game ends, the first account cannot use the temporary spray props.
[0153] Among them, the second spray prop corresponds to a variety of different spray effects.
[0154] In schematic form, the spraying effect refers to the content displayed in the virtual scene by the elements sprayed by the second spraying prop, and different spraying effects correspond to different displayed contents. For example, the second spraying prop can be implemented as an expression pattern, which corresponds to three display effects, namely, expression pattern-indifference, expression pattern-smile, and expression pattern-laugh; or, the second spraying prop can be implemented as a flower pattern, which corresponds to three display effects, namely, flower pattern-seed, flower pattern-bud, flower pattern-blooming, etc., which is not limited in the embodiments of the present application.
[0155] The second spraying animation refers to an animation of the first virtual character spraying the first spraying element onto the surface of the virtual object. Optionally, the plurality of spraying effects include the first spraying effect, and the first spraying element refers to a target spraying element sprayed with the first spraying effect.
[0156] Optionally, the behavior performance includes at least one of the following performances:
[0157] 1. Action performance.
[0158] Indicatively, the action performance can be reflected as the moving distance, moving position, searched area, collected items, etc. of the virtual character in the virtual scene. In the case where the action performance is implemented as the searched area, before entering the virtual warehouse, the first virtual character can spray pattern a on the door of the virtual warehouse, and the pattern a indicates the search progress of the first virtual character in the virtual warehouse. As the first virtual character searches the virtual warehouse, the pattern a will change, and the change of pattern a indicates the size of the search range of the first virtual character in the virtual warehouse. Optionally, the first virtual character also sets the viewing permission of the pattern a, for example: set it to be viewed only by teammates, so that the enemy virtual character of the first virtual character cannot learn the search progress of the first virtual character through the pattern a.
[0159] 2. Combat performance.
[0160] Schematically, combat performance can be reflected in the number of enemy virtual characters defeated by the virtual character, the number of enemy virtual characters defeated by assisting teammates, remaining health points, number of resurrections, timing of skill release, participation rate, etc. If combat performance is realized as the number of enemy virtual characters defeated by the first virtual character, schematically, assuming that the behavior performance refers to the number of enemy virtual characters currently defeated by the virtual character, the first virtual character can spray pattern b in the enemy camp area, and the pattern b indicates the number of enemy virtual characters defeated by the first virtual character. As the number of enemy virtual characters defeated by the first virtual character increases, the pattern b will change, and the change in pattern b indicates the change in the number of enemy virtual characters defeated by the first virtual character (normally, it will increase).
[0161] It should be noted that the above examples of behavioral performance are only illustrative and are not limited to this embodiment of the present application.
[0162] Step 1012: in response to the end of playing the second painting animation, displaying a virtual object with the first painting element painted on its surface in the virtual scene.
[0163] Optionally, taking the example of a behavior performance including the number of enemy virtual characters defeated by the first virtual character, when the number of enemy virtual characters currently defeated by the first virtual character is a first number, it is determined that the behavior performance of the first virtual character in the virtual scene meets the first performance requirement, and a second spraying animation is displayed; in response to the end of the playback of the second spraying animation, a virtual object with the first spraying element coated on its surface is displayed in the virtual scene.
[0164] For illustration, please refer to Fig.11 , which shows a schematic diagram of the change of a spray element. Please refer to Fig.11 If the target spraying element is implemented as an expression pattern, the first spraying element, that is, the target spraying element sprayed with the first spraying effect, can be implemented as an expression pattern-indifference.
[0165] When the number of enemy virtual characters currently defeated by the first virtual character is 0, it is determined that the behavior of the first virtual character in the virtual scene meets the first performance requirement, and an animation of spraying the expression pattern-indifference 1101 on the virtual wall 1100 is played. When the animation of spraying the expression pattern-indifference 1101 on the virtual wall 1100 ends, the expression pattern-indifference 1101 is displayed on the virtual wall 1100.
[0166] Step 1020 , when the behavior performance of the first virtual character in the virtual scene meets the second performance requirement, and the first performance requirement and the second performance requirement are different, display an element change animation.
[0167] The above-mentioned element change animation refers to an animation in which the first spray element coated on the surface of the virtual object changes into a second spray element, wherein the first spray element and the second spray element are different, and the second spray element refers to a target spray element sprayed with a second spray effect, that is, the first spray element and the second spray element correspond to different spray effects of the same spray element.
[0168] Optionally, taking the example of a behavior performance including the number of enemy virtual characters defeated by the first virtual character, when the number of enemy virtual characters currently defeated by the first virtual character is a second number, and the first number and the second number are different, it is determined that the behavior performance of the first virtual character in the virtual scene meets the element change condition, and the element change animation is displayed.
[0169] For illustration, please refer to Fig.11 When the number of enemy virtual characters currently defeated by the first virtual character is 1, the behavior of the first virtual character in the virtual scene meets the second performance requirement, and an animation of the expression pattern - indifference 1101 painted on the virtual wall 1100 changing to the expression pattern - smile 1102 is played.
[0170] Step 1030: In response to the element change animation playing being finished, display the second spray element.
[0171] For illustration, please refer to Fig.11 When the animation of the expression pattern-indifference 1101 painted on the virtual wall 1100 changes to the expression pattern-smile 1102 ends, the expression pattern-smile 1102 is displayed on the virtual wall 1100.
[0172] In some embodiments, the second spray element can also continue to change elements. Optionally, the spray effect of the target spray element also includes a third spray effect, and the target spray element sprayed by the second spray effect is the third spray element. When the behavior performance of the first virtual character in the virtual scene meets the third performance requirement, and the third performance requirement is different from the second performance requirement, it is determined that the first spray element meets the element change condition, and the element change animation is displayed.
[0173] The element change animation refers to an animation in which a second spraying element coated on the surface of a virtual object changes into a third spraying element, wherein the third spraying element is different from the second spraying element.
[0174] Optionally, taking the example of the behavior performance including the number of enemy virtual characters defeated by the first virtual character, when the number of enemy virtual characters currently defeated by the first virtual character is a third number, and the third number is different from the second number, it is determined that the first spray element meets the element change condition, and the element change animation is displayed.
[0175] For illustration, please refer to Fig.11 When the number of enemy virtual characters currently defeated by the first virtual character is greater than 1, the behavior of the first virtual character in the virtual scene meets the third performance requirement, and an animation of the expression pattern-smile 1102 painted on the virtual wall 1100 changing to the expression pattern-laugh 1103 is played. When the animation is finished, the expression pattern-laugh 1103 is displayed on the virtual wall 1100.
[0176] In summary, the element display method provided in the embodiment of the present application is for the spray element sprayed on the surface of the virtual object by the virtual character in the virtual scene. When the spray element meets the element change condition, the spray element will change. That is, after being sprayed on the surface of the virtual object, the spray element is not fixed, but will trigger additional changes when the conditions are met, thereby improving the display diversity of the spray element in the virtual scene. At the same time, the spray element that can be changed has a stronger expressiveness than the fixed spray element, that is, the element display method provided in the embodiment of the present application enables the spray element in the virtual scene to convey richer information and be more easily identified, thereby improving the utilization rate of the spray element.
[0177] In the embodiment of the present application, the first spray element and the second spray element involved in the change correspond to different spray effects of the same spray element. Using the same spray element can reduce the cost of producing spray elements in the virtual scene, and can realize the change process of the spray elements in the virtual scene with a smaller degree of change, thereby reducing the waste of computing power resources of the computer equipment.
[0178] In the embodiment of the present application, the user can learn the number of opponent virtual objects defeated by the user in the virtual scene through the changes in the spray element, which provides a channel for prompting the user of the number of defeats. At the same time, since the spray element is a display element in the virtual scene, other users besides the user can also understand the number of defeats of the user through the spray element, thereby improving the efficiency of human-computer interaction.
[0179] For illustration, please refer to Fig.12 and Fig.13 , which shows a logical schematic diagram of a spray element that performs a triggered change, and takes the spray element implemented as a spray pattern and the virtual scene as a virtual game scene as an example for explanation. The spray element that performs a triggered change can be called a mechanism-type spray element in the embodiment of the present application.
[0180] Fig.12 The following figure shows the logic diagram of the mechanism-type spray element during the initial spraying. Fig.12 As shown, when the user 1201 needs to perform a spraying operation in the virtual scene provided by the application, first, the user 1201 needs to aim the crosshairs at the target, that is, receive the aiming operation on the virtual object (eg, a blank wall) on the terminal where the application is running.
[0181] When the crosshairs are aligned with the target, user 1201 can trigger the spraying operation of the machine-type spray pattern on the terminal. After the spraying operation is triggered, a spraying request of the spraying pattern is sent to the client 1202 of the application, and the spraying request includes at least the type ID of the spraying pattern; the client 1202 sends the spraying request to the server 1203. After receiving the spraying request, the server 1203 searches for the conditions corresponding to the patterns of different spraying effects according to the type ID, and determines whether the in-game performance of the virtual character controlled by user 1201 (for example: the number of enemy virtual characters defeated) meets the corresponding conditions. After the query and comparison are completed, the server 1203 will send the information of the spraying effect corresponding to the conditions that the virtual character has met to the client 1202. After receiving the information, the client 1202 will spray the pattern of the corresponding spraying effect onto the surface of the virtual object.
[0182] Fig.13 A schematic diagram showing the logic of the spray element that triggers the change after spraying. Fig.13As shown, when user 1301 sprays a mechanical spray pattern into the virtual scene, if user 1301 continues to play in the virtual game, client 1302 will continuously send the in-game information of user 1301 to server 1303. After receiving the information, server 1303 finds that the change condition of the mechanical spray pattern has been met, and then sends and broadcasts the notification of changing the spray effect and the information of the spray effect corresponding to the change condition. After receiving the notification information, client 1303 will change the spray effect of the mechanical spray pattern that has been painted to the spray effect indicated by the latest received information.
[0183] In summary, the present application provides a cooperative spraying element, that is, when a part of a cooperative spraying element has been painted on the wall, other users can choose to cooperate with it instead of pressing their own new pattern on it when aiming at the spraying element. After choosing to cooperate, the spraying element of the cooperative spraying will be completed and a new effect will be produced; the present application also provides a mechanical spraying element, that is, after a pattern is sprayed, but the corresponding conditions in the field change, the style of the spraying will change.
[0184] Through the above-mentioned cooperative spray elements and mechanism-type spray elements, the types and expressions of spray elements are enriched, the resource types of spray elements are expanded, and users are given more freshness while providing more types of resource output. Among them, the emergence of cooperative spray elements will enhance the possibility of beneficial social interaction between users and facilitate the formation of closer relationships between users. At the same time, because after the cooperation is successful, the system will automatically send a notification reminder to the user to add a friend, which enhances the possibility of forming a friendship between users. Moreover, whether it is a cooperative spray element or a mechanism-type spray element, it will enhance the expressiveness of the spray element itself, thereby promoting users' pursuit of spray elements.
[0185] Please refer to Fig.14 , which shows a structural block diagram of an element display device provided by an exemplary embodiment of the present application, the device includes:
[0186] An element display module 1410 is used to display a virtual object in a virtual scene, wherein the surface of the virtual object is coated with a first spraying element, and the first spraying element is an element sprayed onto the surface of the virtual object by a virtual character in the virtual scene;
[0187] Animation display module 1420, used for displaying element change animation when the first spraying element meets the element change condition, wherein the element change animation refers to an animation in which the first spraying element painted on the surface of the virtual object changes into a second spraying element, wherein the first spraying element and the second spraying element are different;
[0188] The element display module 1410 is further configured to display the second spray element in response to the element change animation being finished.
[0189] For illustration, please refer to Fig.15 In some embodiments, the element display module 1410 is also used to determine that the first sprayed element meets the element change condition and display the element change animation when the third sprayed element is sprayed onto the surface of the virtual object and the first sprayed element and the third sprayed element belong to a preset combination.
[0190] In some embodiments, the second spray element includes the first spray element and the third spray element; the element display module 1410 is also used to display an element completion animation as the element change animation, and the element completion animation refers to an animation of completing the third spray element on the basis of the first spray element to obtain the second spray element.
[0191] In some embodiments, the second spray element is a spray element deformed on the basis of the first spray element and the third spray element; the element display module 1410 is also used to display an element transformation animation as the element change animation, and the element transformation animation refers to the animation of the first spray element and the third spray element being transformed into the second spray element.
[0192] In some embodiments, the virtual scene includes a first virtual character, and the first virtual character is a virtual character controlled by the current terminal; the element display module 1410 is further used to:
[0193] In response to receiving the first spraying operation, displaying an operation type selection interface, the operation type selection interface including a cooperative spraying operation type, the cooperative spraying operation type being used to indicate a spraying operation of determining the second spraying element by a plurality of sub-spraying elements, the plurality of sub-spraying elements including the first spraying element;
[0194] In response to receiving a selection operation for the cooperative spraying operation type, displaying a first spraying animation, wherein the first spraying animation refers to an animation of the first virtual character spraying the first spraying element onto the surface of the virtual object;
[0195] In response to the completion of playing of the first spraying animation, a virtual object having a surface coated with the first spraying element is displayed in the virtual scene.
[0196] In some embodiments, the virtual scene includes a second virtual character, which is a virtual character controlled by other terminals; the multiple sub-spraying elements also include the third spraying element, which is an element sprayed onto the surface of the virtual object by the second virtual character.
[0197] In some embodiments, the first virtual character corresponds to a first account, and the second virtual character corresponds to a second account; the device further includes:
[0198] The area display module 1430 is used to display a relationship establishment area, where the relationship establishment area is used to request the first account to establish an association relationship with the second account.
[0199] In some embodiments, the animation display module 1420 is used to display a transmission entrance when the second virtual character sprays the third spray element, and the transmission entrance is used to transmit the first virtual character to the location of the virtual object; in response to receiving a trigger operation on the transmission entrance, the first virtual object is displayed at the location of the virtual object.
[0200] In some embodiments, the virtual scene includes a target virtual character, and the first sprayed element is an element sprayed by the target virtual character onto the surface of the virtual object; the animation display module 1420 is used to display the element change animation when the behavior of the target virtual character in the virtual scene meets the element change condition.
[0201] In some embodiments, the first spraying element and the second spraying element correspond to different spraying effects of the same spraying element.
[0202] In some embodiments, the behavior performance includes the number of enemy virtual characters defeated by the target virtual character, and the target virtual character includes the first virtual character currently controlled by the terminal; the element display module 1410 is further used to:
[0203] When the number of enemy virtual characters currently defeated by the first virtual character is a first number, displaying a virtual object in the virtual scene with the first spray element coated on its surface;
[0204] When the behavior of the target virtual character in the virtual scene meets the element change condition, displaying the element change animation includes:
[0205] When the number of enemy virtual characters currently defeated by the first virtual character is a second number, and the first number is different from the second number, it is determined that the behavior of the first virtual character in the virtual scene meets the element change condition, and the element change animation is displayed.
[0206] In summary, the element display device provided in the embodiment of the present application is for the spray elements sprayed on the surface of the virtual object by the virtual character in the virtual scene. When the spray elements meet the element change conditions, the spray elements will change. That is, after being sprayed on the surface of the virtual object, the spray elements are not fixed, but will trigger additional changes when the conditions are met, thereby improving the display diversity of the spray elements in the virtual scene. At the same time, the spray elements that can be changed have stronger expressiveness than the fixed spray elements, that is, the element display method provided in the embodiment of the present application enables the spray elements in the virtual scene to convey richer information and be easier to identify, thereby improving the utilization rate of the spray elements.
[0207] It should be noted that the element display device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the element display device and element display method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0208] Fig.16 A schematic diagram of the structure of a computer device provided by an exemplary embodiment of the present application is shown. The computer device may be as follows: Figure 1 The computer device shown in FIG. Specifically, it includes the following structures:
[0209] The computer device 1600 includes a central processing unit (CPU) 1601, a system memory 1604 including a random access memory (RAM) 1602 and a read only memory (ROM) 1603, and a system bus 1605 connecting the system memory 1604 and the central processing unit 1601. The computer device 1600 also includes a mass storage device 1606 for storing an operating system 1613, application programs 1614, and other program modules 1615.
[0210] The mass storage device 1606 is connected to the central processing unit 1601 through a mass storage controller (not shown) connected to the system bus 1605. The mass storage device 1606 and its associated computer readable media provide non-volatile storage for the computer device 1600. That is, the mass storage device 1606 may include a computer readable medium (not shown) such as a hard disk or a compact disc read only memory (CD-ROM) drive.
[0211] Without loss of generality, computer-readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, Erasable Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other solid-state storage technology, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, cassettes, tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media are not limited to the above. The above-mentioned system memory 1604 and mass storage device 1606 can be collectively referred to as memory.
[0212] According to various embodiments of the present application, the computer device 1600 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 1600 can be connected to the network 1612 through the network interface unit 1611 connected to the system bus 1605, or the network interface unit 1611 can be used to connect to other types of networks or remote computer systems (not shown).
[0213] The above-mentioned memory also includes one or more programs, and the one or more programs are stored in the memory and configured to be executed by the CPU.
[0214] An embodiment of the present application also provides a computer-readable storage medium, on which is stored at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the element display method provided by the above-mentioned method embodiments.
[0215] The embodiments of the present application also provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the element display method provided by the above-mentioned method embodiments.
[0216] Optionally, the computer readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid state drive (SSD), or an optical disk. Among them, the random access memory may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM). The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0217] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0218] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for displaying an element, It is characterized in that The method comprises: Displaying a virtual object in a virtual scene, wherein the surface of the virtual object is coated with a first spraying element, wherein the first spraying element is an element sprayed onto the surface of the virtual object by a virtual character in the virtual scene; When the first spraying element meets the element change condition, displaying an element change animation, wherein the element change animation refers to an animation in which the first spraying element painted on the surface of the virtual object changes into a second spraying element, wherein the first spraying element and the second spraying element are different; In response to the element change animation being finished playing, the second spray element is displayed.
2. The method according to claim 1, It is characterized in that The step of displaying an element change animation when the first spraying element meets an element change condition comprises: When the third spraying element is sprayed onto the surface of the virtual object and the first spraying element and the third spraying element belong to a preset combination, it is determined that the first spraying element meets the element change condition, and the element change animation is displayed.
3. The method according to claim 2, It is characterized in that The second spraying element includes the first spraying element and the third spraying element; The displaying of the element change animation includes: An element completion animation is displayed as the element change animation, where the element completion animation refers to an animation of completing the third spray element on the basis of the first spray element to obtain the second spray element.
4. The method according to claim 2, It is characterized in that The second spraying element is a spraying element obtained by deforming the first spraying element and the third spraying element; The displaying of the element change animation includes: An element transformation animation is displayed as the element change animation, where the element transformation animation refers to an animation in which the first spray element and the third spray element are transformed into the second spray element.
5. The method according to claim 2, It is characterized in that The virtual scene includes a first virtual character, and the first virtual character is a virtual character controlled by the current terminal; The displaying of virtual objects in a virtual scene includes: In response to receiving the first spraying operation, displaying an operation type selection interface, the operation type selection interface including a cooperative spraying operation type, the cooperative spraying operation type being used to indicate a spraying operation of determining the second spraying element by a plurality of sub-spraying elements, the plurality of sub-spraying elements including the first spraying element; In response to receiving a selection operation for the cooperative spraying operation type, displaying a first spraying animation, wherein the first spraying animation refers to an animation of the first virtual character spraying the first spraying element onto the surface of the virtual object; In response to the completion of playing of the first spraying animation, a virtual object having a surface coated with the first spraying element is displayed in the virtual scene.
6. The method according to claim 5, It is characterized in that The virtual scene includes a second virtual character, which is a virtual character controlled by other terminals; the multiple sub-spraying elements also include the third spraying element, which is an element sprayed onto the surface of the virtual object by the second virtual character.
7. The method according to claim 6, It is characterized in that The first virtual character corresponds to a first account, and the second virtual character corresponds to a second account; After the third spraying element is sprayed onto the surface of the virtual object, the method further includes: A relationship establishment area is displayed, where the relationship establishment area is used to request the first account to establish an association relationship with the second account.
8. The method according to claim 6, It is characterized in that The displaying of the element change animation includes: When the second virtual character sprays the third spray element, displaying a transmission entrance, wherein the transmission entrance is used to transmit the first virtual character to the location of the virtual object; In response to receiving a trigger operation on the transmission entrance, the first virtual object is displayed at the location of the virtual object.
9. The method according to any one of claims 1 to 8, It is characterized in that The virtual scene includes a target virtual character, and the first spraying element is an element sprayed by the target virtual character onto the surface of the virtual object; The step of displaying an element change animation when the first spraying element meets an element change condition comprises: When the behavior of the target virtual character in the virtual scene meets the element change condition, the element change animation is displayed.
10. The method according to claim 9, It is characterized in that The first spraying element and the second spraying element correspond to different spraying effects of the same spraying element.
11. The method according to claim 9, It is characterized in that The behavior performance includes the number of enemy virtual characters defeated by the target virtual character, and the target virtual character includes the first virtual character currently controlled by the terminal; The displaying of virtual objects in a virtual scene includes: When the number of enemy virtual characters currently defeated by the first virtual character is a first number, displaying a virtual object in the virtual scene with the first spray element coated on its surface; When the behavior of the target virtual character in the virtual scene meets the element change condition, displaying the element change animation includes: When the number of enemy virtual characters currently defeated by the first virtual character is a second number, and the first number is different from the second number, it is determined that the behavior of the first virtual character in the virtual scene meets the element change condition, and the element change animation is displayed.
12. An element display device, It is characterized in that The device comprises: An element display module, used for displaying a virtual object in a virtual scene, wherein the surface of the virtual object is coated with a first spraying element, wherein the first spraying element is an element sprayed onto the surface of the virtual object by a virtual character in the virtual scene; An animation display module, used for displaying an element change animation when the first spraying element meets an element change condition, wherein the element change animation refers to an animation in which the first spraying element painted on the surface of the virtual object changes into a second spraying element, wherein the first spraying element and the second spraying element are different; The element display module is further used to display the second spray element in response to the element change animation playing being finished.
13. A computer device, It is characterized in that The computer device includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the element display method according to any one of claims 1 to 11.
14. A computer-readable storage medium, It is characterized in that The storage medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the element display method according to any one of claims 1 to 11.
15. A computer program product, It is characterized in that It comprises computer instructions, and when the computer instructions are executed by a processor, the element display method according to any one of claims 1 to 11 is implemented.