CN102654922B - Message management engine - Google Patents

Message management engine Download PDF

Info

Publication number
CN102654922B
CN102654922B CN201110051159.2A CN201110051159A CN102654922B CN 102654922 B CN102654922 B CN 102654922B CN 201110051159 A CN201110051159 A CN 201110051159A CN 102654922 B CN102654922 B CN 102654922B
Authority
CN
China
Prior art keywords
message
unit
module
queue
call
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.)
Active
Application number
CN201110051159.2A
Other languages
Chinese (zh)
Other versions
CN102654922A (en
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.)
Fujian Star Net eVideo Information Systems Co Ltd
Original Assignee
Fujian Star Net eVideo Information Systems 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 Fujian Star Net eVideo Information Systems Co Ltd filed Critical Fujian Star Net eVideo Information Systems Co Ltd
Priority to CN201110051159.2A priority Critical patent/CN102654922B/en
Publication of CN102654922A publication Critical patent/CN102654922A/en
Application granted granted Critical
Publication of CN102654922B publication Critical patent/CN102654922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a message management engine for managing messages of a three-dimensional graphic engine. The message management engine comprises a motion message management module for controlling rendering operation of an object rendering unit and a called message management module for controlling the rendering time of the object rendering unit. The message management engine is used for managing the rendering operation and the rendering time for a three-dimensional object in the three-dimensional graphic engine, so that the working efficiency of the three-dimensional graphic engine is further optimized, and the complexity of embedded software for developing the three-dimensional object is reduced.

Description

