[go: up one dir, main page]

CN102541545A - Mode of implementing desktop random animation of embedded system platform - Google Patents

Mode of implementing desktop random animation of embedded system platform Download PDF

Info

Publication number
CN102541545A
CN102541545A CN2011104324576A CN201110432457A CN102541545A CN 102541545 A CN102541545 A CN 102541545A CN 2011104324576 A CN2011104324576 A CN 2011104324576A CN 201110432457 A CN201110432457 A CN 201110432457A CN 102541545 A CN102541545 A CN 102541545A
Authority
CN
China
Prior art keywords
animation
elements
change
random
calling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011104324576A
Other languages
Chinese (zh)
Inventor
彭勇
郑振贵
许宁
吕瑞明
周海波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Yaxon Networks Co Ltd
Original Assignee
Xiamen Yaxon Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Yaxon Networks Co Ltd filed Critical Xiamen Yaxon Networks Co Ltd
Priority to CN2011104324576A priority Critical patent/CN102541545A/en
Publication of CN102541545A publication Critical patent/CN102541545A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention relates to presentation of animation information, in particular to a mode of presenting a desktop animation implemented on an embedded system platform. The mode of implementing the desktop random animation of the embedded system platform comprises the following processes: A) decomposing the animation and constructing animation elements; B) defining change attributes of all the related animation elements; and C) carrying out the following processes of: C1) carrying out initialization on the change attribute of each animation element in an initialization interface by calling a random function; C2) calling animation calculation interfaces at regular intervals by a timer, transferring time variables into an action equation and calculating the animation element for drawing an animation picture at a specific moment and corresponding specific attribute parameters of the change attribute of the animation element; C3), carrying out presentation on the action pictures by calling animation drawing interfaces; and C4) waiting for the next moment of the timer in the process C2) to arrive and carrying out the process C2), wherein each animation element is provided with three basic interfaces for being called by a main control program for presenting the animation. The mode is used for implementing the desktop random animation of the embedded system platform.

Description

