kosua20 / herebedragons

A basic 3D scene implemented with various engines, frameworks or APIs.
http://simonrodriguez.fr/dragon
MIT License
1.72k stars 78 forks source link
blender computer-graphics cycles dragon gba graphics-programming metal nds opengl ps2 rendering scenekit software-rendering unity webgl

Here be dragons

Hic sunt dracones.

This repository contains multiple implementations of the same 3D scene, using different APIs and frameworks on various platforms. The goal is to provide a comparison between multiple rendering methods. This is inherently biased due to the variety of algorithms used and available CPU/GPU configurations, but can hopefully still provide interesting insights on 3D rendering. You can check a video of most versions runnning here (Youtube)

The following versions are currently available:

The following versions are (tentatively) planned:

In the directory of each version, you can find the source code, the corresponding resources (as each method has its own format/quality constraints), along with a readme describing the method and a few examples.

Resources

The scene is composed of four main elements:

Additionally, the sun is simulated by using a directional light, and the camera should be able to rotate around the scene. Note that some versions might provide additional effects, such as soft shadow maps, parallax mapping or screen space ambient occlusion. The initial 3D models and textures are contained in the opengl/resources directory.

Other implementations

Here you can find implementations using some of the above APIs combined with other programming languages, submitted by awesome people!