Message management engine
Technical field
The present invention relates to a kind of message management engine.
Background technology
OpenGL (Open Graphics Library, open graphic package function) is one and calls bottom shape library easily, for two dimension (2D) or three-dimensional (3D) image.OpenGL ES (OpenGL for Embedded Systems) is comprised of desktop OpenGL subset, OpenGL three-dimensional picture API (Application Programming Interface, calling program programming function) subset, for embedded devices such as mobile phone, PDA and game hosts, design, it has created the mutual function of bottom between software and figure acceleration.The three-dimensional rendering technology such as OpenGL ES are widely used in the performance history of embedded software, use the figures such as drawing to digital amusing products, animation to play up it, can make digital entertainment product have three-dimensional display effect and three-dimensional user interface.But, directly utilize OpenGL ES to carry out embedded software developing and have larger exploitation complexity, and affect development efficiency and the ease for maintenance of software.
Summary of the invention
The technical matters that the present invention mainly solves is to provide the management system of a kind of three-dimensional picture engine, message management engine, utilize message mechanism to manage the motion of three dimensional object and the opportunity of playing up, reduce the complexity of the three-dimensional graphic object exploitation of embedded software, and improve the development efficiency of embedded software, and the ease for maintenance that strengthens embedded software.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: a kind of message management engine is provided, for three-dimensional picture engine is carried out to message management, described three-dimensional picture engine comprises interpolation object unit, rendering objects unit, delete object unit, upgating object unit and object queue unit, described interpolation object unit is used for adding object to object queue unit, described rendering objects unit is used for rendering objects to reach three-dimensional motion effect, described deletion object unit is for deleting the object no longer needing from object queue unit, described upgating object unit is for the attribute of each object of upgating object queue unit, described message management engine comprises for controlling the motion message management module of playing up action of rendering objects unit and for controlling the message call administration module on the opportunity of playing up of rendering objects unit.
Wherein, described motion message management module comprises mobile messaging unit, convergent-divergent message elements, rotation message elements, desalination message elements, inverted image message elements and the transforming message unit, visual angle of respectively object being played up action control.
Wherein, described message call administration module comprise for start calling of playing up start module and for close play up call end module.
Wherein, in transforming message unit, described visual angle, include eye position, alignment point and direction vector data.
Wherein, described in call and start module and call to finish module and also comprise enabling of sending for control message, only start module and start and call and finish the message that module sends between starting and just come into force calling.
Wherein, call and start when module starts also to comprise the action that locks, while calling the startup of end module, also comprise release action.
The invention has the beneficial effects as follows: the present invention utilizes message management engine playing up action and managing the opportunity of playing up three dimensional object in three-dimensional picture engine, further optimize the work efficiency of three-dimensional picture engine, reduced the complexity of the three-dimensional graphic object exploitation of embedded software.
Accompanying drawing explanation
Fig. 1 is that the present invention adds the process schematic diagram of message to graphics engine storehouse;
Fig. 2 is that the present invention is to the process schematic diagram of the rendering objects in graphics engine storehouse.
Embodiment
By describing technology contents of the present invention, structural attitude in detail, being realized object and effect, below in conjunction with embodiment and coordinate accompanying drawing to be explained in detail.
Message management engine of the present invention, for three-dimensional picture engine is carried out to message management, described three-dimensional picture engine comprises interpolation object unit, rendering objects unit, deletes object unit, upgating object unit and object queue unit, described interpolation object unit is used for adding object to object queue unit, described rendering objects unit is used for rendering objects to reach three-dimensional motion effect, described deletion object unit is for the object no longer needing is deleted from object queue unit, and described upgating object unit is for the attribute of each object of upgating object queue unit; Described message management engine comprises for controlling the motion message management module of playing up action of rendering objects unit and for controlling the message call administration module on the opportunity of playing up of rendering objects unit.
The present invention utilizes message management engine that playing up of three dimensional object in three-dimensional picture engine moved and managed the opportunity of playing up, and has further optimized the work efficiency of three-dimensional picture engine, has reduced the complexity of the three-dimensional graphic object exploitation of embedded software.
In one embodiment, described motion message management module comprises mobile messaging unit, convergent-divergent message elements, rotation message elements, desalination message elements, inverted image message elements and the transforming message unit, visual angle of respectively object being played up action control.
In one embodiment, described message call administration module comprise for start calling of playing up start module and for close play up call end module.
In one embodiment, in transforming message unit, described visual angle, include eye position, alignment point and direction vector data.
In one embodiment, described in call and start module and call to finish module and also comprise enabling of sending for control message, only start module and start and call and finish the message that module sends between starting and just come into force calling.
In one embodiment, call and start when module starts also to comprise the action that locks, while calling the startup of end module, also comprise release action.
The attribute of object mainly comprises the sign whether three-dimensional coordinate of object present position, the three-dimensional size of scaling, the degree of desalination demonstration, three-dimensional anglec of rotation size, the height of inverted image and the transparency of inverted image, object show.
The management system of three-dimensional graphic object of the present invention, comprises above-mentioned three-dimensional picture engine and above-mentioned message management engine, and described message management engine carries out message management to described three-dimensional picture engine.
Below, with a preferred embodiment, be elaborated:
1. object message management
Each object comprises a message queue, comprising movable informations (also referred to as motion message) such as movement, convergent-divergent, rotation, desalination, inverted image and visual angle conversions, and by calling beginning (EVGEBegin) and finishing (EVGEEnd) function and control the serial of above-mentioned action or walk abreast.
The instruction sending according to calling program by message mechanism control object changes action and plays up mode.When object message queue is sky, when receiving message, carries out object at once.Different start and finish function and send to the message of single object serial to carry out, different time sections sends to the message of different objects can executed in parallel, but does not guarantee that the message energy serial of different objects carries out.
Message in described graphics engine comprises object message and global message, the message queue of an object of each object maintenance, and global message is safeguarded by a message queue.In described graphics engine, have one to play up thread and move always, play up thread according to the content of the attribute rendering objects of object the Frame Buffer to display frame, allow message carry out in playing up thread simultaneously.
Object message bag is that the height of alpha value the 3 d scale of the 3 d scale of the three-dimensional coordinate of the present position in object properties, convergent-divergent, rotation, desalination, inverted image and transparency and each are played up the variable quantity of object properties in the cycle and be packaged together and form.The message of object has comprised the motion message such as movement (EVGEMove), convergent-divergent (EVGEScale), rotation (EVGERotate), desalination (EVGEFade), inverted image (EVGEReflect), demonstration hiding (EVGEShow), and the state attribute value that the parameter of object function message will be reached by object handle, message and the frame number of playing up needing form.
Global message is mainly visual angle transforming message (EVGELookAt), and message comprises eye position, alignment point, direction vector.Global message bag is that the variable quantity (being called for short every frame increment) that these attributes and each are played up to attribute in the cycle is packaged together and forms.
Start and finish function and be used for enabling of control message transmission, the message only sending between starting and finishing just comes into force, and the while locks when beginning, and during end, release is to guarantee the safety of Multi-thread control.
In described graphics engine, also comprise that the caller that call back function offers in calling program is used, message bag calls the call back function of calling program appointment after carrying out and finishing.Described call back function is the function that described graphics engine offers user's registration function and parameter, and user can utilize this function specified function name and parameter to described graphics engine, and described graphics engine utilizes the parameter of appointment to carry out the function of appointment.
2. the interpolation of message
As Fig. 1 shows, after calling beginning function, start to add message.If the motion message of adding is global message, described motion message is directly joined to the end (if queue is for empty, adding into head of the queue) of global message queue.If the message of adding is object message, described motion message is joined to the end (if queue is for empty, adding into head of the queue) of the message queue of this object, and call end function.
In order to strengthen the stability of described graphics engine, described graphics engine has been stipulated the message number of each message queue maximum, if the message number in queue surpasses restriction, abandons message to be added.
3. message is carried out
As Fig. 2 shows, play up the maintenance of queue and controlled by timer, after described graphics engine starts, first start timer and to playing up function, send out event 60 times p.s., each event is carried out something, is lockable release if play up lock.Execution is played up in the process of function, can go traversal to play up each object in queue, and being confirmed whether will be according to the state of information updating object.As long as have message in the message queue of object, carry out the head of the queue message of this message queue, delete this message after executing this message.The visual angle transforming message of the overall situation is also the same.
The foregoing is only embodiments of the invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes instructions of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (5)

