IMGD 4000 Computer Graphics in Games Emmanuel Agu

  • Slides: 18
Download presentation
IMGD 4000: Computer Graphics in Games Emmanuel Agu

IMGD 4000: Computer Graphics in Games Emmanuel Agu

Professor Background n n Dr. Emmanuel Agu (professor, “Emmanuel”) Research areas n n n

Professor Background n n Dr. Emmanuel Agu (professor, “Emmanuel”) Research areas n n n Computer Graphics (GPU rendering, mobile graphics, etc) wireless networking and mobile computing Advise MQPs, MS and Ph. D theses

Graphics Trends for Games n n n Hardware GPUs Capture Ray tracing

Graphics Trends for Games n n n Hardware GPUs Capture Ray tracing

What is Computer Graphics? n n n Use a computer to create pictures Started

What is Computer Graphics? n n n Use a computer to create pictures Started early ’ 60 s: Ivan Sutherland (MIT) SIGGRAPH conference: n n n started 1969, about 30, 000 annually. E. g. summer 2006: Boston Attendees: artists and computer scientists CG has many aspects (technical, art) Computer Scientists create libraries, tools that artists/nontechies can use to create pretty pictures Artist uses CG tools to create pretty pictures Irony: most hobbyists follow artsy path

Computer Graphics n What is Computer graphics? n n Main techniques evolved into Graphics

Computer Graphics n What is Computer graphics? n n Main techniques evolved into Graphics libraries n n n Algorithms, mathematics, data structures. . … that enable a computer to make PRETTY PICTURES Functions/routines to draw line or circle, etc Elaborate: pull-down menus, 3 D coordinate system, etc Open. GL and Direct. X are one of most popular graphics libraries n Current trend: Implement Open. GL, Direct. X on a specialized chip (Graphics Processing Unit (GPU) on your graphics card

Trend 1: Graphics Processing Unit n n n Powerful and inexpensive: Many FLOPS! Initially,

Trend 1: Graphics Processing Unit n n n Powerful and inexpensive: Many FLOPS! Initially, just hardcode graphics operations onto chip, increase speed Huge computation ability and bigger growth rate in a consumer graphics card. Programmable: in recent 2 -3 years New operations just added. Possibility to apply to non-graphics application. Increasing precision

Computational Power n NVIDIA Ge. Force 7900 GTX ($378) 51. 2 GB/sec memory bandwidth;

Computational Power n NVIDIA Ge. Force 7900 GTX ($378) 51. 2 GB/sec memory bandwidth; n ATI Radeon X 1900 XTX ($355) 240 GFLOPS, both measured with GPUBench. n Dual-core 3. 7 GHz Intel Pentium Extreme Edition 965. (Around $1000) 8. 5 GB/sec and 25. 6 GFLOPS theoretical peak for the SSE units

GPU Computational Power Growth

GPU Computational Power Growth

Nvidia 8800 Block diagram of the Ge. Force 8800. Source: NVIDIA 681 million transistors

Nvidia 8800 Block diagram of the Ge. Force 8800. Source: NVIDIA 681 million transistors 1. 35 GHz 128 stream processors

Programmable GPU? n n GPGPU: General-Purpose Computation on GPU. Nongraphics application Programmable: can hack

Programmable GPU? n n GPGPU: General-Purpose Computation on GPU. Nongraphics application Programmable: can hack non-graphics applications onto GPU Program applications as collection of shaders GPGPU applications: n n n Physically based simulation: fluid Dynamics; Cloth simulation, Signal and Image Processing Medical imaging Database query/data mining Global illumination algorithms: Ray tracing, photon mapping

Why are GPUs getting so fast? n n Arithmetic intensity: use more transistors for

Why are GPUs getting so fast? n n Arithmetic intensity: use more transistors for computation and less for decision logic. Economics: Demand is high thanks to multibillion dollar game industry. n n More chips produced => lower price AMD + ATI => XPUs…. Cool idea?

Computer Graphics in Games n Elements? n n n n Model geometry Apply colors,

Computer Graphics in Games n Elements? n n n n Model geometry Apply colors, shading Shadows Texture mapping Fog Transparency and blending Anti-aliasing Courtesy: Madden NFL game

Trend 2: Capture n Old way: write models, equations to model: n n n

Trend 2: Capture n Old way: write models, equations to model: n n n Object geometry, lighting (Phong), animation, etc New way: capture parameters from real world Example: motion in most sports games (e. g. NBA 2 K live) is captured. n n n How? Put sensors on actors Let them play game Capture their motion Put motion in a database Replay database when real players play game

How is capture done? n n Capture: n Digitize real object geometry and attributes

How is capture done? n n Capture: n Digitize real object geometry and attributes n Use cameras, computer vision techniques to capture rendering data n Place data in database, many people can re-use Question: What is computer vision?

Geometry Capture: 3 D Scanning n n Capturing geometry trend: Projects on precise 3

Geometry Capture: 3 D Scanning n n Capturing geometry trend: Projects on precise 3 D scanning (Stanford, IBM, etc) produce very large polygonal models Some models too large to be loaded by most machines Model: David Largest dataset Size: 2 billion polygons, 7000 color images!! Courtesy: Stanford Michael Angelo 3 D scanning project

Exactly What Can We Capture? 1. Appearance (volume, scattering, transparency, translucency, etc) 2. Geometry

Exactly What Can We Capture? 1. Appearance (volume, scattering, transparency, translucency, etc) 2. Geometry 3. Reflectance & Illumination 4. Motion

Light Probes: Capturing light Amazing graphics, High Dynamic Range?

Light Probes: Capturing light Amazing graphics, High Dynamic Range?

Why effort to capture? n Big question: If we can capture real world parameters,

Why effort to capture? n Big question: If we can capture real world parameters, what advantages does computer graphics have?