home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / Direct3D / Tutorials / Tut04_Lights / readme.txt < prev   
Encoding:
Text File  |  2001-10-10  |  1.1 KB  |  29 lines

  1. //-----------------------------------------------------------------------------
  2. // Name: Lights Direct3D Tutorial
  3. // 
  4. // Copyright (c) 2000-2001 Microsoft Corporation. All rights reserved.
  5. //-----------------------------------------------------------------------------
  6.  
  7.  
  8. Description
  9. ===========
  10.    The Lights tutorial shows how to use dynamic lighting in Direct3D.
  11.  
  12.    
  13. Path
  14. ====
  15.    Source:     DXSDK\Samples\Multimedia\D3D\Tutorials\Tut04_Lights
  16.  
  17.  
  18. Programming Notes
  19. =================
  20.    Dynamic lighting makes 3D objects look more realistic. Lights come in a few
  21.    flavors, notably point lights and directional lights. Geometry gets lit by
  22.    every light in the scene, so adding lights increases rendering time. Point
  23.    lights have a poistion and are computationally more expensive than directional
  24.    lights, which only have a direction (as if the light source is infinitely far
  25.    away). Internal Direct3D lighting calculations require surface normals, so note
  26.    that normals are added to the vertices. Also, material properties can be set,
  27.    which describe how the surface interacts with the light (i.e. it's color).
  28.  
  29.