gltut / Documents / Tutorials.xml

Full commit
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="" type="xml"?>
<?oxygen SCHSchema=""?>
<book xmlns="" xmlns:xi="" version="5.0">
        <title>OpenGL Tutorials</title>
        <title>About these Tutorials</title>
        <para>These tutorials are designed for a beginning graphics programmer. To use these
            tutorials, you are expected to know the following</para>
                <para>C/C++ programming. You should be able to read C and mild C++. If <quote>Hellp,
                        world!</quote> is the extent of your C/C++ knowledge, then perhaps you
                    should write some more substantial code before proceeding with these
                <para>These tutorials should be transferable to other languages as well. If you can
                    read C/C++, that is enough to understand what the code is doing. The text
                    descriptions that explain what the code does are also sufficient to get
                    information out of these tutorials.</para>
                <para>Basic geometry and algebra math. The tutorials will present the more advanced
                    math needed for graphics, but you should have at least a working knowledge of
                    geometry and algebra. Linear algebra is not required, though it would be
            <title>Browser Note</title>
            <para>This website and these tutorials make extensive use of SVG images. Basic SVG
                support is in all major browsers except any version of Internet Explorer. And while
                IE has the dominant marketshare, I'm afraid that these images will remain SVG
                images. If you are content with Internet Explorer, consider installing the Google
                Chrome Frame add-on for IE8. This will allow you to see the images correctly.</para>
            <title>Yet Another OpenGL Tutorial?</title>
            <para>There are many OpenGL tutorials on the internet. If you are here, then you are
                clearly interested in graphics programming with OpenGL. So why should you use this
                tutorial instead of another?</para>
            <para>Programmable graphics cards have been around, in one form or another, for almost
                10 years. Programmability as a core features has been around in OpenGL for almost 5
                years; various vendor-specific API extensions have been around even longer.</para>
            <para>And yet, despite the ubiquity of programmability in OpenGL users lives, using
                programmability is often considered advanced material. Other OpenGL tutorials
                instead focus on doing what they consider the easy things: using the OpenGL
                fixed-function pipeline.</para>
            <para>This indeed makes it very easy to actually accomplish something. If you want to
                have a camera with a perspective projection over a scene of objects in a
                well-defined world, these tutorials can show you how. They give you an effective
                list of rules and API commands to execute in a particular order to achieve a certain
                effect. But what they are terrible at is actually imparting
                    <emphasis>knowledge</emphasis> upon the reader.</para>
            <para>It is easy to show someone how to use <function>gluLookAt</function>,
                    <function>gluPerspective</function>, and other functions to make everything come
                out <quote>right.</quote> But because these functions hide important details, what
                the reader is often left with is a set of rules for where to put what code to make
                things work.</para>
            <para>Without the foundation of knowledge of what these functions actually are
                    <emphasis>doing</emphasis>, the reader is effectively living in a world of
                copy-and-paste code. The reader can parrot code they found in a tutorial, but they
                don't know why it works. And if they should copy it incorrectly or use it in the
                wrong circumstances, they do not have the foundation of knowledge to diagnose the
                problem and find a solution.</para>
            <para>Without a real foundation of knowledge, such persons will quickly find using
                programmable functions in OpenGL to be confusing and disorienting. Stripped of all
                of the convenience functionality, such persons are left to their own devices. This
                is doubly so, considering that while there are a lot of OpenGL tutorials, very few
                of them go into any real depth in terms of programmability.</para>
            <para>These tutorials are designed first and foremost to <emphasis>teach</emphasis> the
                reader valuable information about how graphics works. To this end, each and every
                tutorials will use the OpenGL Shading Language and all modern (as of OpenGL 3.2)
                features of the API. This makes it impossible to gloss over seemingly minor yet
                critical information about how various features of the language and graphics
                hardware actually work.</para>
            <para>This does not mean that you need to have read other tutorials first. As previously
                stated, these tutorials are intended primarily for the beginning graphics
                programmer. These tutorials are in-depth, but they are also designed to break
                complex subjects down into easily understood sections.</para>
            <para>Because of this, these tutorials are not merely heavily commented source code.
                Indeed, the source code is usually secondary, used only as a way to show how to
                implement the concept that was previously discussed. In most cases, the entire
                source code for a tutorial will not be shown within that tutorial; only the relevant
                sections of code will be described.</para>
    <xi:include href="Building the Tutorials.xml"/>
            <title>The Basics</title>
            <para>These tutorials involve the most basic operations for OpenGL. They deal with the
                core of the OpenGL pipeline. These provide core information about how OpenGL works,
                how its pipeline works, what the basic flow of information is within OpenGL.</para>
        <xi:include href="tutorial 00/tutorial 0.xml"/>
        <xi:include href="tutorial 01/tutorial 01.xml"/>
        <xi:include href="tutorial 02/tutorial 02.xml"/>
            <para>These tutorials give the reader information about how objects are positioned in 3D
                graphics and OpenGL. These deal with transforming the position of objects, as well
                as doing what is necessary to make those objects appear as though they are in a
                3-dimensional space.</para>
        <xi:include href="tutorial 03/tutorial 03.xml"/>
            <para>Lighting is a fundamental part of almost all rendering. These tutorials provide
                information on how lights can work, as well as details on a few different
                mathematical illumination models.</para>
            <para>Lookup tables in rendering are usually called textures. This is due to the fact
                that the main use for them is to modify the appearance of a surface. Even so,
                textures have many uses.</para>
            <para>Render targets and framebuffer blending are key components to many advanced
                effects. These tutorials will cover many per-framebuffer operations, from blending
                to render targets.</para>
        <title>Advanced Lighting</title>
            <para>Simple diffuse lighting and directional shadows are useful, but better, more
                effective lighting models and patterns exist. These tutorials will explore those,
                from Phong lighting to reflections to HDR and blooming.</para>