Interaction processing method, device and equipment, computer readable storage medium and computer program product
By synchronously playing the animation of virtual objects during video playback and responding to user interaction, the problem of insufficient interactiveness and real-timeness of virtual objects is solved, and the viewing experience and video appeal are improved.
Patent Information
- Application Number
- CN202411598449.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-02-28
AI Technical Summary
In the prior art, virtual objects have weak interactions during video playback, poor real-time performance, and lack interest.
By synchronously playing video and virtual objects animations in the display interface, switching animations in response to user interaction operations, and resuming the initial animation after meeting the animation playback termination conditions, enhancing the interactivity and real-timeness of virtual objects.
It improves the interactive fun and real-time nature of virtual objects, enhances the user's viewing experience, and improves the video's playback appeal and viewing volume.
Smart Images

Figure CN119536595A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer vision technology, and in particular to an interactive processing method, device, equipment, computer-readable storage medium and computer program product. Background Art
[0002] In the field of computer vision, virtual objects can be displayed on the display interface simultaneously during video playback to increase the interactive viewing experience; and during long-term viewing or live broadcasts, virtual objects can bring a sense of companionship and social interaction to the audience, thereby enhancing the fun of viewing.
[0003] In the related art, the presented virtual objects have the problems of weak interactivity and poor real-time performance, and lack of fun in the interactive process. Summary of the invention
[0004] The embodiments of the present application provide an interactive processing method, device, equipment, computer-readable storage medium and computer program product, which can enhance the interactive fun of a first virtual object.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] The present application provides an interactive processing method, the method comprising:
[0007] Play the video in the display interface, and
[0008] Playing a first animation for a first virtual object in the display interface, wherein the first animation represents that the first virtual object is in an idle state;
[0009] In response to a first interactive operation on the first virtual object, switching the first animation to a second animation, wherein the second animation represents that the first virtual object implements an interactive action, and the interactive action is used to respond to the first interactive operation;
[0010] When the playing termination condition of the second animation is met, the second animation is switched to the first animation.
[0011] In some embodiments, playing a first animation for a first virtual object in the display interface includes:
[0012] The first animation is played in the animation playing interface for a preset number of times, or the first animation is played in a loop.
[0013] In some embodiments, the method further comprises:
[0014] In response to a decoration replacement operation for the first virtual object, displaying at least one candidate virtual decoration in the display interface;
[0015] In response to a selection operation on the candidate virtual decoration, determining the selected candidate virtual decoration as a third virtual decoration;
[0016] The third virtual decoration is loaded into the first virtual object.
[0017] In some embodiments, the method further comprises:
[0018] Obtaining an object identifier of a second role object displayed in the display interface;
[0019] When the restricted role identifier set includes the object identifier, determining a second display area based on a first display area of the second role object in the display interface;
[0020] The animation playing interface is displayed in the second display area, the animation playing interface at least covers the facial image of the second character object, and the animation playing interface is used to play the first animation or the second animation.
[0021] In some embodiments, the method further comprises:
[0022] Displaying a second closing control in the display interface, wherein the second closing control is used to cancel covering the third display area;
[0023] In response to the triggering operation on the second closing control, the animation playing interface is displayed in a preset display area.
[0024] The present application provides an interactive processing device, the device comprising:
[0025] A first display module, configured to play a video in a display interface, and to play a first animation for a first virtual object in the display interface, wherein the first animation represents that the first virtual object is in an idle state;
[0026] A first switching module, configured to switch the first animation to a second animation in response to a first interactive operation on the first virtual object, wherein the second animation represents that the first virtual object implements an interactive action, and the interactive action is used to respond to the first interactive operation;
[0027] The second switching module is used to switch the second animation to the first animation when a playing termination condition of the second animation is met.
[0028] An embodiment of the present application provides a computer device, including:
[0029] A memory for storing computer executable instructions;
[0030] The processor is used to implement the interactive processing method provided in the embodiment of the present application when executing the computer executable instructions stored in the memory.
[0031] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for causing a processor to execute the interactive processing method provided in the embodiment of the present application.
[0032] An embodiment of the present application provides a computer program product, including computer executable instructions, which, when executed by a processor, implement the interactive processing method provided in the embodiment of the present application.
[0033] The embodiments of the present application have the following beneficial effects:
[0034] In an embodiment of the present application, a video and a first animation for a first virtual object are played synchronously on a display interface. By playing the first animation, the purpose of using the first virtual object for real-time companionship is achieved, that is, the companionship of the first virtual object is enhanced. In addition, when a first interactive operation for the first virtual object is received, the first animation is switched to a second animation, and the second animation represents that the first virtual object has implemented an interactive action, that is, the first virtual object can respond to the first interactive operation in real time and implement an interactive action corresponding to the first interactive operation, so that different interactive actions can be performed based on different first interactive operations, thereby enhancing the fun and improving the real-time nature of the interaction. Finally, when the playback termination condition of the second animation is met, the second animation is switched back to the original first animation to continue playing the first animation, ensuring the presence of the first virtual object throughout the video playback process, and improving the video playback attractiveness, thereby ultimately increasing the video playback volume. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1A It is a first display schematic diagram of the interface display provided by the related technology;
[0036] Figure 1B It is a second display schematic diagram of the interface display provided by the related technology;
[0037] Figure 1C It is a third display schematic diagram of the interface display provided by the related technology;
[0038] Figure 2 is a schematic diagram of a network architecture of an interactive processing system 100 provided in an embodiment of the present application;
[0039] Figure 3 is a schematic diagram of the structure of the terminal 400 provided in an embodiment of the present application;
[0040] Figure 4 It is a first flow chart of the interactive processing method provided in the embodiment of the present application;
[0041] Figure 5A This is a first display schematic diagram of the animation playback interface provided in an embodiment of the present application;
[0042] Figure 5B is a second display schematic diagram of the animation playback interface provided in an embodiment of the present application;
[0043] Figure 5C is a third display schematic diagram of the animation playback interface provided in the embodiment of the present application;
[0044] Fig. 6A This is a display schematic diagram of the animation setting interface provided in the embodiment of the present application;
[0045] Figure 6B is another display schematic diagram of the animation setting interface provided in the embodiment of the present application;
[0046] Figure 7 This is a display schematic diagram of a first virtual object and a second virtual object provided in an embodiment of the present application;
[0047] Fig. 8A This is a first display schematic diagram for displaying interactive messages provided in an embodiment of the present application;
[0048] Figure 8B This is a second display schematic diagram for displaying interactive messages provided in an embodiment of the present application;
[0049] Fig. 9 This is a third display schematic diagram for displaying interactive messages provided in an embodiment of the present application;
[0050] Fig. 10A is a schematic diagram of a first appearance image of a virtual character provided in an embodiment of the present application;
[0051] Fig. 10B is a schematic diagram of a second appearance of a virtual character provided in an embodiment of the present application;
[0052] Fig.11 This is a display schematic diagram of a virtual character provided by an embodiment of the present application;
[0053] Fig.12 This is a display diagram of a click animation provided in an embodiment of the present application;
[0054] Fig.13 This is a fourth display schematic diagram for displaying interactive messages provided in an embodiment of the present application;
[0055] Fig.14This is a fifth display schematic diagram for displaying interactive messages provided in an embodiment of the present application;
[0056] Fig.15 This is a display schematic diagram of a close button provided in an embodiment of the present application;
[0057] Fig.16A is a first display schematic diagram of an initial display position provided in an embodiment of the present application;
[0058] Fig. 16B is a second display schematic diagram of an initial display position provided in an embodiment of the present application;
[0059] Fig. 16C is a third display schematic diagram of the initial display position provided in an embodiment of the present application;
[0060] Fig.16D is a fourth display schematic diagram of the initial display position provided in an embodiment of the present application;
[0061] Fig.16E is a fifth display schematic diagram of the initial display position provided in the embodiment of the present application;
[0062] Fig.16F is a sixth display schematic diagram of the initial display position provided in an embodiment of the present application;
[0063] Fig.17A is a seventh display schematic diagram of the initial display position provided in the embodiment of the present application;
[0064] Fig. 17B is an eighth display schematic diagram of the initial display position provided in an embodiment of the present application;
[0065] Fig.18 This is a schematic diagram of a state switching framework provided by an embodiment of the present application;
[0066] Fig.19 This is a flow chart of the linkage barrage special effect provided in the embodiment of the present application;
[0067] Fig. 20 It is an interactive flow diagram of the interactive processing method provided in an embodiment of the present application.
[0068] It should be pointed out that the above-mentioned "first" and "second" are only used to distinguish different solutions, and do not represent the degree of superiority or inferiority of the solutions or the priority in the implementation process. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0070] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0071] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0072] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0073] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0074] The relevant data collection and processing in the embodiments of this application should be strictly in accordance with the requirements of relevant laws and regulations when applied in examples, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of authorization of laws and regulations and the personal information subject.
[0075] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0076] 1) Virtual objects refer to entities created through digital technology and existing in the virtual world. Virtual objects can be people, animals, objects or any other form of digital existence. Virtual objects are virtual entities created through digital technology and virtual environments that simulate real existence and interact with users.
[0077] The main features of virtual objects include digital presentation, interactivity, imitation of reality, and adaptability. Virtual objects provide entertainment, companionship, and even psychological support by simulating social needs in reality.
[0078] 2) Barrage special effects refer to the use of technical means to enhance the performance of barrage on the screen, so that barrage and video or live content form a stronger sense of interaction. Barrage special effects are not limited to single comment special effects, but also include the linkage effect between barrage and video screen.
[0079] The barrage with special effects can be called special effects barrage. Different from ordinary barrage, the special effects barrage adds some visual effects to the content of the barrage, making the barrage more conspicuous or vivid when displayed. Among them, the visual effects can be color, font, animation, rotation, flashing, etc., so that the special effects barrage stands out from the ordinary barrage.
[0080] In order to better understand the interactive processing method provided in the embodiment of the present application, the interactive processing method in the related art and its existing shortcomings are first explained.
[0081] In the related art, see Figure 1A The adoption interface shown can be used to adopt a virtual pet by triggering the adoption confirmation control 011 in the adoption interface. Figure 1B In the music homepage interface shown in the figure, after the adoption is successful, the virtual pet 021 is displayed in the music homepage interface, that is, when playing music in the music homepage interface, the virtual pet 021 can appear in the music homepage interface, but the related art cannot realize the interaction with the virtual pet 021 in the music homepage interface. Figure 1C As shown, the interface will jump to the virtual pet applet interface.
[0082] Combining the above-mentioned related technologies, it can be seen that the disadvantages of the related technologies include at least, first, weak interactivity and poor real-time performance; second, lack of diversity in special effects display.
[0083] The embodiments of the present application provide an interactive processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product, which can enhance the companionship and interactivity of a first virtual object. The exemplary application of the computer equipment provided by the embodiments of the present application is described below. The computer equipment provided by the embodiments of the present application can be implemented as various types of terminals such as laptop computers, tablet computers, desktop computers, set-top boxes, smart phones, smart speakers, smart watches, smart TVs, and vehicle-mounted terminals, and can also be implemented as servers. Below, an exemplary application when the computer equipment is implemented as a terminal will be described.
[0084] See also Figure 2 , Figure 2 It is a network architecture diagram of the interactive processing system 100 provided in an embodiment of the present application. To support an interactive processing application, the server 200 is connected to the terminal 400 via the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two.
[0085] The terminal 400 is used to receive a play instruction for a video, generate a play request for the video, and send the play request to the server 200, wherein the play request carries a video identifier. The server 200 is used to obtain video configuration resources and virtual character configuration resources based on the video identifier, and send the video configuration resources and virtual character configuration resources to the terminal 400. The terminal 400 is used to play a video in a display interface, and a first animation for a first virtual object, wherein the first animation represents that the first virtual object is in an idle state; in response to a first interactive operation for the first virtual object, the first animation is switched to a second animation, wherein the second animation represents that the first virtual object has implemented an interactive action, and the interactive action is used to respond to the first interactive operation; when the playback termination condition of the second animation is met, the second animation is switched to the first animation.
[0086] In an embodiment of the present application, the terminal 400 synchronously plays the video and the first animation for the first virtual object on the display interface, so as to achieve the purpose of using the first virtual object for real-time companionship through the first animation, that is, to enhance the companionship of the first virtual object. In addition, when the first interactive operation for the first virtual object is received, the first animation is switched to the second animation, and the second animation represents that the first virtual object has implemented an interactive action, that is, the first virtual object can respond to the first interactive operation in real time and implement an interactive action corresponding to the first interactive operation, so that different interactive actions can be performed based on different first interactive operations, thereby enhancing the fun and improving the real-time nature of the interaction. Finally, when the playback termination condition of the second animation is met, the second animation is switched back to the original first animation to continue playing the first animation, ensuring the presence of the first virtual object in the entire video playback process, and improving the video playback attractiveness, thereby ultimately increasing the video playback volume.
[0087] In some embodiments, the server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The terminal and the server may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0088] See also Figure 3 , Figure 3 is a schematic diagram of the structure of the terminal 400 provided in an embodiment of the present application, Figure 3 The terminal 400 shown includes: at least one processor 410, a memory 450, at least one network interface 420 and a user interface 430. The various components in the server 400 are coupled together via a bus system 440. It is understood that the bus system 440 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 440 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 440 is not described in detail. Figure 3 Various buses are labeled as bus system 440 .
[0089] The processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0090] The user interface 430 includes one or more output devices 431 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0091] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.
[0092] The memory 450 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.
[0093] In some embodiments, memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.
[0094] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0095] A network communication module 452, used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.;
[0096] a presentation module 453 for enabling presentation of information via one or more output devices 431 (e.g., display screen, speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripherals and displaying content and information);
[0097] The input processing module 454 is used to detect one or more user inputs or interactions from one of the one or more input devices 432 and translate the detected inputs or interactions.
[0098] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 3 The interactive processing device 455 stored in the memory 450 is shown, which can be software in the form of a program and a plug-in, including the following software modules: a first display module 4551, a first switching module 4552 and a second switching module 4553. These modules are logical, so they can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.
[0099] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the interactive processing method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application specific integrated circuits (Application Specific Integrated Circuit, ASIC), DSP, programmable logic device (Programmable Logic Device, PLD), complex programmable logic device (Complex Programmable Logic Device, CPLD), field programmable gate array (Field-Programmable Gate Array, FPGA) or other electronic components.
[0100] In some embodiments, the terminal can implement the interactive processing method provided in the embodiments of the present application by running various computer executable instructions or computer programs. For example, computer executable instructions can be microprogram-level commands, machine instructions or software instructions. The computer program can be a native program or software module in the operating system; it can be a native application (APPlication, APP), that is, a program that needs to be installed in the operating system to run, such as a movie and TV playback APP, a live broadcast APP; it can also be a small program that can be embedded in any APP, that is, a program that can be run only by downloading it to a browser environment. In short, the above-mentioned computer executable instructions can be instructions in any form, and the above-mentioned computer program can be an application, module or plug-in in any form.
[0101] The interactive processing method provided in the embodiment of the present application will be described in conjunction with the exemplary application and implementation of the terminal provided in the embodiment of the present application.
[0102] It should be noted that in the examples of the interactive processing method below, the video is a film and television video. Based on the understanding of the following, those skilled in the art can apply the interactive processing method provided in the embodiment of the present application to the interactive processing of other types of videos including consulting videos, advertisements, short videos, live videos, promotional videos, etc. The embodiment of the present application can also be applied to various scenarios, including but not limited to digital media, social media, education and training, smart transportation, assisted driving, etc.
[0103] See also Figure 4 , Figure 4 is a flow chart of the interactive processing method provided in the embodiment of the present application, which will be combined with Figure 4The steps shown illustrate the interactive processing method provided in the embodiment of the present application. The method can be executed by a computer device. In the embodiment of the present application, the computer device is used as a terminal as an example for illustration.
[0104] In step S101, a video is played in a display interface, and a first animation for a first virtual object is played in the display interface.
[0105] In some embodiments, the terminal can receive a video playback instruction, and in response to the video playback instruction, play the video in the display interface, wherein the video playback instruction can be an instruction triggered by a click operation on a video thumbnail, or a instruction triggered by voice information, gesture information, or posture information.
[0106] In the embodiment of the present application, during the video playback in the display interface, the first animation for the first virtual object is also synchronously played in the display interface, wherein the first virtual object may be a virtual mascot, a virtual pet, or an anime character, and the first virtual object may also be a custom-created digital object. Exemplarily, the first virtual object may be a virtual kitten, a virtual puppy, etc., and this embodiment does not limit the first virtual object.
[0107] In an embodiment of the present application, the first animation represents that the first virtual object has performed an idle action, and the first virtual object is in a non-interactive idle state. The idle action may refer to an action performed by the first virtual object in an idle state; the idle action may also refer to an action performed by the first virtual object without receiving a first interactive operation for the first virtual object, and the idle action may be set in advance according to user needs. Exemplarily, the idle action may be that the first virtual object turns in circles on the spot, and the idle action may also be at least one of the following: the first virtual object stands on the spot, the first virtual object shakes its head left and right, the first virtual object nods up and down, the first virtual object stretches its arms, the first virtual object steps on the spot, and the first virtual object remains still. This embodiment does not limit the idle action.
[0108] In some embodiments, the idle state refers to a non-interactive state, that is, the state of the first virtual object when no first interactive operation on the first virtual object is received.
[0109] In some embodiments, the implementation of the above step S101 "playing a video in the display interface, and playing a first animation for the first virtual object in the display interface" includes the following two methods:
[0110] Implementation method 1: displaying an animation playback interface in the display interface, wherein a first area of the animation playback interface is smaller than a second area of the display interface; playing a video in the display interface, and playing a first animation in the animation playback interface.
[0111] See also Figure 5A , Figure 5A 801. The first display schematic diagram of the animation playback interface provided in the embodiment of the present application, wherein the animation playback interface 802 can be displayed in the display interface 801 in the form of a floating layer or a small window, and the first area of the animation playback interface 802 is smaller than the second area of the display interface 801, wherein: Figure 5A In the figure, a quadrilateral is used as an example to display the animation playing interface 802. The shape of the animation playing interface 802 can also be a circle, an ellipse, a hexagon, etc. This embodiment does not limit the shape.
[0112] Continue to see Figure 5A In the embodiment of the present application, a video is played in the display interface 801 and a first animation is played synchronously in the animation playback interface 802 .
[0113] In some embodiments, the display modes of “displaying the animation playback interface in the display interface” include the following two modes:
[0114] Display mode 1: Based on the preset position information, the animation playback interface is displayed in the display interface.
[0115] In an embodiment of the present application, the preset position information may include two diagonal coordinate values, and a quadrilateral animation playback interface may be determined through the preset position information; the preset position information may also include a center coordinate value and a radius, and a circular animation playback interface may be determined through the preset position information. Taking the preset position information including two diagonal coordinate values as an example, in order not to affect the video playback effect, the area determined based on the two diagonal coordinate values may be located in the lower left area of the display interface, that is, the animation playback interface is located in the lower left area of the display interface. Similarly, the animation playback interface may also be located in the upper left area, lower right area, or upper right area of the display interface.
[0116] In some embodiments, the animation playback interface can be displayed in the form of a floating layer in the display interface, and the transparency of the animation playback interface can be set. The first virtual object can be displayed synchronously without affecting the video playback, thereby optimizing the display effect and improving the viewing experience.
[0117] In this way, the animation playing interface can be displayed at a preset position through the above-mentioned display mode 1, and the animation playing interface can be displayed in the display interface.
[0118] Display mode 2 determines the background image of each video frame in the video, and displays the animation playback interface in the background area of the display interface.
[0119] In the embodiment of the present application, the background area is an area for displaying a background image.
[0120] In some embodiments, the background image of each video frame can be determined by any of the methods of frame difference method, mean method, median method, background modeling, image segmentation, and corner point detection. This embodiment does not limit the method for determining the background image. Based on this, when the video frame is displayed in the display interface, the area where the background image is displayed is recorded as the background area, and then the animation playback interface is displayed in the background area in the form of a floating layer. In this way, if the background area changes with the switching of the video frame, the position of the animation playback interface in the display interface also changes dynamically, so that while the video and the first animation are played synchronously, it can also ensure that the foreground part of the video frame is not blocked, thereby improving the display effect.
[0121] Implementation method 2: playing the video in the video playback interface, and playing the first animation in the animation playback interface.
[0122] In the embodiment of the present application, when the display interface includes a video playback interface and an animation playback interface, and the video playback interface is different from the animation playback interface, for example, see Figure 5B , Figure 5B 801 is a second display schematic diagram of the animation playback interface provided in the embodiment of the present application. The display interface 801 may include a video playback interface 803 and an animation playback interface 802. Figure 5B The video playback interface 803 and the animation playback interface 802 are arranged left and right. In other examples, the video playback interface 803 and the animation playback interface 802 can also be arranged up and down; in other examples, see Figure 5C , Figure 5C 801. The third display diagram of the animation playback interface provided in the embodiment of the present application, the animation playback interface 802 and the display interface 801 can be rectangular areas, and the longer side length of the animation playback interface 802 is smaller than the shorter side length of the display interface 801. At this time, the video playback interface 803 is the area of the display interface 801 except the animation playback interface 802, that is, the video playback interface 803 is Figure 5C The hexagon shown in .
[0123] In some embodiments, the display interface 801 may include a video playback interface 803, an animation playback interface 802 and other interfaces, wherein the other interfaces may be at least one of a character display interface, an edit box interface, a picture display interface, and a product display interface, thereby improving display efficiency and display diversity.
[0124] In some embodiments, the first animation can be played according to a preset number of times in the animation playback interface, wherein the first preset number of times is the number of times specified by the user or the number of times uniformly set in the background, and exemplary preset numbers may be 5 times, 10 times, 20 times, etc. After the first animation is played according to the preset number of times, a prompt message, a play selection control, and an abort selection control may be displayed in the display interface, and the prompt message is used to prompt the user whether to continue playing the first animation. If a trigger operation is received for the play selection control, the first animation continues to be played according to the preset number of times, and if a trigger operation is received for the abort selection control, the first animation stops playing. This improves the flexibility of animation playback.
[0125] In some embodiments, the first animation can be played in a loop in the animation playback interface until the video playback ends or the first interactive operation for the first object is received. In this way, the companionship of the first virtual object is enhanced by playing the first animation in a loop.
[0126] In some embodiments, before playing the first animation for the first virtual object in the display interface, a third animation may also be played in the display interface, wherein the third animation represents that the first virtual object has performed an entry action. Exemplarily, the entry action may be at least one of the following: fade-in, zoom, slide-in, bounce, rotate-in, swing, flip, that is, the first virtual object may display the interface by performing the entry action, and the process of the first virtual object performing the entry action forms the third animation, and this embodiment does not limit the third animation.
[0127] In step S102, in response to a first interactive operation on a first virtual object, the first animation is switched to a second animation.
[0128] In the embodiment of the present application, the second animation represents that the first virtual object implements an interactive action, and the interactive action is used to respond to the first interactive operation. The interactive action can be a preset action sequence. For example, the interactive action can be that the first virtual object extends its left arm, moves 10 pixels to the upper left, and rotates clockwise 3 times.
[0129] In some embodiments, the above step S102 may be implemented by the following steps S1021 to S1022 (not shown in the figure), which are described in detail below.
[0130] In step S1021, a second animation is determined based on the animation setting information and the first interactive operation.
[0131] In the embodiment of the present application, the animation setting information includes at least one operation identifier of the first interactive operation, at least one animation identifier, and a corresponding relationship between the operation identifier and the animation identifier.
[0132] In some embodiments, the operation identifier of the first interactive operation is first obtained, and then the animation identifier corresponding to the operation identifier of the first interactive operation is determined based on the animation setting information, and finally the animation indicated by the animation identifier is determined as the second animation, which is the animation corresponding to the first interactive operation.
[0133] In step S1022, the first animation is canceled from playing in the display interface, and the second animation is played in the display interface.
[0134] In some embodiments, the playback of the first animation is terminated in the animation playback interface, and the first animation is controlled to stop displaying. At the same time, the second animation can start playing immediately after the first animation is terminated. The second animation can also be gradually displayed through transition effects such as fade-in, sliding, and zooming, thereby achieving smooth animation switching. This embodiment does not limit the second animation.
[0135] In some embodiments, the animation playback interface for playing the first animation may be the same as the animation playback interface for playing the second animation; since the first animation is different from the second animation, the animation playback interface for playing the first animation may also be different from the animation playback interface for playing the second animation.
[0136] Through step S1021 to step S1022, after receiving the first interactive operation, the second animation is determined based on the animation setting information, so that the second animation can be determined quickly and accurately; and the first animation is canceled in the animation playback interface, and the second animation is played, so as to realize the switching of the animation based on the first interactive operation, thereby improving the interactivity of the first virtual object and realizing real-time interaction between the user and the first virtual object.
[0137] Continue to see Figure 4 , and the description continues with step S102 above.
[0138] In step S103, when the playing termination condition of the second animation is met, the second animation is switched to the first animation.
[0139] In an embodiment of the present application, when the playback termination condition of the second animation is met, the playback of the second animation is canceled and the first animation is replayed in the animation playback interface; and when the playback termination condition of the second animation is not met, the second animation continues to be played.
[0140] In some embodiments, when the number of times the second animation is played on the display interface reaches a threshold number, it is determined that the playback termination condition of the second animation is met; or, when the first interactive operation is a continuous operation and it is detected that the first interactive operation disappears, it is determined that the playback termination condition of the second animation is met.
[0141] In some embodiments, the times threshold is a value set in advance based on experience, and an exemplary times threshold may be 1 time, 2 times, 5 times, etc., that is, when the number of times the second animation is played on the display interface reaches the times threshold, it is determined that the playback termination condition of the second animation is met; and when the number of times the second animation is played on the display interface is less than the times threshold, it is determined that the playback termination condition of the second animation is not met, and the second animation will continue to be played. In this case, the first interactive operation can be considered to be a short-term operation, and the first interactive operation can be an exemplary single-click operation.
[0142] In some embodiments, the continuous operation may be a long press operation, a drag operation, a continuous click operation, a scroll operation, etc. This embodiment does not limit the specific form of the continuous operation. When the first interactive operation is a continuous operation, and it is detected that the first interactive operation disappears, stops or ends, it indicates that the first interactive operation stops triggering, and it is determined that the playback termination condition of the second animation is met.
[0143] Through the above steps S101 to S103, the video and the first animation for the first virtual object are synchronously played on the display interface. By playing the first animation, the purpose of using the first virtual object for real-time companionship is achieved, that is, the companionship of the first virtual object is improved. In addition, when the first interactive operation for the first virtual object is received, the first animation is switched to the second animation, and the second animation represents that the first virtual object has implemented an interactive action, that is, the first virtual object can respond to the first interactive operation in real time and implement an interactive action corresponding to the first interactive operation. In this way, different interactive actions can be performed based on different first interactive operations, thereby enhancing the fun and improving the real-time nature of the interaction. Finally, when the playback termination condition of the second animation is met, the second animation is switched back to the original first animation to continue playing the first animation, ensuring the presence of the first virtual object in the entire video playback process, and improving the video playback attractiveness, thereby ultimately increasing the video playback volume.
[0144] In some embodiments, after the above step S103 or the above step S101, the following steps S104 and S105 (not shown in the figure) may also be performed, which are described in detail below.
[0145] In step S104, when the first playing time of the first animation reaches the first time threshold, a first closing control for the first animation is displayed in the display interface.
[0146] In the embodiment of the present application, when the first animation starts to play, the duration timer is started to obtain the first play duration. When the first play duration reaches the first duration threshold, the first close control can be displayed below the first virtual object. The first play duration can refer to the duration of continuous play of the first animation, and the first duration threshold can be a value set based on experience. For example, the first duration threshold can be 5 minutes, 10 minutes, 30 minutes, etc.
[0147] In some embodiments, the first close control may also be displayed above, on the left or on the right side of the first virtual object. The embodiment of the present application only needs to ensure that the first close control is displayed in the display interface, and does not limit the display position of the first close control.
[0148] In step S105, in response to the triggering operation on the first closing control, the playing of the first animation is canceled, and the fourth animation is played in the display interface.
[0149] In the embodiment of the present application, the fourth animation represents that the first virtual object has implemented an exit action. Exemplarily, the fourth animation may be at least one of the following: zoom exit, slide out, drop, bounce exit, rotation exit, swing exit, and the fourth animation is not limited in the present embodiment.
[0150] In some embodiments, the trigger operation for the first close control may be a single-click operation for the first close control. When the trigger operation for the first close control is received, the playback of the first animation is terminated in the animation playback interface, and the first animation is controlled to stop displaying or fade out. At the same time, the fourth animation may start playing immediately after the first animation is terminated.
[0151] Through the above steps S104 and S105, the first animation can be canceled by triggering the first closing control, and the display of the first virtual object can also be canceled to achieve personalized settings; in addition, during the departure of the first virtual object, the fourth animation can also be played, thereby achieving the purpose of natural transition and atmosphere rendering.
[0152] In some embodiments, before playing the video or during the process of playing the video, the following steps S106 to S108 (not shown in the figure) can also be used to set the animation, which is described in detail below.
[0153] In step S106, in response to the received animation setting operation, an animation setting interface is displayed in the display interface.
[0154] In the embodiment of the present application, the animation setting interface includes at least one operation identifier of a first interactive operation and a first animation setting control corresponding to each operation identifier.
[0155] In some embodiments, the animation setting operation may be a right-click operation on the first virtual object; when the menu bar of the display interface includes a setting control, the animation setting operation may be a single-click operation on the setting control.
[0156] For example, see Fig. 6A , Fig. 6A It is a display schematic diagram of the animation setting interface provided in an embodiment of the present application. The animation setting interface 901 includes an operation identifier OP01, an operation identifier OP02 and an operation identifier OP03, as well as a first animation setting control 011 corresponding to the operation identifier OP01, a first animation setting control 012 corresponding to the operation identifier OP02, and a first animation setting control 013 corresponding to the operation identifier OP03.
[0157] In step S107, in response to a triggering operation of a first animation setting control corresponding to the operation identifier, at least one first candidate animation is displayed.
[0158] Following the above example, if a click operation is received on the first animation setting control 011, see Figure 6B , Figure 6B This is another display schematic diagram of the animation setting interface provided in the embodiment of the present application. In the animation setting interface 901 , a first candidate animation 014 , a first candidate animation 015 , and a first candidate animation 016 are displayed.
[0159] In step S108 , in response to the selection operation on the first candidate animation, the animation identifier of the selected first candidate animation is determined as the animation identifier corresponding to the operation identifier.
[0160] Continuing with the above example, if a click operation is received for the first candidate animation 014 , and the animation identifier of the first candidate animation 017 is AN01 , AN01 will be determined as the animation identifier corresponding to OP01 .
[0161] In some embodiments, the animation setting interface further includes at least one of the following: a second animation setting control, a third animation setting control, and a fourth animation setting control. Based on this, after step S108, at least one of the following steps S109A, S109B, and S109C (not shown in the figure) may also be performed:
[0162] In step S109A, in response to a trigger operation on a second animation setting control, at least one second candidate animation is displayed, and in response to a selection operation on a second candidate animation, the selected second candidate animation is determined as the first animation.
[0163] In some embodiments, if a click operation is received for a second animation setting control, similar to the above-mentioned first candidate animation, at least one second candidate animation can be displayed; when a click operation is received for a second candidate animation, the second candidate animation affected by the click operation can be determined as the selected second candidate animation, and the selected second candidate animation can be determined as the first animation.
[0164] In step S109B, in response to a triggering operation on the third animation setting control, at least one third candidate animation is displayed, and in response to a selection operation on the third candidate animation, the selected third candidate animation is determined as the third animation.
[0165] In some embodiments, the implementation process of step S109B is similar to the implementation process of the above step S109A, and therefore, the implementation process of step S109B may refer to the implementation process of the above step S109A.
[0166] In step S109C, in response to a triggering operation on a fourth animation setting control, at least one fourth candidate animation is displayed, and in response to a selection operation on the fourth candidate animation, the selected fourth candidate animation is determined as the fourth animation.
[0167] In some embodiments, the implementation process of step S109C is similar to the implementation process of the above step S109A, and therefore, the implementation process of step S109C may refer to the implementation process of the above step S109A.
[0168] Through the above steps S109A, S109B or S109C, at least one of the first animation, the third animation and the fourth animation can be set, thereby improving the diversity and variability of the animation.
[0169] In some embodiments, during the video playback in the display interface, the first virtual object may be dressed up or upgraded in the following four ways.
[0170] The first dressing method is to change clothes by obtaining virtual resources, including the following steps S110A to S113A (not shown in the figure), which are described in detail below.
[0171] In step S110A, a first entry control for acquiring virtual resources is displayed in the display interface.
[0172] In some embodiments, the first entry control may be at least one of the following: a lottery entry control, a blind box opening entry control, an activity participation entry control, and a social sharing entry control. Exemplarily, the first entry control may be displayed in the center of the right side of the display interface. In some embodiments, the first entry control may also be displayed in the center of the left side, the center of the top, or the center of the bottom of the display interface. This embodiment does not limit the first entry control and its display position.
[0173] In step S111A, in response to a trigger operation on a first entry control, a target virtual resource and a first collection control for the target virtual resource are displayed.
[0174] In the embodiment of the present application, the target virtual resource is a virtual resource allocated based on the triggering operation of the first entry control.
[0175] Taking the first entry control as a lottery entry control as an example, when a click operation on the lottery entry control is received, the target virtual resource and the first collection control for the target virtual resource are displayed. The target virtual resource can be a virtual resource randomly allocated by the background based on the trigger operation of the first entry control. Exemplarily, the first virtual resource can be one of a first virtual decoration, a virtual skin, a virtual skill, and a virtual prop.
[0176] In step S112A, when the target virtual resource is a first virtual decoration for a first virtual object, in response to a triggering operation on a first receiving control, the first virtual decoration is loaded into the first virtual object.
[0177] In some embodiments, when the target virtual resource is a first virtual decoration, taking the first virtual decoration as a first virtual clothing for example, if a click operation on a first receiving control is received, the first virtual clothing is bound to the skeletal structure of the first virtual object, and then the position and size of the first virtual clothing are fine-tuned, and finally, rendering effects such as light and shadow, and materials are added to the first virtual clothing, thereby loading the first virtual clothing into the first virtual object, ensuring that the first virtual clothing can move naturally with the skeletal animation of the first virtual object, and also making the first virtual clothing fit the body shape and posture of the first virtual object, and finally ensuring that the first virtual clothing and the first virtual object are visually harmonious through rendering.
[0178] In some embodiments, the first virtual decoration may also be at least one of virtual skin, virtual accessories, virtual hair accessories, virtual makeup, virtual texture, and virtual handheld objects.
[0179] Through the above steps S110A to or S112A, user stickiness can be enhanced, user activity can be improved, and user interest in participation can be stimulated by receiving virtual resources. Dressing can also be achieved through target virtual resources, thereby enriching the display appearance of the first virtual object.
[0180] The second dressing method is to achieve dressing by executing tasks, including the following steps S110B to S114B (not shown in the figure), which are described in detail below.
[0181] In step S110B, a second entry control for executing a preset task is displayed in the display interface.
[0182] In the embodiment of the present application, the preset task can be one of a daily check-in task, a weekly check-in task, a sharing task, and a time-limited task. The display method of the second entry control can refer to the display method of the first entry control described above. If the first entry control and the second entry control are displayed in the display interface, the first entry control and the second entry control do not overlap.
[0183] In step S111B, in response to the triggering operation on the second entry control, a task execution interface is displayed in the display interface.
[0184] Exemplarily, when a click operation on the second entry control is received, a task execution interface is displayed in the display interface, and the task execution interface is used to receive the task execution operation triggered by the user.
[0185] In step S112B, in response to the task execution operation received through the task execution interface, the task data is updated.
[0186] Taking the preset task as a daily sign-in task as an example, a sign-in control can be displayed in the task execution interface. Based on this, the task execution operation can be a click operation on the sign-in control. When a click operation on the sign-in control is received, the number of sign-in days is accumulated by 1 to update the task data, thereby obtaining the updated task data.
[0187] In step S113B, when it is determined based on the updated task data that the task is completed, the virtual reward resource corresponding to the preset task and the second claiming control for the virtual reward resource are displayed.
[0188] Continuing with the above example, taking the preset task as a daily sign-in task as an example, at the deadline of the preset task cycle, when the updated task data is greater than the sign-in threshold, the task is determined to be completed, based on which the virtual reward resource corresponding to the daily sign-in task and the second collection control for the virtual reward resource are displayed. Among them, the sign-in threshold is a value set in advance based on experience, and an exemplary sign-in threshold may be 25, 28, 30, etc. The virtual reward resource may be one of a second virtual decoration, a virtual skin, a virtual skill, and a virtual prop.
[0189] In some embodiments, when the updated task data is less than or equal to the sign-in threshold, it is determined that the task is not completed. At this time, the task completion information can also be displayed in the display interface. Exemplarily, the task completion information can be "Sign in for another D days to successfully receive resource R."
[0190] In step S114B, when the virtual reward resource is a second virtual decoration for the first virtual object, in response to a trigger operation on the second receiving control, the second virtual decoration is loaded into the first virtual object.
[0191] In the case where the virtual reward resource is a second virtual decoration for the first virtual object, if a click operation for the second receiving control is received, the second virtual decoration is loaded into the first virtual object.
[0192] Through the above steps S110B to S114B, the preset task can be executed through the display interface, and the attractiveness of task participation can be improved by executing the preset task, thereby promoting user social interaction. The second virtual decoration can also be obtained through the preset task, and the second virtual decoration can be loaded into the first virtual object to achieve the change of the first virtual object and improve the diversity of the first virtual object display.
[0193] The third dressing method is to achieve dressing through decoration replacement operation, including the following steps S110C to S112C (not shown in the figure), which are described in detail below.
[0194] In step S110C, in response to the decoration replacement operation for the first virtual object, at least one candidate virtual decoration is displayed in the display interface.
[0195] In some embodiments, the decoration replacement operation may be a click operation triggered by a user or a voice operation issued by a user. For example, a setting interface including a replacement control may be displayed by right-clicking the first virtual object, and if a click operation for replacing the control is received, it is considered that a decoration replacement operation for the first virtual object is received, and at least one candidate virtual decoration may be displayed in the display interface, that is, a candidate virtual decoration list may be displayed.
[0196] In step S111C, in response to the selection operation on the candidate virtual decoration, the selected candidate virtual decoration is determined as the third virtual decoration.
[0197] In some embodiments, the selection operation on the candidate virtual decoration may be a click operation on the candidate virtual decoration. If a click operation on a candidate virtual decoration is received, the clicked candidate virtual object is determined as the third virtual decoration.
[0198] In step S112C, the third virtual decoration is loaded into the first virtual object.
[0199] In some embodiments, the implementation process of step S112C may refer to the implementation process of the above-mentioned step S112A.
[0200] Through the above steps 110C to S112C, the dressing can be achieved by means of a decoration replacement operation, thereby enriching the display appearance of the first virtual object and improving the diversity of selection of dressing methods.
[0201] The fourth dressing method is to change clothes by watching videos, including the following steps S110D and S111D (not shown in the figure), which are described in detail below.
[0202] In step S110D, a second playback duration of the played video is obtained.
[0203] In an embodiment of the present application, under the premise that the video is played on the display interface and the first virtual object is displayed, the second playback duration may refer to the duration of the current video playback, or may be the cumulative duration of the video playback.
[0204] Exemplarily, when the video starts to be played on the display interface and the first virtual object is displayed on the display interface, the timing is started to obtain the second playback duration.
[0205] In step S111D, when the second playback duration reaches a second duration threshold, the first virtual object is switched to a second virtual object.
[0206] In an embodiment of the present application, the object level of the second virtual object is higher than the object level of the first virtual object. The object level may refer to the level of the first virtual object in terms of appearance, attributes, etc. For example, compared with the first virtual object, the second virtual object may load more virtual decorations, the second virtual object may have more facial expressions, and the second virtual object may also perform more diverse actions. In some embodiments, the higher the object level, the more virtual decorations are loaded, the richer the facial expressions are, and the more actions are performed.
[0207] In some embodiments, the second duration threshold is a value set in advance based on experience, and an exemplary second duration threshold may be 20 minutes, 30 minutes, 1 hour, 2 hours, etc.
[0208] For example, see Figure 7 , Figure 7 1 is a display schematic diagram of the first virtual object and the second virtual object provided in an embodiment of the present application. Assuming that the second duration threshold is 20 minutes, when the playback duration reaches 20 minutes, the first virtual object 1001 is upgraded to the second virtual object 1002. In some embodiments, after the first virtual object 1001 is upgraded to the second virtual object 1002, the playback duration can be reset to zero, and the playback duration is re-timed. When the playback duration reaches 20 minutes again, the second virtual object 1002 is upgraded to a new second virtual object 1003. That is, when the playback duration reaches the second duration threshold, the currently displayed virtual object is upgraded, and the playback duration is re-determined, and this is repeated.
[0209] Through the above steps S110D and S111D, when the second playback duration reaches the second duration threshold, the first virtual object can be automatically upgraded to enrich the display appearance of the first virtual object and enhance the fun of the display.
[0210] The fifth way of changing clothes can also be achieved by interacting with the first character object in the video, and the following steps S110E or S110F (not shown in the figure) are executed, which are described in detail below.
[0211] In step S110E, in response to the second interactive operation on the first character object in the video, a third virtual clothing corresponding to the first character object is obtained, and the third virtual clothing is loaded into the first virtual object.
[0212] In some embodiments, the second interactive operation may be a click operation on the first character object, or a voice operation on the first character object triggered by the user. Exemplarily, the voice operation may be “please interact with the first character object and the first virtual object”.
[0213] In some embodiments, if a second interactive operation is received for a first character object in a video, a third virtual costume corresponding to the first character object is obtained, and then the third virtual costume is loaded into the first virtual object. The first character object refers to one of the character objects included in the currently playing video frame.
[0214] In some embodiments, the third virtual clothing corresponding to the first character object is constructed in advance, and the character clothing worn by the first character object in the video can be obtained first, and then a cartoon version of the character clothing is constructed, and the cartoon version of the virtual clothing is determined as the third virtual clothing corresponding to the first character object. In this way, the interaction between the first virtual character and the first character object can be realized, and the first virtual object can be changed during the interaction, enriching the diversity of the first virtual object's change of clothing, strengthening the interactive function of the first virtual object, and improving the matching degree between the first virtual object and the video content.
[0215] In step S110F, in response to the second interactive operation on the first character object in the video, a third virtual object corresponding to the first character object is obtained, and the first virtual object is switched to the third virtual object.
[0216] In some embodiments, if a second interactive operation is received for the first character object in the video, a third virtual object corresponding to the first character object can also be obtained, and the first animation or the second animation for the first virtual object played in the display interface can be canceled, and the fifth animation or the sixth animation for the third virtual object can be played in the display interface, wherein the fifth animation represents that the third virtual object is in an idle state, and the sixth animation represents that the third virtual object has implemented an interactive action.
[0217] In some embodiments, for each character object in the video, an animated version of the third virtual object can be constructed in advance based on the appearance of the character object and stored in an object mapping table. The object mapping table and the resources of the third virtual object are stored in the relevant configuration of the video. When the video configuration is loaded, the object mapping table and the resources of the third virtual object will be loaded locally. In this way, the first virtual object can be switched to the third virtual object through the second interactive operation, thereby improving the convenience of switching the first virtual object and achieving the purpose of quickly switching the first virtual object. In addition, since the third virtual object corresponds to the first character object, the first character object and the third virtual object are displayed simultaneously in the display interface through switching, thereby improving the consistency and coordination of the display screen.
[0218] In some embodiments, when a video is played in a display interface, an interactive message for the video can also be displayed in the display interface; when the second animation has a first interactive special effect linked to the interactive message, and when the release condition of the first interactive special effect is met, the first interactive special effect is released for the interactive message.
[0219] For example, see Fig. 8A , Fig. 8A is a first display schematic diagram of displaying interactive messages provided in an embodiment of the present application, and an interactive message 1101 may be displayed in a display interface 801. Fig. 8AThe interactive message 1101 shown in the figure is a barrage. In other instances, the interactive message 1101 may also be a sidebar chat box, a voting window, etc. This embodiment does not limit the interactive message.
[0220] In some embodiments, a special effect mapping table is loaded locally, and the special effect mapping table stores: the special effect identifier of the first interactive special effect, the animation identifier that can be linked to the first interactive special effect, and the corresponding relationship between the special effect identifier and the animation identifier. Based on this, if the special effect mapping table includes the animation identifier of the second animation, it is determined that the second animation has the first interactive special effect of the linked interactive message, and then it is determined whether the release condition of the first interactive special effect is met; if the special effect mapping table does not include the animation identifier of the second animation, the process ends.
[0221] In some embodiments, the release condition includes: starting to play the second animation. Then, when the second animation has the first interactive special effect of the linked interactive message and starts to play the second animation, the following steps S201A and S202A (not shown in the figure) can be used to achieve "releasing the first interactive special effect for the interactive message", which is described in detail below.
[0222] In step S201A, special effects rendering is performed on each interactive message to obtain a first rendered interactive message.
[0223] For example, see Figure 8B , Figure 8B This is a second display schematic diagram for displaying interactive messages provided in an embodiment of the present application. During the playing of the second animation 1102 , each interactive message may be rendered with a lightning effect to obtain a first rendered interactive message 1103 .
[0224] In step S202A, a first post-rendering interactive message is displayed.
[0225] In the embodiment of the present application, each first rendered interactive message is used to present the release effect of the first interactive special effect. Continuing with the above example, the release effect of the first interactive special effect is a lightning effect.
[0226] In some embodiments, the map obtained in step S201A is displayed as a rendered interactive message.
[0227] Through the above-mentioned steps S201A and S202A, when the second animation can be linked to the first interactive special effect and the second animation starts to play, by rendering each interactive message, the first rendered interactive message presents the release effect of the first interactive special effect, thereby achieving the effect of the second animation being linked to the first interactive special effect, enriching the display effect of the display interface, and enhancing the fun and diversity of the display.
[0228] In some embodiments, "releasing the first interactive special effect for the interactive message" may also include the following steps S201B and S203B (not shown in the figure), which are described in detail below.
[0229] In step S201B, the interaction heat value of each interactive message is obtained.
[0230] In an embodiment of the present application, the interaction heat value may be at least one of the following: number of comments, number of reposts, number of likes, number of copies, and number of marks. This embodiment does not limit the interaction heat value.
[0231] In step S202B, the first interactive special effect is used to perform special effect rendering on the interactive message with the highest interactive heat value to obtain a second rendered interactive message.
[0232] For example, when the interaction heat value is the number of likes, the interaction messages in the current display interface can be sorted in descending order of the number of likes, and the first interaction message after sorting is determined as the interaction message with the highest interaction heat value, and finally the first interaction special effect is used to render the interaction message with the highest interaction heat value to obtain the second rendered interaction message. Since the interaction messages are scrolling, the interaction messages can be sorted periodically, for example, the interaction messages are sorted once every 2 seconds, so as to improve the effectiveness and accuracy of the interaction message with the highest interaction heat value.
[0233] Exemplarily, the interactive message with the highest interactive heat value may be rendered with lightning special effects to obtain a second rendered interactive message.
[0234] In step S203B, a second rendered interactive message is displayed.
[0235] In the embodiment of the present application, the second rendered interactive message is used to present the release effect of the first interactive special effect. Continuing with the above example, the release effect of the first interactive special effect is a lightning effect.
[0236] Through the above steps S201B to S203B, special effects rendering is performed on the interactive message with the highest interaction heat value, and the second rendered interactive message is displayed, so as to achieve the purpose of highlighting the interactive message with the highest interaction heat value, improve the recognition of the interactive message with the highest interaction heat value, and also improve the understanding of the video.
[0237] In some embodiments, when the first virtual object carries a virtual prop and the first interactive operation is used to move the first virtual object, the release condition may also include: during the movement of the first virtual object, there is a target message in the interactive message that satisfies the position relationship condition with the virtual prop. Based on this, the above “releasing the first interactive special effect for the interactive message” includes: using the virtual prop in the display interface to release the first interactive special effect for the target message.
[0238] For example, see Fig. 9 , Fig. 9 This is a third display schematic diagram of displaying interactive messages provided by an embodiment of the present application. The virtual prop may be a virtual knife 1201. The first interactive operation may be a long-press drag operation, which is used to move the first virtual object. During the movement of the first virtual object, since the virtual knife 1201 is in contact with the interactive message 1202, it indicates that there is a target message in the interactive message whose pixel distance with the virtual knife is less than a preset distance. The target message is the interactive message 1202, and it is determined that the release condition is met. The preset distance may be a 2-pixel distance, a 1-pixel distance, etc.
[0239] Continue to see Fig. 9 , the interactive message 1202 is split from the contact point, wherein the contact point refers to the contact point between the interactive message 1202 and the virtual tool 1201, or the point in the interactive message 1202 that is closest to the virtual tool 1201. Thus, the first interactive special effect is released for the target message, and the first interactive special effect is a special effect corresponding to the prop function of the virtual prop. For example, the virtual knife has the function of cutting, so the first interactive special effect can be a breaking special effect; the virtual brush has the function of dyeing, so the first interactive special effect can be a dyeing special effect. In this way, not only can the first interactive special effect be linked to the second animation to improve interactivity, but also the special effect corresponding to the prop function can be presented in combination with the virtual prop, thereby improving the diversity of linkage.
[0240] In some embodiments, if a third interactive operation is received for the first virtual object; in response to the third interactive operation, if the third interactive operation can trigger the second interactive effect of the linked interactive message, the second interactive effect is released for the interactive message.
[0241] Exemplarily, the third interactive operation may be a double-click operation on the first virtual object. If a double-click operation on the first virtual object is received, it can be determined based on the special effects mapping table whether the third interactive operation can trigger the second interactive special effect. If it is determined that the third interactive operation can trigger the second interactive special effect, the second interactive special effect is released for the interactive message; if the third interactive operation cannot trigger the second interactive special effect, the process ends.
[0242] In some embodiments, the special effect mapping table also stores the special effect identifier of the second interactive special effect, the operation identifier that can be linked to the second interactive special effect, and the correspondence between the special effect identifier and the operation identifier. Based on this, if the special effect mapping table includes the operation identifier of the third interactive operation, it is determined that the third interactive operation can trigger the second interactive special effect, and the second interactive special effect is released for the interactive message; if the special effect mapping table does not include the operation identifier of the third interactive operation, the process ends. In this way, the second interactive special effect of the interactive message can be linked based on the third interactive operation, thereby improving the real-time nature of triggering the second interactive special effect.
[0243] In some embodiments, the second interactive special effect may be at least one of a shadow special effect, a font special effect, and a color special effect.
[0244] In some embodiments, when the first virtual object performs an entry action, the third interactive special effect is released for the interactive message; when the first virtual object performs an exit action, the fourth interactive special effect is released for the interactive message. That is, when playing the entry animation for the first virtual object, the third interactive special effect is automatically released for the interactive message; when playing the exit animation for the first virtual object, the fourth interactive special effect is automatically released for the interactive message. Thus, the entry animation is automatically linked to the third interactive special effect, and the exit animation is automatically linked to the fourth interactive special effect, thereby enhancing the degree of interaction.
[0245] Exemplarily, the third interactive special effect may be a font color changing from light to dark, and the fourth interactive special effect may be a font color changing from dark to light.
[0246] In some embodiments, during the video playback process, the object identifier of the second character object displayed in the display interface can also be obtained; when the object identifier is included in the restricted role identifier set, the second display area is determined based on the first display area of the second character object in the display interface; and an animation playback interface is displayed in the second display area, wherein the animation playback interface at least covers the facial image of the second character object, and the animation playback interface is used to play the first animation or the second animation.
[0247] Exemplarily, the object identifier of the second character object displayed in the display interface can be obtained in real time, and the object identifier can be the object name of the second character object. The restricted role identifier set is a set of identifiers set in advance, and the restricted role identifier set can be a restricted object name set. If the restricted object name set includes the object name of the second character object, the area where the second character object is displayed in the display interface is determined as the first display area; and the area where the face or head of the second character object is located in the first display area is determined as the second display area; finally, the animation playback interface is displayed in the second display area to cover the facial image or head image of the second character object with the animation playback interface. The animation playback interface is used to play at least one of the following: the first animation, the second animation, the third animation, and the fourth animation.
[0248] In some embodiments, the restricted role identification set stores the names of the restricted actors. In this way, the video can be played without restricting the actors from appearing on screen, thereby improving the video processing efficiency, enriching the video processing methods, and quickly processing the non-compliant videos into compliant videos so that the videos can be played normally.
[0249] In some embodiments, during the video playback process, at least one of the object attribute information and emotion information of the video viewing object can also be obtained; when it is determined that the time to cover the video has been reached based on at least one of the object attribute information and the emotion information, a third display area to be covered in the display interface is determined based on the video; based on the third display area, a fourth display area is determined; and an animation playback interface is displayed in the fourth display area, wherein the animation playback interface covers the third display area, and the animation playback interface is used to play the first animation or the second animation.
[0250] Exemplarily, the image acquisition module can be used to acquire the object image of the video viewing object in real time, and then at least one of the object attribute information and emotional information can be determined based on the object image, wherein the object attribute information can be at least one of the following: object age, object gender, object clothing, and emotional information can be positive emotions or negative emotions. Based on this, when the object age represents that the video viewing object is a minor, or when the emotional information is a negative emotion such as sadness, frustration, fear, etc., it is determined that the video covering time has been reached, and the area where the bloody scene and the horror scene in the video are displayed is determined as the third display area to be covered. Then, the third display area can be determined as the fourth display area; the center position of the third display area can also be determined first, and the farthest distance from the center position to the edge of the third display area is determined as the radius, and a circular fourth display area is determined based on the center position and the radius. Finally, an animation playback interface is displayed in the fourth display area, so that the third display area is covered by the animation playback interface, and the animation playback interface is used to play at least one of the following: the first animation, the second animation, the third animation, and the fourth animation. In this way, bloody scenes, horror scenes, etc. can be intelligently determined, and bloody scenes and horror scenes can be covered in time when it is determined that the time to cover has arrived, thereby improving the comfort of watching the video.
[0251] In some embodiments, after the animation playback interface is displayed in the fourth display area, a second close control may also be displayed in the display interface, and the second close control is used to cancel covering the third display area; in response to the trigger operation of the second close control, the animation playback interface is displayed in the preset display area.
[0252] For example, a second closing control may be displayed below the fourth display area, and the triggering operation for the second closing control may be a click operation for the second closing control. Based on this, if a click operation for the second closing control is received, the animation playback interface displayed in the fourth display area is canceled, and the animation playback interface is displayed in the preset area, thereby canceling the covering of the third display area. The preset area may be the area determined by the above-mentioned preset position information. In this way, the covering of the third display area can be canceled in real time, and personalized settings can be achieved.
[0253] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.
[0254] The embodiment of the present application proposes an interactive processing method, which provides an interactive method for a companion-type virtual character during video playback, so as to achieve the effect of watching a movie with a virtual character in real time, support interaction with a virtual character based on interactive operations, and use virtual characters to present a variety of performance forms. At the same time, since the barrage during playback is an existing interactive performance form, the embodiment of the present application also supports the linkage between virtual characters and barrage, further enriching the interactive scene. Among them, the virtual character corresponds to the first virtual object in other embodiments, and the barrage corresponds to the interactive message in other embodiments.
[0255] In the embodiment of the present application, the appearance of the virtual character can be created based on the material of the virtual character. The material of the virtual character can include material such as character animation, frame animation, and Graphics Interchange Format (GIF) images. Among them, the character animation can be a skeletal animation (Spine) character. For example, in the episode of the film and television drama F1, cartoon versions of virtual characters such as character R1, character R2, and character R3 can be created. For example, the appearance of the created virtual character is as follows: Fig. 10A and Fig. 10B As shown, this makes the virtual characters more in line with the plot in the F1 series.
[0256] In some embodiments, the parameters that can be configured through the management backend include: video episodes, virtual character resources, initial display positions of virtual characters, virtual character entry animations, idle animations, interactive animations, and exit animations, and bullet screen linkage special effects. Among them, the idle animation corresponds to the first animation in other embodiments; the interactive animation may include a virtual character animation triggered by clicking on the virtual character, and a virtual character animation triggered by long pressing the virtual character. Among them, the area indicated by the initial display position corresponds to the preset display area in other embodiments.
[0257] In some embodiments, if the current video is configured with a virtual character, when playing the video, the terminal will download the corresponding virtual character resource materials (Spine characters, frame animations, GIF images, etc.) from the background server and display the virtual character on the screen. The display position of the virtual character is the initial display position configured by the management background. For example, see Fig.11 , Fig.11 2 is a display schematic diagram of displaying a virtual character provided by an embodiment of the present application, in which a virtual character 2002 is displayed in an initial display position 2001 of the screen. The interface displayed on the screen may be referred to as a display interface.
[0258] In the scenario where a virtual character enters the screen, if it is detected that an entry animation has been configured through the management backend, the virtual character will enter in the form of an entry animation. After the entry animation is finished, the idle animation will be played.
[0259] In some embodiments, it is necessary to configure idle animation in advance through the management background as a permanent representation of the virtual character in the player. The idle animation can be an infinite loop animation. After the entrance animation, click animation or long press animation is finished, the idle animation will start to loop. Among them, the click animation is the virtual character animation triggered by clicking the virtual character, and the long press animation is the virtual character animation triggered by long pressing the virtual character. Both the click animation and the long press animation are interactive animations.
[0260] In some embodiments, a click operation on a virtual character may be received through the screen, and in response to the click operation, a click animation effect configured through the management backend may be played, such as Fig.12 As shown, what is shown is the effect diagram of playing the click animation in the animation playback interface.
[0261] In some embodiments, the screen can also receive a long press and drag operation on the virtual character to move the virtual character to any position on the screen. During the long press and drag operation on the screen, the configured long press animation effect will be played. Among them, the long press animation is also a looping animation, which will be played in a loop if the long press is continued until the long press ends.
[0262] In some embodiments, the click animation can also trigger the bullet screen linkage special effect. During the process of playing the click animation for the virtual character on the screen, the bullet screen linkage special effect configured in the management background will be triggered to enhance the video interactive experience. Figure 8B As shown. A lightning-like effect is added to each bullet screen on the screen. In some embodiments, when the click animation ends, the bullet screen linkage special effect also disappears, that is, the lightning effect of each bullet screen is cancelled.
[0263] In some embodiments, long pressing the animation can also trigger the barrage linkage special effect. When you long press and drag the virtual character close to the barrage, the touched barrage will trigger the configured barrage special effect.
[0264] For example, if the virtual character carries a virtual knife, long pressing the virtual character will play the long pressing animation of the virtual character wielding the virtual knife, and after dragging the virtual character and the virtual knife touches the bullet screen, a special effect of breaking the touched bullet screen is triggered, such as Fig. 9 shown.
[0265] If the avatar is carrying virtual flowers, long pressing the avatar will play the animation of the avatar holding the virtual flowers. Drag the avatar and the virtual flowers will touch the bullet screen, triggering the bullet screen font to become bold and present a love effect, such as Fig.13As shown, the font of the bullet screen 2402 in contact with the virtual flower 2401 is thicker than the font of other bullet screens, and a love heart is displayed in the display area of the bullet screen 2402. In some embodiments, at least one of the font, font size, color, and tilt of the bullet screen may also be triggered to change.
[0266] If the virtual character is carrying a virtual treasure gourd, long press the virtual character to play the animation of the virtual character raising the virtual treasure gourd. Drag the virtual character and the virtual treasure gourd touches the bullet screen. The screen will show the effect of the virtual treasure gourd absorbing the touched bullet screen, such as Fig.14 As shown, the virtual treasure gourd 2501 absorbs the barrage 2502 that it touches, wherein: Fig.14 What is presented is the barrage special effect at a fixed moment. During the whole special effect process, the complete process of the virtual treasure gourd 2501 absorbing the barrage 2502 will be presented until the barrage 2502 disappears from the screen.
[0267] In some embodiments, when the virtual character is idle, Fig.15 As shown, a close button 2602 appears at the bottom of the virtual object 2002, and a click operation on the close button 2602 can be received, thereby hiding the virtual character 2602, that is, making the virtual character 2602 leave the screen. And in the scene where the virtual character leaves the screen, if it is detected that the exit animation has been configured through the management background, the virtual character will leave in the form of an exit animation, that is, play the exit animation. Among them, the close button corresponds to the first close control in other embodiments.
[0268] In some embodiments, the image of the virtual character can also be replaced. After a certain replacement operation path and achieving the goal, the image replacement of the virtual character can be achieved. The replaced image can be a replacement of the entire character, or a replacement of the clothes or skin of the virtual character.
[0269] For example, the first method is to achieve the evolution of the virtual character after reaching the viewing time. Figure 7 , 1001 is a virtual character before evolution, corresponding to the first virtual object in other embodiments; 1002 is a virtual character evolved on the basis of 1001, corresponding to the second virtual object in other embodiments; 1003 is a virtual character evolved on the basis of 1002, corresponding to the second virtual object in other embodiments.
[0270] The second way is to participate in the event lottery, draw rare character skins, and replace the rare character skins with virtual characters.
[0271] The third way is to sign in every day to watch the show and receive limited character skins, which can then be replaced with virtual characters.
[0272] In the embodiment of the present application, the initial display position of the virtual character can be set according to the position relationship with the screen.
[0273] In some embodiments, the positional relationship between the initial display position and the screen can be indicated by an alignment mode, thereby achieving the setting of the initial display position. For example, the positional relationship between the initial display position and the screen can be set to align with the lower left corner, such as Fig.16A The initial display position and the screen position relationship can be set to align with the lower right corner, such as Fig. 16B The initial display position and the screen position relationship can be set to align to the left and vertically centered, such as Fig. 16C The initial display position and the screen position relationship can be set to align to the right and vertically center, such as Fig.16D The initial display position and the screen position relationship can be set to align to the bottom and horizontally center, as shown in Fig.16E The initial display position and the screen position relationship can be set to vertical or horizontal center, such as Fig.16F shown.
[0274] In some embodiments, the initial display position can also be set by position relationship and position offset, and left offset, right offset, upper offset, lower offset, horizontal center offset, and vertical center offset can be set. In different alignment modes, only some offsets are effective.
[0275] For example, in the lower left corner alignment mode, the left offset and the bottom offset can be set, and setting other offsets has no effect. Fig.17A The initial display position after being offset by 30 device independent pixels (dp) to the left and 25 device independent pixels to the bottom in the aligned lower left corner mode is shown.
[0276] Align to the bottom. In horizontal center mode, you can set the bottom offset and horizontal center offset. Setting other offsets has no effect. Fig. 17B It shows the initial display position after the horizontal center is offset by 20 device-independent pixels and the bottom is offset by 25 device-independent pixels in the aligned bottom and horizontal center mode.
[0277] In some embodiments, after the terminal completes loading the resources of the virtual character, the virtual character can be in the following states: entry state, idle state, click state, long press state, and exit state, wherein the idle state corresponds to the idle state in other embodiments. Fig.18 See Fig.18After creating a virtual character, the state of the virtual character is set to the entry state 1801. If there is an entry animation, the entry animation is played, and after the entry animation is played, the state of the virtual character is converted from the entry state 1801 to the idle state 1802; if there is no entry animation, the virtual object is directly displayed on the screen, and the state of the virtual character is converted from the entry state 1801 to the idle state 1802. When the virtual object is in the idle state 1802, the idle animation is played through the screen in a loop until other responses such as clicking the character or long pressing the character are received. When the operation of clicking the character is received, the state of the virtual character is converted from the idle state 1802 to the click state 1803. If there is a click animation corresponding to the click operation, the click animation is played, and after the click animation is played, the state of the virtual character is converted from the click state 1803 to the idle state 1802; if there is no click animation, the state of the virtual object remains unchanged. The operation of long pressing the character is similar to the operation of clicking the character, which will not be repeated here. The difference is that the long pressing state 1804 will continue until the long pressing operation disappears. In addition, if an operation of clicking the close button is received, the state of the virtual character is switched from the idle state 1802 to the leaving state 1805. If there is an leaving animation, the leaving animation is played, and after the leaving animation is finished, the leaving state 1805 of the virtual character is ended, and the virtual character is destroyed; if there is no leaving animation, the virtual object is directly removed from the screen, the leaving state 1805 of the virtual character is ended, and the virtual character is destroyed.
[0278] In some embodiments, each state can be configured with different animations, and when the state is switched, the animation corresponding to the switched state will be automatically played. When the entry animation, click animation, and long press animation are completed, it will automatically enter the idle state; and when the exit animation is completed, the virtual object will be deregistered.
[0279] In some embodiments, taking a click operation as an example, Fig.19 It is a flow chart of the linkage barrage special effects provided in an embodiment of the present application, including steps S3101 to S3110. The method can be executed by a computer device. In an embodiment of the present application, the computer device is used as a terminal for illustration.
[0280] In step S3101, a click operation on a virtual character is received.
[0281] In the embodiment of the present application, a click operation on the virtual character is received through the screen of the terminal.
[0282] In step S3102, it is determined whether there is a click animation corresponding to the click operation.
[0283] In an embodiment of the present application, when there is a click animation, the click animation is played and the process proceeds to step S3103; and when there is no single-click animation, it is continued to determine whether the click operation can trigger the barrage special effect, that is, proceed to step S3108.
[0284] In step S3103, the click animation starts playing, triggering the animation start event.
[0285] In step S3104, it is determined whether the click animation has the barrage special effect of the linked barrage.
[0286] In the embodiment of the present application, when the click animation has the first bullet screen special effect of the linked bullet screen, the first bullet screen special effect is triggered, that is, step S3105 is entered. When the click animation does not have the first bullet screen special effect of the linked bullet screen, the process ends, that is, step S3110 is entered.
[0287] In step S3105, the first barrage special effect is triggered.
[0288] Here, the first barrage special effect will be released to the barrage, so that the barrage presents the effect of the first barrage special effect. Among them, the first barrage special effect is a barrage special effect set in advance.
[0289] In step S3106, it is determined whether the click animation has finished playing.
[0290] In an embodiment of the present application, when the click animation ends, the animation end event is triggered and the process proceeds to step S3107; if the click animation has not ended, the click animation continues to play and the first barrage special effect is triggered, which means the process returns to step S3105.
[0291] In step S3107, the first bullet screen special effect is presented and the process ends.
[0292] In step S3108, determine whether the click operation can trigger the second barrage special effect.
[0293] In the embodiment of the present application, when the click operation can trigger the second bullet screen special effect, the second bullet screen special effect is triggered, that is, step S3109 is entered. When the click operation cannot trigger the second bullet screen special effect, the process ends directly, that is, step S3110 is entered.
[0294] In step S3109, the second barrage special effect is triggered.
[0295] Here, the second barrage special effect is also a barrage special effect set in advance. The second barrage special effect may be the same as the first barrage special effect, or may be different from the first barrage special effect.
[0296] In the embodiment of the present application, since the click operation is instantaneous, the presentation effect of the second bullet screen special effect is also instantaneous. For example, the presentation duration of the second bullet screen special effect can be 0.5 seconds, 1 second, etc. After the presentation duration is reached, the presentation of the second bullet screen special effect ends.
[0297] In step S3110, the process ends.
[0298] Here, either the click animation does not have the first barrage special effect of the linked barrage, or the click operation cannot trigger the second barrage special effect, then the process ends.
[0299] In some embodiments, the click animation of the virtual character is not limited to one type. After clicking the virtual character, a list may appear on the screen with multiple animations, and the click animation may be selected from the list as needed.
[0300] In some embodiments, the collision detection mechanism of the physics engine is used for the long-press and drag linkage barrage special effects. When the virtual character is displayed on the screen, the physical collision component will be attached to the virtual character and the barrage. At this time, the physics engine will automatically trigger the collision detection when the virtual character is long-pressed and dragged close to the barrage. After the barrage receives the collision callback, it will automatically trigger the barrage special effects configured in the background. Among them, the special effects can be one or a combination of multiple. For example, Fig. 9 When the virtual character uses a virtual knife to swing at the barrage, the barrage special effect is a separate fracture special effect. Fig.13 In the animation, the virtual character holds up virtual flowers, and the barrage special effects include text thickening and love frame animation effects. Fig.14 The barrage special effects are physical effects (torque generated by physical forces) and text scaling effects.
[0301] In some embodiments, Fig. 20 It is an interactive flow diagram of the interactive processing method provided in an embodiment of the present application, including the following steps S3201 to S3216, which are described in detail below.
[0302] In step S3201, the terminal starts playing the video.
[0303] In step S3202, the terminal sends a configuration acquisition request for video configuration information to the server.
[0304] In step S3203, the server returns video configuration information to the terminal.
[0305] In step S3204, the terminal determines whether the video is configured with a virtual character based on the configuration information.
[0306] In the embodiment of the present application, if the video is configured with a virtual character, the process proceeds to step S3205, otherwise the process ends, that is, the process proceeds to step S3216.
[0307] In step S3205, the terminal sends a role resource acquisition request for the virtual role to the server.
[0308] In step S3206, the server returns the role resource to the terminal.
[0309] In the embodiment of the present application, the character resource includes the initial display position of the virtual character and the animation of the virtual character. The animation of the virtual character includes at least an idle animation and an interactive animation, the interactive animation can be a long press animation or a click animation, and the animation of the virtual character can also include an entry animation and an exit animation.
[0310] In step S3207, the terminal displays the virtual character on the display interface.
[0311] In the embodiment of the present application, the terminal loads the character resource locally, and displays the virtual character on the display interface according to the initial display position configured in the character resource.
[0312] In step S3208, the entry animation is played in the display interface of the terminal.
[0313] In the embodiment of the present application, the state of the virtual character is switched to the entry state, and if there is an entry animation, the entry animation is played. If there is no entry animation, the idle animation is played directly.
[0314] In step S3209, in the display interface of the terminal, when the entry animation ends, an idle animation is played.
[0315] Here, when the entrance animation ends, the state of the virtual character is switched to an idle state.
[0316] In step S3210, whether an interactive operation is received in the display interface of the terminal.
[0317] Here, if an interactive operation is received in the display interface of the terminal, the process proceeds to step S3211, otherwise the idle animation continues to be played, that is, the process proceeds to step S3214.
[0318] In step S3211, the terminal plays the interactive animation corresponding to the interactive operation.
[0319] In the embodiment of the present application, if the interactive operation is a long press operation, and the long press operation corresponds to a long press animation, the long press animation is played. If the interactive operation is a click operation, and the click operation corresponds to a click animation, the click animation is played.
[0320] In step S3212, when the interactive animation meets the playback termination condition, the terminal plays an idle animation.
[0321] In an embodiment of the present application, if the interactive operation is a long press operation, it is determined that the interactive animation meets the playback termination condition when the long press operation ends. If the interactive operation is a click operation, it is determined that the interactive animation meets the playback termination condition when the click animation ends. When the interactive animation meets the playback termination condition, the virtual character is switched to an idle state.
[0322] In step S3213, the terminal determines whether a close operation for the close button is received.
[0323] In the embodiment of the present application, if no closing operation is received, the idle animation continues to be played, that is, the process proceeds to step S3214. If a closing operation is received, the process proceeds to step S3215.
[0324] In step S3214, the terminal continues to play the idle animation and returns to step S3210.
[0325] In the embodiment of the present application, the idle animation can be played in a loop until an interactive operation is received. That is, while the terminal is playing the idle animation in a loop, it also detects whether an interactive operation is received.
[0326] In some embodiments, the idle animation may also be played in a loop until a close operation is received. That is, the terminal may detect whether a close operation is received while playing the idle animation in a loop.
[0327] In step S3215, the terminal destroys the virtual character and releases the character resources.
[0328] In the embodiment of the present application, the virtual character is removed from the display interface, and the character resources such as the model, material, and texture occupied by the virtual character are released; then, the memory occupation is cleared and the callback function of the virtual character is removed. Thus, the virtual character and its character resources are destroyed from the memory to ensure the optimization of system performance.
[0329] In step S3216, the process ends.
[0330] The interactive processing method provided in the embodiment of the present application can provide an interactive experience that fits the plot, enrich the interactive methods during broadcasting, and increase interactivity, so that terminal users can actively participate in the barrage interaction.
[0331] It can be understood that in the embodiments of the present application, the collection, use and processing of data related to the second playback duration, the third virtual costume, the third virtual object, the interaction heat value, the object identification, the object attribute information, the emotional information, etc. need to comply with relevant laws, regulations and standards.
[0332] The following is a description of an exemplary structure of the interactive processing device 455 provided in the embodiment of the present application implemented as a software module. In some embodiments, Figure 3 As shown, the software modules stored in the interactive processing device 455 of the memory 450 may include:
[0333] A first display module 4551 is configured to play a video in a display interface, and to play a first animation for a first virtual object in the display interface, wherein the first animation represents that the first virtual object is in an idle state;
[0334] A first switching module 4552 is configured to switch the first animation to a second animation in response to a first interactive operation on the first virtual object, wherein the second animation represents that the first virtual object implements an interactive action, and the interactive action is used to respond to the first interactive operation;
[0335] The second switching module 4553 is used to switch the second animation to the first animation when a playing termination condition of the second animation is met.
[0336] In some embodiments, the first display module 4551 is further used for:
[0337] An animation playback interface is displayed in the display interface, wherein a first area of the animation playback interface is smaller than a second area of the display interface; the video is played in the display interface, and the first animation is played in the animation playback interface.
[0338] In some embodiments, the first display module 4551 is further used for:
[0339] Based on preset position information, the animation playback interface is displayed in the display interface; or, the background image of each video frame in the video is determined, and the animation playback interface is displayed in the background area of the display interface, and the background area is the area where the background image is displayed.
[0340] In some embodiments, the display interface includes a video playback interface and an animation playback interface, and the video playback interface is different from the animation playback interface; the first display module 4551 is also used to:
[0341] The video is played in the video playback interface, and the first animation is played in the animation playback interface.
[0342] In some embodiments, the first display module 4551 is further used for:
[0343] The first animation is played in the animation playing interface for a preset number of times, or the first animation is played in a loop.
[0344] In some embodiments, the software modules in the interaction processing device 455 may also include:
[0345] A first determining module is configured to determine that a playback termination condition of the second animation is satisfied when the playback times of the second animation on the display interface reaches a times threshold; or
[0346] The second determination module is used to determine that a playing termination condition of the second animation is satisfied when the first interactive operation is a continuous operation and it is detected that the first interactive operation disappears.
[0347] In some embodiments, the software modules in the interaction processing device 455 may also include:
[0348] a third determining module, configured to determine a second animation based on animation setting information and the first interactive operation, wherein the animation setting information includes at least one operation identifier of the first interactive operation, at least one animation identifier, and a corresponding relationship between the operation identifier and the animation identifier;
[0349] The second display module is used to cancel the playing of the first animation in the display interface and play the second animation in the display interface.
[0350] In some embodiments, the software modules in the interaction processing device 455 may also include:
[0351] The third display module is used to play a third animation in the display interface, wherein the third animation represents that the first virtual object has performed an entry action.
[0352] In some embodiments, the software modules in the interaction processing device 455 may also include:
[0353] A fourth display module, configured to display a first close control for the first animation in the display interface when the first playback duration of the first animation reaches a first duration threshold;
[0354] The fifth display module is used to cancel the playing of the first animation and play a fourth animation in the display interface in response to the triggering operation on the first closing control, wherein the fourth animation represents that the first virtual object has implemented a leaving action.
[0355] In some embodiments, the software modules in the interaction processing device 455 may also include:
[0356] a sixth display module, configured to display an animation setting interface in the display interface in response to the received animation setting operation, wherein the animation setting interface includes at least one operation identifier of the first interactive operation and a first animation setting control corresponding to each operation identifier;
[0357] a seventh display module, configured to display at least one first candidate animation in response to a triggering operation of the first animation setting control corresponding to the operation identifier;
[0358] The fourth determining module is configured to determine, in response to a selection operation on the first candidate animation, an animation identifier of the selected first candidate animation as the animation identifier corresponding to the operation identifier.
[0359] In some embodiments, the animation setting interface further includes at least one of the following: a second animation setting control, a third animation setting control, and a fourth animation setting control.
[0360] The software module in the interactive processing device 455 may also include at least one of the following:
[0361] a fifth determining module, configured to display at least one second candidate animation in response to a triggering operation on the second animation setting control, and determine the selected second candidate animation as the first animation in response to a selection operation on the second candidate animation;
[0362] a sixth determining module, configured to display at least one third candidate animation in response to a triggering operation on the third animation setting control, and to determine the selected third candidate animation as the third animation in response to a selection operation on the third candidate animation;
[0363] The seventh determination module is used to display at least one fourth candidate animation in response to a trigger operation on the fourth animation setting control, and in response to a selection operation on the fourth candidate animation, determine the selected fourth candidate animation as the fourth animation.
[0364] In some embodiments, the software modules in the interaction processing device 455 may also include:
[0365] An eighth display module, configured to display a first entry control for acquiring virtual resources in the display interface;
[0366] a ninth display module, configured to display a target virtual resource and a first collection control for the target virtual resource in response to a trigger operation for the first entry control, wherein the target virtual resource is a virtual resource allocated based on the trigger operation for the first entry control;
[0367] The first loading module is configured to load the first virtual decoration to the first virtual object in response to a triggering operation on the first receiving control when the target virtual resource is a first virtual decoration for the first virtual object.
[0368] In some embodiments, the software modules in the interaction processing device 455 may also include:
[0369] a tenth display module, configured to display a second entry control for executing a preset task in the display interface;
[0370] an eleventh display module, configured to display a task execution interface in the display interface in response to a trigger operation on the second entry control;
[0371] A first updating module, configured to update task data in response to a task execution operation received through the task execution interface;
[0372] A twelfth display module, configured to display the virtual reward resource corresponding to the preset task and a second claiming control for the virtual reward resource when the task is determined to be completed based on the updated task data;
[0373] The second loading module is used for, when the virtual reward resource is a second virtual decoration for the first virtual object, in response to a triggering operation for the second receiving control, loading the second virtual decoration into the first virtual object.
[0374] In some embodiments, the software modules in the interaction processing device 455 may also include:
[0375] a thirteenth display module, configured to display at least one candidate virtual decoration in the display interface in response to a decoration replacement operation on the first virtual object;
[0376] an eighth determining module, configured to determine the selected candidate virtual decoration as a third virtual decoration in response to a selection operation on the candidate virtual decoration;
[0377] The third loading module is used to load the third virtual decoration into the first virtual object.
[0378] In some embodiments, the software modules in the interaction processing device 455 may also include:
[0379] A first acquisition module is used to acquire a second playback duration of playing the video;
[0380] The third switching module is configured to switch the first virtual object to a second virtual object when the second playback duration reaches a second duration threshold, wherein the object level of the second virtual object is higher than the object level of the first virtual object.
[0381] In some embodiments, the software modules in the interaction processing device 455 may also include:
[0382] A second acquisition module is configured to, in response to a second interactive operation on a first character object in the video, acquire a third virtual costume corresponding to the first character object, and load the third virtual costume into the first virtual object; or
[0383] The third acquisition module is used to acquire a third virtual object corresponding to the first character object, and switch the first virtual object to the third virtual object.
[0384] In some embodiments, the software modules in the interaction processing device 455 may also include:
[0385] A fourteenth display module, configured to display an interactive message for the video in the display interface;
[0386] The first releasing module is used to release the first interactive special effect for the interactive message when the second animation has a first interactive special effect linked to the interactive message and a release condition of the first interactive special effect is met.
[0387] In some embodiments, the first release module is further configured to:
[0388] Perform special effect rendering on each of the interactive messages to obtain a first rendered interactive message; display the first rendered interactive message, wherein each of the first rendered interactive messages is used to present a release effect of the first interactive special effect.
[0389] In some embodiments, the first release module is further configured to:
[0390] Obtain the interaction heat value of each of the interactive messages; use the first interactive special effect to perform special effect rendering on the interactive message with the highest interaction heat value to obtain a second rendered interactive message; display the second rendered interactive message, wherein the second rendered interactive message is used to present the release effect of the first interactive special effect.
[0391] In some embodiments, the first release module is further configured to:
[0392] The first interactive special effect is released for the target message by using the virtual prop in the display interface.
[0393] In some embodiments, the software modules in the interaction processing device 455 may also include:
[0394] A first receiving module, configured to receive a third interactive operation on the first virtual object;
[0395] The second releasing module is used to respond to the third interactive operation, and if the third interactive operation can trigger the second interactive effect linked to the interactive message, release the second interactive effect for the interactive message.
[0396] In some embodiments, the software module in the interaction processing device 455 may further include at least one of the following:
[0397] A third releasing module, configured to release a third interactive special effect for the interactive message when the first virtual object performs an entry action;
[0398] The fourth releasing module is used to release a fourth interactive special effect for the interactive message when the first virtual object performs a leaving action.
[0399] In some embodiments, the software modules in the interaction processing device 455 may also include:
[0400] A fourth acquisition module, used to acquire an object identifier of a second role object displayed in the display interface;
[0401] a ninth determining module, configured to determine a second display area based on the first display area of the second role object in the display interface when the restricted role identification set includes the object identification;
[0402] A fifteenth display module is used to display the animation playback interface in the second display area, wherein the animation playback interface at least covers the facial image of the second character object, and the animation playback interface is used to play the first animation or the second animation.
[0403] In some embodiments, the software modules in the interaction processing device 455 may also include:
[0404] A fifth acquisition module, configured to acquire at least one of object attribute information and emotion information of a video viewing object;
[0405] When it is determined that the video covering opportunity has been reached based on at least one of the object attribute information and the emotion information, determining a third display area to be covered in the display interface based on the video;
[0406] a tenth determining module, configured to determine a fourth display area based on the third display area;
[0407] A sixteenth display module is configured to display the animation playing interface in the fourth display area, wherein the animation playing interface covers the third display area, and the animation playing interface is configured to play the first animation or the second animation.
[0408] In some embodiments, the software modules in the interaction processing device 455 may also include:
[0409] A seventeenth display module, configured to display a second closing control in the display interface, wherein the second closing control is configured to cancel covering of the third display area;
[0410] An eighteenth display module is used to display the animation playback interface in a preset display area in response to a trigger operation on the second closing control.
[0411] The embodiment of the present application provides a computer program product or a computer program, which includes computer executable instructions, and the computer executable instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer executable instructions from the computer-readable storage medium, and the processor executes the computer executable instructions, so that the computer device executes the above-mentioned interactive processing method of the embodiment of the present application.
[0412] The present application embodiment provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the processor will execute the interactive processing method provided by the present application embodiment, for example, Figure 4 , Fig. 20 The interactive processing method is shown.
[0413] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.
[0414] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0415] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0416] By way of example, computer executable instructions may be deployed to be executed on one computing device or on multiple computing devices located at one site or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0417] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. An interactive processing method, characterized in that: The method comprises: Play the video in the display interface, and Playing a first animation for a first virtual object in the display interface, wherein the first animation represents that the first virtual object is in an idle state; In response to a first interactive operation on the first virtual object, switching the first animation to a second animation, wherein the second animation represents that the first virtual object implements an interactive action, and the interactive action is used to respond to the first interactive operation; When the playing termination condition of the second animation is met, the second animation is switched to the first animation.
2. The method according to claim 1, characterized in that The playing of the video in the display interface and the playing of the first animation for the first virtual object in the display interface include: Displaying an animation playback interface in the display interface, wherein a first area of the animation playback interface is smaller than a second area of the display interface; The video is played in the display interface, and the first animation is played in the animation playback interface.
3. The method according to claim 2, characterized in that The step of displaying the animation playback interface in the display interface includes: Based on the preset position information, displaying the animation playback interface in the display interface; or, A background image of each video frame in the video is determined, and the animation playback interface is displayed in a background area of the display interface, where the background area is an area where the background image is displayed.
4. The method according to claim 1, characterized in that: The display interface includes a video playback interface and an animation playback interface, and the video playback interface is different from the animation playback interface; The playing of the video in the display interface and the playing of the first animation for the first virtual object in the display interface include: The video is played in the video playback interface, and the first animation is played in the animation playback interface.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: When the number of times the second animation is played on the display interface reaches a threshold, determining that a playing termination condition of the second animation is satisfied; or, When the first interactive operation is a continuous operation and it is detected that the first interactive operation disappears, it is determined that a playing termination condition of the second animation is satisfied.
6. The method according to any one of claims 1 to 4, characterized in that: The step of switching the first animation to a second animation in response to a first interactive operation on the first virtual object includes: Determine a second animation based on animation setting information and the first interactive operation, wherein the animation setting information includes at least one operation identifier of the first interactive operation, at least one animation identifier, and a corresponding relationship between the operation identifier and the animation identifier; The first animation is canceled from being played in the display interface, and the second animation is played in the display interface.
7. The method according to claim 6, characterized in that Before playing the first animation for the first virtual object in the display interface, the method further includes: A third animation is played in the display interface, wherein the third animation represents that the first virtual object performs an entry action.
8. The method according to claim 7, characterized in that The method further comprises: When a first playing time of the first animation reaches a first time threshold, displaying a first closing control for the first animation in the display interface; In response to a trigger operation on the first closing control, the first animation is canceled, and a fourth animation is played in the display interface, wherein the fourth animation represents that the first virtual object has performed an exit action.
9. The method according to claim 8, characterized in that The method further comprises: In response to the received animation setting operation, displaying an animation setting interface in the display interface, the animation setting interface at least including at least one operation identifier of the first interactive operation and a first animation setting control corresponding to each operation identifier; In response to a triggering operation of the first animation setting control corresponding to the operation identifier, displaying at least one first candidate animation; In response to a selection operation on the first candidate animation, the animation identifier of the selected first candidate animation is determined as the animation identifier corresponding to the operation identifier.
10. The method according to claim 9, characterized in that The animation setting interface further includes at least one of the following: a second animation setting control, a third animation setting control, and a fourth animation setting control, The method further comprises: performing at least one of the following: In response to a triggering operation on the second animation setting control, at least one second candidate animation is displayed, and in response to a selection operation on the second candidate animation, the selected second candidate animation is determined as the first animation; In response to a triggering operation on the third animation setting control, at least one third candidate animation is displayed, and in response to a selection operation on the third candidate animation, the selected third candidate animation is determined as the third animation; In response to a triggering operation on the fourth animation setting control, at least one fourth candidate animation is displayed, and in response to a selection operation on the fourth candidate animation, the selected fourth candidate animation is determined as the fourth animation.
11. The method according to any one of claims 1 to 4, 7 to 10, characterized in that: The method further comprises: Displaying a first entry control for acquiring virtual resources in the display interface; In response to a trigger operation on the first portal control, displaying a target virtual resource and a first collection control for the target virtual resource, wherein the target virtual resource is a virtual resource allocated based on the trigger operation on the first portal control; When the target virtual resource is a first virtual decoration for the first virtual object, in response to a triggering operation on the first receiving control, the first virtual decoration is loaded into the first virtual object.
12. The method according to any one of claims 1 to 4, 7 to 10, characterized in that: The method further comprises: Displaying a second entry control for executing a preset task in the display interface; In response to a triggering operation on the second entry control, displaying a task execution interface in the display interface; In response to a task execution operation received through the task execution interface, updating task data; When it is determined based on the updated task data that the task is completed, displaying the virtual reward resource corresponding to the preset task and a second claiming control for the virtual reward resource; When the virtual reward resource is a second virtual decoration for the first virtual object, in response to a triggering operation on the second receiving control, the second virtual decoration is loaded into the first virtual object.
13. The method according to any one of claims 1 to 4, 7 to 10, characterized in that: The method further comprises: Obtain a second playback duration of the video; When the second playback duration reaches a second duration threshold, the first virtual object is switched to a second virtual object, wherein the object level of the second virtual object is higher than the object level of the first virtual object.
14. The method according to any one of claims 1 to 4, 7 to 10, characterized in that: The method further comprises: In response to a second interactive operation on a first character object in the video, obtaining a third virtual costume corresponding to the first character object, and loading the third virtual costume into the first virtual object; or, Obtain a third virtual object corresponding to the first character object, and switch the first virtual object to the third virtual object.
15. The method according to any one of claims 1 to 4, 7 to 10, characterized in that: The method further comprises: Displaying an interactive message for the video in the display interface; When the second animation has a first interactive special effect linked to the interactive message, and when a release condition of the first interactive special effect is met, the first interactive special effect is released for the interactive message.
16. The method according to claim 15, characterized in that The release condition includes: starting to play the second animation; The releasing the first interactive special effect for the interactive message includes: Performing special effect rendering on each of the interactive messages to obtain a first rendered interactive message; The first post-rendering interactive message is displayed, wherein each of the first post-rendering interactive messages is used to present a release effect of the first interactive special effect.
17. The method according to claim 15, characterized in that The releasing the first interactive special effect for the interactive message includes: Obtaining the interaction heat value of each of the interactive messages; Using the first interactive special effect, special effect rendering is performed on the interactive message with the highest interactive heat value to obtain a second rendered interactive message; The second post-rendering interactive message is displayed, wherein the second post-rendering interactive message is used to present a release effect of the first interactive special effect.
18. The method according to claim 15, characterized in that When the first virtual object carries a virtual prop, and the first interactive operation is used to move the first virtual object, the release condition includes: during the movement of the first virtual object, there is a target message in the interactive message that satisfies a position relationship condition with the virtual prop; The releasing the first interactive special effect for the interactive message includes: The first interactive special effect is released for the target message by using the virtual prop in the display interface.
19. The method according to claim 15, characterized in that The method further comprises: receiving a third interactive operation on the first virtual object; In response to the third interactive operation, if the third interactive operation can trigger a second interactive special effect linked to the interactive message, the second interactive special effect is released for the interactive message.
20. The method according to claim 19, characterized in that The method further comprises: performing at least one of the following: During the process of the first virtual object performing the entry action, releasing a third interactive special effect for the interactive message; During the process of the first virtual object performing the leaving action, a fourth interactive special effect is released in response to the interactive message.
21. The method according to any one of claims 1 to 4, 7 to 10, 16 to 20, characterized in that: The method further comprises: Acquire at least one of object attribute information and emotion information of a video viewing object; When it is determined that the video covering opportunity has been reached based on at least one of the object attribute information and the emotion information, determining a third display area to be covered in the display interface based on the video; Based on the third display area, determining a fourth display area; The animation playing interface is displayed in the fourth display area, wherein the animation playing interface covers the third display area, and the animation playing interface is used to play the first animation or the second animation.
22. An interactive processing device, characterized in that: The device comprises: A first display module, configured to play a video in a display interface, and to play a first animation for a first virtual object in the display interface, wherein the first animation represents that the first virtual object is in an idle state; A first switching module, configured to switch the first animation to a second animation in response to a first interactive operation on the first virtual object, wherein the second animation represents that the first virtual object implements an interactive action, and the interactive action is used to respond to the first interactive operation; The second switching module is used to switch the second animation to the first animation when a playing termination condition of the second animation is met.
23. A computer device, characterized in that: The computer device comprises: A memory for storing computer executable instructions; A processor is used to implement the interactive processing method described in any one of claims 1 to 21 when executing the computer executable instructions stored in the memory.
24. A computer-readable storage medium storing computer-executable instructions, characterized in that: When the computer executable instructions are executed by a processor, the interactive processing method described in any one of claims 1 to 21 is implemented.
25. A computer program product comprising computer executable instructions, characterized in that: When the computer executable instructions are executed by a processor, the interactive processing method described in any one of claims 1 to 21 is implemented.
Citation Information
Cited By
Sign-in task display method and device, equipment, medium and product
CN121277591A
Animation playing method, electronic equipment and computer readable storage medium
CN121523592A