How does lights work in DirectX?

Direct3D provides a small number of lights that you can turn on and off at any time. A light can be one of three types(point lights,directional lights, and spotlights). Direct3D emit three colors that are used independently in the system's lighting computations: a diffuse color, an ambient color, and a specular color. Each is incorporated by the Direct3D lighting module, interacting with a counterpart from the current material to produce a final color used in rendering.

Direct3D Light Model covers ambient, diffuse, specular, and emissive lighting. The total amount of light in a scene is the global illumination and it is computed using the following equation.

Global Illumination = Ambient Light + Diffuse Light + Specular Light

Ambient light is the general light level that falls uniformly throughout your scene, like daylight in an outdoor scene; Diffuse light is the standard 'color' of a material; Specular light are the bright spots you see on shiny objects; Emissive Lighting is light that is emitted by an object, for example, a glow.

Also Light can have a number of properties depending on the type of light such as position,Direction, Range and Attenuation.

FAQ Menu

 
Printer friendly version of the FAQ-DIRECTX-lighting-Explained page


Sponsored links

Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.
Check Out IT Certification Preparation Materials
Sign Up With SkillSoft & Get Access to Training Materials for Over 50 Professional Certifications.
Six Sigma Certification
100% Online-Six Sigma Certificate from Villanova - Find Out More Now.
SSH and SFTP support for .NET
Add complete SSH and SFTP support to your .NET framework application
3 Months Free - ASP.NET Web Hosting
3 Months Free & No Setup Fees on ASP.NET 3.5/2.0 Hosting on Windows 2008/2003 Servers ? Click Here!

Advertisement



Free Magazine

Free Magazines
eWeek The essential technology information source for builders of e-business.... subscribe now

Newsletter | Submit Content | About | Advertising | Awards | Contact Us | Link to us |
© 1996-2008 Community Networks Ltd All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Synchron Data - .NET development.