Summary of the invention
Technical problem to be solved by this invention provides implementation method and the device that screen rolls on a kind of roll screen content, in order to guarantee the fidelity of picture in the roll screen design.
In order to address the above problem, the invention discloses the implementation method that screen rolls on a kind of roll screen content, described method comprises:
Three-dimensional body foundation step: the three-dimensional body of creating each pel in the roll screen content of text;
Step is set in the locus: be the three-dimensional body setting space position of each pel of being created; Described locus is set by three-dimensional coordinate;
Group node adds step: the locus according to each three-dimensional body adds it in group node;
Roll and require to set step: rotating direction, rolling stunt and the rolling speed of setting group node;
Coordinate transform step: the screen back requires to carry out the rolling that the roll screen content is finished in coordinate transform according to setting to roll on the roll screen content.
Preferably, described rolling stunt comprises inclination, rotation and convergent-divergent.
More preferred, described three-dimensional body foundation step comprises following substep:
Obtain the used roll screen modular unit of current establishment three-dimensional body;
Generate the three-dimensional body of current roll screen content of text with the roll screen modular unit that is obtained.
Preferably, described rotating direction comprises X-axis, Y-axis and Z-direction.
Preferably, described content of text is made of a plurality of pels, and described pel comprises literal pel, picture pel and geometry pel.
The present invention has also announced the implement device that screen rolls on a kind of roll screen content, and described device comprises:
Creation module is used for creating the three-dimensional body of each pel of roll screen content of text;
Setting module is used to the three-dimensional body setting space position of each pel of being created; Described locus is set by three-dimensional coordinate;
Dose module, be used for it being added group node according to the locus of each three-dimensional body;
Module is set, is used to set rotating direction, rolling stunt and the rolling speed of group node;
Conversion module is used for requiring to carry out the rolling that the roll screen content is finished in coordinate transform according to setting to roll behind the screen on the roll screen content.
Preferably, describedly the rolling stunt that module sets is set comprises inclination, rotation and convergent-divergent.
Preferably, described creation module comprises following submodule:
Obtain submodule, be used to obtain the used roll screen modular unit of current establishment three-dimensional body;
Generate submodule, the roll screen modular unit that is used to be obtained generates the three-dimensional body of current roll screen content of text.
Compared with prior art, the present invention has the following advantages:
The present invention is by creating the three-dimensional body of each pel in the roll screen content of text, three-dimensional body setting space position for each pel of being created, locus according to each three-dimensional body adds it in group node, set rotating direction, rolling stunt and the rolling speed of group node, the screen back requires to carry out the rolling that the roll screen content is finished in coordinate transform according to setting to roll on the roll screen content, on the roll screen content roll with the form of three-dimensional body in the screen back, promote rolling effect greatly, satisfied people's demand of fidelity visually.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Continuous development along with video and multimedia technology, the picture and text packaging system in the captions Applications in Fabrication more and more widely, often need to use the roll screen effect in actual applications, if can find the implementation method that screen rolls on a kind of realization roll screen content true to nature, will greatly satisfy people's visual demand and actual application demand so.
Therefore, the inventor herein has creatively proposed one of core idea of the embodiment of the invention, screen rolls on a kind of roll screen content implementation method and device promptly are provided, by creating the three-dimensional body of each pel in the roll screen content of text, three-dimensional body setting space position for each pel of being created, locus according to each three-dimensional body adds it in group node, set rotating direction, rolling stunt and the rolling speed of group node, the screen back requires to carry out the rolling that the roll screen content is finished in coordinate transform according to setting to roll on the roll screen content.
Embodiment one:
With reference to Fig. 1, show the implementation method flow chart that screen rolls on a kind of roll screen content of the present invention, described method specifically comprises:
Three-dimensional body foundation step S101, the three-dimensional body of each pel in the establishment roll screen content of text;
Preferably, described content of text is made of a plurality of pels, and described pel comprises literal pel, picture pel and geometry pel.
In the actual fabrication, need to make the roll screen content of text of roll screen effect and all form, comprise literal pel, picture pel and geometry pel specifically by multiple or a plurality of pels, the establishment of different its three-dimensional bodies of pel also have a difference.
Preferably, described three-dimensional body foundation step comprises following substep:
Obtain the used roll screen modular unit of current establishment three-dimensional body;
Generate the three-dimensional body of current roll screen content of text with the roll screen modular unit that is obtained.
Described roll screen modular unit is present in the roll screen template file, have a plurality of roll screen modular units in the roll screen template file, in the roll screen template file, the roll screen modular unit generally stores classifiedly according to primitive types, can carry out obtaining of roll screen modular unit according to current pairing primitive types and needed effect in the practical application, and, apply mechanically accessed roll screen modular unit with current roll screen content of text, play up the three-dimensional body that generates current roll screen content of text.
Step S102 is set in the locus, is the three-dimensional body setting space position of each pel of being created; Described locus is set by three-dimensional coordinate;
Need with the three-dimensional body of each pel in the roll screen content of text of roll screen effect all create finish after, determine the locus of the three-dimensional body of each pel by the three dimensional space coordinate of setting each three-dimensional body.Concrete is meant, set each three-dimensional body in X-axis, the coordinate figure on Y-axis and the Z axle.
Group node adds step S103, according to the locus of each three-dimensional body it is added in group node;
Locus according to each three-dimensional body adds it in group node, in the described group node, each three-dimensional body exists with the form of a node, each three-dimensional body can add group node before last screen rolls, can withdraw from group node automatically after rolling out screen, simultaneously, have new three-dimensional body and enter group node.
Rolling requires to set step S104, sets rotating direction, rolling stunt and the rolling speed of group node;
Preferably, described rotating direction comprises X-axis, Y-axis and Z-direction.
Preferably, described rolling stunt comprises inclination, rotation and convergent-divergent.
Each three-dimensional body is joined in the group node, realize the rolling of roll screen content by the spatial alternation attribute of setting group node, concrete, set the rotating direction of roll screen content, as along the X-axis translation or along the Y-axis translation or be along Z axle translation or the like; Set the rolling stunt of roll screen content, as be rotated, tilt or carry out convergent-divergent or the like, can set according to actual rolling demand; Set the speed of rolling, concrete is to set every how long once to trigger, and moves according to triggering signal.
Coordinate transform step S105, the screen back requires to carry out the rolling that the roll screen content is finished in coordinate transform according to setting to roll on the roll screen content.
According to after the introducing step and operated of front, the screen back is finished rolling according to the rolling requirement that sets by carrying out coordinate transform on the roll screen content, and what presented in the rolling process all is three-dimensional body, promote rolling effect greatly, satisfied people's demand of fidelity visually.
Embodiment two:
With reference to Fig. 2, show the implement device structure chart that screen rolls on a kind of roll screen content of the present invention, described device specifically comprises:
Creation module 201 is used for creating the three-dimensional body of each pel of roll screen content of text;
Setting module 202 is used to the three-dimensional body setting space position of each pel of being created; Described locus is set by three-dimensional coordinate;
Dose module 203, be used for it being added group node according to the locus of each three-dimensional body;
Module 204 is set, is used to set rotating direction, rolling stunt and the rolling speed of group node;
Conversion module 205 is used for requiring to carry out the rolling that the roll screen content is finished in coordinate transform according to setting to roll behind the screen on the roll screen content.
Preferably, describedly the rolling stunt that module 204 sets is set comprises inclination, rotation and convergent-divergent.
More preferred, described creation module 201 comprises following submodule:
Obtain submodule 2011, be used to obtain the used roll screen modular unit of current establishment three-dimensional body;
Generate submodule 2012, the roll screen modular unit that is used to be obtained generates the three-dimensional body of current roll screen content of text.
Among the present invention, create the three-dimensional body of each pel in the roll screen content of text by creation module 201, setting module 202 is the three-dimensional body setting space position of each pel of being created, described locus is set by three-dimensional coordinate, dosing module 203 adds it in group node according to the locus of each three-dimensional body, module 204 is set sets the rotating direction of group node, rolling stunt and rolling speed, conversion module 205 shields the back and requires to carry out the rolling that the roll screen content is finished in coordinate transform according to setting to roll on the roll screen content, the roll screen content of text that requires to realize roll screen represents on screen with the form of three-dimensional body after treatment, promoted the effect of roll screen greatly, greatly satisfied people visually to the demand of fidelity.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device embodiment, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
More than implementation method and device that screen on a kind of roll screen content provided by the present invention is rolled be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.