[ Back to Geeks3D.com ]
 GeeXLab
Laboratory for Real Time 3D Programming (prototyping and demos) OpenGL, Lua, Python, GLSL, PhysX and more...Code Samples
Basics
Direct Model Loading
Python
Lua
GLSL Shaders
Post Processing
Shadows
Instancing
NVIDIA PhysX
Particle System
Audio / Sound
Fonts 2D / 3D
You can download all code samples in a single archive:
Code Samples Pack:
[ DOWNLOAD (18MB) ]
Left-click to download (right-click disabled)
GeeXLab Code Samples - Basics
Texture - JPG image
This example shows how to load a JPG image. |
|
Texture - Video AVI
This example shows how to load an animated texture (AVI file). |
|
Built-in Meshes
This example shows how to use some of the built-in meshes (here a sphere and a torus) and display vertices normals. |
|
Skybox
This example shows how to load a skybox (simple way and with Python). |
|
HUD
This example shows how to use HUD (Head Up Display) and play with color blending factors. |
|
GeeXLab Code Samples - Direct Model Loading
3DS Format - Cube
This example shows how to load a textured model from a 3DS file. There is no dynamic lighting. |
|
W4K Format - Plane
This example shows how to load a multi-textured model from a W4K file. W4K format is generated with the W4K Mesh Exporter for 3ds Max. |
|
OBJ Format - Cube
This example shows how to load a model from an OBJ (Alias Wavefront) file. |
|
DirectX Format - Tiger
This example shows how to load a model from a DirectX file. |
|
Collada Format - Car
This example shows how to load a model from a Collada file. |
|
OpenCTM Format
This example shows how to load a mesh from an OpenCTM file. |
|
GeeXLab Code Samples - Python
Hello World!
This example shows how to use Python scripts. This is the famous Hello World of programming languages. |
|
Texture Viewer
This example shows how to use drag n drop scripts (Python scripting) to load and display several texture files at the same time. |
|
Shared Variables
This example shows how to use the shared variables to share data between Python and Lua scripts. |
|
NetworkX
This example shows how to use the NetworkX library. More information HERE.
You have to install the NetworkX library before loading this demo. |
|
Post Direct Rendering
This example shows how to use the post direct rendering scripts to have a full control on the rendering. |
|
PyOpenGL
This example shows how to use the PyOpenGL library with post direct rendering scripts. More information HERE.
You have to install the PyOpenGL library before loading this demo |
|
GeeXLab Code Samples - Lua
LuaGL
This code sample shows how to use LuaGL, a library that provides access to all OpenGL (up to version 1.3) functionalities from Lua. |
|
Anaglyph Stereoscopic 3D
This code sample shows (in Lua and Python) how to generate anaglyph 3D images. Anaglyph images must be viewed with red/cyan glasses. |
|
3D Curve
This example shows how to create a curve object and render a 3D curve (here a sine). |
|
Render to texture
This example shows how to do render to texture (RTT). |
|
Motion Path Editor
This example shows a very simple motion path editor. |
|
Hierarchy
This example shows how to setup a hierarchy. |
|
Draw Line
This example shows how to draw a line using a line object and without a line object in immediate mode (post direct rendering). |
|
Model Cloning
This example shows how to clone a model. The model can be seen as a template and you can create new model by cloning the template. In the demo, just press the SPACE key to clone the model. |
|
GeeXLab Code Samples - GLSL Shaders
Point Light - Phong Lighting
This example shows how to implement a Phong shader in GLSL. |
|
Simple Bump Mapping
This example shows how to do bump mapping with normal map and a GLSL shader. |
|
GeeXLab Code Samples - Post Processing
Bloom PostFX
This example shows how to use post processing filters to create a bloom effect. |
|
Negative PostFX
This example shows how to create a negative post processing filter that simply reverses colors. |
|
GeeXLab Code Samples - Shadows
Shadow Volume
This example shows how to simulate soft shadows with shadow volumes and several light sources. |
|
Shadow Mapping
This example shows how to use the shadow mapping to create nice soft shadows. |
|
GeeXLab Code Samples - Instancing
Software Mesh Instancing
This example shows how to do software mesh instancing in Lua. |
|
Software Mesh Instancing - Spirale
This example shows how to do software mesh instancing in a simple hierarchy. |
|
GeeXLab Code Samples - NVIDIA PhysX
PhysX fluids
This example shows how use the fluids of NVIDIA PhysX.
You have to install the latest PhysX System Software before running this demo. |
|
Simple PhysX demo
This example shows how use NVIDIA PhysX with the drop of a simple cube.
You have to install the latest PhysX System Software before running this demo. |
|
Revolute joints
This example shows how use revolute and breakable joints.
You have to install the latest PhysX System Software before running this demo. |
|
GeeXLab Code Samples - Particle System
Point Emitter
This example shows how use a simple point emitter. |
|
GeeXLab Code Samples - Audio / Sound
MP3 File
This example shows how to load and play a MP3 file. |
|
3D Sound
This example shows how to load a sound file and use 3D sound capabilities. The source of sound is attached to a gizmo moving on the motion path. |
|
Sound Phaser
This example shows how start sound playing when you want. Each time you press the SPACE key, the mesh sphere polygon mode is changed (LINE / SOLID) and a sound (phaser) is played. |
|
GeeXLab Code Samples - Font
2D Bitmap fonts
This example shows how to use 2D fonts created from bitmap files. Bitmap files have been created with Bitmap Font Generator. This program will allow you to generate bitmap fonts from TrueType fonts. |
|
3D fonts
This example shows how to use 3D fonts. |
|
|