FLUTTER ECOSYSTEM

wasabia/three_dart

由 Dart 編寫的 three.js 重寫,Dart 3D 庫。一個易於使用、輕量級、跨平台、通用的 3D 庫。

three_dart 專案封面
Stars
491
Forks
94
最近推送(UTC)
2024年2月8日
專案狀態
未封存
zhaolei GitHub avatar
GITHUB User

zhaolei ↗

Full-stack developer, Web, Ruby on Rails, Flutter ...

Shanghai
語言DartJavaScriptC++CMakeHTMLRubySwiftCKotlinObjective-C

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 10 項

所在榜單

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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