simple_3d_renderer
24.0.0, released 3 months ago by an unverified publisher
A simple 3D object renderer for Flutter supporting cameras, lighting, and user touch taps.
WASM-ready
What it does
Renders Sp3dObj 3D formats created for science, handling lighting, cameras, world creation, and user touch events. It provides widgets to display 3D models with texture mapping and rotation capabilities.
AI-written summary of version 24.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to render simple custom 3D objects or scientific models in Flutter.
- You require touch interaction and rotation controls on 3D surfaces.
Skip it when
- You need a high-performance 3D game engine with GPU acceleration (this renderer runs on CPU and is single-threaded).
- You need complex 3D model formats like FBX or GLTF without specialized conversion.
Strengths
- Supports cameras, lighting, and user pan/pinch touch interactions.
- Includes serialization support via toDict and fromDict.
Weaknesses
- Runs purely on the CPU, making it heavy for objects with large vertex counts.
- Experimental package primarily designed for scientific uses.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Requires adding simple_3d, util_simple_3d, and simple_3d_renderer dependencies. Images used as textures must be declared in pubspec.yaml.
Sp3dRenderer(
const Size(800, 800),
const Sp3dV2D(400, 400),
world,
Sp3dCamera(Sp3dV3D(0, 0, 3000), 6000),
Sp3dLight(Sp3dV3D(0, 0, -1), syncCam: true),
)Works with
Packages commonly used together with simple_3d_renderer: ones it builds on, ones built on it, and its own family.