Source

gltut / Documents / Illumination.xml

<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://docbook.org/xml/5.0/rng/docbookxi.rng" type="xml"?>
<?oxygen SCHSchema="http://docbook.org/xml/5.0/rng/docbookxi.rng"?>
<part xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
    <?dbhtml filename="Illumination.html" dir="Illumination" ?>
    <info>
        <title>Illumination</title>
    </info>
    <partintro>
        <para>One of the most important aspects of rendering is lighting. Thus far, all of our
            objects have had a color that is entirely part of the mesh data, pulled from a
            uniform variable, or computed in an arbitrary way. This makes all of our objects
            look very flat and unrealistic.</para>
        <para>Properly modeling the interaction between light and a surface is vital in creating a
            convincing world. Lighting defines how we see and understand shapes to a large degree.
            The lack of lighting is the reason why the objects we have used thus far look fairly
            flat. A curved surface appears curved to us because of how the light plays over the
            surface. The same goes for a flat surface.</para>
        <para>Without this visual hinting, surfaces appear flat even when they are modeled with many
            triangles and yield a seemingly-curved polygonal mesh. A proper lighting model makes
            objects appear real. A poor or inconsistent lighting model shows the virtual world to be
            the forgery that it is.</para>
        <para>This section of the book will cover lighting, using a variety of light/surface
            modelling techniques. It will cover dynamic range and linear colorspaces in lighting
            equations. Also, it will cover techniques to use lighting to produce entirely fake
            surfaces.</para>
    </partintro>
    <xi:include href="Illumination/tutorial 09.xml"/>
    <xi:include href="Illumination/tutorial 10.xml"/>
    <xi:include href="Illumination/tutorial 11.xml"/>
    <xi:include href="Illumination/tutorial 12.xml"/>
    <xi:include href="Illumination/tutorial 13.xml"/>
</part>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.