three_js
0.3.0, released 7 months ago by an unverified publisher
A 3D rendering engine for Flutter to view, edit, and manipulate 3D models.
What it does
It is a Dart conversion of Three.js and three_dart, allowing users to render and manipulate 3D objects across multiple platforms. It utilizes ANGLE for desktop and mobile, and WebGL2 for web and WASM applications.
AI-written summary of version 0.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display and interact with 3D models in a Flutter application.
- You want a port of Three.js to use standard 3D rendering pipelines in Dart.
Skip it when
- You require an advanced native game engine with a fully integrated physics pipeline out of the box.
- You are targeting Linux versions with Flutter < 3.27 or need robust postprocessing on Linux.
Strengths
- Comprehensive cross-platform support including web, WASM, mobile, and desktop.
- Brings the vast ecosystem of Three.js concepts and geometry helpers to Dart.
Weaknesses
- Several known rendering bugs and unsupported features exist on specific platforms like Linux and Windows.
- Requires manual addition of specific JavaScript bindings for web/WASM targets.
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 11
Requires platform-specific minimum SDK configurations (e.g., minSdk 21 for Android, iOS 13.0+) and adding gles_bindings.js script to index.html for web/WASM targets.
not documentedAlternatives
Packages that do the same job and could replace three_js.
- flutter_scene
For a lightweight 3D scene rendering option optimized natively for Flutter's Impeller renderer.
93Compare
Works with
Packages commonly used together with three_js: ones it builds on, ones built on it, and its own family.