NeHe Lessons
From SDL.NET
The NeHe lessons are a series of demos and tutorials to guide through the various features of OpenGL. SDL.NET provides implementations of most of the NeHe lesson tutorials by using a number of assemblies from the Tao Framework including Tao.OpenGl and Tao.Platform.Windows
| Table of contents |
NeHe Lesson 01: Setting Up An OpenGL Window
This lesson simply sets up an OpenGL window using SDL.NET. It shows up blank.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe001.cs?view=markup)
NeHe Lesson 02: Your First Polygon
A triangle and a square polygon are drawn to the Surface.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe002.cs?view=markup)
NeHe Lesson 03: Adding Color
Color is added to the polygons.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe003.cs?view=markup)
NeHe Lesson 04: Rotation
The polygons will rotate.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe004.cs?view=markup)
NeHe Lesson 05: 3D Shapes
The demo renders a tetrahedron and a cube and rotates them.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe005.cs?view=markup)
NeHe Lesson 06: Texture Mapping
This demo renders a texture on a rotating cube.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe006.cs?view=markup)
NeHe Lesson 07: Texture Filters, Lighting, and Keyboard Control
The right, left, up and down arrows will rotate the cube. The'L' key will change the lighting. The 'F' key will change the filtering.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe007.cs?view=markup)
NeHe Lesson 08: Blending
Similar to Lesson 7, but the 'B' key will blend the cube.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe008.cs?view=markup)
NeHeLesson 09: Moving Bitmaps in 3D Space
This demo draw a bitmap in 3D space. the 'T' key will change the twinkling of the stars. The 'PageUp' and 'PageDown' keys change the zoom. The 'Up Arrow' and 'Down Arrow' keys change the tilt.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe009.cs?view=markup)
NeHe Lesson 10: Loading and Moving through a 3D World
This demo moves you through a small room of rendered walls. Use the arrow keys to move around. The 'F' key will change the filter.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe010.cs?view=markup)
NeHe Lesson 11: Flag Effect (Waving Texture)
This demo shows a texture waving liek a flag.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe011.cs?view=markup)
NeHe Lesson 12: Display Lists
This demo uses lists to create series of boxes that can be rotated withte arrow keys.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe012.cs?view=markup)
NeHe Lesson 13: Bitmap Fonts
This lesson renders a bitmapped font. This lesson is for the Windows platform.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe013.cs?view=markup)
NeHe Lesson 14: Outline Fonts
This lesson renders a outline bitmapped font. This lesson is for the Windows platform.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe014.cs?view=markup)
NeHe Lesson 15: Texture Mapped Outline Fonts
This lesson renders a texture onto a bitmapped font. This is for the Windows platform.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe015.cs?view=markup)
NeHe Lesson 16: Cool Looking Fog
This lesson creates fog around the rotating cube found in Lesson 7. The 'G' key will filter the fog.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe016.cs?view=markup)
NeHe Lesson 17: 2D Texture Font
This lesson uses a 2D texture font instead of a bitmapped font.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe017.cs?view=markup)
NeHe Lesson 18: Quadrics
This lesson shows how to use quadrics to draw complex shapes such a a cube, a cone, a cylinder and a sphere. The 'space bar' will toggle through the various shapes. The arrow keys will rotate the object in different directions.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe018.cs?view=markup)
NeHe Lesson 19: Particle Engine Using Triangle Strips
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe019.cs?view=markup)
NeHe Lesson 20: Masking
This lesson uses masking instead of blending to place two images on top of each other.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe020.cs?view=markup)
NeHe Lesson 23: Sphere Mapping, Multi-Texturing and Extensions
This lessons shows how to create a reflection off of an object. The space bar will toggle through the various objects. The arrow keys will rotate the object.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe023.cs?view=markup)
NeHe Lesson 25: Morphing and Loading Objects from a File
This lesson loads points from a file and displays them in a shape. use the arrow keys to rotate the object. Use the '1-4' keys to toggle through the shapes.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe025.cs?view=markup)
NeHe Lesson 26: Clipping & Reflections Using The Stencil Buffer
This lesson creates realistic reflections. Use the arrow keys to rotate the ball. Use the 'Page Up' and 'Page Down' keys to change the ball height.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe026.cs?view=markup)
NeHe Lesson 34: Beautiful Landscapes By Means Of Height Mapping
This lesson renders a height map. Use the 'Up' and 'Down' arrow keys to zoom in an out.
The source code is here (http://cs-sdl.svn.sourceforge.net/viewcvs.cgi/cs-sdl/trunk/SdlDotNet/examples/SdlDotNetExamples/NeHe/NeHe034.cs?view=markup)
See Also
- Official NeHe Website (http://nehe.gamedev.net)

