Research and Implementation of the Cross-Platform Game Engine Based on Intelligent Terminal
- Author
- YaoXiaXia
- Advisor
- LiGang
- School
- Ningbo University
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 89
- Citations
- 0
Abstract
The duplicated work and porting are always the influence factors that restricted thedevelopment of the game industry. Developing mature and cross-platform game engine can relievethis problem. Currently, foreign technology is far more advanced than domestic in this area.According to the most popular platform Android and J2ME, the autor designed and implemented across-platform game engine. The game engine owns the following advantages and innovations:(1) The design of the game engine is based on fully taken account of the software designprinciple and multi-thread model, and combined the advantages of Android and J2ME.The author took double threads to drive game drawing and update transactionsseparately, so the game drawing and update transactions were divided into two logicgroups and the two logic groups run in parallel mutually exlusive threads. This canreduce the coupling of the game engine and improve the efficiency of it.(2) In drawing logic of the game engine, taking into account of the rendering efficiencyand porting issuses, the author proposed to design graphics rendering module usingOpenGL ES standards. Meanwhile, in order to further improve the renderingefficiency, the author has improved the algorithm of graphics rendering pipeline. Theexperimental results have shown that the improved algorithm of graphics renderingpipeline which divided the graphics rendering pipeline into three stages and six partshas raised the rendering rate greatly.(3) In the collision detection module, through analyzed the collision models of the two-dimension and three-dimension objects and compared with traditional collisiondetection algorithms, the author proposed the mixed box-surrounded collisiondetection algorithm. The mixed box-surrounded collision detection algorithm hashigher collision detection accuracy than traditional algorithms.(4) By analyzing the differences and similarities between Android and J2ME and basedon existing knowledge of the middleware, the author proposed the platform interfaceadapter. Between the underlying platform and game engine joined the platforminterface adapter middleware layer, through eliminating the diffiences of theunderlying layer to achieve the cross-platform game engine. Currently, the game engine has been used in three games on Android and J2ME platform.Thestatistics have shown that the game engine has shortened development cycle by30percent.Simultaneously, because of the improving of the rendering module and collision module, therendering and collision detection accuracy and efficiency have been greatly improved. Finally,thinking of using middleware to make game engine cross-platform and make each module asloosely coupled as possible with others, so that the entire game engine owns good robustness andeasy to maintain and extend.
Table of contents
Summary 4-6
Abstract 6-11
Introduction 11-12
1 game engine development review 12-16 <br / > 1.1 Background and Significance meaning 12-13
1.2 cross-platform game engine to achieve 1.3 Status domestic and foreign research 13
13-14 <br / > 1.4 research article 14-15
1.5 This article organizational structure 15
1.6 Summary 15-16
2 based on a dual -threaded drive system architecture of the game engine 16-23
2.1 dual-threaded game engine driven system components 16-19
2.1.1 engine core in the main package and class 17-18
2.1.2 dual-threaded game engine works 18-19
2.2 dual-threaded game engine architecture and cross-platform multi- 19-21
core work 2.3 pairs of threaded game engine 21-22
2.4 Summary 22-23
3 graphics based on OpenGL ES rendering engine process optimization 23-37
3.1 OpenGL ES embedded graphics standards 23
3.2 based on programmable graphics engine rendering workflow 23-25 ??
3.3 graphics rendering engine architecture design 25-27
3.3.1 OpenGL ES based graphics rendering engine function analysis 25
3.3.2 rendering engine architecture is based on OpenGL ES graphics the detailed design and implementation of 25-27
3.4 rendering engine for each module 27-34
3.4.1 pixel rendering module design and implementation of 27-29 <br / > 3.4.2 coordinate transformation module design and implementation design and implementation 29-32
3.4.3 color and light processing module 32-33
3.4.4 grating and the design and implementation of texture mapping module 33
nbsp 3.4.5 design and Implementation of the frame buffer module operation ; 33-34
3.5 graphics rendering pipeline optimization 34 -35
3.5.1 CPU optimization stage 34-35
3.5.2 geometrical optimization phase 35
optimization phase grating 3.5.3 35
3.6 rendering engine implementation process 35-36
3.7 Summary 36-37
4 collision detection algorithm to optimize the design of the physical engine studies 37-56
4.1 physics world 37-40
4.1.1 basic data structures 38-39
4.1.2 Physics module Design design and implementation 39-40
4.2 collision detection module basic principles 40-46
4.2.1 collision detection 40-41
4.2 .2 collision detection algorithm classification 41-42
4.2.3 initial collision detection module 42-44
4.2.4 stepwise refinement collision detection module 44 - 45
4.2.5 intersection accurate collision detection module 45-46
4.2.6 collision detection algorithm optimization module 46
4.3 establishment and collision response module achieve 46-54
4.3.1 uniform motion model 46-47
4.3.2 accelerated motion model 47-49
4.3.3 objects and scenes collision response model collision between 49-52
4.3.4 response object model 52-54
4.4 physics engine implementation process 54-55
4.5 Summary 55-56
5 cross- platform implementation of key technologies choose nbsp 56-71
5.1 platform ; 56-59 <br / > 5.1.1 Android platform 56-57
5.1.2 J2ME platform 57-59
difference 5.2 platforms 59-63
5.2 .1 lifecycle management 59-61
5.2.2 display components : 61
5.2.3 UI components 61-62
5.2. 4 user event processing abstract nbsp 62-63
5.3 platform middleware interfaces ; abstract nbsp 63-70
5.3.1 lifecycle interfaces ; 64-65
5.3.2 device Control interface associated abstract 5.3.3 graphical 65-66
associated interface rendering abstract 66-68
5.3.4 two platforms mainstream API the similarities and differences 68-70
5.4 Summary 70-71
6 game engine performance test analysis 71-78
6.1 experimental environment to build 71
6.2 rendering module test cases and test results 71-74
6.2.1 function test 71-72
6.2.2 rendering test renderings 72-73
6.2.3 performance Comparison 73-74
6.3 collision module experimental analysis 74-75
6.4 game engine overall performance evaluation 75-78
6.4.1 dual-threaded engine to develop games based on the comparison with traditional methods 75-76
6.4.2 dual-threaded game engine based on cross-platform game development instance 76-78
7 summary and Outlook 78-79
7.1 summarizes 78
7.2 Prospects 78-79
References 79-83
learning research 83-84
Thanks 84
Related dissertations
- Design and Implementation of3D Game Based on the Irrlicht Engine
- The Realization of the Modular Game Intermediate Layer Services
- The Research and Realization of 3D Graphics Engine on Mobile Phone.
- 3D mobile game engine framework and key technologies to achieve
- Multiplexing, cross-platform mobile game development and engine technology research
- Study on Method of Dual-Robot Coordination
- Security Interaction Strategy of RBAC Based on Reconcile Domain
- Optical Capture Based Development of Virtual Interaction System
- A Professional Technology Institute Virtual Design and Realization of the System
- Research and Develop on the Simulating System for Binocular Stereo Measurement
- Research on Model and Roam Technology of3D Scene Based on WEB
- Motion Simulation of Guide Wire in Virtual Intravascular
- Natural Landscape Simulation Research Based on Particle System
- The Research of Path Planning and Collision Detection Method in Virtual Battlefield
- Design and Implementation of Virtual Campus Roaming System
- Design and Realization of Virtual3D Scene Roaming System
- Research of Collison Detection Algorithm Based on Spatial Domain
- Research and Realization of Haptic Rendering Virtual Assembly System Based on Force Feed-back
- Research on Parallel Collision Detection Based on Delta3D
- The 3D dynamic simulation of cloth