Data processing method and device, computer equipment and readable storage medium
By displaying the avatar area associated with interactive messages in the application interface, and generating personalized resource animations based on the virtual image of the interactive object and the message virtual resources, the problem of a single resource animation display method in the existing technology is solved, and a rich and diverse The resource animation display effect improves the fun and interactivity of chat.
Patent Information
- Application Number
- CN202310172336.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-08-23
AI Technical Summary
When the existing technology uses the emoticon rain method to display resource animations, the display method is too simple and lacks personalization when sending interactive messages to different interactive objects.
The avatar area associated with the interactive message is displayed in the application interface, and a personalized resource animation is generated based on the virtual image of the interactive object and the message virtual resource. Through the gradual amplification and transparency change of the avatar, combined with the movement trajectory of the message virtual resource, a dynamic creation is created And unique resource animation.
It realizes the personalization of resource animation display methods for different interactive objects, enriches the resource animation effects associated with interactive messages, and enhances the fun and interactivity of chat.
Smart Images

Figure CN118537463A
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a data processing method, apparatus, computer equipment, and readable storage medium. Background Art
[0002] When the existing message interaction process recognizes that an interaction message can trigger the generation of a resource animation, the resource animation (e.g., resource animation D) associated with the interaction message (e.g., interaction message X) will be displayed in the application interface in the form of an expression rain. For example, when the interaction message X is "Happy Birthday", a message virtual resource in the form of a "cake" can be dynamically dropped and displayed in the application interface, thereby determining the dynamic drop display of the "cake" as the resource animation D associated with "Happy Birthday". However, when the resource animation is displayed in the form of an expression rain, the resource animation D associated with the interaction message X sent to different interaction objects will always be displayed indiscriminately, which will obviously result in the resource animation being displayed in an overly single manner. Summary of the invention
[0003] The embodiments of the present application provide a data processing method, apparatus, computer equipment, and readable storage medium, which can enrich the display effect of resource animation associated with interactive messages.
[0004] On the one hand, an embodiment of the present application provides a data processing method, including:
[0005] Displaying a first interactive message and a first avatar area associated with the first interactive message in an application interface; the first interactive message is sent by an interactive object;
[0006] Within the area where the first avatar area is located, a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource is displayed; the first message virtual resource is determined based on the message type of the first interactive message and the message content contained in the first interactive message.
[0007] An embodiment of the present application provides a data processing device, including:
[0008] A first display module, configured to display a first interactive message and a first avatar area associated with the first interactive message in an application interface; the first interactive message is sent by an interactive object;
[0009] The second display module is used to display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the first avatar area is located; the first message virtual resource is determined based on the message type of the first interactive message and the message content contained in the first interactive message.
[0010] The application interface includes a message list; the first avatar area is displayed in a message preview box associated with the interactive object in the message list;
[0011] The second display module is specifically used to display a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the first avatar area of the message preview frame is located;
[0012] The second display module is further specifically used to respond to the trigger operation on the message preview box and display the interactive area associated with the interactive object in the application interface; the interactive area includes the original interactive message and the avatar update area associated with the original interactive message;
[0013] The second display module is further specifically used to display the first resource animation within the area where the avatar update area is located.
[0014] The first resource animation is used to indicate that the display status of the first interactive message is unread;
[0015] The device is also specifically configured to respond to a trigger operation on the first resource animation and cancel display of the first resource animation;
[0016] The device is also specifically configured to update the display status of the first interactive message from an unread status to a read status.
[0017] Wherein, the first resource animation is composed of the first resource sub-animation and the second resource sub-animation;
[0018] The second display module includes:
[0019] a display cancellation unit, used for cancelling the display of the subject portrait in the first portrait area;
[0020] The animation display unit is used to display a first resource sub-animation formed by the virtual image corresponding to the interactive object within the area where the first avatar area is located, and to display a second resource sub-animation formed by the first message virtual resource that can be used to interact with the virtual image.
[0021] Wherein, the first head portrait area includes a regional location point;
[0022] The animation display unit is specifically used to gradually enlarge and display the virtual image corresponding to the interactive object in the first avatar area based on the area position point; the first resource sub-animation includes a process of gradually enlarging and displaying the virtual image, and the transparency of the virtual image gradually decreases during the process of gradually enlarging and displaying the virtual image.
[0023] The first message virtual resource includes at least one of a full-screen message virtual resource and a non-full-screen message virtual resource; the area in which the first avatar area is located includes a full-screen area and a non-full-screen area;
[0024] An animation display unit, specifically used to display a first resource sub-animation formed by a virtual image corresponding to an interactive object within a region where the first avatar region is located;
[0025] The animation display unit is specifically used for displaying a second resource sub-animation formed by the full-screen message virtual resource and capable of interacting with the virtual image within the full-screen area if the first message virtual resource includes the full-screen message virtual resource and does not include the non-full-screen message virtual resource;
[0026] The animation display unit is specifically used for displaying a second resource sub-animation formed by the non-full-screen message virtual resource and capable of interacting with the virtual image within the non-full-screen area if the first message virtual resource includes the non-full-screen message virtual resource but does not include the full-screen message virtual resource;
[0027] The animation display unit is specifically used to display a second resource sub-animation that can be used to interact with a virtual image, which is formed by the full-screen message virtual resource and the non-full-screen message virtual resource, within the full-screen area if the first message virtual resource includes a full-screen message virtual resource and a non-full-screen message virtual resource.
[0028] The first resource animation is composed of the third resource sub-animation and the fourth resource sub-animation; the play timestamp of the third resource sub-animation is earlier than the play timestamp of the fourth resource sub-animation;
[0029] The second display module includes:
[0030] A sliding response unit, configured to respond to a sliding operation on the application interface and slide the first avatar area in the application interface when a third resource sub-animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource is displayed within the area where the first avatar area is located;
[0031] The sliding response unit is used to display a fourth resource sub-animation formed by the interaction between the virtual image and the first message virtual resource within the area where the sliding first avatar area is located.
[0032] The device further comprises:
[0033] The third display module is used to obtain the object state of the interactive object. If the object state of the interactive object is an input state, a second resource animation formed by the interaction between the virtual image and the second message virtual resource is displayed within the area where the first avatar area is located; the second message virtual resource is used to indicate that the object state of the interactive object is an input state.
[0034] The device further comprises:
[0035] A resource collection module, used to respond to a trigger operation on a first message virtual resource in a first resource animation, and display a resource collection area in an application interface;
[0036] Resource collection module, used to display resource description information and resource collection controls in the resource collection area;
[0037] The resource collection module is used to respond to the trigger operation of the resource collection control and collect the animation virtual resource indicated by the resource description information.
[0038] The animation display unit is specifically used to obtain the message type of the first interactive message, and if the message type of the first interactive message is a text type, match the system keyword with the first interactive message to obtain a matching result;
[0039] The animation display unit is specifically configured to display a first resource sub-animation formed by a virtual image corresponding to the interactive object within a region where the first avatar region is located based on the system keyword if the matching result indicates that the first interactive message includes the system keyword;
[0040] An animation display unit, specifically used to obtain a first message virtual resource associated with a system keyword;
[0041] The animation display unit is specifically used to display a second resource sub-animation of the first message virtual resource being moved by the virtual image according to the resource movement trajectory within the area where the first avatar area is located based on the resource movement trajectory of the first message virtual resource.
[0042] Wherein, the first message virtual resource includes a triggerable virtual resource;
[0043] The animation display unit is specifically configured to obtain a message type of the first interaction message, and if the message type of the first interaction message is a triggerable type, then based on the first interaction message of the triggerable type, display a first resource sub-animation formed by a virtual image corresponding to the interaction object within a region where the first avatar region is located;
[0044] The animation display unit is specifically used to obtain a triggerable virtual resource associated with a first interactive message of a triggerable type;
[0045] The animation display unit is specifically used to display a second resource sub-animation of the triggerable virtual resource being moved by the virtual image according to the resource movement trajectory within the area where the first avatar area is located based on the resource movement trajectory of the triggerable virtual resource.
[0046] The second display module is specifically used to obtain, from the server, a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource according to the object identifier of the virtual image; the first resource animation is generated by the server based on the object image of the virtual image and the first message virtual resource;
[0047] The second display module is specifically used to display the first resource animation within the area where the first avatar area is located.
[0048] The device further comprises:
[0049] A fourth display module, configured to display the second interactive message and a second avatar area associated with the second interactive message in the application interface; the second interactive message is sent by the interactive object; and the object avatar is displayed in the second avatar area;
[0050] A fourth display module is used to display, within the area where the second avatar area is located, a second resource animation formed by the interaction between the virtual image and the second message virtual resource; the second message virtual resource is determined based on the message type of the second interactive message and the message content contained in the second interactive message;
[0051] The fourth display module is used to display a third resource animation formed by a third message virtual resource in the application interface if the first interactive message and the second interactive message meet the message superposition condition; the third message virtual resource is associated with the first interactive message and the second interactive message.
[0052] The device further comprises:
[0053] A condition judgment module, used to obtain a first message sending timestamp of a first interactive message and a second message sending timestamp of a second interactive message, and determine a time interval between the first message sending timestamp and the second message sending timestamp;
[0054] a condition judgment module, configured to determine, if the time interval is less than or equal to a duration threshold, a relationship between the first interaction message and the second interaction message and a message superposition condition according to a semantic similarity between the first interaction message and the second interaction message;
[0055] The condition judgment module is used to determine that the first interaction message and the second interaction message do not meet the message superposition condition if the time interval is greater than the duration threshold.
[0056] The condition judgment module is specifically used to input the first interaction message and the second interaction message into the semantic analysis model respectively, extract features of the first interaction message and the second interaction message respectively through the semantic analysis model, and output a first message feature corresponding to the first interaction message and a second message feature corresponding to the second interaction message;
[0057] A condition judgment module, specifically used to determine the feature similarity between the first message feature and the second message feature, and determine the feature similarity as the semantic similarity between the first interactive message and the second interactive message;
[0058] A condition judgment module, specifically configured to determine that the first interaction message and the second interaction message meet a message superposition condition if the semantic similarity is greater than or equal to a similarity threshold;
[0059] The condition judgment module is specifically configured to determine that the first interaction message and the second interaction message do not satisfy the message superposition condition if the semantic similarity is less than a similarity threshold.
[0060] An embodiment of the present application provides a computer device, including: a processor and a memory;
[0061] The processor is connected to the memory, wherein the memory is used to store a computer program. When the computer program is executed by the processor, the computer device executes the method provided in the embodiment of the present application.
[0062] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the method provided by the embodiment of the present application.
[0063] In one aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the method provided in the embodiment of the present application.
[0064] In an embodiment of the present application, a computer device may display a first interactive message and a first avatar area associated with the first interactive message in an application interface, and then display a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the first avatar area is located. Among them, the first interactive message is sent by the interactive object; the first message virtual resource is determined based on the message type of the first interactive message and the message content contained in the first interactive message. It can be seen that when the embodiment of the present application recognizes that the first interactive message can trigger the generation of a resource animation, the virtual image corresponding to the interactive object and the first message virtual resource associated with the first interactive message are obtained, and the first resource animation associated with the first interactive message is generated based on the virtual image corresponding to the interactive object and the first message virtual resource. Therefore, when different interactive objects send the first interactive message, the virtual images corresponding to the different interactive objects can be combined with the first message virtual resource to generate resource animations corresponding to the different interactive objects. Since the virtual images corresponding to the different interactive objects are different, the resource animations corresponding to the different interactive objects generated based on the different virtual images are different, so that a personalized resource animation display method can be achieved, and the display effect of the resource animation associated with the interactive message can be enriched. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are 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 paying creative work.
[0066] Figure 1 It is a structural diagram of a network architecture provided by an embodiment of the present application;
[0067] Figure 2 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0068] Figure 3a This is a schematic diagram of a scenario of a red envelope message type provided in an embodiment of the present application;
[0069] Figure 3b This is a schematic diagram of a scenario of a red envelope message type provided in an embodiment of the present application;
[0070] Figure 4a This is a schematic diagram of a scenario of a gift message type provided in an embodiment of the present application;
[0071] Figure 4b This is a schematic diagram of a scenario of a gift message type provided in an embodiment of the present application;
[0072] Figure 5a This is a schematic diagram of a birthday message scenario provided by an embodiment of the present application;
[0073] Figure 5b This is a schematic diagram of a birthday message scenario provided by an embodiment of the present application;
[0074] Figure 6a This is a schematic diagram of a scenario of a miss you message provided in an embodiment of the present application;
[0075] Figure 6b This is a schematic diagram of a scenario of a miss you message provided in an embodiment of the present application;
[0076] Figure 7a This is a schematic diagram of a scenario of a hello message provided in an embodiment of the present application;
[0077] Figure 7b This is a schematic diagram of a scenario of a hello message provided in an embodiment of the present application;
[0078] Figure 8a This is a schematic diagram of a scene of a good night message provided in an embodiment of the present application;
[0079] Figure 8b This is a schematic diagram of a scene of a good night message provided in an embodiment of the present application;
[0080] Figure 9a is a schematic diagram of a scene showing an interactive area provided in an embodiment of the present application;
[0081] Figure 9b is a schematic diagram of a scene showing an interactive area provided in an embodiment of the present application;
[0082] Fig.10 This is a schematic diagram of a scenario for sending an interactive message provided in an embodiment of the present application;
[0083] Fig.11 It is a schematic diagram of a scene for displaying resource animation provided by an embodiment of the present application;
[0084] Fig.12 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0085] Fig.13 This is a schematic diagram of a scenario for dividing an application interface provided in an embodiment of the present application;
[0086] Fig.14 This is a schematic diagram of a scenario for receiving an interactive message provided in an embodiment of the present application;
[0087] Fig.15This is a schematic diagram of a scene of a sliding application interface provided in an embodiment of the present application;
[0088] Fig.16a is a schematic diagram of a scene showing an input state provided in an embodiment of the present application;
[0089] Fig.16b is a schematic diagram of a scene showing an input state provided in an embodiment of the present application;
[0090] Fig.17 It is a schematic diagram of a scene for collecting animation virtual resources provided in an embodiment of the present application;
[0091] Fig.18 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0092] Fig.19 This is a schematic diagram of a data processing flow provided by an embodiment of the present application;
[0093] Fig. 20 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;
[0094] Fig.21 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0095] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of 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 this application.
[0096] For details, see Figure 1 , Figure 1 Schematic diagram of a network architecture provided by an embodiment of the present application. Figure 1 As shown, the network architecture may include a server 2000 and a terminal device cluster. The terminal device cluster may specifically include one or more terminal devices, and the number of terminal devices in the terminal device cluster is not limited here. Figure 1As shown, the multiple terminal devices may specifically include terminal device 3000a, terminal device 3000b, terminal device 3000c, ..., terminal device 3000n; terminal device 3000a, terminal device 3000b, terminal device 3000c, ..., terminal device 3000n may respectively be directly or indirectly connected to the server 2000 via wired or wireless communication, so that each terminal device may exchange data with the server 2000 via the network connection.
[0097] Each terminal device in the terminal device cluster may include: smart phones, tablet computers, laptop computers, desktop computers, intelligent voice interaction devices, smart home appliances (e.g., smart TVs), wearable devices, vehicle terminals, aircraft, and other smart terminals with data processing functions. Figure 1 Each terminal device in the terminal device cluster shown in the figure may be installed with an application client. When the application client runs in each terminal device, it may be respectively connected to the Figure 1 The server 2000 shown in the figure performs data interaction. Among them, the application client may specifically include a car client, a smart home client, an entertainment client (for example, a game client), a multimedia client (for example, a video client), a social client, and an information client (for example, a news client) and other clients with data processing functions. Among them, the application client can be integrated in a client (for example, a social client), or the application client can be an independent client (for example, a news client). The embodiment of the present application does not limit the type of the application client.
[0098] Among them, Figure 1 The server 2000 shown can be a server corresponding to an application client. The server 2000 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), as well as big data and artificial intelligence platforms.
[0099] For ease of understanding, the embodiments of the present application can be Figure 1 Select one terminal device from the multiple terminal devices shown as the target terminal device. In the embodiment of the present application, Figure 1 Select one terminal device from the multiple terminal devices shown as a sample terminal device. Figure 1 The terminal device 3000a shown in the figure is used as a sample terminal device. Figure 1The terminal device 3000c shown is used as the target terminal device, and the target terminal device and the sample terminal device can be respectively installed with an application client having a data processing function. At this time, the target terminal device can realize data interaction with the server 2000 through the application client, and the sample terminal device can realize data interaction with the server 2000 through the application client.
[0100] For ease of understanding, the embodiment of the present application may refer to the user as an interactive object, the interactive object may be a user who logs in to the application client, the user corresponding to the target terminal device may be referred to as the target interactive object, and the user corresponding to the sample terminal device may be referred to as the sample interactive object. Among them, the target interactive object can be used as a message receiver or a message sender. For example, the target interactive object can become a message receiver through the application client in the target terminal device, and the target interactive object can also become a message sender through the application client in the target terminal device. Similarly, the sample interactive object can be used as a message sender or a message receiver. For example, the sample interactive object can become a message sender through the application client in the sample terminal device, and the sample interactive object can also become a message receiver through the application client in the sample terminal device. Among them, the target terminal device and the sample terminal device both run the application client corresponding to the server 2000, and the application client can realize the sending and receiving of interactive messages (for example, the first interactive message) between the target terminal device and the sample terminal device. For ease of understanding, the embodiment of the present application takes the target interactive object as the message sender and the sample interactive object as the message receiver as an example for explanation.
[0101] For example, the message sender (i.e., the target interaction object) and the message receiver (i.e., the sample interaction object) can be connected through the server 2000, and the target interaction object can send a first interaction message through the application client in the target terminal device. The server 2000 can synchronize the first interaction message from the target terminal device to the sample terminal device, and display the first interaction message and the first avatar area associated with the first interaction message in the application interface of the sample terminal device, and then display the first resource animation formed by the interaction between the virtual image corresponding to the target interaction object and the first message virtual resource within the area where the first avatar area is located. The first message virtual resource is determined based on the message type of the first interaction message and the message content contained in the first interaction message.
[0102] Optionally, the application interface displays a virtual social scene, in which a message list or an interactive area for an interactive object can be displayed. The virtual image displayed in the message list or the interactive area can also be regarded as a virtual image displayed in the virtual social scene, and the virtual image can be displayed and interacted in the virtual social scene. Among them, the virtual social scene refers to a 3D (short for Three Dimensions) virtual space with link perception and sharing characteristics based on the future Internet, which is a virtual enhanced physical reality and presents convergence and physical persistence characteristics, or an interactive, immersive and collaborative world. Just as the physical universe is a series of worlds interconnected in space, the virtual social scene can also be regarded as a collection of many worlds.
[0103] For further information, see Figure 2 , Figure 2 This is a flow chart of a data processing method provided by an embodiment of the present application. The method can be executed by a server, or by a terminal device, or by both a server and a terminal device. The server can be the above-mentioned Figure 1 The server 2000 in the corresponding embodiment, the terminal device can be the above Figure 1 The sample terminal device or target terminal device of the corresponding embodiment. For ease of understanding, the embodiment of the present application takes the method executed by the terminal device as an example for explanation. Among them, the data processing method may include the following steps S101-S102:
[0104] Step S101, displaying a first interaction message and a first avatar area associated with the first interaction message in an application interface;
[0105] The first interaction message is sent by the interaction object. When the terminal device is a sample terminal device, the first interaction message may be sent by the target interaction object or the sample interaction object; when the terminal device is a target terminal device, the first interaction message may be sent by the target interaction object or the sample interaction object. For ease of understanding, the embodiment of the present application takes the terminal device as a sample terminal device and the first interaction message is sent by the target interaction object as an example for explanation. At this time, the target interaction object can be referred to as the interaction object, and the sample terminal device can be referred to as the terminal device.
[0106] It should be understood that the terminal device can display a message list (i.e., a message list page) in the application interface. The message list includes a message preview box associated with the interactive object. Furthermore, the terminal device can display the first interactive message and the first avatar area associated with the first interactive message in the message preview box, thereby playing the first resource animation in the following step S102 in advance on the message list page. At this time, the terminal device displays the message list of the application interface when receiving the first interactive message. The first interactive message is a summary message generated based on the original interactive message sent by the interactive object. The first interactive message may be the same as the original interactive message, or the first interactive message may be different from the original interactive message.
[0107] Among them, after receiving the original interactive message sent by the interactive object, the terminal device can display a message preview box in the message list (that is, the message preview box in the message list is triggered by the first interactive message), and then display the first interactive message and the first avatar area associated with the first interactive message in the message preview box. Optionally, the terminal device can also display the message preview box in the message list before receiving the original interactive message sent by the interactive object (that is, the message preview box in the message list is not triggered by the original interactive message, and the message preview box in the message list is triggered by the historical interactive message, and the historical interactive message can be an interactive message with an interaction time earlier than the original interactive message), and then directly display the first interactive message and the first avatar area associated with the first interactive message in the message preview box.
[0108] Among them, if the original interactive message is a plain text message (i.e., an ordinary text message), the terminal device can determine the character length of the original interactive message after receiving the original interactive message sent by the target terminal device through the server. Furthermore, if the character length of the original interactive message is greater than the length threshold, the original interactive message and the first interactive message are different. At this time, the terminal device can trim the original interactive message to obtain the first interactive message corresponding to the original interactive message; optionally, if the character length of the original interactive message is less than or equal to the length threshold, the original interactive message and the first interactive message are the same. Among them, the length threshold is determined by the device width of the terminal device. The embodiment of the present application does not limit the specific value of the length threshold. For example, the length threshold can be equal to 18 characters. For example, the original interaction message may be "Good night", and the character length of "Good night" is less than or equal to the length threshold. In this case, the first interaction message may be "Good night"; for another example, the original interaction message may be "I went to the amusement park with him today, and we had a lot of fun!", and the character length of "I went to the amusement park with him today, and we had a lot of fun!" is greater than the length threshold. In this case, the first interaction message may be "I went to the amusement park with him today, and I...".
[0109] Optionally, if the original interaction message is not a plain text message, the terminal device may determine the first interaction message corresponding to the original interaction message according to the message type of the original interaction message and the message content contained in the original interaction message. For example, if the original interaction message contains document content, the first interaction message corresponding to the original interaction message may be "[document]XXX", where "XXX" may be the title of the document content; for another example, if the original interaction message contains video content, the first interaction message corresponding to the original interaction message may be "[video]"; for another example, if the original interaction message contains image content, the first interaction message corresponding to the original interaction message may be "[image]"; for another example, if the original interaction message contains image content and the original interaction message contains a text message (for example, the original interaction message may be "Look at the photo I took [image]"), the first interaction message corresponding to the original interaction message may be "Look at the photo I took [image]", where "[image]" in the original interaction message is the image content, and "[image]" in the first interaction message is the text message. For another example, if the original interaction message contains two image contents, the first interaction message corresponding to the original interaction message may be "[image][image]".
[0110] Optionally, the terminal device may display a message list in the application interface. The message list includes a message preview box associated with the interactive object. Further, the terminal device may respond to a trigger operation on the message preview box and display an interactive area associated with the interactive object in the application interface. Further, the terminal device may display the first interactive message and the first avatar area associated with the first interactive message in the interactive area, thereby playing the first resource animation in the following step S102 in the interactive area. At this time, the terminal device displays the interactive area of the application interface when receiving the first interactive message. For ease of understanding, the embodiment of the present application is described by taking the first interactive message as the first interactive message displayed in the interactive area (rather than the first interactive message displayed in the message preview box) as an example.
[0111] Among them, the interactive objects that perform message interaction with the sample interactive objects may also include other interactive objects (for example, candidate interactive objects) in addition to the target interactive object, the message list may also include a message preview box associated with other interactive objects (for example, candidate interactive objects), the interactive area may also be used to display other interactive messages (for example, candidate interactive messages sent by candidate interactive objects) in addition to the first interactive message and candidate avatar areas associated with the candidate interactive messages, and the message preview box may also be used to display other interactive messages (for example, candidate interactive messages sent by candidate interactive objects) sent by other interactive objects (for example, candidate interactive objects) and candidate avatar areas associated with the candidate interactive messages.
[0112] It is understandable that the interaction area can be a group chat interaction area (i.e., the sample interaction object and the target interaction object can be interaction objects of a group chat), or a single chat (Customer to Customer, C2C) interaction area (i.e., the sample interaction object and the target interaction object can be interaction objects of a single chat), and the present embodiment of the application does not limit this. In addition, the target interaction object and the sample interaction object can be friends with each other, or they can not be friends with each other (i.e., they are non-friends with each other), and the present embodiment of the application does not limit this.
[0113] Step S102: displaying a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the first avatar area is located.
[0114] Specifically, the terminal device may cancel displaying the object avatar in the first avatar area. Furthermore, the terminal device may display a first resource sub-animation formed by the virtual image corresponding to the interactive object, and a second resource sub-animation formed by the first message virtual resource that can be used to interact with the virtual image, within the area where the first avatar area is located. Among them, the first resource sub-animation and the second resource sub-animation may be collectively referred to as the first resource animation, that is, the first resource animation is composed of the first resource sub-animation and the second resource sub-animation, and the first resource sub-animation and the second resource sub-animation may be displayed synchronously (that is, the second resource sub-animation is displayed while the first resource sub-animation is displayed). Among them, the first message virtual resource may be referred to as an auxiliary special effect, and the first message virtual resource is determined based on the message type of the first interactive message and the message content contained in the first interactive message.
[0115] In other words, the terminal device can display the first resource sub-animation formed by the virtual image corresponding to the interactive object within the area where the first avatar area is located, that is, the action of the virtual image can be the first resource sub-animation; the terminal device can display the second resource sub-animation formed by the first message virtual resource that can be used to interact with the virtual image within the area where the first avatar area is located, that is, the action of the first message virtual resource can be the second resource sub-animation. Among them, the area range displayed by the first resource sub-animation and the area range displayed by the second resource sub-animation are different, and the area range where the first avatar area is located may include the first avatar area. Generally, the display range of the second resource sub-animation is larger than the display range of the first resource sub-animation. Among them, the terminal device can display the first resource sub-animation formed by the virtual image corresponding to the interactive object within the first avatar area and outside the first avatar area; optionally, the terminal device can also display the first resource sub-animation formed by the virtual image corresponding to the interactive object within the first avatar area.
[0116] It is understandable that the virtual image corresponding to the interactive object can be determined by the object image of the interactive object. For example, the object image of the interactive object can represent the super image show established by the interactive object. The super image show is an upgraded version of the image show, which is an exploration and attempt of the image show from 2D (two dimensional) to 3D (three dimensional). When the interactive object updates the object image (for example, pinching the face, changing clothes, etc.), the tag value of the updated object image (i.e., the object identifier of the virtual image) and the updated virtual image corresponding to the updated object image can be generated, so that by updating the object image, the resource animation associated with the same interactive message is different for the same interactive object under different dresses (i.e., object images). In addition, when the object image corresponding to the interactive object is updated, the object avatar of the interactive object can be updated synchronously. For another example, the object image of the interactive object can represent the object behavior of the interactive object. For example, based on the click behavior and viewing behavior of the interactive object in the application client, the object image of the interactive object can be generated. For another example, the object image of the interactive object can be determined by the image image uploaded by the interactive object, and the image image can include the object image of the interactive object.
[0117] Among them, in this application, it involves data related to click behavior and viewing behavior. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws and regulations and national standards of the country. For example, the target terminal device can display a prompt message "whether to record the current click behavior and viewing formation, and send the recorded information to the server". Only after the user corresponding to the target terminal device (i.e., the interactive object) is authorized, the object behavior can be uploaded to the server.
[0118] It can be understood that an object avatar corresponding to the interactive object can be displayed in the first avatar area. The object avatar corresponding to the interactive object can be determined by the object image of the interactive object (that is, the object avatar can be a super image show avatar, which can also be called a virtual avatar), or it can be determined by the avatar image uploaded by the interactive object, or it can be determined by the system avatar provided by the application client (that is, the object avatar can be a personalized avatar).
[0119] Among them, the object avatar can be associated with the virtual image (that is, the virtual image has the image of the object avatar), that is, after the object image of the interactive object is set to the object avatar, the first resource animation can be displayed near the first avatar area (that is, within the area where the first avatar area is located), and the object avatar will switch to the first resource animation, thereby achieving the continuity of the switching from the object avatar to the first resource animation (the first resource animation includes the virtual image); optionally, when the object avatar displayed in the first avatar area does not match the virtual image (that is, the virtual image does not have the image of the object avatar), the terminal device can also display the first resource animation near the first avatar area (that is, within the area where the first avatar area is located) when the first interactive message can trigger the generation of the first resource animation, and the object avatar will switch to the first resource animation. For ease of understanding, the embodiment of the present application is described by taking the virtual image having the image of the object avatar as an example.
[0120] It is understandable that the specific process of the terminal device displaying the first resource animation can be referred to as follows Figure 3a-Figure 8b The description of the corresponding embodiment, Figure 3a-Figure 8b It can represent different first resource animations generated by triggering different first interactive messages. The first resource animation can be displayed near the first avatar area of the message list (in this case, the first avatar area is displayed in the message preview box), or near the first avatar area of the interactive area (in this case, the first avatar area is displayed in the interactive area). The specific process of displaying the first resource animation near the first avatar area of the message list can be found in the following Figure 3b , Figure 4b , Figure 5b , Figure 6b , Figure 7b and Figure 8b The description of the corresponding embodiment, the specific process of displaying the first resource animation near the first avatar area in the interactive area can be referred to as follows Figure 3a , Figure 4a , Figure 5a , Figure 6a , Figure 7a and Figure 8a Description of the corresponding embodiment.
[0121] For easier understanding, see Figure 3a and Figure 3b , Figure 3a and Figure 3b Schematic diagram of a scenario of a red envelope message type provided by an embodiment of the present application. Figure 3aThe application interface 30a and the application interface 30b shown may be application interfaces of the application client in the terminal device at different times. When the interactive object sends a first interactive message (e.g., interactive message 31a), the terminal device may receive the interactive message 31a sent by the interactive object, switch the application interface 30a to the application interface 30b, and display the interactive message 31a and the first avatar area (e.g., avatar area 31b) associated with the interactive message 31a in the application interface 30b. The avatar area 31b may include an object avatar corresponding to the interactive object, and the virtual image corresponding to the interactive object has the image of the object avatar.
[0122] Furthermore, if Figure 3a As shown, the terminal device can display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the avatar area 31b in the application interface 30b is located. For example, the interactive message 31a can be a red envelope message, and the first resource animation can be a resource animation generated for the red envelope message. Among them, the number of first message virtual resources can be one or more, and the one or more first message virtual resources can specifically include a message virtual resource 31c. For example, the first resource sub-animation can be the action of the virtual image raising his hand, and the second resource sub-animation can be the action of the first message virtual resource (for example, the message virtual resource 31c) moving, visually forming the message virtual resource 31c following the action of the virtual image to move, that is, in the process of the virtual image raising his hand, the message virtual resource 31c (for example, the red envelope) can follow the hand of the virtual image to move, visually forming the effect of the virtual image raising the red envelope.
[0123] like Figure 3b The application interface 32a and the application interface 32b shown may be application interfaces of the application client in the terminal device at different times. When the interactive object sends a first interactive message (e.g., interactive message 33a), the terminal device may receive the interactive message 33a sent by the interactive object, switch the application interface 32a to the application interface 32b, and display the interactive message 33a and the first avatar area (e.g., avatar area 33b) associated with the interactive message 33a in the application interface 32b. The avatar area 33b may include an object avatar corresponding to the interactive object, and the virtual image corresponding to the interactive object has the image of the object avatar.
[0124] Furthermore, if Figure 3b As shown, the terminal device can display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the avatar area 33b in the application interface 32b is located. For example, the interactive message 33a can be a red envelope message, and the first resource animation can be a resource animation generated for the red envelope message.
[0125] For easier understanding, see Figure 4a and Figure 4b , Figure 4a and Figure 4b Schematic diagram of a gift message type scenario provided by an embodiment of the present application. Figure 4a The application interface 40a and the application interface 40b shown may be application interfaces of the application client in the terminal device at different times. When the interactive object sends a first interactive message (e.g., interactive message 41a), the terminal device may receive the interactive message 41a sent by the interactive object, switch the application interface 40a to the application interface 40b, and display the interactive message 41a and the first avatar area (e.g., avatar area 41b) associated with the interactive message 41a in the application interface 40b. The avatar area 41b may include an object avatar corresponding to the interactive object, and the virtual image corresponding to the interactive object has the image of the object avatar.
[0126] Furthermore, if Figure 4a As shown, the terminal device can display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the avatar area 41b in the application interface 40b is located. For example, the interactive message 41a can be a gift message, and the first resource animation can be a resource animation generated for the gift message. Among them, the number of first message virtual resources can be one or more, and the one or more first message virtual resources can specifically include a message virtual resource 41c. For example, the first resource sub-animation can be the action of the virtual image raising its arms horizontally, and the second resource sub-animation can be the action of the first message virtual resource (for example, the message virtual resource 41c) moving, visually forming the message virtual resource 41c following the action of the virtual image to move, that is, in the process of the virtual image raising its arms horizontally, the message virtual resource 41c (for example, the gift) can follow the hand of the virtual image to move, visually forming the effect of the virtual image raising the gift horizontally.
[0127] like Figure 4b The application interface 42a and the application interface 42b shown may be application interfaces of the application client in the terminal device at different times. When the interactive object sends a first interactive message (e.g., interactive message 43a), the terminal device may receive the interactive message 43a sent by the interactive object, switch the application interface 42a to the application interface 42b, and display the interactive message 43a and the first avatar area (e.g., avatar area 43b) associated with the interactive message 43a in the application interface 42b. The avatar area 43b may include an object avatar corresponding to the interactive object, and the virtual image corresponding to the interactive object has the image of the object avatar.
[0128] Furthermore, if Figure 4bAs shown, the terminal device can display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the avatar area 43b in the application interface 42b is located. For example, the interactive message 43a can be a gift message, and the first resource animation can be a resource animation generated for the gift message.
[0129] For easier understanding, see Figure 5a and Figure 5b , Figure 5a and Figure 5b Schematic diagram of a birthday message scenario provided by an embodiment of the present application. Figure 5a The application interface 50a and the application interface 50b shown may be application interfaces of the application client in the terminal device at different times. When the interactive object sends a first interactive message (e.g., interactive message 51a), the terminal device may receive the interactive message 51a sent by the interactive object, switch the application interface 50a to the application interface 50b, and display the interactive message 51a and the first avatar area (e.g., avatar area 51b) associated with the interactive message 51a in the application interface 50b. The avatar area 51b may include an object avatar corresponding to the interactive object, and the virtual image corresponding to the interactive object has the image of the object avatar.
[0130] Furthermore, if Figure 5a As shown, the terminal device can display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the avatar area 51b in the application interface 50b is located. For example, the interactive message 51a can be a text message, and the text message can include the keyword "Happy Birthday", and the first resource animation can be a resource animation generated for the keyword "Happy Birthday". Among them, the number of first message virtual resources can be one or more, and the one or more first message virtual resources can specifically include message virtual resource 51c. For example, the first resource sub-animation can be the action of the virtual image appearing from bottom to top, and the second resource sub-animation can be the action of the first message virtual resource (for example, message virtual resource 51c) moving, visually forming the message virtual resource 51c moving with the action of the virtual image, that is, in the process of the virtual image appearing from bottom to top, the message virtual resource 51c (for example, ice cream) can move with the appearance of the virtual image, visually forming the effect of the virtual image holding up the ice cream.
[0131] like Figure 5bThe application interface 52a and the application interface 52b shown may be application interfaces of the application client in the terminal device at different times. When the interactive object sends a first interactive message (e.g., interactive message 53a), the terminal device may receive the interactive message 53a sent by the interactive object, switch the application interface 52a to the application interface 52b, and display the interactive message 53a and the first avatar area (e.g., avatar area 53b) associated with the interactive message 53a in the application interface 52b. The avatar area 53b may include an object avatar corresponding to the interactive object, and the virtual image corresponding to the interactive object has the image of the object avatar.
[0132] Furthermore, if Figure 5b As shown, the terminal device can display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the avatar area 53b in the application interface 52b is located. For example, the interactive message 53a can be a text message, which can include the keyword "Happy Birthday", and the first resource animation can be a resource animation generated for the keyword "Happy Birthday".
[0133] For easier understanding, see Figure 6a and Figure 6b , Figure 6a and Figure 6b Schematic diagram of a scenario of a miss you message provided by an embodiment of the present application. Figure 6a The application interface 60a and the application interface 60b shown may be application interfaces of the application client in the terminal device at different times. When the interactive object sends a first interactive message (e.g., interactive message 61a), the terminal device may receive the interactive message 61a sent by the interactive object, switch the application interface 60a to the application interface 60b, and display the interactive message 61a and the first avatar area (e.g., avatar area 61b) associated with the interactive message 61a in the application interface 60b. The avatar area 61b may include an object avatar corresponding to the interactive object, and the virtual image corresponding to the interactive object has the image of the object avatar.
[0134] Furthermore, if Figure 6aAs shown, the terminal device can display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the avatar area 61b in the application interface 60b is located. For example, the interactive message 61a can be a text message, and the text message can include the keyword "miss you", and the first resource animation can be a resource animation generated for the keyword "miss you". Among them, the number of first message virtual resources can be one or more, and the one or more first message virtual resources can specifically include message virtual resource 61c. For example, the first resource sub-animation can be the action of the virtual image raising his hand and touching his face, and the second resource sub-animation can be the action of the first message virtual resource (for example, message virtual resource 61c) moving, visually forming the message virtual resource 61c following the action of the virtual image to move, that is, in the process of the virtual image raising his hand and touching his face, the message virtual resource 61c (for example, love) can move following the process of the virtual image touching his face, visually forming the effect that the virtual image is in a state of missing.
[0135] like Figure 6b The application interface 62a and the application interface 62b shown may be application interfaces of the application client in the terminal device at different times. When the interactive object sends a first interactive message (e.g., interactive message 63a), the terminal device may receive the interactive message 63a sent by the interactive object, switch the application interface 62a to the application interface 62b, and display the interactive message 63a and the first avatar area (e.g., avatar area 63b) associated with the interactive message 63a in the application interface 62b. The avatar area 63b may include an object avatar corresponding to the interactive object, and the virtual image corresponding to the interactive object has the image of the object avatar.
[0136] Furthermore, if Figure 6b As shown, the terminal device can display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the avatar area 63b in the application interface 62b is located. For example, the interactive message 63a can be a text message, which can include the keyword "miss you", and the first resource animation can be a resource animation generated for the keyword "miss you".
[0137] For easier understanding, see Figure 7a and Figure 7b , Figure 7a and Figure 7b 1 is a schematic diagram of a scenario of a hello message provided in an embodiment of the present application. Figure 7aThe application interface 70a and the application interface 70b shown may be application interfaces of the application client in the terminal device at different times. When the interactive object sends a first interactive message (e.g., interactive message 71a), the terminal device may receive the interactive message 71a sent by the interactive object, switch the application interface 70a to the application interface 70b, and display the interactive message 71a and the first avatar area (e.g., avatar area 71b) associated with the interactive message 71a in the application interface 70b. The avatar area 71b may include an object avatar corresponding to the interactive object, and the virtual image corresponding to the interactive object has the image of the object avatar.
[0138] Furthermore, if Figure 7a As shown, the terminal device can display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the avatar area 71b in the application interface 70b is located. For example, the interactive message 71a can be a text message, and the text message can include the keyword "hello" (or "hi", "Hi"), and the first resource animation can be a resource animation generated for the keyword "hello" (or "hi", "Hi"). Among them, the number of first message virtual resources can be one or more, and the one or more first message virtual resources can specifically include message virtual resource 71c. For example, the first resource sub-animation can be the action of the virtual image waving, and the second resource sub-animation can be the action of the first message virtual resource (for example, the message virtual resource 71c) moving, visually forming the message virtual resource 71c moving following the action of the virtual image, that is, in the process of the virtual image waving, the message virtual resource 71c (for example, flower) can move following the waving process of the virtual image, visually forming the effect of the virtual image saying hello.
[0139] like Figure 7b The application interface 72a and the application interface 72b shown may be application interfaces of the application client in the terminal device at different times. When the interactive object sends a first interactive message (e.g., interactive message 73a), the terminal device may receive the interactive message 73a sent by the interactive object, switch the application interface 72a to the application interface 72b, and display the interactive message 73a and the first avatar area (e.g., avatar area 73b) associated with the interactive message 73a in the application interface 72b. The avatar area 73b may include an object avatar corresponding to the interactive object, and the virtual image corresponding to the interactive object has the image of the object avatar.
[0140] Furthermore, if Figure 7bAs shown, the terminal device can display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the avatar area 73b in the application interface 72b is located. For example, the interactive message 73a can be a text message, which can include the keyword "hello" (or "hi", "Hi"), and the first resource animation can be a resource animation generated for the keyword "hello" (or "hi", "Hi").
[0141] For easier understanding, see Figure 8a and Figure 8b , Figure 8a and Figure 8b Schematic diagram of a good night message scenario provided by an embodiment of the present application. Figure 8a The application interface 80a and the application interface 80b shown may be application interfaces of the application client in the terminal device at different times. When the interactive object sends a first interactive message (e.g., interactive message 81a), the terminal device may receive the interactive message 81a sent by the interactive object, switch the application interface 80a to the application interface 80b, and display the interactive message 81a and the first avatar area (e.g., avatar area 81b) associated with the interactive message 81a in the application interface 80b. The avatar area 81b may include an object avatar corresponding to the interactive object, and the virtual image corresponding to the interactive object has the image of the object avatar.
[0142] Furthermore, if Figure 8a As shown, the terminal device can display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the avatar area 81b in the application interface 80b is located. For example, the interactive message 81a can be a text message, and the text message can include the keyword "good night", and the first resource animation can be a resource animation generated for the keyword "good night". Among them, the number of first message virtual resources can be one or more, and the one or more first message virtual resources can specifically include message virtual resource 81c. For example, the first resource sub-animation can be the action of the virtual image merging both hands, and the second resource sub-animation can be the action of the first message virtual resource (for example, message virtual resource 81c) moving, visually forming the message virtual resource 81c moving following the action of the virtual image, that is, in the process of the virtual image merging both hands, the message virtual resource 81c (for example, the moon) can move following the process of the virtual image merging both hands, visually forming the effect that the virtual image is about to fall asleep.
[0143] like Figure 8bThe application interface 82a and the application interface 82b shown may be application interfaces of the application client in the terminal device at different times. When the interactive object sends a first interactive message (e.g., interactive message 83a), the terminal device may receive the interactive message 83a sent by the interactive object, switch the application interface 82a to the application interface 82b, and display the interactive message 83a and the first avatar area (e.g., avatar area 83b) associated with the interactive message 83a in the application interface 82b. The avatar area 83b may include an object avatar corresponding to the interactive object, and the virtual image corresponding to the interactive object has the image of the object avatar.
[0144] Furthermore, if Figure 8b As shown, the terminal device can display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the avatar area 83b in the application interface 82b is located. For example, the interactive message 83a can be a text message, which can include the keyword "good night", and the first resource animation can be a resource animation generated for the keyword "good night".
[0145] It should be understood that when the first interactive message and the first avatar area associated with the first interactive message are displayed in the message preview box, the terminal device can respond to the trigger operation on the message preview box and display the interactive area associated with the interactive object in the application interface. Among them, the interactive area includes the original interactive message and the avatar update area associated with the original interactive message, and the object avatar is displayed in the avatar update area. Further, the terminal device can display the first resource animation within the area where the avatar update area is located. Among them, it can be understood that if the first interactive message can be used to trigger the generation of the first resource animation, the terminal device can display the first resource animation within the area where the avatar update area is located; optionally, if the first interactive message cannot be used to trigger the generation of the first resource animation, the terminal device does not need to display the first resource animation within the area where the avatar update area is located.
[0146] For easier understanding, see Figure 9a and Figure 9b , Figure 9a and Figure 9b is a schematic diagram of a scene showing an interactive area provided in an embodiment of the present application. Figure 9a The application interface 90a and the application interface 90b shown in the figure can be the application interfaces of the application client in the terminal device at different times. The application interface 90a can be the above Figure 3bThe application interface 32a in the corresponding embodiment. The application interface 90a may include a message list, and the message list may include one or more message preview boxes, and the one or more message preview boxes may specifically include a message preview box 91a, which is a message preview box for interacting with an interactive object, and the message preview box 91a may display a first interactive message (for example, interactive message 91c) and a first avatar area (for example, avatar area 91b) associated with the interactive message 91c.
[0147] Furthermore, if Figure 9a As shown, the terminal device can respond to the trigger operation on the message preview box 91a, switch the application interface 90a to the application interface 90b, display the interaction area 91d associated with the interaction object in the application interface 90b, and display the original interaction message (for example, interaction message 91e) corresponding to the interaction message 91c and the avatar update area (for example, avatar area 91f) associated with the interaction message 91e in the interaction area 91d. At this time, the interaction message 91e cannot be used to trigger the generation of the first resource animation.
[0148] like Figure 9b The application interface 92a and the application interface 92b shown in the figure can be the application interfaces of the application client in the terminal device at different times. Figure 7b The application interface 72b in the corresponding embodiment may be an application interface of an application client in a terminal device at different times, and the application interface 92a may be an application interface of the application interface 72b at the next time. The application interface 92a may include a message list, and the message list may include one or more message preview boxes, and the one or more message preview boxes may specifically include a message preview box 93a, and the message preview box 93a is a message preview box for interacting with an interactive object, and the message preview box 93a may display a first interactive message (for example, an interactive message 93c) and a first avatar area (for example, an avatar area 93b) associated with the interactive message 93c.
[0149] Furthermore, if Figure 9b As shown, the terminal device can respond to the trigger operation on the message preview box 93a, switch the application interface 92a to the application interface 92b, display the interactive area 93d associated with the interactive object in the application interface 92b, and display the original interactive message (for example, interactive message 93e) corresponding to the interactive message 93c and the avatar update area (for example, avatar area 93f) associated with the interactive message 93e in the interactive area 93d. Further, the terminal device can display the first resource animation within the area where the avatar area 93f is located, and the interactive message 93e can be used to trigger the generation of the first resource animation.
[0150] It should be understood that the sample interaction object can send a sample interaction message through the application client in the terminal device (i.e., the sample terminal device), and at this time, the terminal device can display the sample interaction message sent by the sample interaction object and the sample avatar area associated with the sample interaction message in the application interface. Further, the terminal device can display the sample resource animation formed by the interaction between the sample virtual image corresponding to the sample interaction object and the sample message virtual resource within the area where the sample avatar area is located.
[0151] It is understandable that when the sample interaction message is the same as the first interaction message, the first resource animation may be the same as the sample resource animation, or the first resource animation may be different from the sample resource animation. If the sample virtual image corresponding to the sample interaction object and the virtual image (i.e., the target virtual image) corresponding to the interaction object (i.e., the target interaction object) are the same, and the sample interaction message is the same as the first interaction message, then the first resource animation is the same as the sample resource animation; alternatively, if the sample virtual image corresponding to the sample interaction object and the virtual image (i.e., the target virtual image) corresponding to the interaction object (i.e., the target interaction object) are different, then the first resource animation is different from the sample resource animation.
[0152] For easier understanding, see Fig.10 , Fig.10 Schematic diagram of a scenario for sending interactive messages provided by an embodiment of the present application. Fig.10 The application interface 100a and the application interface 100b shown in the figure can be the application interface of the application client in the terminal device at different times. Figure 7a The application interface 70b in the corresponding embodiment may be an application interface of an application client in the terminal device at different times, and the application interface 100a may be an application interface at the next moment of the application interface 70b. The application interface 100a may include a first interactive message (e.g., interactive message 101a) and a first avatar area (e.g., avatar area 101b).
[0153] Furthermore, if Fig.10 As shown, when the sample interactive object sends a sample interactive message (e.g., interactive message 101c), the terminal device can switch the application interface 100a to the application interface 100b, and display the interactive message 101c and the sample avatar area (e.g., avatar area 101d) associated with the interactive message 101c in the application interface 100b. The avatar area 101d may include the sample object avatar corresponding to the sample interactive object, and the sample virtual image corresponding to the sample interactive object has the image of the sample object avatar.
[0154] Furthermore, if Fig.10As shown, the terminal device can display the sample resource animation formed by the interaction between the sample virtual image corresponding to the sample interactive object and the sample message virtual resource within the area of the avatar area 101d in the application interface 100b. For example, the interactive message 101c can be a text message, which can include the keyword "hello", the sample resource animation can be a resource animation generated for the keyword "hello", and the sample message virtual resource can be the above Figure 7a and Figure 7b The first message virtual resource in the corresponding embodiment and the sample virtual image corresponding to the sample interactive object are the same as those in the above embodiment. Figure 7a and Figure 7b The virtual images corresponding to the interactive objects in the corresponding embodiments are different. At the same time, after receiving the interactive message 101c sent by the terminal device (ie, the sample terminal device), the target terminal device can display the sample resource animation formed by the interaction between the sample virtual image corresponding to the sample interactive object and the sample message virtual resource.
[0155] Among them, the first avatar area may include a regional location point, and the embodiment of the present application does not limit the specific location of the regional location point. For example, the regional location point may be the bottom midpoint of the first avatar area, the midpoint of the first avatar area, the top midpoint of the first avatar area, etc. It should be understood that the terminal device can gradually enlarge and display the virtual image corresponding to the interactive object based on the regional location point in the first avatar area. Among them, the first resource sub-animation may include a process in which the virtual image is gradually enlarged and displayed, and the transparency of the virtual image gradually decreases during the process in which the virtual image is gradually enlarged and displayed, that is, the first resource animation may include a process in which the virtual image is gradually enlarged and displayed, and the transparency of the virtual image gradually decreases during the process in which the virtual image is gradually enlarged and displayed.
[0156] Optionally, further, the terminal device can gradually reduce the size of the virtual image in the first avatar area based on the area position point. The first resource sub-animation includes the process of gradually reducing the size of the virtual image, and the transparency of the virtual image gradually increases during the process of gradually reducing the size of the virtual image. At this time, the first resource sub-animation can simultaneously include the process of gradually enlarging the size of the virtual image and the process of gradually reducing the size of the virtual image, that is, the first resource animation can simultaneously include the process of gradually enlarging the size of the virtual image and the process of gradually reducing the size of the virtual image.
[0157] Optionally, further, the terminal device may gradually enlarge and display the object avatar based on the regional position point in the first avatar area. The first resource sub-animation includes a process of gradually enlarging and displaying the object avatar, and the transparency of the virtual image gradually decreases during the process of gradually enlarging and displaying the object avatar. At this time, the first resource sub-animation may simultaneously include a process of gradually enlarging and displaying the virtual image, a process of gradually reducing and displaying the virtual image, and a process of gradually enlarging and displaying the object avatar, that is, the first resource animation may simultaneously include a process of gradually enlarging and displaying the virtual image, a process of gradually reducing and displaying the virtual image, and a process of gradually enlarging and displaying the object avatar.
[0158] Among them, it can be understood that when the terminal device cancels the display of the object avatar in the first avatar area, the transparency of the object avatar can be directly set to 100%. Optionally, the terminal device can also gradually reduce the display of the object avatar based on the regional position point in the first avatar area. Among them, the first resource animation can include a process in which the object avatar is gradually reduced and displayed, and the transparency of the object avatar gradually increases during the process in which the object avatar is gradually reduced and displayed. At this time, the first resource animation can simultaneously include a process in which the object avatar is gradually reduced and displayed, a process in which the virtual image is gradually enlarged and displayed, a process in which the virtual image is gradually reduced and displayed, and a process in which the object avatar is gradually enlarged and displayed.
[0159] For easier understanding, see Fig.11 , Fig.11 is a schematic diagram of a scene showing resource animation provided by an embodiment of the present application. Fig.11 The display status of the first resource animation at different times is shown. The first resource animation can be understood as video data, which is composed of one or more video frames. The embodiment of the present application does not limit the number of video frames in the first resource animation, and the embodiment of the present application does not limit the display duration of the video frames in the first resource animation (that is, the embodiment of the present application does not limit the display duration of the resource animation). For example, the display duration of the resource animation can be 3s (that is, 3 seconds). For ease of understanding, the embodiment of the present application takes the area position point as the bottom midpoint of the first avatar area, and the number of video frames in the first resource animation as 70 frames as an example for explanation.
[0160] like Fig.11As shown, video frame 110a, video frame 110b, video frame 110c, video frame 110d, video frame 111a, video frame 111b, video frame 111c and video frame 111d can be the 0th frame, 1st frame, 10th frame, 50th frame, 55th frame, 56th frame, 65th frame and 70th frame in the first resource animation, respectively. In the process from the 0th frame (i.e., video frame 110a) to the 10th frame (i.e., video frame 110c), the virtual image can be gradually enlarged, that is, the size of the virtual image can be understood as from 0 to 100, and the transparency of the virtual image can be understood as from 0% to 100%; in the process from the 10th frame (i.e., video frame 110c) to the 55th frame (i.e., video frame 111a), the virtual image can be gradually reduced, that is, the size of the virtual image can be understood as from 100 to 0, and the transparency of the virtual image can be understood as from 100% to 0%; in the process from the 55th frame (i.e., video frame 111a) to the 70th frame (i.e., video frame 111d), the object avatar can be gradually enlarged, that is, the size of the object avatar can be understood as from 0 to 100, and the transparency of the object avatar can be understood as from 0% to 100%. In the process, 0 can represent the minimum, 0% can represent completely transparent, 100 can represent the maximum, and 100% can represent completely opaque.
[0161] Optionally, if the terminal device is in the application interface where the message list is located, the terminal device may also continuously display the first resource animation, and the first resource animation may be used to indicate that the display status of the first interactive message is unread. Further, the terminal device may respond to the triggering operation on the first resource animation, cancel the display of the first resource animation, and then update the display status of the first interactive message from the unread state to the read state.
[0162] It can be seen that when the embodiment of the present application recognizes that the first interactive message can trigger the generation of a resource animation, it obtains the virtual image corresponding to the interactive object and the first message virtual resource associated with the first interactive message, and generates the first resource animation associated with the first interactive message based on the virtual image corresponding to the interactive object and the first message virtual resource. Therefore, when different interactive objects send the first interactive message, the virtual images corresponding to the different interactive objects can be combined with the first message virtual resource to generate resource animations corresponding to the different interactive objects. Since the virtual images corresponding to the different interactive objects are different, the resource animations corresponding to the different interactive objects generated based on the different virtual images are different, thereby realizing a personalized resource animation display method and enriching the display effect of the resource animation associated with the interactive message.
[0163] For further information, see Fig.12 , Fig.12FIG. 3 is a flow chart of a data processing method provided in an embodiment of the present application. The data processing method may include the following steps S1021 to S1023, and steps S1021 to S1023 are a specific embodiment of step S102 in the embodiment corresponding to FIG. 3 .
[0164] Step S1021, displaying the first interaction message and the first avatar area associated with the first interaction message in the application interface;
[0165] For the specific process of displaying the first interactive message and the first avatar area in the application interface, please refer to the above Figure 2 The description of step S101 in the corresponding embodiment will not be repeated here.
[0166] Step S1022, canceling the display of the subject's head portrait in the first head portrait area;
[0167] The specific process of the terminal device canceling the display of the object avatar in the first avatar area can be referred to in the above Figure 2 The description of step S102 in the corresponding embodiment will not be repeated here.
[0168] Step S1023, within the area where the first avatar area is located, display a first resource sub-animation formed by the virtual image corresponding to the interactive object, and display a second resource sub-animation formed by the first message virtual resource that can be used to interact with the virtual image.
[0169] Specifically, the terminal device can display the first resource sub-animation formed by the virtual image corresponding to the interactive object within the area where the first avatar area is located. Further, if the first message virtual resource includes a full-screen message virtual resource and does not include a non-full-screen message virtual resource, the terminal device can display the second resource sub-animation formed by the full-screen message virtual resource within the full-screen area that can be used to interact with the virtual image. Optionally, if the first message virtual resource includes a non-full-screen message virtual resource and does not include a full-screen message virtual resource, the terminal device can display the second resource sub-animation formed by the non-full-screen message virtual resource within the non-full-screen area that can be used to interact with the virtual image. Optionally, if the first message virtual resource includes a full-screen message virtual resource and includes a non-full-screen message virtual resource, the terminal device can display the second resource sub-animation formed by the full-screen message virtual resource and the non-full-screen message virtual resource within the full-screen area that can be used to interact with the virtual image, at which time the full-screen message virtual resource is displayed within the full-screen area, and the non-full-screen message virtual resource is displayed within the non-full-screen area. Among them, the first message virtual resource includes at least one of a full-screen message virtual resource and a non-full-screen message virtual resource; the area range where the first avatar area is located includes a full-screen area range and a non-full-screen area range.
[0170] Among them, displaying the first resource sub-animation and the second resource sub-animation within the area where the first avatar area is located can make the first resource sub-animation and the second resource sub-animation always play around the avatar area of the message sender (for example, the interactive object) and be combined with the object avatar, so that the resource animation does not steal the show and does not affect other operations in the application interface (for example, typing), that is, it achieves the effect of assisting chat without dominating the screen.
[0171] For easier understanding, see Fig.13 , Fig.13 Schematic diagram of a scenario for dividing an application interface provided by an embodiment of the present application. Fig.13 The application interface 130a shown and the above Figure 8a The application interface 80a in the corresponding embodiment can be the application interface of the application client in the terminal device at different times, and the application interface 130a can be the application interface of the application interface 80a at the next moment. The application interface 130a is explained by taking the first message virtual resource including both full-screen message virtual resources and non-full-screen message virtual resources as an example. The application interface 130a can include a first avatar area (for example, avatar area 131c), a full-screen area range 131a, and a non-full-screen area range 131b. Among them, the full-screen area range 131a can be an interactive area in the application interface 130a, and the non-full-screen area 131b can be a partial area in the full-screen area range 131a. The embodiment of the present application does not limit the specific range of the non-full-screen area 131b, and the non-full-screen area 131b and the full-screen area range 131a can be adaptively adjusted according to the size of the terminal device.
[0172] like Fig.13 As shown, there may be a hierarchical relationship between the avatar area 131c, the full-screen area range 131a, and the non-full-screen area range 131b, the full-screen area range 131a may be the first level, the non-full-screen area range 131b may be the second level, the avatar area 131c may be the third level, the first level is higher than the second level, the second level is higher than the third level, the first level is displayed above the second level, and the second level is displayed above the third level. In addition, in order to avoid unclear display caused by overlapping between levels (for example, the full-screen area range 131a is overlaid and displayed on the non-full-screen area range 131b), the avatar area 131c, the full-screen area range 131a, and the non-full-screen area range 131b may have different transparencies, respectively.
[0173] like Fig.13As shown, the terminal device can display the second resource sub-animation that can be used to interact with the virtual image by the full-screen message virtual resource and the non-full-screen message virtual resource in the full-screen area range 131a, that is, the second resource sub-animation formed by the full-screen message virtual resource displayed in the full-screen area range 131a and the non-full-screen message virtual resource displayed in the non-full-screen area range 131b. Figure 8a and Figure 8b The first message virtual resource in the corresponding embodiment (for example, the message virtual resource 81c); the number of full-screen message virtual resources can be one or more, and the one or more full-screen message virtual resources can specifically include the message virtual resource 131d.
[0174] Optionally, the terminal device may divide the virtual image into parts to obtain H virtual divided parts in the virtual image. Wherein, H here may be a positive integer. Further, the terminal device may determine the covering relationship between the H virtual divided parts and the first message virtual resource, and based on the covering relationship between the H virtual divided parts and the first message virtual resource, fuse and display the H virtual divided parts and the first message virtual resource (i.e., display the first resource sub-animation and the second resource sub-animation). For example, the terminal device may divide the virtual object into a first virtual divided part and a second virtual divided part, the first virtual divided part may be the part corresponding to the hand, the second virtual divided part may be the part other than the hand, the first message virtual resource may be a red envelope, the first virtual divided part may be displayed over the first message virtual resource, and the first message virtual resource may be displayed over the second virtual divided part, thereby visually forming a visual effect of the virtual image holding up the red envelope.
[0175] It should be understood that the terminal device can obtain the message type of the first interactive message. If the message type of the first interactive message is a text type (i.e., the first interactive message is a text message), the system keyword (referred to as keyword) is matched with the first interactive message to obtain a matching result (i.e., a text matching result). Among them, the embodiment of the present application does not limit the number of system keywords. For example, the system keyword can be "Happy Birthday". Further, if the matching result (i.e., the text matching result) indicates that the first interactive message includes a system keyword, the terminal device can display the first resource sub-animation formed by the virtual image corresponding to the interactive object within the area where the first avatar area is located based on the system keyword. Among them, the first resource sub-animation generated by different system keywords is different. Further, the terminal device can obtain the first message virtual resource associated with the system keyword. Among them, different system keywords can be used to obtain different first message virtual resources. For example, the system keyword "Happy Birthday" can obtain a first message virtual resource of the "cake" style, and the system keyword "Good Night" can obtain a first message virtual resource of the "moon" style. Furthermore, the terminal device may display, based on the resource movement trajectory of the first message virtual resource, a second resource sub-animation of the first message virtual resource being moved by the virtual image according to the resource movement trajectory within the area where the first avatar area is located. Optionally, if the matching result (i.e., the text matching result) indicates that the first interactive message does not include the system keyword, the terminal device may not need to display the first resource sub-animation and the second resource sub-animation in the application interface.
[0176] The terminal device displays the first resource sub-animation formed by the virtual image corresponding to the interactive object and the second resource sub-animation in which the first message virtual resource is moved by the virtual image according to the resource movement trajectory within the area where the first avatar area is located. For details, please refer to the above Figure 5a-Figure 9b Description of the corresponding embodiment.
[0177] Optionally, the terminal device may obtain the message type of the first interactive message. If the message type of the first interactive message is an expression type, the system expression is matched with the first interactive message to obtain a matching result (i.e., an expression matching result). The embodiment of the present application does not limit the number of system expressions. For example, the system expression may be an expression of "cake" style, an expression of "bomb" style, and the like. Further, if the matching result (i.e., the expression matching result) indicates that the first interactive message includes a system expression, the terminal device may display a first resource sub-animation formed by a virtual image corresponding to the interactive object within the area where the first avatar area is located based on the system expression. The first resource sub-animations generated by different system expressions are different. Further, the terminal device may obtain a first message virtual resource associated with the system expression. Different system expressions may be used to obtain different first message virtual resources. For example, the system expression "cake" may obtain a first message virtual resource of "cake" style, and the system expression "bomb" may obtain a first message virtual resource of "bomb" style. Furthermore, the terminal device may display, based on the resource motion track of the first message virtual resource, a second resource sub-animation of the first message virtual resource being moved by the virtual image according to the resource motion track within the area where the first avatar area is located. Optionally, if the matching result (i.e., the expression matching result) indicates that the first interactive message does not include a system expression, the terminal device may not need to display the first resource sub-animation and the second resource sub-animation in the application interface.
[0178] Optionally, the message type of the first interactive message may also be other types in addition to the above-mentioned text type and expression type. For example, the first interactive message may be a picture type, a video type, an audio type, a mixed type, etc. It is understandable that the mixed type indicates that the first interactive message may include multiple types of data. When the message type of the first interactive message is a mixed type, the terminal device may match the first interactive message with the system keyword and the system expression respectively, thereby determining the displayed first resource sub-animation and second resource sub-animation. For example, the first interactive message with a mixed type may include text type data and expression type data (for example, the first interactive message may be "throw you a bomb [bomb]", and "[bomb]" may represent an expression of the "bomb" style); for another example, the first interactive message with a mixed type may include text type data and picture type data (for example, the first interactive message may be "look at my dance photo [picture]", and "[picture]" may be a picture).
[0179] For easier understanding, see Fig.14 , Fig.14 Schematic diagram of a scenario for receiving an interactive message provided by an embodiment of the present application. Fig.14The application interface 140a and application interface 140b shown may be application interfaces of the application client in the terminal device at different times. The terminal device may display the first interaction message (e.g., interaction message 141a) and the first avatar area (e.g., avatar area 141b) associated with the interaction message 141a in the application interface 140a.
[0180] Furthermore, if Fig.14 As shown, the terminal device can switch the application interface 140a to the application interface 140b, and display the second resource sub-animation (for example, the second resource sub-animation 141d) formed by the full-screen message virtual resource (for example, the message virtual resource 141c) that can be used to interact with the virtual image within the full-screen area of the application interface 140b, and the first resource sub-animation can be the action of the virtual image raising its hand. Among them, the first resource animation can visually show the effect of the virtual image throwing the message virtual resource 141c and the message virtual resource 141c exploding.
[0181] Therefore, the resource animation (e.g., the first resource animation) in the embodiment of the present application is vivid and immersive, and has action orientation, which can reflect the animation trajectory from the sender (e.g., the message sender) to the recipient (e.g., the message receiver). Fig.14 The bomb shown (ie, the message virtual resource 141c) can be thrown from the hand of the virtual image, thereby reflecting the image of the interactive object (ie, the target interactive object) throwing a bomb at the sample interactive object.
[0182] Wherein, the first message virtual resource includes a triggerable virtual resource. Optionally, the terminal device may obtain the message type of the first interactive message. If the message type of the first interactive message is a triggerable type, then based on the first interactive message with a triggerable type, within the area where the first avatar area is located, a first resource sub-animation formed by the virtual image corresponding to the interactive object is displayed. Wherein, the triggerable type may include but is not limited to a red envelope type, a gift type, a transfer type, a voting type, a location type, a voice call type, a video call type, a business card type, and a conference type. The first interactive message may be a red envelope message of a red envelope type, a gift message of a gift type, a transfer message of a transfer type, a voting message of a voting type, a location message of a location type, a voice call message of a voice call type, a video call message of a video call type, a business card message of a business card type, or a conference message of a conference type; the first resource sub-animations generated by different triggerable types are different. Further, the terminal device may obtain a triggerable virtual resource associated with the first interactive message with a triggerable type. For example, the triggerable virtual resource may be a red envelope associated with a red envelope message, a gift associated with a gift message, a business card associated with a business card message, and the like. Furthermore, based on the resource movement trajectory of the triggerable virtual resource, the terminal device may display a second resource sub-animation in which the triggerable virtual resource is moved by the virtual image according to the resource movement trajectory within the area where the first avatar area is located.
[0183] Among them, the triggerable type of the first interactive message can also be called a non-text type. When the present application detects an interactive message of a non-text type, it will trigger the display of the corresponding first resource animation. In this process, there is no need to detect system expressions or system keywords. It only needs to identify the business type (i.e., message type) to which the non-text type first interactive message belongs to display the corresponding animation effect. In addition, since the first resource animation of the present application is combined with the virtual image of the interactive object, even if different interactive objects initiate interactive messages of the same business type, different virtual images will produce resource animations with different effects.
[0184] The terminal device displays the first resource sub-animation formed by the virtual image corresponding to the interactive object and the second resource sub-animation that can trigger the virtual resource to be moved by the virtual image according to the resource movement trajectory within the area where the first avatar area is located. For details, please refer to the above Figure 3a-Figure 4b Description of the corresponding embodiment.
[0185] Among them, the first resource animation is composed of the third resource sub-animation and the fourth resource sub-animation, and the play timestamp of the third resource sub-animation is earlier than the play timestamp of the fourth resource sub-animation. It should be understood that when the third resource sub-animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource is displayed within the area where the first avatar area is located, the terminal device can respond to the sliding operation on the application interface and slide the first avatar area in the application interface. Further, the terminal device can display the fourth resource sub-animation formed by the interaction between the virtual image and the first message virtual resource within the area where the sliding first avatar area is located. In other words, the terminal device can display the first resource animation formed by the interaction between the virtual image and the first message virtual resource within the area where the sliding first avatar area is located.
[0186] For easier understanding, see Fig.15 , Fig.15 is a schematic diagram of a scene of a sliding application interface provided by an embodiment of the present application. Fig.15 The application interface 150a and the application interface 150b shown can be the application interfaces of the application client in the terminal device at different times. The terminal device can display the interactive message 151a and the avatar area 151b associated with the interactive message 151a in the application interface 150a. At the same time, the terminal device can display the interactive message 151c and the avatar area 151d associated with the interactive message 151c in the application interface 150a. Among them, the interactive message 151a and the interactive message 151c can both trigger the generation of resource animations. The resource animations triggered by the interactive message 151a and the interactive message 151c can be displayed simultaneously in the application interface 150a and the application interface 150b. Here, the interactive message 151a is the first interactive message, and the resource animation triggered by the interactive message 151a is the first resource animation.
[0187] Furthermore, if Fig.15As shown, when the third resource sub-animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource is displayed within the area where the avatar area 151b of the application interface 150a is located, the terminal device can respond to the sliding operation on the application interface 150a, switch the application interface 150a to the application interface 150b, slide the avatar area 151b in the application interface 150b, and then display the fourth resource sub-animation formed by the interaction between the virtual image and the first message virtual resource within the area where the sliding avatar area 151b is located. Among them, the third resource sub-animation and the fourth resource sub-animation can belong to different playback progress of the first resource animation, that is, when the first interactive message is slid, the first resource animation can scroll up and down with the first interactive message, and the animation playback area of the first resource animation is always centered on the first avatar area, so that the animation playback area of the first resource animation can be adaptively adjusted.
[0188] It should be understood that the terminal device can obtain the object state of the interactive object. If the object state of the interactive object is an input state, the second resource animation formed by the interaction between the virtual image and the second message virtual resource is displayed within the area where the first avatar area is located. The second message virtual resource is used to indicate that the object state of the interactive object is an input state, the first avatar area can be the avatar area corresponding to the first interactive message, the first interactive message can be used to trigger the generation of the first resource animation, and the first interactive message may not be used to trigger the generation of the first resource animation; the object state of the interactive object can be an input state or a non-input state.
[0189] For easier understanding, see Fig.16a and Fig.16b , Fig.16a and Fig.16b is a schematic diagram of a scene showing an input state provided by an embodiment of the present application. Fig.16a The application interface 160a and the application interface 160b shown in the figure can be the application interfaces of the application client in the terminal device at different times. The application interface 160a can be the above Figure 3a The corresponding application interface 30a in the embodiment.
[0190] like Fig.16aAs shown, when the object state of the interactive object is the input state, the terminal device can switch the application interface 160a to the application interface 160b, and display the second resource animation formed by the interaction between the virtual image and the second message virtual resource within the area where the first avatar area (for example, the avatar area 161b) is located. Among them, the first interactive message associated with the avatar area 161b can be the interactive message 161a, and the interactive message 161a cannot be used to trigger the generation of the first resource animation. Among them, the number of the second message virtual resources can be one or more, and the embodiment of the present application does not limit the number of the second message virtual resources.
[0191] like Fig.16b The application interface 162a and the application interface 162b shown in the figure can be the application interfaces of the application client in the terminal device at different times. The application interface 162a can be the above Figure 3b The corresponding application interface 32a in the embodiment.
[0192] like Fig.16b As shown, when the object state of the interactive object is the input state, the terminal device can switch the application interface 162a to the application interface 162b, and display the second resource animation formed by the interaction between the virtual image and the second message virtual resource within the area where the first avatar area (for example, the avatar area 163b) is located. Among them, the first interactive message associated with the avatar area 163b can be the interactive message 163a, and the interactive message 163a can be used to trigger the generation of the first resource animation. Among them, the number of the second message virtual resources can be one or more, and the embodiment of the present application does not limit the number of the second message virtual resources.
[0193] It should be understood that the terminal device can respond to the trigger operation for the first message virtual resource in the first resource animation and display the resource collection area in the application interface. Further, the terminal device can display resource description information and resource collection controls in the resource collection area. Further, the terminal device can respond to the trigger operation for the resource collection control and collect the animation virtual resource indicated by the resource description information. Among them, the number of first message virtual resources can be one or more, and the embodiment of the present application does not limit the number of first message virtual resources. Different first message virtual resources can be used to collect different animation virtual resources.
[0194] For easier understanding, see Fig.17 , Fig.17 Schematic diagram of a scenario for collecting animation virtual resources provided by an embodiment of the present application. Fig.17 The application interface 170a and the application interface 170b shown in the figure can be the application interfaces of the application client in the terminal device at different times. The application interface 170a can be the above Figure 3bThe application interface 32b in the corresponding embodiment. The application interface 170a may include a first resource animation, and the first resource animation may include a message virtual resource 171a.
[0195] like Fig.17 As shown, the terminal device can respond to the trigger operation for the first message virtual resource (e.g., message virtual resource 171a) in the first resource animation, switch the application interface 170a to the application interface 170b, and display the resource collection area 171b in the application interface 170b. Further, the terminal device can display resource description information 171c and resource collection control 171d in the resource collection area 171b, and then receive the animation virtual resource indicated by the resource description information 171c in response to the trigger operation for the resource collection control 171d. Among them, the animation virtual resource indicated by the resource description information 171c can be 50 game coins.
[0196] Among them, it can be understood that the specific process of the terminal device responding to the trigger operation of other first message virtual resources except the message virtual resource 171a in the first message virtual resource can be referred to the description of the above response to the trigger operation of the message virtual resource 171a, which will not be repeated here.
[0197] It can be seen that the terminal device in the embodiment of the present application can display the first interactive message sent by the interactive object and the first avatar area associated with the first interactive message in the application interface, wherein the object avatar corresponding to the interactive object can be displayed in the first avatar area. Further, the terminal device can cancel the display of the object avatar in the first avatar area, and then display the first resource sub-animation formed by the virtual image corresponding to the interactive object in the area where the first avatar area is located, and display the second resource sub-animation formed by the virtual resource of the first message that can be used to interact with the virtual image. Since different interactive objects can correspond to different virtual images, different first resource sub-animations and different second resource sub-animations can be generated when different interactive objects send the first interactive message, thereby realizing a personalized resource animation display method for the same interactive message sent by different interactive objects, and generating a real and vivid interactive feeling that oneself or a friend seems to appear on the screen as if incarnated, and makes corresponding actions, thereby enriching the display effect of the resource animation associated with the interactive message. In addition, the embodiment of the present application can also shorten the distance of the chat, reduce the dullness of the chat, and improve the fun / interactivity / atmosphere of the chat.
[0198] For further information, see Fig.18 , Fig.18This is a flow chart of a data processing method provided by an embodiment of the present application. The method can be executed by a server, or by a terminal device, or by both a server and a terminal device. The server can be the above-mentioned Figure 1 The server 2000 in the corresponding embodiment, the terminal device can be the above Figure 1 The sample terminal device or target terminal device of the corresponding embodiment. For ease of understanding, the embodiment of the present application takes the method executed by the terminal device as an example for explanation. Among them, the data processing method may include the following steps S201-S205:
[0199] Step S201, displaying a first interaction message and a first avatar area associated with the first interaction message in an application interface;
[0200] For the specific process of displaying the first interactive message and the first avatar area in the application interface, please refer to the above Figure 2 The description of step S101 in the corresponding embodiment will not be repeated here.
[0201] Step S202, displaying a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the first avatar area is located;
[0202] Specifically, the terminal device can obtain from the server, according to the object identifier of the virtual image, the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource. The first resource animation is generated by the server based on the object image of the virtual image and the first message virtual resource. Further, the terminal device can display the first resource animation within the area where the first avatar area is located.
[0203] Among them, the terminal device can obtain the first resource animation from the server before receiving the first interaction message; optionally, the terminal device can also obtain the first resource animation from the server after receiving the first interaction message; optionally, the terminal device can also obtain the first resource animation and the first interaction message from the server at the same time as receiving the first interaction message.
[0204] Among them, when the server receives the animation acquisition request sent by the terminal device based on the object identifier, it can generate the first resource animation and then return the first resource animation to the terminal device. Optionally, the server can also generate the first resource animation corresponding to the popular object image in advance, so that when the terminal device sends the animation acquisition request to the server based on the object identifier, the server can directly obtain the first resource animation generated in advance, thereby reducing the delay of the terminal device in obtaining the resource animation.
[0205] It is understandable that the terminal device in the embodiment of the present application can use a lightweight engine to directly generate animation assets locally (i.e., real-time rendering). However, real-time rendering will occupy too high memory, resulting in heating and fast power consumption of the terminal device during the chat process. Therefore, the present application pre-records the skeleton animation in the cloud, which can reduce the performance consumption and delay of the Easter egg playback. Specifically, the server generates the first resource animation based on the UE (Unreal Engine) engine (e.g., UE4, i.e., Unreal Engine 4), that is, the server can use the UE engine in the cloud in advance to perform personalized generation (i.e., cloud rendering) of the animation assets (i.e., resource animation) to obtain the various Easter egg action resources (i.e., resource animation, resource animation including the first resource animation) corresponding to the object image, and store them in the cloud. When the corresponding keywords or expressions are triggered, the animation assets can be downloaded from the cloud through the object identifier, thereby reducing the Easter egg playback performance consumption and delay. Among them, Unreal Engine 4 is an Unreal Engine developed by the game company EPIC. Unreal Engine is a complete game development platform for the next generation of game consoles, providing a large number of core technologies, data generation tools and basic support required by game developers.
[0206] The first resource animation may also be referred to as animation, avatar Easter egg, chat Easter egg, Easter egg action, Easter egg action resource, Easter egg resource, super show message Easter egg, skeletal action, animation asset or skeletal animation. Skeletal animation may include a model having a skeleton structure composed of interconnected "bones", and animation (i.e. skeletal animation) may be generated for the model by changing the orientation and position of the bones.
[0207] For easier understanding, see Fig.19 , Fig.19 This is a schematic diagram of a data processing flow provided by an embodiment of the present application. Fig.19 The shown steps S11 (i.e., animation playback), S12 (i.e., local call), and S13 (i.e., cloud rendering) may be three steps for data processing in an embodiment of the present application, wherein step S11 may include steps S111-S116, step S12 may include steps S121-S123, and step S13 may include steps S131-S133.
[0208] Among them, in step S13, step S131 can detect whether the user (for example, the interactive object) has a face-pinching or clothing-changing behavior, that is, whether the object image is updated. If there is a face-pinching or clothing-changing behavior (that is, the object image is updated), the user's corresponding animation assets need to be re-prepared (that is, the resource animation needs to be updated). If there is no face-pinching or clothing-changing behavior (that is, the object image is not updated), there is no need to re-prepare the corresponding animation assets (that is, there is no need to update the resource animation). Further, in order to save cloud storage as much as possible, step S132 can check whether other users have used the same face-pinching values and clothing combinations (that is, check whether the dress has been recorded by others). If other users have used the same face-pinching values and clothing combinations, the user's animation assets are directly copied. If no other users have used the same face-pinching values and clothing combinations, step S133 can generate the Easter egg animation assets under the dress in sequence (that is, batch record Easter egg actions).
[0209] Among them, in step S12, step S121 can locally check whether the first interactive message hits the set specific message type (i.e., special message type) when the user (e.g., sample interactive object) receives an unread message or in real-time chat. If the first interactive message hits the set specific message type, step S123 can download the corresponding animation asset from the cloud (i.e., call action). If the first interactive message does not hit the set specific message type, step S122 can locally check whether it hits the set keyword library and expression library. Further, if the first interactive message hits the set keyword library or expression library, step S123 can download the corresponding animation asset from the cloud (i.e., call action). If the first interactive message does not hit the set keyword library or expression library, it ends and the resource animation will not be displayed at this time. Among them, the keyword library can be used to store system keywords, and the expression library can be used to store system expressions.
[0210] Among them, in step S11, step S111 can download the animation from the server, wherein step S112 can match the special effect resources (i.e., message virtual resources) superimposed on the animation, the message virtual resources can belong to the resource animation (i.e., the terminal device can obtain the first resource animation including the first message virtual resource), and the message virtual resource may not belong to the resource animation (i.e., the terminal device can obtain the first resource animation that does not include the first message virtual resource, and then superimpose the first message virtual resource on the first resource animation to obtain the updated first resource animation). Further, the terminal device can sequentially execute steps S113-S116, wherein step S113 can make the original avatar fade away (i.e., cancel the display of the object avatar in the first avatar area), step S114 can make the easter egg action gradually appear (i.e., gradually enlarge and display the virtual image corresponding to the interactive object), step S115 can make the easter egg action fade away (i.e., gradually reduce and display the virtual image corresponding to the interactive object), and step S116 can restore the original avatar after playing the resource animation (i.e., gradually enlarge and display the object avatar).
[0211] In order to match the chat framework of the application client and seamlessly connect with the object avatar, the embodiment of the present application designs a separate animation asset specification, thereby controlling the playback delay of the Easter egg by controlling the size of the Easter egg action resource. For example, the resource animation in the embodiment of the present application can be played using the pag (Portable Animated Graphics) animation format, which is a complete animation workflow solution.
[0212] Step S203, displaying the second interaction message and a second avatar area associated with the second interaction message in the application interface;
[0213] The second interactive message is sent by the interactive object; the object avatar is displayed in the second avatar area, and the second avatar area can be the first avatar area or an avatar area other than the first avatar area; when the application interface includes an interactive area, the first avatar area and the second avatar area are different, and when the application interface includes a message list, the first avatar area and the second avatar area are the same. The specific process of displaying the second interactive message and the second avatar area in the application interface can refer to the above description of displaying the first interactive message and the first avatar area in the application interface, which will not be repeated here.
[0214] Step S204, displaying a second resource animation formed by the interaction between the virtual image and the second message virtual resource within the area where the second avatar area is located;
[0215] The second message virtual resource is determined based on the message type of the second interactive message and the message content contained in the second interactive message. The specific process of displaying the second resource animation within the area where the second avatar area is located can refer to the description of displaying the first resource animation within the area where the first avatar area is located, which will not be repeated here.
[0216] It is understandable that when the second interactive message is the same as the first interactive message, the first resource animation is the same as the second resource animation, and at this time the first message virtual resource and the second message virtual resource are the same; optionally, when the second interactive message is different from the first interactive message, the first resource animation and the second resource animation may be the same, or the first resource animation and the second resource animation may be different. For example, when the second interactive message is "Good night" and the first interactive message is "Good night", the first resource animation and the second resource animation are the same, and at this time the first message virtual resource and the second message virtual resource are the same. For another example, when the second interactive message is "Good night" and the first interactive message is "Happy Birthday", the first resource animation and the second resource animation are different, and at this time the first message virtual resource and the second message virtual resource are different.
[0217] Step S205: If the first interactive message and the second interactive message meet the message superposition condition, a third resource animation formed by the third message virtual resource is displayed in the application interface.
[0218] The third message virtual resource is associated with the first interactive message and the second interactive message. The number of the third message virtual resources may be one or more, and the embodiment of the present application does not limit the number of the third message virtual resources.
[0219] For example, the third message virtual resource can be generated by superimposing the first message virtual resource and the second message virtual resource, and the third resource animation can be generated by superimposing the virtual image, the first message virtual resource and the second message virtual resource. For another example, the third message virtual resource can represent other message virtual resources (e.g., love) in addition to the first message virtual resource and the second message virtual resource, and the third resource animation can be dynamically represented by other message virtual resources (e.g., love).
[0220] It should be understood that the terminal device can obtain the first message sending timestamp of the first interactive message and the second message sending timestamp of the second interactive message, and determine the time interval between the first message sending timestamp and the second message sending timestamp. Furthermore, if the time interval is less than or equal to the duration threshold, the terminal device can determine the relationship between the first interactive message and the second interactive message and the message superposition condition based on the semantic similarity between the first interactive message and the second interactive message. Optionally, if the time interval is greater than the duration threshold, the terminal device can determine that the first interactive message and the second interactive message do not meet the message superposition condition. Among them, the embodiment of the present application does not limit the specific value of the duration threshold. For example, the duration threshold can be equal to 0.85 seconds.
[0221] Among them, according to the semantic similarity between the first interactive message and the second interactive message, the specific process of determining the relationship between the first interactive message and the second interactive message and the message superposition condition can be described as follows: the terminal device can input the first interactive message and the second interactive message into the semantic analysis model respectively, extract features of the first interactive message and the second interactive message respectively through the semantic analysis model, and output the first message feature corresponding to the first interactive message and the second message feature corresponding to the second interactive message. Further, the terminal device can determine the feature similarity between the first message feature and the second message feature, and determine the feature similarity as the semantic similarity between the first interactive message and the second interactive message. Further, if the semantic similarity is greater than or equal to the similarity threshold, the terminal device can determine that the first interactive message and the second interactive message meet the message superposition condition. Optionally, if the semantic similarity is less than the similarity threshold, the terminal device can determine that the first interactive message and the second interactive message do not meet the message superposition condition.
[0222] It can be understood that the semantic analysis model is generated by iterative training of the initial semantic analysis model. The embodiment of the present application does not limit the model type of the semantic analysis model. For example, the semantic analysis model can be a bidirectional encoder representation from transformer (Bidirectional Encoder Representations from Transformers, BERT) model, a robustly optimized BERT pre-training method (A Robustly Optimized BERT Pre-training Approach, referred to as RoBERTa), etc.
[0223] It can be seen that the embodiment of the present application can display the first interactive message and the first avatar area associated with the first interactive message in the application interface, and display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the first avatar area is located; similarly, the second interactive message is displayed in the application interface. The second avatar area associated with the second interactive message is displayed, and the second resource animation formed by the interaction between the virtual image corresponding to the interactive object and the second message virtual resource within the area where the second avatar area is located. Further, if the first interactive message and the second interactive message meet the message superposition condition, the third resource animation formed by the third message virtual resource is displayed in the application interface. Since different first resource animations and second resource animations can be generated for different interactive objects (i.e., different faces for different people), the embodiment of the present application can realize a personalized resource animation display method, and the display effect of the resource animation associated with the interactive message can be enriched based on the first resource animation, the second resource animation, and the third resource animation.
[0224] For further information, see Fig. 20 , Fig. 20 1 is a structural diagram of a data processing device provided in an embodiment of the present application. The data processing device 1 may include: a first display module 11, a second display module 12; further, the data processing device 1 may also include: a third display module 13, a resource collection module 14, a fourth display module 15, and a condition judgment module 16;
[0225] The first display module 11 is used to display the first interactive message and the first avatar area associated with the first interactive message in the application interface; the first interactive message is sent by the interactive object; the object avatar corresponding to the interactive object is displayed in the first avatar area;
[0226] The second display module 12 is used to display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the first avatar area is located; the virtual image has the image of the object avatar; the first message virtual resource is determined based on the message type of the first interactive message and the message content contained in the first interactive message.
[0227] Wherein, the first resource animation is composed of the first resource sub-animation and the second resource sub-animation;
[0228] The second display module 12 includes: a cancel display unit 121, an animation display unit 122, and a sliding response unit 123;
[0229] A display cancellation unit 121, used for canceling the display of the subject portrait in the first portrait area;
[0230] The animation display unit 122 is used to display a first resource sub-animation formed by the virtual image corresponding to the interactive object within the area where the first avatar area is located, and to display a second resource sub-animation formed by the first message virtual resource that can be used to interact with the virtual image.
[0231] Wherein, the first head portrait area includes a regional location point;
[0232] The animation display unit 122 is specifically used to gradually enlarge and display the virtual image corresponding to the interactive object in the first avatar area based on the area position point; the first resource sub-animation includes a process of gradually enlarging and displaying the virtual image, and the transparency of the virtual image gradually decreases during the process of gradually enlarging and displaying the virtual image.
[0233] The first message virtual resource includes at least one of a full-screen message virtual resource and a non-full-screen message virtual resource; the area in which the first avatar area is located includes a full-screen area and a non-full-screen area;
[0234] Animation display unit 122, specifically used to display a first resource sub-animation formed by a virtual image corresponding to an interactive object within a region where the first avatar region is located;
[0235] The animation display unit 122 is specifically configured to display a second resource sub-animation formed by the full-screen message virtual resource and used for interacting with the virtual image within the full-screen area if the first message virtual resource includes the full-screen message virtual resource and does not include the non-full-screen message virtual resource;
[0236] The animation display unit 122 is specifically configured to display a second resource sub-animation formed by the non-full-screen message virtual resource and used for interacting with the virtual image within the non-full-screen area if the first message virtual resource includes a non-full-screen message virtual resource but does not include a full-screen message virtual resource;
[0237] The animation display unit 122 is specifically used to display a second resource sub-animation that can be used to interact with the virtual image, which is formed by the full-screen message virtual resource and the non-full-screen message virtual resource, within the full-screen area if the first message virtual resource includes a full-screen message virtual resource and a non-full-screen message virtual resource.
[0238] The animation display unit 122 is specifically used to obtain the message type of the first interactive message, and if the message type of the first interactive message is a text type, match the system keyword with the first interactive message to obtain a matching result;
[0239] The animation display unit 122 is specifically configured to display a first resource sub-animation formed by a virtual image corresponding to the interactive object within a region where the first avatar region is located based on the system keyword if the matching result indicates that the first interactive message includes the system keyword;
[0240] The animation display unit 122 is specifically used to obtain a first message virtual resource associated with a system keyword;
[0241] The animation display unit 122 is specifically used to display a second resource sub-animation of the first message virtual resource being moved by the virtual image according to the resource movement trajectory within the area where the first avatar area is located based on the resource movement trajectory of the first message virtual resource.
[0242] Wherein, the first message virtual resource includes a triggerable virtual resource;
[0243] The animation display unit 122 is specifically configured to obtain a message type of the first interaction message, and if the message type of the first interaction message is a triggerable type, then based on the first interaction message of the triggerable type, display a first resource sub-animation formed by a virtual image corresponding to the interaction object within a region where the first avatar region is located;
[0244] The animation display unit 122 is specifically configured to obtain a triggerable virtual resource associated with a first interactive message of a triggerable type;
[0245] The animation display unit 122 is specifically configured to display, based on the resource motion trajectory of the triggerable virtual resource, a second resource sub-animation in which the triggerable virtual resource is moved by the virtual image according to the resource motion trajectory within the area where the first avatar area is located.
[0246] The first resource animation is composed of the third resource sub-animation and the fourth resource sub-animation; the play timestamp of the third resource sub-animation is earlier than the play timestamp of the fourth resource sub-animation;
[0247] The sliding response unit 123 is used to respond to a sliding operation on the application interface and slide the first avatar area in the application interface when a third resource sub-animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource is displayed within the area where the first avatar area is located;
[0248] The sliding response unit 123 is used to display a fourth resource sub-animation formed by the interaction between the virtual image and the first message virtual resource within the area where the sliding first avatar area is located.
[0249] Among them, the specific implementation of the cancellation display unit 121, the animation display unit 122 and the sliding response unit 123 can be referred to above. Figure 2 In the corresponding embodiment, step S102 and Fig.12 The description of step S1021 to step S1023 in the corresponding embodiment will not be repeated here.
[0250] The second display module 12 is specifically used to obtain, from the server, a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource according to the object identifier of the virtual image; the first resource animation is generated by the server based on the object image of the virtual image and the first message virtual resource;
[0251] The second display module 12 is specifically configured to display the first resource animation within the region where the first avatar region is located.
[0252] The application interface includes a message list; the first avatar area is displayed in a message preview box associated with the interactive object in the message list;
[0253] The second display module 12 is specifically used to display a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the first avatar area of the message preview frame is located;
[0254] The second display module 12 is further specifically used to respond to the trigger operation on the message preview box and display the interactive area associated with the interactive object in the application interface; the interactive area includes the original interactive message and the avatar update area associated with the original interactive message;
[0255] The second display module 12 is further specifically configured to display the first resource animation within the region where the avatar update region is located.
[0256] Optionally, the third display module 13 is used to obtain the object state of the interactive object. If the object state of the interactive object is an input state, a second resource animation formed by the interaction between the virtual image and the second message virtual resource is displayed within the area where the first avatar area is located; the second message virtual resource is used to indicate that the object state of the interactive object is an input state.
[0257] Optionally, a resource collection module 14 is used to respond to a triggering operation on the first message virtual resource in the first resource animation and display a resource collection area in the application interface;
[0258] Resource collection module 14, used to display resource description information and resource collection controls in the resource collection area;
[0259] The resource collection module 14 is used to respond to the trigger operation on the resource collection control and collect the animation virtual resource indicated by the resource description information.
[0260] Optionally, a fourth display module 15 is used to display the second interactive message and a second avatar area associated with the second interactive message in the application interface; the second interactive message is sent by the interactive object; and the object avatar is displayed in the second avatar area;
[0261] The fourth display module 15 is used to display the second resource animation formed by the interaction between the virtual image and the second message virtual resource within the area where the second avatar area is located; the second message virtual resource is determined based on the message type of the second interactive message and the message content contained in the second interactive message;
[0262] The fourth display module 15 is used to display a third resource animation formed by a third message virtual resource in the application interface if the first interactive message and the second interactive message meet the message superposition condition; the third message virtual resource is associated with the first interactive message and the second interactive message.
[0263] Optionally, a condition judgment module 16 is used to obtain a first message sending timestamp of the first interaction message and a second message sending timestamp of the second interaction message, and determine a time interval between the first message sending timestamp and the second message sending timestamp;
[0264] A condition judgment module 16, configured to determine, if the time interval is less than or equal to a duration threshold, a relationship between the first interaction message and the second interaction message and a message superposition condition according to a semantic similarity between the first interaction message and the second interaction message;
[0265] The condition judgment module 16 is configured to determine that the first interaction message and the second interaction message do not satisfy a message superposition condition if the time interval is greater than a duration threshold.
[0266] The condition judgment module 16 is specifically used to input the first interaction message and the second interaction message into the semantic analysis model respectively, extract features of the first interaction message and the second interaction message respectively through the semantic analysis model, and output a first message feature corresponding to the first interaction message and a second message feature corresponding to the second interaction message;
[0267] The condition judgment module 16 is specifically used to determine the feature similarity between the first message feature and the second message feature, and determine the feature similarity as the semantic similarity between the first interactive message and the second interactive message;
[0268] The condition judgment module 16 is specifically configured to determine that the first interaction message and the second interaction message meet the message superposition condition if the semantic similarity is greater than or equal to a similarity threshold;
[0269] The condition judgment module 16 is specifically configured to determine that the first interaction message and the second interaction message do not satisfy the message superposition condition if the semantic similarity is less than a similarity threshold.
[0270] The first resource animation is used to indicate that the display status of the first interactive message is unread;
[0271] The data processing device 1 is further specifically configured to respond to a trigger operation on the first resource animation and cancel the display of the first resource animation;
[0272] The data processing device 1 is further specifically configured to update the display status of the first interactive message from an unread status to a read status.
[0273] The specific implementation of the first display module 11, the second display module 12, the third display module 13 and the resource collection module 14 can be found in the above Figure 2 In the corresponding embodiment, steps S101-S102, and Fig.12 The description of steps S1021 to S1023 in the corresponding embodiment will not be repeated here. Fig.18 The description of steps S201 to S205 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.
[0274] For further information, see Fig.21 , Fig.21 Schematic diagram of a computer device provided in an embodiment of the present application, the computer device may be a terminal device or a server. Fig.21 As shown, the computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, in some embodiments, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. Optionally, the memory 1005 may also be at least one storage device located away from the aforementioned processor 1001. As Fig.21 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.
[0275] In such Fig.21 In the computer device 1000 shown, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:
[0276] Displaying a first interactive message and a first avatar area associated with the first interactive message in an application interface; the first interactive message is sent by an interactive object;
[0277] Within the area where the first avatar area is located, a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource is displayed; the first message virtual resource is determined based on the message type of the first interactive message and the message content contained in the first interactive message.
[0278] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the above Figure 2 , Fig.12 or Fig.18 The description of the data processing method in the corresponding embodiment can also be performed as described above. Fig. 20 The description of the data processing device 1 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.
[0279] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the data processing device 1 mentioned above. When the processor executes the computer program, it can execute the above-mentioned Figure 2 , Fig.12 or Fig.18 The description of the data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0280] In addition, it should be noted that: the embodiment of the present application also provides a computer program product, which may include a computer program, and the computer program may be stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor may execute the computer program, so that the computer device performs the above Figure 2 , Fig.12 or Fig.18The description of the data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer program product embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0281] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0282] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A data processing method, characterized in that: include: Displaying a first interactive message and a first avatar area associated with the first interactive message in an application interface; The first interaction message is sent by the interaction object; Within the area where the first avatar area is located, a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource is displayed; the first message virtual resource is determined based on the message type of the first interactive message and the message content contained in the first interactive message.
2. The method according to claim 1, characterized in that The application interface includes a message list; the first avatar area is displayed in a message preview box associated with the interactive object in the message list; The step of displaying, within the area where the first avatar area is located, a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource comprises: Displaying a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area of the message preview frame where the first avatar area is located; The method further comprises: In response to a trigger operation on the message preview box, an interaction area associated with the interaction object is displayed in the application interface; the interaction area includes the original interaction message and an avatar update area associated with the original interaction message; The first resource animation is displayed within the area where the avatar update area is located.
3. The method according to claim 1, characterized in that The first resource animation is used to indicate that the display status of the first interactive message is an unread status; The method further comprises: In response to the triggering operation on the first resource animation, canceling the display of the first resource animation; The display status of the first interaction message is updated from the unread status to the read status.
4. The method according to claim 1, characterized in that: The first resource animation is composed of a first resource sub-animation and a second resource sub-animation; The step of displaying, within the area where the first avatar area is located, a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource comprises: canceling display of the subject's avatar in the first avatar area; Within the area where the first avatar area is located, the first resource sub-animation formed by the virtual image corresponding to the interactive object is displayed, and the second resource sub-animation formed by the first message virtual resource and can be used to interact with the virtual image is displayed.
5. The method according to claim 4, characterized in that The first head portrait area includes an area location point; The step of displaying the first resource sub-animation formed by the virtual image corresponding to the interactive object within the area where the first avatar area is located includes: In the first avatar area, the virtual image corresponding to the interactive object is gradually enlarged and displayed based on the area position point; the first resource sub-animation includes a process of gradually enlarging and displaying the virtual image, and the transparency of the virtual image gradually decreases during the process of gradually enlarging and displaying the virtual image.
6. The method according to claim 4, characterized in that The first message virtual resource includes at least one of a full-screen message virtual resource and a non-full-screen message virtual resource; the area in which the first avatar area is located includes a full-screen area and a non-full-screen area; The method of displaying the first resource sub-animation formed by the virtual image corresponding to the interactive object within the area where the first avatar area is located, and displaying the second resource sub-animation formed by the first message virtual resource and usable for interacting with the virtual image, comprises: Displaying the first resource sub-animation formed by the virtual image corresponding to the interactive object within the area where the first avatar area is located; If the first message virtual resource includes a full-screen message virtual resource and does not include the non-full-screen message virtual resource, then displaying the second resource sub-animation formed by the full-screen message virtual resource and capable of interacting with the virtual image within the full-screen area; If the first message virtual resource includes a non-full-screen message virtual resource and does not include the full-screen message virtual resource, then displaying the second resource sub-animation formed by the non-full-screen message virtual resource and capable of interacting with the virtual image within the non-full-screen area; If the first message virtual resource includes a full-screen message virtual resource and the non-full-screen message virtual resource, the second resource sub-animation formed by the full-screen message virtual resource and the non-full-screen message virtual resource and used for interacting with the virtual image is displayed within the full-screen area.
7. The method according to claim 1, characterized in that The first resource animation is composed of a third resource sub-animation and a fourth resource sub-animation; the play timestamp of the third resource sub-animation is earlier than the play timestamp of the fourth resource sub-animation; The step of displaying, within the area where the first avatar area is located, a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource comprises: When the third resource sub-animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource is displayed within the area where the first avatar area is located, in response to a sliding operation on the application interface, the first avatar area is slid in the application interface; The fourth resource sub-animation formed by the interaction between the virtual image and the first message virtual resource is displayed within the area where the first avatar area is located during sliding.
8. The method according to claim 1, characterized in that The method further comprises: Obtain the object state of the interactive object. If the object state of the interactive object is an input state, display a second resource animation formed by the interaction between the virtual image and the second message virtual resource within the area where the first avatar area is located; the second message virtual resource is used to indicate that the object state of the interactive object is the input state.
9. The method according to claim 1, characterized in that: The method further comprises: In response to a triggering operation on the first message virtual resource in the first resource animation, displaying a resource collection area in the application interface; Display resource description information and resource collection controls in the resource collection area; In response to a triggering operation on the resource collection control, the animation virtual resource indicated by the resource description information is collected.
10. The method according to claim 4, characterized in that The method of displaying the first resource sub-animation formed by the virtual image corresponding to the interactive object within the area where the first avatar area is located, and displaying the second resource sub-animation formed by the first message virtual resource and usable for interacting with the virtual image, comprises: acquiring a message type of the first interaction message, and if the message type of the first interaction message is a text type, matching a system keyword with the first interaction message to obtain a matching result; If the matching result indicates that the first interaction message includes the system keyword, then based on the system keyword, displaying the first resource sub-animation formed by the virtual image corresponding to the interaction object within the area where the first avatar area is located; Acquire the first message virtual resource associated with the system keyword; Based on the resource movement track of the first message virtual resource, the second resource sub-animation of the first message virtual resource being moved by the virtual image according to the resource movement track is displayed within the area where the first avatar area is located.
11. The method according to claim 4, characterized in that The first message virtual resource includes a triggerable virtual resource; The method of displaying the first resource sub-animation formed by the virtual image corresponding to the interactive object within the area where the first avatar area is located, and displaying the second resource sub-animation formed by the first message virtual resource and usable for interacting with the virtual image, comprises: Acquiring a message type of the first interaction message, and if the message type of the first interaction message is a triggerable type, displaying the first resource sub-animation formed by the virtual image corresponding to the interaction object within the area where the first avatar area is located based on the first interaction message of the triggerable type; Acquire the triggerable virtual resource associated with the first interaction message of the triggerable type; Based on the resource motion track of the triggerable virtual resource, the second resource sub-animation of the triggerable virtual resource being moved by the virtual image according to the resource motion track is displayed within the area where the first avatar area is located.
12. The method according to claim 1, characterized in that The step of displaying, within the area where the first avatar area is located, a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource comprises: According to the object identifier of the virtual image, a first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource is obtained from the server; the first resource animation is generated by the server based on the object image of the virtual image and the first message virtual resource; The first resource animation is displayed within the area where the first avatar area is located.
13. The method according to claim 1, characterized in that The method further comprises: A second interaction message and a second avatar area associated with the second interaction message are displayed in the application interface; the second interaction message is sent by the interaction object; and the object avatar is displayed in the second avatar area; In the area where the second avatar area is located, a second resource animation formed by the interaction between the virtual image and the second message virtual resource is displayed; the second message virtual resource is determined based on the message type of the second interactive message and the message content contained in the second interactive message; If the first interactive message and the second interactive message meet the message superposition condition, a third resource animation formed by a third message virtual resource is displayed in the application interface; the third message virtual resource is associated with the first interactive message and the second interactive message.
14. The method according to claim 13, characterized in that The method further comprises: Obtaining a first message sending timestamp of the first interaction message and a second message sending timestamp of the second interaction message, and determining a time interval between the first message sending timestamp and the second message sending timestamp; If the time interval is less than or equal to the duration threshold, determining, according to the semantic similarity between the first interaction message and the second interaction message, a relationship between the first interaction message and the second interaction message and the message superposition condition; If the time interval is greater than the duration threshold, it is determined that the first interaction message and the second interaction message do not meet the message superposition condition.
15. The method according to claim 14, characterized in that The determining, according to the semantic similarity between the first interaction message and the second interaction message, a relationship between the first interaction message and the second interaction message and the message superposition condition includes: inputting the first interaction message and the second interaction message into a semantic analysis model respectively, performing feature extraction on the first interaction message and the second interaction message respectively through the semantic analysis model, and outputting a first message feature corresponding to the first interaction message and a second message feature corresponding to the second interaction message; Determine a feature similarity between the first message feature and the second message feature, and determine the feature similarity as a semantic similarity between the first interaction message and the second interaction message; If the semantic similarity is greater than or equal to the similarity threshold, determining that the first interaction message and the second interaction message meet the message superposition condition; If the semantic similarity is less than the similarity threshold, it is determined that the first interaction message and the second interaction message do not satisfy the message superposition condition.
16. A data processing device, characterized in that: include: A first display module, configured to display a first interactive message and a first avatar area associated with the first interactive message in an application interface; The first interaction message is sent by the interaction object; The second display module is used to display the first resource animation formed by the interaction between the virtual image corresponding to the interactive object and the first message virtual resource within the area where the first avatar area is located; the first message virtual resource is determined based on the message type of the first interactive message and the message content contained in the first interactive message.
17. A computer device, characterized in that: include: Processor and memory; The processor is connected to the memory, wherein the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method according to any one of claims 1 to 15.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 15.
19. A computer program product, characterized in that The computer program product comprises a computer program, which is stored in a computer-readable storage medium and is suitable for being read and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 15.
Citation Information
Cited By
Resource sending method and device, equipment and storage medium
CN119676469A
