OpenGL Tutorials - REBOL Versions

Updated: 7-May-2008
Author: John Niclasen

Contents:

1. NeHe Lessons
1.1 To run the examples
1.2 Lesson 03 - Adding Color
1.3 Lesson 05 - 3D Shapes
1.4 Lesson 08 - Blending
1.5 Lesson 13 - Bitmap Fonts
1.6 Lesson 16 - Cool Looking Fog
1.7 Lesson 18 - Quadrics
1.8 Lesson 23 - Sphere Mapping Quadrics

1. NeHe Lessons

The following examples are converted lessons from NeHe Productions.
See: http://nehe.gamedev.net/

1.1 To run the examples

  • For Mac OS X, get the GLServer, and put it in the path, e.g.: /usr/local/bin/
  • For Win32, get the GLServer.exe, and put it in the path, e.g.: C:\Windows\
  • Get the GLClient.r, and put it in a place, where your REBOL INCLUDE function can find it. If you haven't got an INCLUDE function, get one here: include.r
  • Use the links to "REBOL source" for each lesson. Right-click the link and choose "Save as..." and save it locally
  • Run the lesson script

1.2 Lesson 03 - Adding Color

REBOL source: lesson03.r

1.3 Lesson 05 - 3D Shapes

REBOL source: lesson05.r

1.4 Lesson 08 - Blending

To run this example, you need this image file: glass_128x128.raw

Uncomment the line with OpenGL/texture-dir in the beginning of lesson08.r and point it to the directory, where you put the image.

REBOL source: lesson08.r

The program will first ask in a requester, if game mode should be used!

Use the following keys in this example:

 ArrowsRotate
 Page-up/-downZoom
 F1Toggle full screen, when not in game mode
 lToggle light
 fSwitch among 3 filters
 bToggle blending
 Escend

1.5 Lesson 13 - Bitmap Fonts

REBOL source: lesson13.r

Use the following keys in this example:

 F1Toggle full screen
 Escend

1.6 Lesson 16 - Cool Looking Fog

To run this example, you need this image file: crate_256x256.raw

Uncomment the line with OpenGL/texture-dir in the beginning of lesson16.r and point it to the directory, where you put the image.

REBOL source: lesson16.r

Use the following keys in this example:

 ArrowsRotate
 Page-up/-downZoom
 F1Toggle full screen
 lToggle light
 fSwitch among 3 filters
 gSwitch among 3 fog filters
 Escend

1.7 Lesson 18 - Quadrics

To run this example, you need this image file: wall_64x64.raw

Uncomment the line with OpenGL/texture-dir in the beginning of lesson18.r and point it to the directory, where you put the image.

REBOL source: lesson18.r

The program will first ask in a requester, if game mode should be used!

Use the following keys in this example:

 ArrowsRotate
 Page-up/-downZoom
 F1Toggle full screen, when not in game mode
 <Space>Switch among 6 different figures
 lToggle light
 fSwitch among 3 filters
 Escend

1.8 Lesson 23 - Sphere Mapping Quadrics

To run this example, you need two image files: BG.tga and Reflect.tga

Uncomment the line with OpenGL/texture-dir in the beginning of lesson23.r and point it to the directory, where you put the image.

REBOL source: lesson23.r

Use the following keys in this example:

 ArrowsRotate
 Page-up/-downZoom
 F1Toggle full screen
 <Space>Switch among 4 different figures
 lToggle light
 fSwitch among 3 filters
 Escend


NicomDoc - 7-May-2008