Search packages, repositories and app categories

three_dart cover
Package detailsv0.0.16

three_dart

three.js implement by Dart. Dart 3D library. an easy to use, lightweight, cross-platform, general purpose 3D library.

AndroidiOSmacOSWindows
30-day downloads
269
Likes
201
Pub points
120

Install package

flutter pub add three_dart

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

three_dart is a Dart implementation of the popular three.js library, offering an easy-to-use, lightweight, and cross-platform 3D graphics solution. Built for Flutter, it enables developers to create interactive 3D scenes and visualizations across Android, iOS, macOS, and Windows. With a familiar API inspired by three.js, it simplifies 3D rendering without sacrificing performance or flexibility. Ideal for prototyping, educational tools, and lightweight 3D applications.

Use cases

  • Interactive 3D visualizations
  • Educational apps with 3D models
  • Cross-platform 3D prototypes
  • Game development with simple 3D elements
  • Data visualization in 3D space

Key features

  • Lightweight and fast
  • Cross-platform support
  • Familiar three.js-like API
  • Built for Flutter
  • Supports basic 3D geometry and lighting

Suitable for

  • Flutter developers new to 3D
  • Prototyping 3D features
  • Simple 3D games and simulations
  • Educational projects
  • Apps needing minimal 3D interactivity

Considerations

  • Limited advanced 3D features compared to full engines
  • Not optimized for high-performance gaming
  • No built-in physics engine
  • Requires understanding of 3D concepts
  • May have limited documentation compared to mature libraries

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

three_dart

Dart 3D library. an easy to use, lightweight, cross-platform, general purpose 3D library.

three.js rewrite by Dart. 3D for Flutter. Base on flutter_gl

support Web, iOS, Android, macOS, Windows

Linux TODO, need flutter_gl support

three.js r138

Example Demo on flutter web https://wasabia.github.io/three_dart_example/#/

Getting Started

First at all. Follow flutter_gl Usage flutter_gl

TODO

Usage

check example project

camera = new three.PerspectiveCamera( 40, 1, 0.1, 10 );
camera.position.z = 3;

scene = new three.Scene();
camera.lookAt(scene.position);

scene.background = three.Color(1.0, 1.0, 1.0);
scene.add( new three.AmbientLight( 0x222244, null ) );

var geometryCylinder = new three.CylinderGeometry( 0.5, 0.5, 1, 32 );
var materialCylinder = new three.MeshPhongMaterial( { "color": 0xff0000 } );

mesh = new three.Mesh( geometryCylinder, materialCylinder );
scene.add( mesh );

Example

cd example && flutter run

3

TODO

  • unit test
  • more example
  • README && Document
  • and so on...

Issues

File any issues, bugs, or feature requests.

Contributing

Pull request please!

Libraries and Plugins

https://github.com/wasabia/three_dart_jsm

https://github.com/wasabia/opentype

https://github.com/wasabia/typr_dart

Categories

Dependencies

Dependency list 6 items

Source repository

Projects using this package

No data available yet.