chronosgl 3.5.0

  • README.md
  • Installing
  • Versions
  • 50

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 #

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.

As a test copy simple.html and simple.dart from above into your project.

It should look like this: <img src="http://i.imgur.com/Zb1XyCG.png" style="width: 600px;"/>

If you need to import dart:html, do so as follows:

import 'dart:html' as HTML;

This will avoid a naming conflict for Node.

Use this package as a library

1. Depend on it

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


dependencies:
  chronosgl: ^3.5.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.5.0 Feb 17, 2019 Go to the documentation of chronosgl 3.5.0 Download chronosgl 3.5.0 archive
3.4.0 Nov 15, 2018 Go to the documentation of chronosgl 3.4.0 Download chronosgl 3.4.0 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

All 17 versions...

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

We analyzed this package on Feb 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.13+1

Platforms

Detected platforms: web

Primary library: package:chronosgl/chronosgl.dart with components: html.

Health suggestions

Fix lib/src/animation/skeleton_animation.dart. (-2.96 points)

Analysis of lib/src/animation/skeleton_animation.dart reported 6 hints, including:

line 139 col 35: Use isEmpty instead of length

line 144 col 35: Use isEmpty instead of length

line 149 col 32: Use isEmpty instead of length

line 154 col 12: Use isNotEmpty instead of length

line 155 col 12: Use isNotEmpty instead of length

Fix lib/src/importer/threejs.dart. (-2.48 points)

Analysis of lib/src/importer/threejs.dart reported 5 hints:

line 6 col 28: Use isEmpty instead of length

line 106 col 11: Use isNotEmpty instead of length

line 107 col 11: Use isNotEmpty instead of length

line 127 col 9: Use isNotEmpty instead of length

line 130 col 9: Use isNotEmpty instead of length

Fix lib/src/core/geometry_builder.dart. (-1.99 points)

Analysis of lib/src/core/geometry_builder.dart reported 4 hints:

line 121 col 14: Use isEmpty instead of length

line 122 col 14: Use isEmpty instead of length

line 328 col 12: Use isNotEmpty instead of length

line 328 col 34: Use isNotEmpty instead of length

Fix additional 14 files with analysis or formatting issues. (-4.99 points)

Additional issues in the following files:

  • lib/src/scene/render_phase.dart (3 hints)
  • lib/src/importer/wavefront.dart (2 hints)
  • lib/src/webhelper/midi_input.dart (2 hints)
  • lib/src/core/chronosgl.dart (1 hint)
  • lib/src/core/render_program.dart (1 hint)
  • lib/src/scene/node.dart (1 hint)
  • lib/chronosgl.dart (Run dartfmt to format lib/chronosgl.dart.)
  • lib/src/core/textures.dart (Run dartfmt to format lib/src/core/textures.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/ssao_shader.dart (Run dartfmt to format lib/src/shader/ssao_shader.dart.)
  • lib/src/shape/cylinder.dart (Run dartfmt to format lib/src/shape/cylinder.dart.)
  • lib/src/shape/torusknot.dart (Run dartfmt to format lib/src/shape/torusknot.dart.)
  • lib/src/shape/tube.dart (Run dartfmt to format lib/src/shape/tube.dart.)

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Update README.md. (-4 points)

2 image links are insecure (e.g. http://i.imgur.com/JkaU6LF.png), use https URLs instead.

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and chronosgl.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >= 2.0.0 <3.0.0
js >=0.6.1 <0.7.0 0.6.1+1
vector_math >=2.0.8 <3.0.0 2.0.8
Dev dependencies
args >=0.13.0
build_runner any
build_test any
build_web_compilers any
http >=0.11.3+17
io >=0.3.3
test >=1.5.3
vm_service_client >=0.2.6