Implementation mode of desktop random animation of embedded system platform
Technical Field
The invention relates to presentation of animation information, in particular to a presentation mode of desktop animation realized on an embedded system platform, more particularly to presentation of desktop animation with random variables, which can be applied to an Android system platform, a Palm OS platform, a Windows CE system platform and the like.
Background
The traditional method for realizing animation effect of the embedded system platform has two types: one is implemented by using frame Animation (Animation rendering); another approach is to use an interpolation Animation (Animation) implementation.
The frame animation realizing method is to decompose one animation process into several continuous static picture sets, to define the playing attributes of the pictures and to reach the animation effect through the continuous switching of the pictures. Since the animation process is composed of a plurality of pictures, the animation process is always repeated circularly and has no change. The manufacturing process is complicated and redundant, the more complicated the animation and the longer the animation, the more the required static pictures are, and the more the occupied resources are. In addition, the maintenance and modification work is also complicated, and if the existing animation needs to be added or deleted and modified, a large amount of picture drawing and time axis checking may be faced. This approach is therefore only suitable for simple, local application scenarios.
The method for realizing the interpolation animation is to decompose the complex animation into a plurality of simple actions, such as translation, rotation, zooming, gradual change and the like, typeset the actions through an XML file, and generate a complex animation effect after combination. Although the definition mode of the inter-frame animation is more flexible compared with the implementation method of the frame animation, a plurality of animation elements exist in one picture or one animation process is richer, a large number of action definitions can be generated in the decomposition process, and the complexity degree of the method is not inferior to that of the frame animation production. In addition, the animation process is limited by the XML file, and any cycle is repeated and cannot be changed randomly. This approach is therefore suitable for a single, monolithic animation scene.
To realize complex and random animation effects on an embedded system platform (especially an Android system platform), the conventional animation realization method as described above is obviously not applicable. Therefore, if a desktop random animation is to be implemented on an embedded system platform, a more optimized modeling method is required, and a random variable can be introduced, so that the animation can be replaced by a program-controlled method in a defined rule, thereby implementing an efficient and vivid random animation.
Disclosure of Invention
Therefore, the invention provides a realization mode of the desktop random animation of the embedded system platform based on the requirements, which can be used for realizing the presentation of the complex and high-efficiency random desktop application animation, particularly has less workload in the self-defining and maintenance extension processes of the animation, and can adapt to the requirements of different application environments.
The specific technical scheme of the invention is as follows:
the implementation mode of the desktop random animation of the embedded system platform comprises the following processes:
decomposing the animation according to all minimum composition units in the presented animation and constructing animation elements;
b, defining the change attributes of all related animation elements, wherein the change attributes have time correlation;
all animation elements are provided with three basic interfaces for calling a main control program for animation presentation, and the three basic interfaces are respectively an initialization interface, an animation calculation interface and an animation drawing interface; wherein,
c1, the main control program initializes the change attribute of each animation element by calling a random function in the initialization interface;
c2, the main control program calls the animation calculation interface regularly through the timer, and transmits the time variable into the action equation, and combines the change attribute of each animation element, thereby calculating the animation element drawing the animation picture at the specific moment and the specific attribute parameter of the corresponding change attribute;
c3, the main control program displays the action picture by calling the animation drawing interface according to the animation example combination of the animation elements obtained by calculation in the process C2 and the specific attribute values of the corresponding change attributes;
c4, wait for the next time of the timer of procedure C2 to arrive, and proceed to procedure C2.
According to the technical scheme, the traditional definition mode of frame animation and complementary animation is abandoned, the animation is decomposed according to all minimum composition units in the presented animation, the animation elements are constructed, each animation element has own change attribute, namely the animation rule, and various initial change attributes of the animation elements can be generated through random parameters. Compared with the traditional method, the method has the following advantages:
1. the animation process is rich and diverse and is not repeated: because the animation elements are used as the minimum unit and various combinations can be generated by adding random variables, the picture refreshed each time is not repeated;
2. the animation production process is simple and convenient: as long as the element animation rule is defined, the animation process is controlled by program generation, so that a large amount of redundant workload is reduced;
3. the self-definition of the animation is facilitated: for the modification of the animation, only the animation rules of the elements need to be edited, the whole picture does not need to be designed, and the requirements of different animations can be well met.
Drawings
FIG. 1 is a schematic diagram of a process for decomposing and building animation elements from within a rendered animation;
fig. 2 is a schematic diagram of a process of adding animation elements to random variables and forming an animation picture from the new combination.
Detailed Description
The invention will now be further described with reference to the accompanying drawings and detailed description.
The invention relates to a realization mode of desktop random animation of an embedded system platform, which comprises the following processes:
firstly, decomposing abstraction and constructing an animation process to be presented, and decomposing a minimum composition unit, namely 'animation element'. For example, as shown in FIG. 1, the animation of the presentation includes: a large transverse more circular oval 101, a small rectangle 102, a large triangle 103, a small triangle 104, a small vertical oblong 105, a small vertical more flat oval 106, a large rectangle 107, a small hexagon 108, a medium triangle 109, and a large hexagon 110; the following animation elements are decomposed and built: animation element ellipse 2A, animation element rectangle 2B, animation element hexagon 2C, and animation element triangle 2D. The animation elements with the same characteristics are classified in a classification mode according to the action rules (such as displacement, rotation, gradual change, moving speed and the like) of the animation elements, and the action rules of the animation elements are called as 'change attributes'. For example, the animation element ellipse 2A and animation element rectangle 2B have the properties of displacement, gradual change, rotation change, and possibly the change property of the moving speed; the animation element triangle 2D has displacement, gradual change properties, and so on. Then, an equation of the motion rule is defined, which is called as a motion equation. The animation picture under a specific moment can be drawn through the action equation, the animation elements drawing the animation picture under the specific moment and the specific attribute parameters of the corresponding change attributes of the animation elements are calculated, and the result of each calculation depends on the animation time point and the change attributes (such as the initial position, the life cycle, the displacement, the rotation, the gradual change, the moving speed and the like) related to the animation elements. The time variable is updated by a timer, and the change attribute of the animation element can be generated by the random variable of the random function at the time of initialization and is changed periodically during the animation presentation process and in combination with the time variable of the timer. For example, as shown in fig. 2, the animation element ellipse 2A, the animation element rectangle 2B, the animation element hexagon 2C, and the animation element triangle 2D obtain an animation instance by adding a random variable 3 to obtain an initialized change attribute, such as a change attribute of a transition and a displacement to the animation element triangle 2D: a large triangle 103 located somewhere in the lower left corner of the picture, a small triangle 104 located somewhere to the left in the middle above the picture, and a medium triangle 109 located somewhere to the upper right of the picture, and so on. The animation instances at that time are then combined to render the action picture into the rendered animation picture shown in fig. 1 by calling the animation drawing interface.
Thus, the variety of the variation properties of the animation elements enriches and changes the instances of the same animation class, so that the action processes of the animation elements of the same class and the animation elements of the same animation element during different life cycles are randomly changed, and the cyclic repetition is avoided.
After modeling of animation elements, animation presentation is just a process of combining the animation elements by a main control program of animation presentation, and animation with different complexity can be realized by controlling the number and the types of combination, so that the requirements of different application occasions are met. The modeled animation elements may also be shared or evolved for use in other animation scenarios. And the work on maintenance and modification is simplified into modification for individual animation classes. The animation process realized by the method is formed by random combination of a plurality of animation elements, the effect is richer and more vivid, and the abstract classification of the animation elements ensures that the animation process is easy to define and modify.
The invention is illustrated below in a specific application example. The embodiment is applied to the realization of the desktop animation of the weather forecast of the Android system platform. Desktop weather software is mainly used for forecasting future weather conditions to users, and a traditional method generally adopts a text or picture mode for presentation. However, for the complicated and various weather conditions, if the weather conditions can be expressed by using various animations, the effect can be more intuitive and vivid.
In general, the weather is simple and common conditions such as cloudy and sunny, cloudy, rainy and snowy, thunder and lightning, or a combination of the above conditions. According to the method, the weather factors are firstly modeled, and the method can be divided into the following animation elements preliminarily: sun, clouds, raindrops, snowflakes, lightning, etc. Each animation element has three basic interfaces for program call, namely an initialization interface (init), an animation calculation interface (run) and an animation drawing interface (draw).
Then determining an action equation of an animation class, wherein the sun performs rotation and transparent gradual change action to present the flickering of the halo and the cloudy and sunny degree; the clouds perform horizontal displacement and gradual change action to present attorney clouds; the raindrop is vertically displaced and stretched to show the effect of raining; the snowflakes are displaced horizontally and vertically at the same time to show the snowing effect; lightning presents the effect of fighting a mine by briefly presenting and then disappearing. Then, the change attribute of each animation element can be defined, wherein the sun has the attributes of rotation and gradual change speed and is used for simulating the size of the cloudy and sunny degree; the cloud has the attributes of initial position, life cycle, gradual change and displacement speed and is used for simulating various kinds of cloud fluctuation in the sky; the raindrop has the attributes of an initial position, a scaling size and a falling speed, so that raindrops in different states in the falling process are simulated; the snowflakes have the attributes of initial positions, drifting speeds and the like and are used for simulating the drifting of various snowflakes; the lightning has the properties of starting position, duration, hiding time and the like and is used for simulating the twinkling of the lightning at different positions.
After determining each animation element, the action equation and the change attribute, the main control program initializes the change attribute of each animation element by calling a random function in the initialization interface, and a plurality of initial animation examples can be created by the combination of different animation elements and the related random change attributes thereof. Then, a calculation interface of the animation is called through a timer, a time variable is transmitted into an action equation, and information required for drawing an action picture at a specific moment can be calculated by combining the change attributes of all animation elements, namely, the animation elements drawing the animation picture at the specific moment and specific attribute parameters of the corresponding change attributes of the animation elements, such as positions, scaling sizes, rotation angles, gradient degrees and the like of the sun, clouds, rain drops, snowflakes, lightning and the like, are calculated. And finally, calling a drawing interface to combine the animation examples on the picture for presentation. And after the next moment of the timer is reached, calculating a new animation example combination again, and then refreshing and drawing each animation element at regular time, wherein the picture of each element combined together is changed into the final weather animation effect which changes continuously.
The method of the invention can conveniently define some complex weather effects, such as sunny and cloudy days, rain and snow, thunderstorm and the like, and the required work is only to combine the related animation elements as required. In addition, the degree of cloudy and sunny, the magnitude of rainfall, the frequency of lightning and the like can be visually represented by controlling the number of the displayed animation elements (namely, the animation elements also comprise hidden and displayed change attributes). The expansion and self-defining work is also very simple, if the hail effect is increased, the hail effect can be increased only by deriving from raindrop elements and then enlarging the random range of the falling speed and the scaling size.
While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (1)

