GithubHelp home page GithubHelp logo

technologyarts / three_dart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wasabia/three_dart

0.0 0.0 0.0 212.86 MB

three.js rewrite by Dart, run on Flutter

License: Other

Kotlin 0.02% Ruby 0.18% Swift 0.08% Objective-C 0.01% Dart 97.19% JavaScript 2.29% HTML 0.25%

three_dart's Introduction

three_dart

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/#/

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

three_dart's People

Contributors

wasabia avatar reddwarf03 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.