计算机技术与发展
計算機技術與髮展
계산궤기술여발전
COMPUTER TECHNOLOGY AND DEVELOPMENT
2014年
1期
192-195
,共4页
Unity3D%三维%游戏%跨平台
Unity3D%三維%遊戲%跨平檯
Unity3D%삼유%유희%과평태
Unity3D%3D%game%cross-platform
为解决当前游戏开发中跨平台比较麻烦的问题,开发了一款多平台三维空战游戏。为提高碰撞检测速度,使用了立方体包围盒技术,并进一步优化为梯形台包围盒。在粒子系统中使用椭圆体来表现粒子,一个椭圆体上有上百个粒子,直径较小的椭圆体直接用点来代替。为了使游戏也可在手机平台上运行,经算法比较,减少粒子颜色至64色。同时从多线程、模型优化等方面对系统进行了优化。系统包括图形用户界面、物理模块、粒子系统模块等,最后被移植到Windows, Web,Mac,Mac Dashboard等多个平台。实验表明,该游戏运行流畅,达到设计要求。
為解決噹前遊戲開髮中跨平檯比較痳煩的問題,開髮瞭一款多平檯三維空戰遊戲。為提高踫撞檢測速度,使用瞭立方體包圍盒技術,併進一步優化為梯形檯包圍盒。在粒子繫統中使用橢圓體來錶現粒子,一箇橢圓體上有上百箇粒子,直徑較小的橢圓體直接用點來代替。為瞭使遊戲也可在手機平檯上運行,經算法比較,減少粒子顏色至64色。同時從多線程、模型優化等方麵對繫統進行瞭優化。繫統包括圖形用戶界麵、物理模塊、粒子繫統模塊等,最後被移植到Windows, Web,Mac,Mac Dashboard等多箇平檯。實驗錶明,該遊戲運行流暢,達到設計要求。
위해결당전유희개발중과평태비교마번적문제,개발료일관다평태삼유공전유희。위제고팽당검측속도,사용료립방체포위합기술,병진일보우화위제형태포위합。재입자계통중사용타원체래표현입자,일개타원체상유상백개입자,직경교소적타원체직접용점래대체。위료사유희야가재수궤평태상운행,경산법비교,감소입자안색지64색。동시종다선정、모형우화등방면대계통진행료우화。계통포괄도형용호계면、물리모괴、입자계통모괴등,최후피이식도Windows, Web,Mac,Mac Dashboard등다개평태。실험표명,해유희운행류창,체도설계요구。
In order to solve the current more troublesome problems in game cross-platform developing,a multi platform 3D air war game is developed. In order to improve the speed of collision detection,the cube bounding box technology is used,and further optimized for trapezoidal bounding box. Particles are realized using ellipsoids. There are hundreds of particles on the ellipsoid,and the smaller ellipsoid is replaced with dots directly. In order to make the game can also be used on mobile phone platform,the particle color is reduced to 64 colors. The system has been optimized using the multithreading and optimized model. The system includes a graphical user interface, physical module,particle system module etc. The system have been transplanted to the platform of Windows,Web,Mac,Mac Dashboard etc. The operation of the system is fluent,and meets the design requirements.