three.js rewrite by Dart. 3D for Flutter. Base on flutter_gl
Metaverse with Flutter?
support web, iOS, Android
Desktop Mac, Windows, Linux TODO, need flutter_gl support
three.js r130
Example Demo on flutter web https://wasabia.github.io/three_dart/#/
First at all. Follow flutter_gl Usage flutter_gl
TODO
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 );
cd example && flutter run
- unit test
- more example
- README && Document
- and so on...
File any issues, bugs, or feature requests.
Pull request please!
https://github.com/wasabia/three_dart_jsm