Summary of the invention
For disadvantages described above or the Improvement requirement of prior art, the invention provides a kind of based on live
Virtual gift display method and device, and the displaying offer one of present is calculated, its object is to make
The displaying of present is more intelligent, is main broadcaster by the Dynamic Display of present can be encouraged other users
Send more present, thus also can indirectly transfer the enthusiasm of main broadcaster, produce more excellent straight
Broadcast content, also can increase the interaction between users simultaneously.Reach user between main broadcaster, Yong Huyu
Interaction between user.
For achieving the above object, according to one aspect of the present invention, it is provided that a kind of based on live void
Intend present methods of exhibiting, it is characterised in that described method includes:
The virtual present receiving the transmission of multiple user terminal gives instruction, and described virtual present gives instruction
Giving object information, pictorial information, value information and sending described including described virtual present
Give the identity information of the user terminal of instruction;
Animation and the described virtual present that instruction generates described virtual present is given according to described virtual present
Displaying logic, described displaying logic be affiliated mere formalities present displaying order;
According to described animation and displaying logic, show described virtual present to described object of giving.
Further, after the value information of described virtual present confirms to pay, described animation is just performed
And show the generation step of logic.
Further, the plurality of user terminal gives finger by virtual present described in application issued
Order.
Further, the generation of described animation includes animation path, rotates, scales and transparency property
Generation.
Further, the animation path in described animation producing is generated by following algorithm:
Determine the coordinate of three path point, determine the 4 of two sections of paths that described three path point are constituted
The coordinate at individual control point, the both sides in described two sections of paths are all distributed a control point, and described control point is used
In the curve in described two sections of paths is adjusted;
The Coordinate generation of described path point is: in the described coordinate system giving object terminal display screen with
Machine generates the coordinate of starting point path point, calculates two 0 to the random value x in the range of w1,x2As separately
The abscissa of outer two path point, w is the Breadth Maximum that animated show allows on described display screen;With
Machine calculates the y being more than 0 less than h/21Value be corresponding x1Vertical coordinate, calculate at random less than y1More than 0
Y2Value be corresponding x1Vertical coordinate, h be on described display screen animated show allow maximum high
Degree;
The Coordinate generation at described control point is: wherein first control point in first paragraph path and second
The x coordinate at control point is respectively the X-coordinate of the beginning and end in this section of path, and Y coordinate is respectively
Y-coordinate offset minus f of beginning and end, wherein f is less than described first paragraph path more than 0 and f
/ 2nd of the y-axis coordinate value difference of two path point;
Wherein the 3rd control point in second segment path and the x coordinate at the 4th control point are respectively this section
The x coordinate of the beginning and end in path, and the skew of the y-coordinate of y-coordinate respectively beginning and end adds f ',
Wherein f ' is more than the y-axis coordinate value difference of 0 and f two path point being less than described second segment path
1/2nd.
Further, described present shows that the generation of logic comprises the steps:
Judge that described virtual present gives the subscriber identity information of instruction, if belonging to relative users terminal certainly
The described virtual present that row is given shows the first row in the present of described user terminal displays is ranked;
If not belonging to the virtual present that described relative users terminal is given voluntarily, then judge described present
With or without room in seniority among brothers and sisters, if having vacant position, then show in room;
If without room, then judging the value information of described mere formalities present, if it is worth at least above present
A present in seniority among brothers and sisters, then replace in described present seniority among brothers and sisters and be worth minimum present, do not show
This virtual present.
Present invention also offers a kind of based on live virtual present display systems, it is characterised in that should
Display systems includes:
Multiple user terminals and multiple main broadcaster's terminal;
Virtual present gives command reception module, for receiving the virtual present that described user terminal sends
Giving instruction, what described virtual present gave that instruction includes described virtual present gives object information, figure
Sheet information, value information and the identity information of transmission user terminal;
Virtual present acquisition module, for setting up displaying animation and the displaying logic of virtual present, described
Show the displaying order that logic is described virtual present;
Virtual present display module, for the displaying animation effect obtained according to virtual present acquisition module
With displaying logic, giving the terminal of object to show virtual present.
Further, virtual present acquisition module includes random animation producing unit and shows that logic generates
Unit.
Further, described random animation producing unit generate the rotation of animation, scaling, transparency,
Path.
Present invention also offers a kind of based on live virtual present display systems, it is characterised in that should
Display systems includes multiple user terminals and the main broadcaster's terminal connected by server;Wherein server bag
Include some processors, memorizer, the described server of offer run power supply, for carrying out letter with the external world
Cease mutual wired or wireless network interface, input/output interface;
Wherein said memorizer has the picture letter of the virtual present that the application program of described terminal shows
Virtual present information after breath and generation virtual present animation;
Wherein said processor is described in select for described user terminal in described application program
Generate random animation after mere formalities present pictorial information, and the displaying logic carrying out described virtual present is sentenced
Disconnected, described displaying logic is displaying order and the deletion order of described virtual present;
The object of giving that described processor is additionally operable to described virtual present shows described virtual present.
In general, by the contemplated above technical scheme of the present invention compared with prior art, due to
Interaction design provided the most intelligent algorithm and focuses on the interactive experience of user, it is possible to obtaining live
The beneficial effect that increase interactive, interesting in platform, sense of participation are strengthened.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing
And embodiment, the present invention is further elaborated.Should be appreciated that described herein specifically
Example only in order to explain the present invention, is not intended to limit the present invention.Additionally, basis disclosed below
As long as it is the most permissible that the technical characteristic involved by inventing in each embodiment does not constitutes conflict each other
It is mutually combined.
The present embodiment relates generally to following main body:
Application program refers to the application program run on mobile terminals, and user can be by this application program
Select live channel and send virtual present to main broadcaster on the corresponding channel page
Live by the way of real-time video, form main broadcaster to user, the exchange way of user to user
Promoter that main broadcaster is live and real-time video source provider
User's login application program realizes the user agent of live viewing and interaction
Virtual present user selects in live application program, buys, and can give to master
The virtual objects broadcast, main broadcaster can obtain the income in virtual world or reality by present
The main broadcaster that room is assembled by a direct broadcast band forms the virtual place exchanged with user
As it is shown in figure 1, be in the methods of exhibiting of the virtual present in the embodiment according to present invention realization
The application scenarios schematic diagram of involved object, wherein, multiple user's handheld terminals, utilize application journey
Sequence and main broadcaster carry out the mutual of information, relatively independent between multiple users, but one user of any of which
Select present in the application, when sending by clicking on present, can be to other users on live boundary
Face is formed the dynamic reminding of thing of giving a present, and also can form the exhibition of sent virtual present at main broadcaster's end
Show, promote the experience of main broadcaster and user platform, promote the present consumption of user, make live can
Obtain bigger income.
As in figure 2 it is shown, be the enforcement hardware loop being based on according to the virtual gift display method of the present invention
Border, wherein this hardware environment includes multiple main broadcaster's terminal, server S erver and multiple user terminal,
Wherein main broadcaster's terminal and multiple user terminal are connected by network and server.
Plurality of user terminal selects main broadcaster's channel by the application program in its terminal, and selects
Virtual present, wherein virtual present has difference that is free and that pay, after user clicks on transmission instruction, to
The corresponding virtual present of server calls, and it is equipped with corresponding animation to virtual present on the server
Show, after completing said process, to corresponding main broadcaster's terminal, show this virtual present.
Wherein as it is shown on figure 3, be the methods of exhibiting of a kind of virtual present provided according to the present embodiment
Schematic flow sheet, wherein, the method mainly comprises the steps:
STEP1: accepting the instruction of the virtual present that multiple user terminal sends, this instruction mainly includes void
Intend present attribute information, and this present give object information, attribute information includes the figure of present
The identity information of sheet information, value information and user;
STEP2: according to the information attribute of present, draws for virtual present and shows animation accordingly, and be
Virtual present is arranged shows logic accordingly;
STEP3: according to above-mentioned displaying animation and show that logic is to show virtual gift to giving end accordingly
Thing.
According to the present embodiment realize virtual present exhibition method, carry out present show when except
Draw animation, also carry out the displaying logic of virtual present so that providing diversified displaying side
After method, additionally provide and can carry out encouraging user to carry out the displaying logic that virtual present is given so that
Main broadcaster is obtained in that corresponding income.
Wherein, in the operating procedure of STEP1, send the execution of instruction of virtual present, be with
Family is clicked on after corresponding present icon at Application Program Interface, when valuable present, need into
After row validation of payment completes, determine the corresponding instruction sending present.
Wherein, the information of giving of this virtual present can be user, it is also possible to is that certain channel is corresponding
Main broadcaster.
In the operating procedure of STEP2, the setting of animation and virtual present show that logic is main accordingly
It is to complete at server end, and mainly performs following method to arrange animation, wherein such as Fig. 4 institute
Show, virtual present is sent the pictorial information of present in instruction, sets up drafting by the following method
Random path of waving, the algorithm wherein drawing above-mentioned path is as follows, wherein as it is shown in figure 5, with solid
Round dot marks path point, and soft dot marks control point:
The initial point of default coordinate axle is in the position, the upper left corner on virtual present terminal display border to be presented
Putting, the random path drawn is made up of two Beziers, and (starting point is to have 3 path point
Know), 4 control point, each point is with the launching position of two axles of pixel coordinate xy of terminal display
Representing, being provided with three path point is: and starting point: p (x, y), path point 1:p1 (x1,y1), path point
2:p2(x2,y2), wherein control point c1、c2、c3、c4It is distributed in the both sides of two routes, wherein
c1、c2It is distributed in the both sides in the path that starting point and path point 1 are constituted, and c3、c4It is distributed in path point
The both sides in 1 path constituted with path point 2.
The permission width w in path is set, the height h that path is preset, above-mentioned width and the numerical value one of height
As be in accordance with the width on terminal display border of virtual present to be shown and height selects
Select, wherein in the formation in above-mentioned path, an also important parameter i.e. control point skew system
Numerical value f, f can adjust the shape of curve, and more often f is empirically determined consolidating
Fixed number value, although f can also give dynamic numerical value, but the span major limitation of f is as follows:
F is less than 1/2nd of the y-axis coordinate value difference of two path point more than 0 and f
Determine path point coordinate figure, and control point coordinate figure in accordance with the following steps, enabling according to
Set path carries out drafting and the planning of animation:
(1) two 0 are calculated to the random value x in the range of w1,x2;
(2) y being more than 0 less than h/2 is calculated at random1Value, less than y1Y more than 02Value;
Article (3) two, first control corresponding to a Bezier therein of Bezier
The x putting the beginning and end that the x coordinate with second and control point is respectively this curve sits
Mark, and the y-coordinate at two control point is respectively y-coordinate offset minus f of beginning and end,
Wherein f is more than the y-axis coordinate value difference of 0 and f two path point being less than this section of path
1/2nd;
Article (4) two, first control point corresponding to an other Bezier of Bezier
Sit with the x of the beginning and end that the x coordinate of second and control point is respectively this curve
Mark, and the skew of the y-coordinate of the y-coordinate at two control point respectively beginning and end adds
F ', wherein f ' is less than two path point in described second segment path more than 0 and f
Y-axis coordinate value difference 1/2nd so that formed curve have two camber lines.
After drawing out animation route in a manner mentioned above, it is possible to make virtual present give right
It is shown according to above-mentioned path on the terminal display screen of elephant, wherein, further, this planning
Path is not strictly defined as one, can be as shown in Figure 4 a plurality of, complete multiple path
After animated show, carry out arranging display i.e. present display seniority among brothers and sisters giving interface edge accordingly, permissible
Stop in mutual comment, it is also possible to the special virtual gift given arranged in Application Program Interface
Object area carries out last stop, does not do strict restriction at this.
It addition, the animation waved is except path, it is also possible to carry out rotating, scaling, thoroughly in the design phase
The stochastic generation of each attribute such as lightness, thus completes the animated show of vivid and interesting, improves interaction
Experience.
Such as shown in Fig. 6, according to the displaying of the animation that the embodiment of the present invention is carried out, wherein comprise
Information by the identity information of benefactor, and the rocket virtual present waved, and also can carry out
The display of the quantity of conveying present.
Further, the generation master of the displaying logic of virtual present involved by STEP2 in the present embodiment
Comprise the steps:
When the user of same live platform has many individual's gifts simultaneously when, show present
The region of banner is the most limited in screen, in order to avoid present banner show unordered, by one
The appearance of fixed logical algorithm specification banner.
As it is shown in fig. 7, be the displaying logic signal of the virtual gift display method realized according to the present invention
Figure, mere formalities present is given after message sends, and server receives information, it is judged that the identity letter in message
Breath, if sender is user, then present banner occurs in the first row;If other users, then
System judges whether screen has vacant position, if there is room, then shows in room, if there is no room, then
Judging, if being worth at least above occurred in display banner, then replacement is worth minimum
Present, if being worth less than the value of present in all display banners, does not shows.I.e. at virtual present
Displaying logic in, following rule is shown: first determine whether that benefactor and present show
The identity information of end, then judge the room information in virtual present seniority among brothers and sisters, then judge the value of present
Information, the time with gifts of last identical value arranges.
No matter terminal involved in the present embodiment, be the terminal of user side, or the terminal of main broadcaster's end,
Can be mobile phone, computer and panel computer etc., not do concrete restriction.
Subscriber identity information can be the pet name of user, the account of user, telephone number etc., Zhu Bopin
The selection in road can be channel number, channel designation etc..
The operation that wherein present is given can be click on present icon, or towing present icon is to sending out
The object sent.
As shown in Figure 8, as the another one aspect of the present embodiment, it is also proposed that a kind of virtual present
Display systems, wherein this system includes:
Virtual present gives command reception module, and the virtual present sent for receiving user terminal is given
Instruction, instruction mainly includes the attribute information of virtual present, and this present give object information,
Attribute information includes the identity information of the pictorial information of present, value information and user;
Virtual present acquisition module, for setting up displaying animation and the displaying logic of virtual present;
Virtual present display module, for the displaying animation effect obtained according to virtual present acquisition module
With displaying logic, giving the terminal of object to show virtual present.
The most further, virtual present acquisition module includes that random animation producing unit is patrolled with displaying
Volume signal generating unit, wherein random animation producing unit according to the method described above in mode generate random road
Footpath, and generate the mode of animation according to above-mentioned algorithm and decision logic to generate animation, at this no longer
Repeat.
It should be noted that the exhibiting device of the virtual present provided in above-described embodiment is virtual in displaying
The when of present, only illustrate with the division of above each functional module, actual virtual present
During displaying, concrete hardware configuration can be carried out according to the internal structure of server and terminal and divide in formation
State module.
In the present embodiment, server can include one or more processor, and memorizer,
Memorizer can process the instruction from application program, and server also includes power supply, wired or wireless network
Interface, input and output (I/O) interface etc. realize mutual with the information of terminal.
Memorizer wherein has pictorial information and the life of the virtual present that the application program of terminal shows
Become the virtual present information after virtual present animation;
Wherein processor is for the mere formalities present picture selected in the application for described user terminal
Generate random animation after information, and carry out the displaying logical judgment of virtual present, show that logic be void
Intend the displaying order of present;
The object of giving that processor is additionally operable to virtual present shows virtual present.
As it will be easily appreciated by one skilled in the art that and the foregoing is only presently preferred embodiments of the present invention,
Not in order to limit the present invention, all made within the spirit and principles in the present invention any amendment, etc.
With replacement and improvement etc., should be included within the scope of the present invention.