1. a message management engine apparatus, for three-dimensional picture engine is carried out to message management, described three-dimensional picture engine comprises interpolation object unit, rendering objects unit, delete object unit, upgating object unit and object queue unit, described interpolation object unit is used for adding object to object queue unit, described rendering objects unit is used for rendering objects to reach three-dimensional motion effect, described deletion object unit is for deleting the object no longer needing from object queue unit, described upgating object unit is for the attribute of each object of upgating object queue unit,
It is characterized in that: described message management engine apparatus comprises for controlling the motion message management module of playing up action of rendering objects unit and for controlling the message call administration module on the opportunity of playing up of rendering objects unit;
Each object comprises a message queue, and message queue comprises motion message, and described motion message comprises object message and global message; Described message call administration module comprise for call start function start calling of playing up start module and for call finish function close play up call end module, described calling starts module for starting after function when calling, start to add message, if the motion message of adding is global message, described global message is directly joined to the end of global message queue, if queue is empty, add into head of the queue; If the message of adding is object message, described object message is joined to the end of the message queue of this object, if queue is empty, add into head of the queue, then described in notice, call end module and call end function;
Wherein, the instruction of described message call administration module specifically for sending according to calling program, the different beginnings of control and end function send to the message of single object to realize serial and carry out, and different time sections sends to the message of different objects to realize executed in parallel.
2. message management engine apparatus according to claim 1, it is characterized in that: described object message has comprised movement, convergent-divergent, rotation, desalination, inverted image, described global message comprises visual angle transforming message, and described motion message management module comprises respectively to be played up mobile messaging unit, convergent-divergent message elements, rotation message elements, desalination message elements, the inverted image message elements of action control and according to described global message, object is played up the transforming message unit, visual angle of action control object according to described object message.
3. message management engine apparatus according to claim 2, is characterized in that: described visual angle includes eye position, alignment point and direction vector data in transforming message unit.
4. message management engine apparatus according to claim 1, it is characterized in that: described in call and start module and call to finish module and also comprise enabling of sending for control message, only start module and start and call and finish the message that module sends between starting and just come into force calling.
5. according to the message management engine apparatus described in claim 1 or 4, it is characterized in that: call and start when module starts also to comprise the action that locks, while calling the startup of end module, also comprise release action.
CN201110051159.2A 2011-03-03 2011-03-03 Message management engine Active CN102654922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110051159.2A CN102654922B (en) 2011-03-03 2011-03-03 Message management engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110051159.2A CN102654922B (en) 2011-03-03 2011-03-03 Message management engine