1. The implementation mode of the desktop random animation of the embedded system platform comprises the following processes:
decomposing the animation according to all minimum composition units in the presented animation and constructing animation elements;
b, defining the change attributes of all related animation elements, wherein the change attributes have time correlation;
all animation elements are provided with three basic interfaces for calling a main control program for animation presentation, and the three basic interfaces are respectively an initialization interface, an animation calculation interface and an animation drawing interface; wherein,
c1, the main control program initializes the change attribute of each animation element by calling a random function in the initialization interface;
c2, the main control program calls the animation calculation interface regularly through the timer, and transmits the time variable into the action equation, and combines the change attribute of each animation element, thereby calculating the animation element drawing the animation picture at the specific moment and the specific attribute parameter of the corresponding change attribute;
c3, the main control program displays the action picture by calling the animation drawing interface according to the animation example combination of the animation elements obtained by calculation in the process C2 and the specific attribute values of the corresponding change attributes;
c4, wait for the next time of the timer of procedure C2 to arrive, and proceed to procedure C2.
CN2011104324576A 2011-12-21 2011-12-21 Mode of implementing desktop random animation of embedded system platform Pending CN102541545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104324576A CN102541545A (en) 2011-12-21 2011-12-21 Mode of implementing desktop random animation of embedded system platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104324576A CN102541545A (en) 2011-12-21 2011-12-21 Mode of implementing desktop random animation of embedded system platform

