Font Size: a A A

Design And Implementation Of Web-Based 3D Multi-user Game Engine Architecture

Posted on:2020-09-15Degree:MasterType:Thesis
Country:ChinaCandidate:X YuanFull Text:PDF
GTID:2428330590460692Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Game engine is a popular research area in computer graphics.In recent years,with the continuous development of WebGL and improvement of GPU graphics rendering ability,the focus of graphics related research has gradually shifted from PC client to Web client.How to design and implement a Web-based game engine has attracted wide attention from both the business and academic circles.The architecture of game engine is the foundation stone of game engine development.Most traditional game engine architectures mainly designed for PC-side and mobile native platform single-player game development.The data and behavior of the game are encapsulated together,which has the disadvantages of higher coupling and limited function expansion.Therefore,the architecture design of web-based online game engine has become the primary issue in game engine development.Network multi-user function is the key to the realization of online games.How to make the game state of each player consistent is the core problem of network multi-user development.Scene management is one of the most basic and important functions of game engine,which can improve rendering efficiency and provide users with smooth display.Nowadays,most of the game engines for the Web side lack effective organization of 3D scenes,and only provide single scene management method.However,the types of 3D game scenes are diverse,how to provide different scene management methods according to different scenes is also a key issue to web-side game engine.Regarding the issue above,this paper first analyzes and summarizes the advantages and disadvantages of traditional open source game engine architectures.On this basis,this paper designs the architecture of the game engine for web-side online game development.And the idea of functional division based on network multi-user is proposed.This paper divides the engine functions into three modules: client management,server management and game logic management.The client and server management modules are used for network communication and data transmission,and the game logic management deals with the game logic,which realizes the decoupling between game data and game logic.In addition,this paper studies the implementation mechanism of online games,and uses network communication,state synchronization,serialization and other technologies to complete the packaging of network multi-user functions,and achieves the test of functions and performance.Meanwhile,this paper implements two 3D scene management algorithms: octree and K-D tree,and proposes a scene management optimization method based on K-D tree and octree,which solves the optimization problem of different 3D scenes.Finally,this paper completes the packaging of the various functions of the engine,and implements a Web-based 3D game engine WNetEngine for small and medium-sized online game development.In order to better display the WNetEngine engine,this paper implements a web-side "Know the car" 3D online game.Experiment shows that the game runs smoothly,demonstrating the rationality of the engine architecture and the practicality of the engine itself.
Keywords/Search Tags:Web, Game Engine Architecture, Network Multi-user, 3D Scene Management
PDF Full Text Request
Related items