Publications (2)

Publication Number Publication Date
CN102654922A CN102654922A (en) 2012-09-05
CN102654922B true CN102654922B (en) 2014-11-05

Family

ID=46730547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110051159.2A Active CN102654922B (en) 2011-03-03 2011-03-03 Message management engine

Country Status (1)

Country Link
CN (1) CN102654922B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1669055A (en) * 2001-12-31 2005-09-14 英特尔公司 Automatic memory management for zone rendering
CN1942900A (en) * 2004-03-03 2007-04-04 高通股份有限公司 Variable clock control for a graphics processor
CN101309472A (en) * 2007-05-18 2008-11-19 希姆通信息技术(上海)有限公司 Method for implementing three-dimensional scenic dialing interface of mobile communication terminal
CN101309473A (en) * 2007-05-18 2008-11-19 希姆通信息技术(上海)有限公司 Method for implementing three-dimensional scenic main menu in mobile communication terminal
CN101882077A (en) * 2010-05-19 2010-11-10 广东威创视讯科技股份有限公司 Method and device for efficiently drawing and rendering basic graphic

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1669055A (en) * 2001-12-31 2005-09-14 英特尔公司 Automatic memory management for zone rendering
CN1942900A (en) * 2004-03-03 2007-04-04 高通股份有限公司 Variable clock control for a graphics processor
CN101309472A (en) * 2007-05-18 2008-11-19 希姆通信息技术(上海)有限公司 Method for implementing three-dimensional scenic dialing interface of mobile communication terminal
CN101309473A (en) * 2007-05-18 2008-11-19 希姆通信息技术(上海)有限公司 Method for implementing three-dimensional scenic main menu in mobile communication terminal
CN101882077A (en) * 2010-05-19 2010-11-10 广东威创视讯科技股份有限公司 Method and device for efficiently drawing and rendering basic graphic

Also Published As

Publication number Publication date
CN102654922A (en) 2012-09-05

Similar Documents

Publication Publication Date Title
US11494995B2 (en) Systems and methods for virtual and augmented reality
CN103093047B (en) Typical aircraft visual simulation system
EP1708079A1 (en) System for efficient remote projection of rich interactive user interfaces
KR101952983B1 (en) System and method for layering using tile-based renderers
CN106528096A (en) Method and system for drawing popup image on D3D12 full screen game source
CN103336816A (en) Canvas element rendering method and device realized on Android system based on GPU (Graphic Processing Unit)
WO2013036700A2 (en) Primitive composition
US7982741B2 (en) Shared graphics infrastructure
CN111514587B (en) Information processing method, device, equipment and storage medium
CN103413343A (en) 3D (Three-Dimensional) graphic animation engine
US11731050B2 (en) Asset aware computing architecture for graphics processing
US11418830B2 (en) Distributed video and graphics rendering system
CN103543998A (en) WEB3D image engine generating method based on HTML5
CN103456035B (en) Realize the device and method of video 3-D display
CN103577046A (en) 3D stereoscopic desktop system and implementation method thereof
CN102654922B (en) Message management engine
CN104898833B (en) 3D weather display methods and device
CN103150133A (en) Resource display method and device
CN111951360B (en) Animation model processing method and device, electronic equipment and readable storage medium
CN102654921A (en) Three-dimensional graphic engine for managing objects
JP2010244450A (en) Image processor and image processing method
WO2024027237A1 (en) Rendering optimization method, and electronic device and computer-readable storage medium
CN110083231B (en) WebGL panoramic display method for android VR integrated head display
CN114064826A (en) Map rendering method, system, terminal and storage medium
Fearon An Animation & Particle Design Tool for a Location-Aware Mobile Game

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant