chronosgl 3.3.0

  • README.md
  • Installing
  • Versions
  • 19

ChronosGL

A simple WebGL2 engine written in Dart

Features:

  • MIT licensed
  • straight-forward API
  • lightweight (close to "baremetal")
  • fully based on WebGL2 and GLSL 3.00es
  • keyboard and mouse event capture
  • support for canvas based textures including skybox
  • focus on procedural content generation
  • optional basic scenegraph
  • importer for several file formats
  • bone animations
  • few dependencies

Code

Examples

Usage

You must use Dartium (Version 50 or later) and Dart SDK (Version 1.24.0 or later)

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

You 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: <img src="http://i.imgur.com/Zb1XyCG.png" style="width: 600px;"/>

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;

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  chronosgl: ^3.3.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:chronosgl/chronosgl.dart';
  
Version Uploaded Documentation Archive
3.3.0 Mar 28, 2018 Go to the documentation of chronosgl 3.3.0 Download chronosgl 3.3.0 archive
3.2.3 Jan 1, 2018 Go to the documentation of chronosgl 3.2.3 Download chronosgl 3.2.3 archive
3.2.2 Aug 11, 2017 Go to the documentation of chronosgl 3.2.2 Download chronosgl 3.2.2 archive
3.2.1 Jul 30, 2017 Go to the documentation of chronosgl 3.2.1 Download chronosgl 3.2.1 archive
3.2.0 Jul 23, 2017 Go to the documentation of chronosgl 3.2.0 Download chronosgl 3.2.0 archive
2.1.2 Apr 17, 2017 Go to the documentation of chronosgl 2.1.2 Download chronosgl 2.1.2 archive
2.1.0 Apr 2, 2017 Go to the documentation of chronosgl 2.1.0 Download chronosgl 2.1.0 archive
2.0.1 Mar 30, 2017 Go to the documentation of chronosgl 2.0.1 Download chronosgl 2.0.1 archive
2.0.0 Mar 27, 2017 Go to the documentation of chronosgl 2.0.0 Download chronosgl 2.0.0 archive
1.4.0 Dec 11, 2014 Go to the documentation of chronosgl 1.4.0 Download chronosgl 1.4.0 archive

All 15 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
21
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
40
Overall:
Weighted score of the above. [more]
19
Learn more about scoring.

We analyzed this package on Oct 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.4

Platforms

Detected platforms: unsure

Low code quality prevents platform classification.

Health issues and suggestions

Fix lib/src/polygon/basic.dart. (-76.27 points)

Analysis of lib/src/polygon/basic.dart failed with 5 errors:

line 24 col 24: The getter 'NEGATIVE_INFINITY' isn't defined for the class 'double'.

line 25 col 24: The getter 'INFINITY' isn't defined for the class 'double'.

line 26 col 24: The getter 'NEGATIVE_INFINITY' isn't defined for the class 'double'.

line 27 col 24: The getter 'INFINITY' isn't defined for the class 'double'.

line 183 col 25: The getter 'PI' isn't defined for the class 'Math'.

Fix lib/src/shape/cylinder.dart. (-68.36 points)

Analysis of lib/src/shape/cylinder.dart failed with 4 errors:

line 26 col 34: The getter 'PI' isn't defined for the class 'Math'.

line 27 col 34: The getter 'PI' isn't defined for the class 'Math'.

line 98 col 46: The getter 'PI' isn't defined for the class 'Math'.

line 148 col 46: The getter 'PI' isn't defined for the class 'Math'.

Fix lib/src/input.dart. (-43.75 points)

Analysis of lib/src/input.dart failed with 2 errors:

line 211 col 31: The getter 'PI' isn't defined for the class 'Math'.

line 211 col 50: The getter 'PI' isn't defined for the class 'Math'.

Fix additional 28 files with analysis or formatting issues. (-231.75 points)

Additional issues in the following files:

  • lib/src/polygon/extrude.dart (2 errors)
  • lib/src/shape/icosahedron.dart (2 errors)
  • lib/src/shape/torusknot.dart (2 errors)
  • lib/src/core/projection.dart (1 error)
  • lib/src/misc/example_helper.dart (1 error)
  • lib/src/misc/light_visualizer.dart (1 error)
  • lib/src/shape/tube.dart (1 error)
  • lib/src/shape/cube.dart (1 hint)
  • lib/chronosgl.dart (Run dartfmt to format lib/chronosgl.dart.)
  • lib/src/animation/skeleton_animation.dart (Run dartfmt to format lib/src/animation/skeleton_animation.dart.)
  • lib/src/core/abstractions.dart (Run dartfmt to format lib/src/core/abstractions.dart.)
  • lib/src/core/constants.dart (Run dartfmt to format lib/src/core/constants.dart.)
  • lib/src/core/geometry_builder.dart (Run dartfmt to format lib/src/core/geometry_builder.dart.)
  • lib/src/core/illumination.dart (Run dartfmt to format lib/src/core/illumination.dart.)
  • lib/src/core/lib.dart (Run dartfmt to format lib/src/core/lib.dart.)
  • lib/src/core/material.dart (Run dartfmt to format lib/src/core/material.dart.)
  • lib/src/misc/bone_visualizer.dart (Run dartfmt to format lib/src/misc/bone_visualizer.dart.)
  • lib/src/misc/lib.dart (Run dartfmt to format lib/src/misc/lib.dart.)
  • lib/src/polygon/lib.dart (Run dartfmt to format lib/src/polygon/lib.dart.)
  • lib/src/scene/node.dart (Run dartfmt to format lib/src/scene/node.dart.)
  • lib/src/shader/basic_shader.dart (Run dartfmt to format lib/src/shader/basic_shader.dart.)
  • lib/src/shader/blur_shader.dart (Run dartfmt to format lib/src/shader/blur_shader.dart.)
  • lib/src/shader/effect_shaders.dart (Run dartfmt to format lib/src/shader/effect_shaders.dart.)
  • lib/src/shader/fragment.dart (Run dartfmt to format lib/src/shader/fragment.dart.)
  • lib/src/shader/simple_shaders.dart (Run dartfmt to format lib/src/shader/simple_shaders.dart.)
  • lib/src/shader/wireframe_shader.dart (Run dartfmt to format lib/src/shader/wireframe_shader.dart.)
  • lib/src/shape/plane.dart (Run dartfmt to format lib/src/shape/plane.dart.)
  • lib/src/webhelper/webtexture.dart (Run dartfmt to format lib/src/webhelper/webtexture.dart.)

Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Low code quality prevents platform classification.

Maintain CHANGELOG.md. (-20 points)

Changelog entries help clients to follow the progress in your code.

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example.

None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use chronosgl.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.24.0 <= 2.0.0
vector_math >=2.0.5 <3.0.0 2.0.8
Dev dependencies
args >=0.13.0
browser >=0.10.0
test >=0.12.20