3D游戏编程概述.pdf
《3D游戏编程概述.pdf》由会员分享,可在线阅读,更多相关《3D游戏编程概述.pdf(57页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Survey of 3D Games Yanci Zhang Game Programming IIGame Programming II Hardware and software in 3D games Software What is game engine?History of game engine Fancy techniques in modern games Hardware History of graphics card Game Programming IIGame Programming II Outline Console games-Online games-Mob
2、ile games Domestic gross output value of game industry in 2009 Online games:25.6 billion(triple to 60 billion by 2014)Mobile games:0.6 billion Console games:?Billion Too many adverse factors in China(pirated edition,expensive graphics hardware,lack of fun of fighting with real person)Game Programmin
3、g IIGame Programming II Game Market Game platform PC,PlayStation,XBox,Wii,ceil phone,tablet Core hardware:graphics processor Graphics processor vendor:nVidia,AMD,Intel Software Core software:game engine Core techniques:graphics,AI,network,multi-thread/core,physics Game Programming IIGame Programming
4、 II Hardware&Software Graphics hardware:nVidia vs.ATI Graphics API:OpenGL vs.DirectX Rendering engine:Quake,Unreal,CryEngine Physical engine:Havok vs.PhysX Game platform:PC,XBox,Play Station,Wii Game Programming IIGame Programming II Competitors in Game Industry Middleware Provide a suite of visual
5、development tools in addition to reusable software components Integrated development environment Enable simplified,rapid development of games in data-driven manner Designed with component-based architecture Rendering engine,physics engine,sound,animation,AI,networking,memory management,threading,sce
6、ne graph Game Programming IIGame Programming II 3D Game Engines Space Rogue/Ultima Underworld(1990)Using texture mapping Running on 386-based PC Game Programming IIGame Programming II History 1/14 Doom(1993)Not a true 3D engine Using 2D sprites representing objects Game Programming IIGame Programmin
7、g II History 2/14 XnGine(1995)One of the first 3D engines Game Programming IIGame Programming II History 3/14 Quake(1996)Utilizing z-buffer technique Including 3D light sources Supporting 3D hardware acceleration Game Programming IIGame Programming II History 4/14 Renderware(1996)Employed in over 20
8、0 games(PS2,PS3,PSP,PC,Wii,XBox)Allowing developers to manipulate art and game processes in real time Game Programming IIGame Programming II History 5/14 Quake II(1997)Offering native OpenGL support Allowing for both software and OpenGL renders Moddability Game Programming IIGame Programming II Hist
9、ory 6/14 GoldSRC(1998)Tweaked Quake engine Supporting both OpenGL and DirectX Game Programming IIGame Programming II History 7/14 Unreal(1998)Main competitor to Quake II Having its own scripting language,map editor,modification program Game Programming IIGame Programming II History 8/14 Quake III(19
10、99)Providing smother animation by per-vertex animation Better shadow effects Game Programming IIGame Programming II History 9/14 GeoMod(2001)Changing world geometry in response to whats going on Precursor of realistic in-game physics Game Programming IIGame Programming II History 10/14 Unreal 2(2002
11、)Adding integrated physics Adding 64-bit support Introducing improved special effects Game Programming IIGame Programming II History 11/14 Doom 3(2004)Switch from C to C+Key features:unified lighting and shadowing Game Programming IIGame Programming II History 12/14 CryEngine(2004)A shader heavy eng
12、ine Game Programming IIGame Programming II History 13/14 Unreal 3(2007)Based on DirectX 10 Using middleware technologies,including multi-threaded rendering system,64-bit HDR rendering pipeline,skeletal animation system Game Programming IIGame Programming II History 14/14 Realistic(not only rendering
13、 quality,but also physical interaction)Real-time(not an issue in film industry)Hardware development never meets the requirement of realistic rendering Game Programming IIGame Programming II Goals of 3D Games Game before 1996:CPU in charge of all computations The first 3D acceleration card:Voodoo Sta
14、rt new ear of high-performance and high-quality 3D graphics for gaming GPU:proposed by nVidia GeForce 256 Introducing hardware transformation and lighting GPU in charge of graphics computation PPU:proposed by Ageia PPU in charge of physical computation Ageia is took over by nVidia PPU is merged to G
15、PU Future:CPU and GPU merged together?APU?Game Programming IIGame Programming II Evolution of Techniques Second revolution in visual computing:Make it real!Manipulate objects in a real way Objects interact with environment in a real way Game Programming IIGame Programming II Physics Simulation 1.No
16、physics 2.Gravity 3.Gravity+collision detection 4.Gravity+collision detection+rotation calculations Provides approximate simulation of certain physical systems Real-time vs.high-precision Prefer perceptually correct approximation than real simulation Game Programming IIGame Programming II Physics En
17、gine Physics simulation was adopted in games for years Havok Founded in 1998 The main solution provider for physics simulation All physics computations are done by CPU Dominant but low profile CPU is the bottleneck Game Programming IIGame Programming II Early Years:Havok Challenger appeared in 2005
18、AGEIA announced Physics Processing Unit(PPU)chip and PhysX SDK Game Programming IIGame Programming II Challenger:AGEIA Capable of performing game physics calculation much faster than CPU The first hardware designed to offload physics calculation from CPU to a separate chip Game Programming IIGame Pr
19、ogramming II PPU Havok FX was announced Why bought PPU?A GPU-based physics engine nVidia,ATI built cooperation with Havok Two graphics card,one for graphics computations,the other for physics computations Game Programming IIGame Programming II Fight Back from Havok Havok was bought by Intel in Sep.2
20、007 Intel is not a fan of GPU computing Stop developing Havok FX nVidia,ATI Game Programming IIGame Programming II Intel:Pissed Off The advantages of Ageia PhysX SDK is free Earn lots of favorable comments after Havok was bought nVidia acquired Ageia in 2008 Target was PhysX SDK instead of PPU Rewro
21、te PhysX SDK by CUDA in one month Graphics and physics computations are executed on a single GPU Well supported by lots of games Game Programming IIGame Programming II Born of nVidia PhysX ATI Lee Ka Lau,Benny Lau,and Kwok Yuen Ho(何国源)founded ATI in 1985 nVidia Jen-Hsun Huang(黄仁勋),Chris Malachowsky,
22、Curtis Priem founded nVidia in 1993 Game Programming IIGame Programming II Origin of nVidia and ATI IBM PC introduced on August 12,1981 CGA:Color Graphics Adapter First color computer display standard for IBM PC 16K video memory Featured several graphics and text modes Highest resolution was 640*200
23、 16 colors Game Programming IIGame Programming II Long Long Ago Enhanced Graphics Adapter(EGA)Introduced in October 1984 Produces a display of 16 simultaneous colors from a palette of 64 up to 640350 pixels.Game Programming IIGame Programming II Enhanced Graphics Adapter Video Graphics Array(VGA)Int
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 游戏 编程 概述
限制150内