搜尋套件、儲存庫與 APP 分類

three_dart 封面
套件詳情v0.0.16

three_dart

由 Dart 建立的 three.js。Dart 3D 函式庫。一個容易使用、輕量級、跨平台、通用的 3D 函式庫。

AndroidiOSmacOSWindows
近 30 天下載
228
喜歡數
201
Pub 分數
120

安裝套件

flutter pub add three_dart

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

three_dart 是一個流行的 three.js 庫的 Dart 實現,提供易於使用、輕量級且跨平台的 3D 圖形解決方案。專為 Flutter 構建,讓開發者能在 Android、iOS、macOS 和 Windows 上建立互動式 3D 場景與視覺化。其 API 受 three.js 啟發,熟悉易用,簡化 3D 渲染過程,同時不犧牲效能或彈性。非常適合原型設計、教育工具與輕量級 3D 應用。

適用情境

  • 互動式3D視覺化
  • 帶有3D模型的教育類應用程式
  • 跨平台3D原型
  • 使用簡單的3D元素進行遊戲開發
  • 三維空間中的數據可視化

主要特色

  • 輕巧且快速
  • 跨平台支援
  • 熟悉的 three.js 類 API
  • 專為 Flutter 打造
  • 支援基本的3D幾何和光照

適合對象

  • Flutter 開發者初學者 3D
  • 原型設計 3D 功能
  • 簡單的3D遊戲和模擬
  • 教育項目
  • 需要最少3D互動的App

使用建議

  • 與完整引擎相比,高級3D功能有限
  • 未針對高性能量遊戲進行優化
  • 無內建物理引擎
  • 需要理解三維概念
  • 與成熟庫相比,文件可能較少

原始 README

以下為關聯原始碼儲存庫的 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

所屬分類

依賴

依賴清單 6 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。