OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: -Light
View page
Source of version: 12
(current)
{INCLUDE(page="ogrelex ext tpl")/} --- {img src="img/wiki_up/Light_1.png" alt="Light_1.png" imalign="right"} __Light__ is needed to make something visible. !!Types of Lights There are three types of lighting that Ogre provides: __Point:__ Point light sources emit light from them in every direction. __Spotlight:__ A spotlight works exactly like a flashlight does. You have a position where the light starts, and then light heads out in a direction. You can also tell the light how large of an angle to use for the inner circle of light and the outer circle of light (you know how flashlights are brighter in the center, then lighter after a certain point?). __Directional:__ Directional light simulates far away light that hits everything in the scene from a direction. Lets say you have a night time scene and you want to simulate moonlight. You could do this by setting the ambient light for the scene, but that's not exactly realistic since the moon does not light everything equally (neither does the sun). One way to do this would be to set a directional light and point in the direction the moon would be shining. !!!Light properties Lights have a wide range of properties that describes how the light looks. Two of the most important properties of a light is its ''diffuse'' and ''specular'' color. Each material script defines how much diffuse and specular lighting the material reflects. * ((-Diffuse (Light)|Diffuse)) * ((-Specular (Light)|Specular)) * ((-Ambient (Light)|Ambient)) * ((-Emissive (Light)|Emissive)) !!See also * ((Basic Tutorial 2)) - Cameras, Lights and Shadows * ((Mogre Basic Tutorial 2)) - Cameras, Lights and Shadows (for ((Mogre)) users) * ((OogstsHowTo|#How to put a light in the scene|Code snippets)) (OogstsHowTo) * ((Light mapping)) * ((-Point Light Attenuation|Point Light Attenuation)) * [http://www.ogre3d.org/docs/api/html/classOgre_1_1Light.html|API of Lights] * ((MadMarx Tutorial 6)) - Basic Light --- {INCLUDE(page="ogrelex ext tpl")/} ---
Search by Tags
Search Wiki by Freetags
Latest Changes
One Function Ogre
IDE Eclipse
FMOD SoundManager
HDRlib
Building Ogre V2 with CMake
Ogre 2.1 FAQ
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
...more
Search
Find
Advanced
Search Help
Online Users
200 online users