Skip to content
/ octrend Public

Experiments with rendering of octrees, C, and OpenGL (from the attic, 2009)

Notifications You must be signed in to change notification settings

scherr/octrend

Repository files navigation

OctRend

Maximilian Scherr, 2006-

I was once interested in voxel engines and to practice some C as well as OpenGL (both of which I have mostly forgotten or has fallen into deprecation) I wrote a few experiments on how a really naive volume rendering of voxels as cubes would fare. Level of detail is used to speed up and very trivially implementable thanks to the octree data structure used.

This comes right out of the attic (from 2009 with octree.c from 2006) and is filled with bugs and cobwebs.

Prototype (./protoype)

This implementations uses direct mode and is properly the best documented one.

The example scene:

The example scene

Farther away:

Farther away

Closer:

Closer

Light with shadows (very slow!):

Light with shadows (very slow!)

Another shadow:

Another shadow

Slow Cubes, Fast Cubes, Shader (./slowcubes, ./fastcubes, ./shader)

These implementations are somewhat simpler and use vertex lists instead of direct mode. The difference between slow and fast cubes is the latter's use of lookup tables.

The shader implementation uses flat squares instead of cubes for rendering. Sadly, I do not have the appropriate hardware (anymore) to test this implementation or show screenshots of it.

A voxel landscape (by ???):

A voxel landscape (by ???)

More detail:

More detail

Wild voxel models (by Ken Silverman) appear:

Wild voxel models (by Ken Silverman) appear

More detail:

More detail

Data

Model data is taken from Ken Silverman's SLAB6. I cannot remember the origin of the height and texture map data and would be happy about pointers for proper attribution.

About

Experiments with rendering of octrees, C, and OpenGL (from the attic, 2009)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published