Skip to content

kevmoo/ChronosGL

 
 

Repository files navigation

ChronosGL

A scene graph for WebGL written in Dart

Features:

  • MIT licensed
  • very high focus on simple, minimal and elegant code and API
  • lightweight and fast
  • capture keyboard and mouse events
  • all scene graph nodes position and rotation are based on a single matrix4 variable. this is likely the main differentiator to other scene graphs
  • space ship camera included
  • shapes: cube, cylinder, icosahedron and torusknot
  • pickray
  • points sprites ( very basic particles )
  • skybox
  • async texture loader with progress feedback
  • great support for canvas based textures
  • focus on procedural content generation and textureless rendering

Basic Concepts

See the class glossary

Example (from example/simple/)

Usage

Create a new Dart webapp project, add this as a pubspec.yaml dependency: dependencies: chronosgl: any

You may also need the vector_math library which is the only library that ChronosGL is dependent on.

Copy the example from above and run it in Dartium.

It should look like this:

If you need dart:html, it is recommended to add dart:html as HTML like this, due to a naming conflict regarding Node: import 'dart:html' as HTML;

About

A simple, minimal and elegant scene graph for WebGL written in Dart

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 95.5%
  • HTML 4.1%
  • Other 0.4%