1 / 13

Lighting Effects in Computer Games Act II

Lighting Effects in Computer Games Act II. Institute of Computer Graphics & Algorithms Vienna University of Technology Vienna / Austria. Ivan Viola. Introduction. speed & quality trade-off real-time rendering (>10 fps) software based techniques hardware acceleration Quake

morna
Télécharger la présentation

Lighting Effects in Computer Games Act II

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lighting Effects in Computer GamesAct II Institute of Computer Graphics & Algorithms Vienna University of Technology Vienna / Austria Ivan Viola

  2. Introduction • speed & quality trade-off • real-time rendering (>10 fps) • software based techniques • hardware acceleration • Quake • state of the art in HW acceleration techniques

  3. Quake • most important FPS game • lighting of the world • lighting of creatures, weapons, particles and sprites

  4. Quake - World Lighting Model (I) • Gouraud shading • angle variance (for n-gons; n>3) • bad for big polygons (such as walls)

  5. Quake - World Lighting Model (II) • Lightmaps • lighting is precalculated (using eg. radiosity) • stored in a 2D texture • easy to scale, translate to create various effects

  6. Quake - Lighting of Polygonal Objects • Gouraud shading • polygons are triangles • small enough • Subdivision rasterizer • division until the polygon is smaller than pixel and then draw

  7. Quake - Following Versions • Verite Quake • HW acceleration using Verite chip • GLQuake • downloadable upgrade that uses OpenGL HW acceleration • Quake II • OpenGL HW acceleration out-of-the-box

  8. State of the Art in FPS Games • Quake III Arena • curved surfaces • volumetric fog • shading languages • Doom III • unique style of lighting using HW acceleration • HW acceleration necessary!

  9. Projective Textures • projector simulation • spotlight simulation • shadow maps

  10. Environment Maps • cubic parameterization • implemented in most nowadays graphics chips • spherical parameterization • mapping is problematic • parabolic parameterization • solves problem of spherical parameterization • partly implemented in MESA

  11. BRDF-Based Lighting • BRDF is a 4D function • 4D lookup table is needed • approximation of 4D lookup table through decomposition into two 2D lookup tables • efficient usage of the texture memory

  12. Anisotropic Lighting • examples of anisotropic surfaces • satin cloth, CD surface, brushed metal • setup and enable 2D texture that encodes lighting model as a function of <L·N> and <V·R> • setup texture matrix for the dot product • pass per-vertex tangent vector of surface or fiber as texture coordinate using glTexCoord3f(Tx,Ty,Tz)

  13. Thank you Ivan Viola viola@cg.tuwien.ac.at

More Related