Live broadcast room interactive screen presentation method, device, electronic device and storage medium
By obtaining the motion path information and animation type of interactive objects in the live broadcast room, combining animation groups and playing them, the problem of single motion presentation of interactive objects in the existing technology is solved, richer interactive object motion animations are realized, and the interactive screen in the live broadcast room is improved. presentation effect.
Patent Information
- Application Number
- CN202211123941.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-15
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-09-15
AI Technical Summary
The existing technology has a single way of presenting the motion of interactive objects in the live broadcast room on the interactive interface, resulting in poor presentation of interactive images in the live broadcast room.
By obtaining the operation information of the interactive object, its motion path information is determined, motion nodes and animation types are determined based on the path information, motion animation groups are combined and played on the interactive interface to enrich the motion animation performance of the interactive object.
It improves the diversity of motion presentation methods for interactive objects in the live broadcast room and improves the presentation effect of interactive images in the live broadcast room.
Smart Images

Figure CN115499674B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network live broadcasting, and in particular to a method, device, electronic device and computer-readable storage medium for presenting interactive images in a live broadcast room. Background Art
[0002] With the development of online live broadcast technology, some applications provide live broadcast functions, and further realize the function of live broadcast room interaction for multiple users such as anchors and viewers to participate in, including but not limited to various interactive games involving the movement of interactive objects in the live broadcast room, such as chess interaction.
[0003] Among them, the corresponding pictures of the interactive objects moving on the interactive interface of the live broadcast room can be rendered and presented by the terminal, but the current technology has a single presentation method for the movement of the interactive objects on the interactive interface, resulting in poor presentation effect of the interactive pictures in the live broadcast room. Summary of the invention
[0004] Based on this, it is necessary to provide a live broadcast room interactive screen presentation method, device, electronic device and computer-readable storage medium to address the above technical problems.
[0005] In a first aspect, the present application provides a method for presenting interactive images in a live broadcast room. The method comprises:
[0006] Acquire motion path information of the affected interactive object based on the operation information of the operated interactive object in the live broadcast room interaction;
[0007] Determine, according to the motion path information, each motion node of the affected interactive object on the interactive interface and the animation type corresponding to each motion node;
[0008] According to the motion nodes and the animation types corresponding to the motion nodes, a motion animation group is obtained; the motion animation group includes the motion animations corresponding to the motion nodes;
[0009] The motion animation group is played on the interactive interface to present a picture of the affected interactive object moving from a starting node to an ending node among the motion nodes.
[0010] In one embodiment, each motion node includes a first node and a second node; obtaining a motion animation group according to each motion node and the animation type corresponding to each motion node includes: obtaining position information corresponding to the first node and the second node in the interactive interface; determining motion trajectory parameters according to the position information corresponding to the first node and the second node in the interactive interface and the animation type of the first node; and obtaining a motion animation from the first node to the second node based on the position information corresponding to the first node and the second node in the interactive interface and the motion trajectory parameters.
[0011] In one embodiment, the motion trajectory parameters include position information corresponding to the auxiliary node on the interactive interface; the motion animation from the first node to the second node is obtained based on the position information corresponding to the first node and the second node on the interactive interface and the motion trajectory parameters, including: inputting the position information corresponding to the first node and the second node and the auxiliary node on the interactive interface into a motion trajectory model, and obtaining motion trajectory data output by the motion trajectory model according to the position information corresponding to the first node and the second node and the auxiliary node on the interactive interface; based on the motion trajectory data, obtaining the motion animation from the first node to the second node.
[0012] In one embodiment, the motion animation of moving from the first node to the second node based on the motion trajectory data includes: obtaining the displacement animation of moving from the first node to the second node according to the motion trajectory data; obtaining the pre-displacement action animation acting on the first node and the post-displacement action animation acting on the second node; and obtaining the motion animation of moving from the first node to the second node according to the pre-displacement action animation, the displacement animation and the post-displacement action animation.
[0013] In one of the embodiments, the motion trajectory parameters are determined based on the position information corresponding to the first node and the second node on the interactive interface and the animation type of the first node, including: determining the proportion of position composition information corresponding to the animation type of the first node; obtaining the first position composition information corresponding to the auxiliary node on the interactive interface based on the first position composition information corresponding to the first node and the second node on the interactive interface and the proportion of the position composition information; obtaining the position information corresponding to the auxiliary node on the interactive interface based on the first position composition information corresponding to the auxiliary node on the interactive interface and preset second position composition information.
[0014] In one of the embodiments, obtaining the position information corresponding to the first node and the second node in the interactive interface includes: obtaining the node serial numbers of the first node and the second node respectively; based on a preset correspondence between the node serial numbers and the position information, obtaining the position information corresponding to the first node and the second node in the interactive interface according to the node serial numbers of the first node and the second node respectively.
[0015] In one of the embodiments, the method also includes: obtaining corresponding animation sound effects according to the animation types corresponding to each motion node; playing the motion animation group on the interactive interface includes: playing the motion animation corresponding to the current node on the interactive interface, and when the playing progress of the motion animation corresponding to the current node reaches a certain playing progress, playing the animation sound effect corresponding to the current node, so that the playing of the motion animation corresponding to the current node and the playing of the animation sound effect corresponding to the current node end synchronously.
[0016] In one of the embodiments, the acquisition of motion path information of an affected interactive object based on operation information of the operated interactive object in the live room interaction includes: receiving motion path information of each motion node of the affected interactive object on the interactive interface and their corresponding animation types broadcasted by the live room interaction server; wherein the live room interaction server is used to receive operation information of the operated interactive object in the live room interaction, calculate each motion node of the affected interactive object on the interactive interface and the animation type corresponding to each motion node based on the operation information, and obtain motion path information of each motion node of the affected interactive object and their corresponding animation types.
[0017] In one of the embodiments, the method further includes: during the playback of the motion animation group, if the interactive application in the live broadcast room switches from the foreground to the background, the playback of the motion animation group is paused; if the application is restored from the background to the foreground, the latest motion animation group is obtained based on the paused motion animation group combined with the latest motion path information and the background switching time, and the latest motion animation group is played in a fast-forward manner.
[0018] In a second aspect, the present application provides a live broadcast room interactive screen presentation device. The device comprises:
[0019] A path acquisition module, used to obtain motion path information of an affected interactive object based on operation information of an operated interactive object in a live broadcast room interaction;
[0020] A type determination module, used to determine each motion node of the affected interactive object on the interactive interface and the animation type corresponding to each motion node according to the motion path information;
[0021] An animation acquisition module, used to acquire a motion animation group according to each motion node and the animation type corresponding to each motion node; the motion animation group includes the motion animation corresponding to each motion node;
[0022] The animation playing module is used to play the motion animation group on the interactive interface to present a picture of the affected interactive object moving from the starting node to the ending node among the motion nodes.
[0023] In a third aspect, the present application provides an electronic device. The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0024] Obtain motion path information of an affected interactive object based on operation information of an operated interactive object in a live broadcast room interaction; determine each motion node of the affected interactive object on an interactive interface and the animation type corresponding to each motion node according to the motion path information; obtain a motion animation group according to each motion node and the animation type corresponding to each motion node; the motion animation group includes motion animations corresponding to each motion node; play the motion animation group on the interactive interface to present a picture of the affected interactive object moving from a starting node to an end node among the motion nodes.
[0025] In a fourth aspect, the present application provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0026] Obtain motion path information of an affected interactive object based on operation information of an operated interactive object in a live broadcast room interaction; determine each motion node of the affected interactive object on an interactive interface and the animation type corresponding to each motion node according to the motion path information; obtain a motion animation group according to each motion node and the animation type corresponding to each motion node; the motion animation group includes motion animations corresponding to each motion node; play the motion animation group on the interactive interface to present a picture of the affected interactive object moving from a starting node to an end node among the motion nodes.
[0027] The above-mentioned live broadcast room interactive screen presentation method, device, equipment and storage medium obtain the motion path information of the affected interactive object based on the operation information of the interactive object being operated in the live broadcast room interaction, and then determine the various motion nodes of the affected interactive object on the interactive interface and their corresponding animation types according to the motion path information, and obtain a motion animation group according to each motion node and its corresponding animation type, and the motion animation group contains the motion animation corresponding to each motion node; the motion animation group is played on the interactive interface to present the screen of the affected interactive object moving from the starting node to the ending node in each motion node. This scheme can form a rich and diverse motion animation type based on the full design of the animation, thereby configuring the corresponding animation type for the interactive object at each motion node, so that the movement of the interactive object on the interactive interface includes a rich variety of motion animations, thereby making the presentation of the motion of the interactive object in the live broadcast room interaction more rich and diverse, and improving the presentation effect of the live broadcast room interactive screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 This is an application scenario diagram of the live broadcast room interactive screen presentation method in the embodiment of the present application;
[0029] Figure 2 A flowchart of a method for presenting interactive images in a live broadcast room according to an embodiment of the present application;
[0030] Figure 3 A schematic diagram of a flow chart of steps for obtaining a motion animation in an embodiment of the present application;
[0031] Figure 4 This is a flow chart of the steps of motion animation in another embodiment of the present application;
[0032] Figure 5 A schematic diagram of a flow chart of the steps of determining motion trajectory parameters in an embodiment of the present application;
[0033] Figure 6 This is a structural block diagram of a live broadcast room interactive screen presentation device in an embodiment of the present application;
[0034] Figure 7 Schematic diagram of the internal structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0036] The live broadcast room interactive screen presentation method provided in this application can be applied to Figure 1In the application scenario shown, the application scenario may include a terminal 110 and a live broadcast room interactive server 120. The terminal 110 may communicate with the live broadcast room interactive server 120 via the Internet. The terminal 110 may include multiple terminals (such as Figure 1 Terminal 1, terminal 2, terminal 3, etc. shown in the figure), the live broadcast room interaction server 120 provides services such as relevant data processing and transmission of the live broadcast room interaction for multiple terminals that join the live broadcast room interaction. Among them, the live broadcast room interaction can be various interactive mini-games involving the movement of interactive objects, such as chess interaction, provided by the live broadcast room to users entering the live broadcast room, including anchors and viewers. The flying chess in the chess interaction has various movement forms such as walking, jumping, and flying, and is easy to understand. In order to better reflect the characteristics of the live broadcast room interaction screen presentation method of the present application without losing generality, the subsequent part will mainly use the flying chess in the chess interaction as an example of the live broadcast room interaction to illustrate the live broadcast room interaction screen presentation method provided by the present application. Figure 1 In the application environment shown, the terminal 110 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, etc. The live broadcast room interactive server 120 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0037] The following parts are based on Figure 1 The application scenario shown, combined with various embodiments and corresponding drawings, illustrates the live broadcast room interactive screen presentation method provided by the present application.
[0038] In one embodiment, Figure 2 As shown, a method for presenting interactive images in a live broadcast room is provided, and the method can be performed as follows Figure 1 The terminal 110 in the embodiment is executed, and the method may include the following steps:
[0039] Step S201, obtaining motion path information of an affected interactive object based on operation information of the operated interactive object in the live broadcast room interaction.
[0040] Specifically, the terminal 110 participating in the live broadcast room interaction may include terminal 1 used by user 1, terminal 2 used by user 2, and terminal 3 used by user 3. In the live broadcast room interaction, each user may have one or more corresponding interactive objects, which may be displayed by the terminal on the interactive interface of the live broadcast room interaction. Under the operation of the corresponding user, the corresponding interactive object may move on the interactive interface. Among them, the live broadcast room interaction is usually promoted by each user operating their respective interactive objects in turn, and the user whose turn it is has the authority to operate his interactive object. In this step, taking the example that user 1 has the authority to operate his interactive object, user 1 can trigger the operation on interactive object 1A on terminal 1. The interactive object 1A is the interactive object being operated in the live broadcast room interaction, and terminal 1 forms the corresponding operation information. Based on the operation information, the motion path information of the affected interactive object can be determined in combination with the current basic interaction data. Among them, the current basic interaction data may include the positions of other interactive objects such as interactive object 1A on the interactive interface, the grid points for movement of each interactive object on the interactive interface, interaction rules and other data. The operation information of interactive object 1A and these basic interaction data can determine the interactive object affected by the operation of interactive object 1A. This interactive object is called the affected interactive object. The affected interactive object usually makes corresponding movements along a certain path on the interactive interface. The information that can be used to indicate the movement is recorded as motion path information. As mentioned above, the motion path information of the affected interactive object can be determined by the operation information of interactive object 1A and the basic interaction data. As an example, terminal 110 can display a flying chess board interface (interactive interface), which includes grid points for each chess piece to move, and some grid points may be grid points on which chess pieces are already distributed. When it is user 1's turn to operate, user 1 can roll the dice and select the red chess piece A. The number of points on the dice and the selection of the red chess piece can be used as operation information of the red chess piece A, the interactive object being operated. Based on the operation information and the flying chess board data (such as the positions of each chess piece of various colors distributed on the flying chess board, etc.), the movement path information of the affected chess piece on the chessboard can be determined. In a specific implementation, the affected chess piece may include only the operated red chess piece A, or may include the red chess piece A and one or more other chess pieces affected by the operation on the red chess piece A.
[0041] In one embodiment, step S201 may include: receiving motion path information of each motion node of the affected interactive object on the interactive interface and its corresponding animation type broadcasted by the live broadcast room interactive server.
[0042] In this embodiment, user 1 who has the operation authority for the interactive object can trigger the operation on the interactive object 1A on terminal 1, and terminal 1 sends the corresponding operation information to the live broadcast room interactive server 120, which calculates the motion path information, thereby preventing the terminal from cheating in the live broadcast interaction. The live broadcast room interactive server 120 receives the operation information of the interactive object being operated in the live broadcast room interaction, such as the interactive object 1A, and calculates the various motion nodes of the affected interactive object on the interactive interface and the animation type corresponding to each motion node based on the operation information, and obtains the motion path information including the various motion nodes and the animation type corresponding to each motion node. Among them, the live broadcast room interactive server 120 can calculate each node that the affected interactive object needs to move, that is, each movement node, based on the operation information and the current interactive basic data. A node can be regarded as a grid on the chessboard, and each movement node can correspond to an animation type. For example, if the red chess piece A walks from node 1 to node 2, the animation type corresponding to node 1 is walking. If the red chess piece A flies from node 1 to node 2, the animation type corresponding to node 1 is flying, and so on. If it stops at node 2, the animation type corresponding to node 2 can be stop, or the animation type may not be set for the node. If the red chess piece A needs to jump from node 2 to node 3, the animation type of node 2 can be set for node 1 in the same way until the movement nodes of the affected interactive objects and their corresponding animation types are calculated and set in turn. As for the animation type, its role is to guide the terminal to adopt the corresponding motion animation to express the movement of the affected interactive object at a motion node. For example, if the animation type is walking, the walking motion animation is used to express the movement of the interactive object at a motion node. If the animation type is flying, the flying motion animation is used to express it, and so on. The animations of motion actions such as walking and flying can be designed to be different and varied, thereby setting a variety of animation types, making the movement representation of the interactive object in the interactive interface richer, thereby improving the presentation effect of the interactive screen in the live broadcast room. After the live broadcast room interactive server 120 obtains the various motion nodes of the affected interactive object on the interactive interface and the animation type corresponding to each motion node, it can obtain the motion path information including the various motion nodes and the animation type corresponding to each motion node, and then broadcast the motion path information to each terminal 110, so that the terminal 110 can receive the motion path information including the various motion nodes of the affected interactive object on the interactive interface and the animation type corresponding to each motion node broadcast by the live broadcast room interactive server 120, that is, the live broadcast room interactive server 120 does not need to calculate and send the entire live interactive screen, but can only broadcast lightweight motion path information to each terminal 110, and each terminal 110 performs live interactive screen calculations, thereby saving information transmission resources and achieving the effect of synchronizing the live interactive screens at each end.
[0043] Step S202: determining, based on the motion path information, each motion node of the affected interactive object on the interactive interface and the animation type corresponding to each motion node.
[0044] In this step, the terminal 110 can extract the motion nodes of the affected interactive object on the interactive interface and the animation type corresponding to each motion node from the motion path information broadcast by the live broadcast room interactive server 120.
[0045] Step S203: acquiring a motion animation group according to each motion node and the animation type corresponding to each motion node.
[0046] In this step, the terminal 110 may preset the configuration information of the motion animation corresponding to each animation type, and the terminal 110 may generate the corresponding motion animation according to the configuration information. The configuration information may be sent to the terminal 110 by the live broadcast room interactive server 120 before the live broadcast room interaction begins for storage. Exemplarily, the configuration information may include animation playback duration, animation expression form, etc. Thus, after the terminal 110 extracts the various motion nodes of the affected interactive object on the interactive interface and the animation types corresponding to each motion node from the motion path information, the terminal 110 may obtain the motion animation corresponding to each motion node based on the aforementioned configuration information according to each motion node and its corresponding animation type, and form a motion animation group including the motion animation corresponding to each motion node, that is, the motion animation generated by the operation of the interactive object played at the terminal 110 may be composed of a series of motion animations, such as the motion animation group may include the walking motion animation, flying motion animation and jumping motion animation of the red chess piece A, etc.
[0047] Step S204, playing the motion animation group on the interactive interface to present a picture of the affected interactive object moving from the starting node to the ending node in each motion node.
[0048] In this step, after the terminal 110 obtains the motion animation group containing the motion animation corresponding to each motion node, the motion animation group can be played on the interactive interface. Specifically, the corresponding motion animation can be played node by node, thereby presenting a picture on the terminal 110 of the affected interactive object moving from the starting node in each motion node to the ending node.
[0049] The interactive screen presentation method of the live broadcast room of the present embodiment obtains the motion path information of the affected interactive object based on the operation information of the operated interactive object in the live broadcast room interaction, and then determines the various motion nodes of the affected interactive object on the interactive interface and their corresponding animation types according to the motion path information, and obtains a motion animation group according to each motion node and its corresponding animation type, and the motion animation group contains the motion animation corresponding to each motion node; the motion animation group is played on the interactive interface to present the screen of the affected interactive object moving from the starting node to the ending node in each motion node. This scheme can form a rich and diverse motion animation type based on the full design of the animation, thereby configuring the corresponding animation type for the interactive object at each motion node, so that the movement of the interactive object on the interactive interface includes a rich variety of motion animations, thereby making the presentation of the motion of the interactive object in the live broadcast room interaction more rich and diverse, and improving the presentation effect of the interactive screen of the live broadcast room.
[0050] In one embodiment, Figure 3 As shown, each motion node of the affected interactive object on the interactive interface may include a first node and a second node; in step S203, obtaining a motion animation group according to each motion node and the animation type corresponding to each motion node may specifically include:
[0051] Step S301, obtaining corresponding position information of the first node and the second node on the interactive interface.
[0052] Specifically, the first node and the second node may correspond to the starting node and the next node of the red chess piece A. For example, in the case of walking, the next node is usually an adjacent node of the starting node. In this step, the terminal 110 obtains the corresponding position information of the first node and the second node on the interactive interface. The position information may be the corresponding coordinates of the first node and the second node on the interactive interface.
[0053] In some embodiments, step S301 may specifically include: obtaining the node serial number of each of the first node and the second node; based on the preset correspondence between the node serial number and the position information, according to the node serial numbers of the first node and the second node, obtaining the position information corresponding to the first node and the second node in the interactive interface. Among them, each node may correspond to a node serial number, for example, a flying chess board interface may include multiple grid points, each grid point may correspond to a node, each grid point may be numbered to form a grid serial number, and the grid serial number may correspond to the node serial number. The motion path information broadcast by the live interactive server 120 may specifically include the node serial numbers of the aforementioned first node and the second node, and before the live interactive begins, the terminal 110 needs to initialize the rendering of the live interactive interface such as the flying chess board interface, at which time the correspondence between the node serial number of each node and its corresponding position information such as coordinates in the interactive interface can be recorded to form a preset correspondence between the node serial number and the position information. Based on this, after the terminal 110 obtains the node serial numbers of the first node and the second node respectively, it can obtain the corresponding position information of the first node and the second node in the interactive interface based on the corresponding relationship, thereby simply and effectively ensuring that the motion animation of the corresponding node is accurately played.
[0054] Step S302: determining motion trajectory parameters according to corresponding position information of the first node and the second node on the interactive interface and the animation type of the first node.
[0055] In this step, the terminal 110 can determine the corresponding motion trajectory parameters based on the corresponding coordinates of the first node and the second node in the interactive interface and the animation type of the first node. The motion trajectory parameters can be characteristic parameters used to represent the motion trajectory of moving from the first node to the second node. The characteristic parameters can be parameters that determine what kind of motion trajectory line type is formed, such as parameters for selecting a curved or straight motion trajectory, or parameters that specifically determine what kind of curvature of the curve is formed, such as parameters for a large curvature curve or a small curvature curve, etc. The characteristic parameters can be determined in combination with the distance between the first node and the second node and the animation type of the first node, so that the depicted motion trajectory can adapt to the motion characteristics of the affected interactive object moving from the first node to the second node, so that its motion animation has a better presentation effect.
[0056] Step S303, based on the corresponding position information of the first node and the second node on the interactive interface and the motion trajectory parameters, obtain a motion animation from the first node to the second node.
[0057] In this step, the terminal 110 may generate a motion animation from the first node to the second node based on the corresponding coordinates of the first node and the second node in the interactive interface and the motion trajectory parameters combined with the configuration information of the motion animation corresponding to the animation type.
[0058] The solution of this embodiment can realize the fine setting of each motion animation in the motion animation group, so that the movement of the interactive object between each node can adapt to its motion characteristics, so that the motion animation of the interactive object between each node has a better presentation effect.
[0059] In one embodiment, the motion trajectory parameters in the above embodiment may specifically include position information corresponding to the auxiliary node on the interactive interface, and the above step S303 may further include:
[0060] The position information corresponding to the first node, the second node and the auxiliary node in the interactive interface is input into the motion trajectory model to obtain the motion trajectory data output by the motion trajectory model according to the position information corresponding to the first node, the second node and the auxiliary node in the interactive interface; based on the motion trajectory data, a motion animation moving from the first node to the second node is obtained.
[0061] In this embodiment, when forming a motion animation from a first node to a second node, it can be formed with the help of an auxiliary node. The auxiliary node may not be a node on the interactive interface for the interactive object to move, but may be another simulated node to assist the motion animation from the first node to the second node. As mentioned above, the auxiliary node can be determined according to the corresponding position information of the first node and the second node on the interactive interface and the animation type of the first node. In addition to the auxiliary node, this embodiment also forms a motion animation with the help of a pre-configured motion trajectory model. The motion trajectory model can be implemented using a curve equation, so that the generation of the motion animation from the first node to the second node can be accurate, fast and simple. Specifically, the terminal 110 can input the coordinates corresponding to the first node, the second node and the auxiliary node on the interactive interface into the motion trajectory model. The motion trajectory model draws the corresponding motion trajectory curve according to the coordinates of the three nodes. Each point of the motion trajectory curve can correspond to a coordinate on the interactive interface. The coordinates of each point constituting the motion trajectory curve on the interactive interface can be used as the motion trajectory data output by the motion trajectory model. The terminal 110 can generate a motion animation from the first node to the second node based on the motion trajectory data combined with the configuration information of the motion animation corresponding to the animation type.
[0062] Further, in some embodiments, such as Figure 4 As shown, in the above embodiment, obtaining a motion animation from a first node to a second node based on motion trajectory data may specifically include:
[0063] Step S401, obtaining a displacement animation of movement from a first node to a second node according to the motion trajectory data.
[0064] Step S402, obtaining a pre-displacement action animation acting on the first node and a post-displacement action animation acting on the second node.
[0065] Step S403, obtaining a motion animation from the first node to the second node according to the pre-displacement motion animation, the displacement animation and the post-displacement motion animation.
[0066] In this embodiment, the motion animation generated by the terminal 110 in step S401 according to the motion trajectory data is used as a displacement animation of moving from the first node to the second node, that is, the displacement animation presents the displacement of the affected interactive object from the first node to the second node. In order to further enrich the presentation effect of the motion animation of moving from the first node to the second node, the terminal 110 obtains the pre-displacement action animation acting on the first node and the post-displacement action animation acting on the second node in step S402. The pre-displacement action animation refers to the animation played before the displacement animation is played to represent the action before the displacement, and the post-displacement movement animation correspondingly refers to the animation played after the displacement animation is played to represent the action after the displacement. Then, in step S403, the terminal 110 can sequentially combine the pre-displacement action animation, the displacement animation and the post-displacement action animation into a motion animation of the affected interactive object moving from the first node to the second node, so that the motion animation is more meticulously and richly configured, and the presented motion animation effect is better. For example, the pre-displacement action animation acting on the first node can be a magnified animation of the red chess piece A taking off at the first node, the displacement animation can be a translational animation of the red chess piece A moving from the first node to the second node, and the post-displacement action animation acting on the second node can be a reduced animation of the red chess piece A landing at the second node. This can make the movement animation of the chess piece have a more detailed and rich configuration, presenting a better movement animation effect.
[0067] In some embodiments, Figure 5 As shown, in step S302 of the aforementioned embodiment, determining the motion trajectory parameters according to the position information corresponding to the first node and the second node on the interactive interface and the animation type of the first node may include:
[0068] Step S501, determining the position composition information ratio corresponding to the animation type of the first node.
[0069] Step S502, obtaining the first position composition information corresponding to the auxiliary node in the interactive interface according to the first position composition information corresponding to the first node and the second node in the interactive interface and the position composition information ratio.
[0070] Step S503, obtaining the position information corresponding to the auxiliary node on the interactive interface according to the first position composition information corresponding to the auxiliary node on the interactive interface and the preset second position composition information.
[0071] This embodiment mainly provides a solution for determining the position information corresponding to the auxiliary node in the interactive interface when the motion trajectory parameters include the position information corresponding to the auxiliary node in the interactive interface. Specifically, the terminal 110 may first determine the position composition information ratio of the animation type corresponding to the first node in step S501, that is, different animation types may have different position composition information ratios. By setting different position composition information ratios, the auxiliary nodes at the corresponding positions determined thereby can assist in the depiction of the motion trajectory data, so that the movement of the interactive object between the two nodes can adapt to its motion characteristics and present a better motion picture. For example, when the animation type is walking, the position composition information ratio can be 1 / 2, and when the animation type is falling back to the origin, the position composition information ratio can be 3 / 4, and so on. Then, in step S502, the terminal 110 may first obtain the first position composition information corresponding to the first node and the second node in the interactive interface, and the first position composition information may be the horizontal coordinates of the first node and the second node respectively in the interactive interface, and then the terminal 110 may obtain the first position composition information corresponding to the auxiliary node in the interactive interface according to the horizontal coordinates of the first node and the second node respectively in the interactive interface and the ratio of the position composition information, that is, the horizontal coordinate of the auxiliary node in the interactive interface. For example, when the animation type is walking, the terminal 110 may use 1 / 2 of the horizontal coordinates of the first node and the second node as the horizontal coordinate of the auxiliary node in the interactive interface. When the animation type is returning to the origin, the terminal 110 may use 3 / 4 of the horizontal coordinates of the first node and the second node as the horizontal coordinate of the auxiliary node in the interactive interface, and so on. The specific ratio value may be adjusted according to the motion effect to be achieved. Then in step S503, the terminal 110 can first obtain the preset second position composition information, that is, the vertical coordinate of the auxiliary node in the interactive interface. The vertical coordinate can be corresponded by the animation type. Different animation types can correspond to different heights. The terminal 110 can use the height corresponding to the animation type as the vertical coordinate of the auxiliary node in the interactive interface to obtain the second position composition information corresponding to the auxiliary node in the interactive interface, and obtain the position information corresponding to the auxiliary node in the interactive interface according to the first and second position composition information corresponding to the auxiliary node in the interactive interface. As an example, based on this and combined with the motion trajectory model of the above embodiment, the embodiment of the present application can use a second-order Bezier curve as a motion trajectory model:
[0072] Q(t)=(1-t) 2 P0+2t(1-t)P1+t 2 P2,
[0073] Among them, Q(t) can represent motion trajectory data, P0 can represent the position information of the first node, P2 can represent the position information of the second node, P1 can represent the position information of the auxiliary node, and t represents the unit time. Therefore, the terminal 110 can use the motion trajectory model to accurately, quickly and easily generate the motion animation from the first node to the second node based on the position information corresponding to the first and second nodes and the auxiliary node in the interactive interface, and the motion of the interactive object between the two nodes can adapt to its motion characteristics to present a better motion picture.
[0074] In one embodiment, the method of the present application may further include the following steps: according to the animation type corresponding to each motion node, the corresponding animation sound effect is obtained. Specifically, the terminal 110 may also be pre-set with animation sound effects corresponding to each animation type, so that the presentation effect of the motion animation is better. Among them, the terminal 110 can obtain the animation sound effects corresponding to each motion node according to the animation type corresponding to each motion node. Based on this, the playing of the motion animation group in the interactive interface in the above step S204 may include: playing the motion animation corresponding to the current node in the interactive interface, and when the playing progress of the motion animation corresponding to the current node reaches a certain playing progress, playing the animation sound effect corresponding to the current node, so that the playing of the motion animation corresponding to the current node and the playing of the animation sound effect corresponding to the current node are synchronously ended.
[0075] In this embodiment, terminal 110 can play the corresponding motion animation node by node in the interactive interface. Terminal 110 can also set monitoring when the animation is playing. When the playing progress of the motion animation corresponding to the current node reaches a certain playing progress, the animation sound effect corresponding to the current node is played. That is, when the motion animation corresponding to the current node just starts to play, the corresponding animation sound effect can be not played first, because the playing time of animation sound effect is usually shorter than that of motion animation, that is, the playing time of animation sound effect is shorter than that of corresponding motion animation. Playing the animation sound effect when the motion animation starts to play can easily make the overall connection of the motion animation group unnatural due to the playing of animation sound effect. Therefore, in this embodiment, the playing time of animation sound effect can be combined to monitor the progress of animation playing. When the playing progress of the motion animation corresponding to the current node reaches a certain playing progress, the animation sound effect corresponding to the current node is played, so that the playing of the motion animation corresponding to the current node and the playing of the animation sound effect corresponding to the current node can be ended synchronously, and then the playing of the motion animation corresponding to the next node and its progress monitoring and the playing of the corresponding animation sound effect are started, so as to achieve the effect of natural connection of the motion animation group as a whole.
[0076] In one embodiment, the method of the present application may further include the following steps:
[0077] During the playback of the motion animation group, if the interactive application in the live broadcast room switches from the foreground to the background, the playback of the motion animation group will be paused; if the application is restored to the foreground from the background, the latest motion animation group is obtained based on the suspended motion animation group combined with the latest motion path information and the background switching time, and the latest motion animation group is played in a fast-forward manner.
[0078] This embodiment realizes that when the interactive application of the live broadcast room of the terminal 110, such as the live broadcast program, switches from the foreground to the background and then returns to the foreground, the interactive interface is quickly and synchronously restored to the latest interactive state. Specifically, when the terminal 110 is playing the motion animation group, if the interactive application of the live broadcast room switches from the foreground to the background, the terminal 110 first pauses the playing of the motion animation group, and then when the application is restored from the background to the foreground, the terminal 110 can obtain the latest motion animation group based on the paused motion animation group and the latest motion path information and background switching time provided by the live broadcast room interactive server 120, and play the latest motion animation group in a fast-forward manner, wherein the background switching time refers to the time consumed from the application switching to the background to returning to the foreground. As an application example, when the user presses the HOME button on the terminal 110 to switch the live broadcast room interactive application from the foreground to the background, since the application is alive, the heartbeat of the terminal 110 will be maintained normally at this time. The terminal 110 that switches to the background can save, clean up, and restore some states. If the terminal 110 that switches to the background is playing a motion animation group when it switches to the background, it is necessary to pause the playback of the motion animation group first. After a certain amount of time has passed since the background switch returns to the foreground, the chess pieces may have already moved. The terminal 110 can obtain and play the latest motion animation group in a fast-forward manner based on the paused motion animation group and the latest motion path information and background switching time provided by the live broadcast room interactive server 120, so that the interactive interface of the terminal 110 can be quickly and synchronously restored to the latest interactive state. For example, the background switch takes 3 seconds, and the red chess piece takes 10 seconds to move from point A to point B. The motion animation group that originally takes 10 seconds is modified to a playback of 7 seconds or less when it returns to the foreground, so that it can quickly restore to a state synchronized with the interactive interfaces of other terminals.
[0079] In actual applications, when the motion animation playback ends or the interactive interface is exited, the terminal 110 can recycle different motion animation instances, thereby avoiding memory leaks caused by improper recycling.
[0080] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0081] Based on the same inventive concept, the embodiment of the present application also provides a live broadcast room interactive screen presentation device for implementing the live broadcast room interactive screen presentation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more live broadcast room interactive screen presentation device embodiments provided below can refer to the limitations of the live broadcast room interactive screen presentation method above, and will not be repeated here.
[0082] In one embodiment, Figure 6 As shown, a live broadcast room interactive screen presentation device is provided, and the device 600 may include:
[0083] A path acquisition module 601 is used to obtain motion path information of an affected interactive object based on operation information of an operated interactive object in a live broadcast room interaction;
[0084] A type determination module 602 is used to determine, according to the motion path information, each motion node of the affected interactive object on the interactive interface and the animation type corresponding to each motion node;
[0085] Animation acquisition module 603, used to acquire a motion animation group according to each motion node and the animation type corresponding to each motion node; the motion animation group includes the motion animation corresponding to each motion node;
[0086] The animation playing module 604 is used to play the motion animation group on the interactive interface to present a picture of the affected interactive object moving from the starting node to the ending node among the motion nodes.
[0087] In one embodiment, each motion node includes a first node and a second node; the animation acquisition module 603 is used to obtain the position information corresponding to the first node and the second node in the interactive interface; determine the motion trajectory parameters according to the position information corresponding to the first node and the second node in the interactive interface and the animation type of the first node; based on the position information corresponding to the first node and the second node in the interactive interface and the motion trajectory parameters, obtain a motion animation from the first node to the second node.
[0088] In one embodiment, the motion trajectory parameters include position information corresponding to the auxiliary node on the interactive interface; the animation acquisition module 603 is used to input the position information corresponding to the first node, the second node and the auxiliary node on the interactive interface into the motion trajectory model, and obtain the motion trajectory data output by the motion trajectory model according to the position information corresponding to the first node, the second node and the auxiliary node on the interactive interface; based on the motion trajectory data, obtain the motion animation from the first node to the second node.
[0089] In one embodiment, the animation acquisition module 603 is used to acquire the displacement animation of movement from the first node to the second node according to the motion trajectory data; acquire the pre-displacement action animation acting on the first node and the post-displacement action animation acting on the second node; and obtain the motion animation from the first node to the second node according to the pre-displacement action animation, the displacement animation and the post-displacement action animation.
[0090] In one embodiment, the animation acquisition module 603 is used to determine the proportion of position composition information of the animation type corresponding to the first node; obtain the first position composition information corresponding to the auxiliary node in the interactive interface based on the first position composition information corresponding to the first and second nodes in the interactive interface and the proportion of the position composition information; obtain the position information corresponding to the auxiliary node in the interactive interface based on the first position composition information corresponding to the auxiliary node in the interactive interface and the preset second position composition information.
[0091] In one embodiment, the animation acquisition module 603 is used to obtain the node serial numbers of the first node and the second node respectively; based on the preset correspondence between the node serial numbers and the position information, the position information corresponding to the first node and the second node in the interactive interface is obtained according to the node serial numbers of the first node and the second node respectively.
[0092] In one embodiment, the device 600 may also include: a sound effect acquisition module, used to acquire corresponding animation sound effects according to the animation types corresponding to each motion node; an animation playback module 604, used to play the motion animation corresponding to the current node on the interactive interface, and when the playback progress of the motion animation corresponding to the current node reaches a certain playback progress, the animation sound effect corresponding to the current node is played, so that the playback of the motion animation corresponding to the current node and the playback of the animation sound effect corresponding to the current node end synchronously.
[0093] In one embodiment, the path acquisition module 601 is used to receive motion path information broadcast by a live broadcast room interaction server, including each motion node of the affected interactive object on the interactive interface and their corresponding animation types; wherein the live broadcast room interaction server is used to receive operation information on the interactive object operated in the live broadcast room interaction, calculate each motion node of the affected interactive object on the interactive interface and the animation type corresponding to each motion node based on the operation information, and obtain motion path information including each motion node of the affected interactive object and their corresponding animation type.
[0094] In one embodiment, the device 600 may also include: an exception handling module, which is used to pause the playback of the motion animation group if the interactive application in the live broadcast room switches from the foreground to the background during the playback of the motion animation group; if the application is restored from the background to the foreground, the latest motion animation group is obtained based on the suspended motion animation group combined with the latest motion path information and the background switching time, and the latest motion animation group is played in a fast-forward manner.
[0095] Each module in the above-mentioned live interactive screen presentation device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the corresponding operations of the above modules.
[0096] In one embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown. The electronic device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for presenting interactive images in a live broadcast room is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the housing of the electronic device, or an external keyboard, touchpad or mouse.
[0097] Those skilled in the art will understand that Figure 7 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0098] In one embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0099] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0100] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0101] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0102] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for presenting interactive images in a live broadcast room, characterized in that: The method comprises: Acquire motion path information of the affected interactive object based on the operation information of the operated interactive object in the live broadcast room interaction; Determine, according to the motion path information, each motion node of the affected interactive object on the interactive interface and the animation type corresponding to each motion node; According to the motion nodes and the animation types corresponding to the motion nodes, a motion animation group is obtained, including: obtaining position information corresponding to the first node and the second node on the interactive interface; determining motion trajectory parameters according to the position information corresponding to the first node and the second node on the interactive interface and the animation type of the first node; inputting the position information corresponding to the first node and the second node and the auxiliary node on the interactive interface into a motion trajectory model to obtain motion trajectory data output by the motion trajectory model according to the position information corresponding to the first node and the second node and the auxiliary node on the interactive interface; based on the motion trajectory data, obtaining a motion animation moving from the first node to the second node; wherein the motion animation group includes motion animations corresponding to the motion nodes, the motion nodes include the first node and the second node, and the motion trajectory parameters include the position information corresponding to the auxiliary node on the interactive interface; The motion animation group is played on the interactive interface to present a picture of the affected interactive object moving from a starting node to an ending node among the motion nodes.
2. The method according to claim 1, characterized in that The acquiring, based on the motion trajectory data, a motion animation moving from the first node to the second node comprises: According to the motion trajectory data, obtaining a displacement animation moving from the first node to the second node; Obtaining a pre-displacement action animation acting on the first node and a post-displacement action animation acting on the second node; According to the pre-displacement motion animation, the displacement animation and the post-displacement motion animation, a motion animation from the first node to the second node is obtained.
3. The method according to claim 1 or 2, characterized in that: The determining of the motion trajectory parameters according to the position information corresponding to the first node and the second node on the interactive interface and the animation type of the first node includes: Determine the position composition information ratio corresponding to the animation type of the first node; According to the first position composition information corresponding to the first node and the second node on the interactive interface and the ratio of the position composition information, obtain the first position composition information corresponding to the auxiliary node on the interactive interface; The position information corresponding to the auxiliary node in the interactive interface is obtained according to the first position composition information corresponding to the auxiliary node in the interactive interface and the preset second position composition information.
4. The method according to claim 1, characterized in that: The obtaining of the position information of the first node and the second node corresponding to the interactive interface includes: Obtaining node serial numbers of the first node and the second node respectively; Based on a preset correspondence between node serial numbers and position information, the position information corresponding to the first node and the second node in the interactive interface is obtained according to the node serial numbers of the first node and the second node respectively.
5. The method according to claim 1, characterized in that The method further comprises: According to the animation types corresponding to the respective motion nodes, corresponding animation sound effects are obtained; Playing the motion animation group on the interactive interface includes: The motion animation corresponding to the current node is played on the interactive interface. When the playing progress of the motion animation corresponding to the current node reaches a certain playing progress, the animation sound effect corresponding to the current node is played, so that the playing of the motion animation corresponding to the current node and the playing of the animation sound effect corresponding to the current node end synchronously.
6. The method according to claim 1, characterized in that The obtaining of the motion path information of the affected interactive object based on the operation information of the operated interactive object in the live broadcast room interaction includes: Receive the motion path information including each motion node of the affected interactive object on the interactive interface and their corresponding animation types broadcasted by the live broadcast room interactive server; Among them, the live broadcast room interaction server is used to receive operation information on the interactive objects operated in the live broadcast room interaction, and based on the operation information, calculate the various motion nodes of the affected interactive objects on the interactive interface and the animation types corresponding to each motion node, and obtain the motion path information containing the various motion nodes of the affected interactive objects and their corresponding animation types.
7. The method according to claim 1, characterized in that The method further comprises: During the playing of the motion animation group, if the interactive application in the live broadcast room is switched from the foreground to the background, the playing of the motion animation group is paused; If the application is restored from the background to the foreground, the latest motion animation group is obtained based on the paused motion animation group combined with the latest motion path information and the background switching time, and the latest motion animation group is played in a fast-forward manner.
8. A live broadcast room interactive screen presentation device, characterized in that: The device comprises: A path acquisition module, used to obtain motion path information of an affected interactive object based on operation information of an operated interactive object in a live broadcast room interaction; A type determination module, used to determine each motion node of the affected interactive object on the interactive interface and the animation type corresponding to each motion node according to the motion path information; An animation acquisition module is used to acquire a motion animation group according to each motion node and the animation type corresponding to each motion node; including: acquiring position information corresponding to the first node and the second node on the interactive interface; determining motion trajectory parameters according to the position information corresponding to the first node and the second node on the interactive interface and the animation type of the first node; inputting the position information corresponding to the first node and the second node and the auxiliary node on the interactive interface into a motion trajectory model to obtain motion trajectory data output by the motion trajectory model according to the position information corresponding to the first node and the second node and the auxiliary node on the interactive interface; based on the motion trajectory data, acquiring a motion animation moving from the first node to the second node; wherein the motion animation group includes motion animations corresponding to each motion node, each motion node includes the first node and the second node, and the motion trajectory parameters include the position information corresponding to the auxiliary node on the interactive interface; The animation playing module is used to play the motion animation group on the interactive interface to present a picture of the affected interactive object moving from the starting node to the ending node among the motion nodes.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