Publications (1)

Publication Number Publication Date
CN102541545A true CN102541545A (en) 2012-07-04

Family

ID=46348520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104324576A Pending CN102541545A (en) 2011-12-21 2011-12-21 Mode of implementing desktop random animation of embedded system platform

Country Status (1)

Country Link
CN (1) CN102541545A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077048A (en) * 2014-06-12 2014-10-01 深圳市金立通信设备有限公司 Terminal
CN104077049A (en) * 2014-06-12 2014-10-01 深圳市金立通信设备有限公司 Operation method for display interface
CN104992461A (en) * 2015-06-29 2015-10-21 北京奇虎科技有限公司 Fast animation scene construction method and device
CN105701235A (en) * 2016-02-19 2016-06-22 合肥工业大学 Interactive webpage animation design method based on reverse inversion
CN113590122A (en) * 2021-08-03 2021-11-02 北京自如信息科技有限公司 Background generation method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1689046A (en) * 2003-05-09 2005-10-26 微软公司 System supporting animation of graphical display elements through animation object instances
CN1956008A (en) * 2005-10-25 2007-05-02 英业达股份有限公司 Graphics production system and method
CN101561759A (en) * 2009-05-26 2009-10-21 腾讯科技(深圳)有限公司 Method and device for displaying blending animation on desktop
CN101593223A (en) * 2008-05-28 2009-12-02 北京数码大方科技有限公司 The gallery management method that is used for CAD
US20100110082A1 (en) * 2008-10-31 2010-05-06 John David Myrick Web-Based Real-Time Animation Visualization, Creation, And Distribution

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1689046A (en) * 2003-05-09 2005-10-26 微软公司 System supporting animation of graphical display elements through animation object instances
CN1956008A (en) * 2005-10-25 2007-05-02 英业达股份有限公司 Graphics production system and method
CN101593223A (en) * 2008-05-28 2009-12-02 北京数码大方科技有限公司 The gallery management method that is used for CAD
US20100110082A1 (en) * 2008-10-31 2010-05-06 John David Myrick Web-Based Real-Time Animation Visualization, Creation, And Distribution
CN101561759A (en) * 2009-05-26 2009-10-21 腾讯科技(深圳)有限公司 Method and device for displaying blending animation on desktop

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077048A (en) * 2014-06-12 2014-10-01 深圳市金立通信设备有限公司 Terminal
CN104077049A (en) * 2014-06-12 2014-10-01 深圳市金立通信设备有限公司 Operation method for display interface
CN104992461A (en) * 2015-06-29 2015-10-21 北京奇虎科技有限公司 Fast animation scene construction method and device
CN104992461B (en) * 2015-06-29 2018-05-04 北京奇虎科技有限公司 A kind of quick cartoon scene construction method and device
CN105701235A (en) * 2016-02-19 2016-06-22 合肥工业大学 Interactive webpage animation design method based on reverse inversion
CN113590122A (en) * 2021-08-03 2021-11-02 北京自如信息科技有限公司 Background generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103606192B (en) A kind of wind field visual presentation method based on the three-dimensional earth
CN102541545A (en) Mode of implementing desktop random animation of embedded system platform
CN105631925B (en) Based on the pretreated three-dimensional scenic generation method of OSG 3 d rendering engine and device
CN105096368B (en) Three dimensional object processing method and relevant apparatus
CN103984553A (en) 3D (three dimensional) desktop display method and system
US20190057534A1 (en) Dynamically generated interface transitions
WO2002013175A2 (en) Display of images and image transitions
Jie et al. Research on the 3D game scene optimization of mobile phone based on the Unity 3D engine
CN106056660A (en) Mobile terminal simulation particle system method
CN104574481A (en) Nonlinear modification method for 3D character animation
US10685472B1 (en) Animation brushes
CN102387413A (en) Method for displaying weather information on television
CN112562036B (en) Method for drawing configuration system turnout icon by linear polygon
US20240320895A1 (en) Streak visual effect generating method, video generating method, and electronic device
CN104142807A (en) Android-control-based method and system for drawing image through OpenGL
WO2018107854A1 (en) Method and device for displaying window shadow
CN105303601A (en) Fountain simulation realization method based on particle system
CN104616338B (en) The consistent speed change interpolating method of space-time based on 2 D animation
CN111563963B (en) Tornado weather simulation method, intelligent terminal and storage medium
CN104299262B (en) A kind of three-dimensional cloud analogy method based on velocity field streamline
CN102591646B (en) Method for simultaneously scaling multiple WPF (Windows presentation foundation) windows and device
CN105844036A (en) Random particle-based dynamic vortex flow field visualization method
Sendi The Effect of Technology to Integrate Aesthetic Desire of Contemporary Architecture with Environmental Principles in Façade Design
CN113032072B (en) Weather state display method and device, electronic equipment and storage medium
CN107277633A (en) A kind of method and device for showing direct broadcasting room present effect

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120704