搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目

暂无相关数据。