GithubHelp home page GithubHelp logo

octrend's Introduction

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.

octrend's People

Contributors

scherr avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.