Skip to content
pubscout

simple_3d

17.3.1, released 7 months ago by an unverified publisher

Flutter implementation of Simple 3D Format for non-experts and scientific applications

WASM-ready
$ flutter pub add simple_3d
Source repository

What it does

Provides a Dart implementation of the Simple 3D Format (.sp3d) to handle 3D objects, vertices, materials, and simple physics. It allows creation, manipulation, conversion, and loading of 3D data primarily designed for science and simple games.

AI-written summary of version 17.3.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building scientific or physical calculation apps that require simple 3D object handling.
  • You want to store or read 3D objects in a single editable text file format (.sp3d).

Skip it when

  • You require advanced graphics rendering, complex shaders, or high-performance gaming features.
  • You need robust compatibility with standard 3D formats like OBJ or FBX without external conversion packages.

Strengths

  • Simple and lightweight structure designed for readability in text editors.
  • Built-in support for serialization/deserialization to and from dictionary maps (JSON).
  • Includes basic vertex manipulation, transformation, and physical calculation helper classes.

Weaknesses

  • Not suitable for advanced graphics or complex 3D scenes.
  • Minimal compatibility with other standard 3D formats.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
final sp3dObj = Sp3dObj(
    [Sp3dV3D(0, 0, 0)],
    [
      Sp3dFragment(
          [
            Sp3dFace([0], 0)
          ],
          isParticle: true,
          r: 1)
    ],
    [
      Sp3dMaterial(
        Color.fromARGB(255, 0, 255, 0),
        true,
        1,
        Color.fromARGB(255, 0, 255, 0),
      )
    ],
    []);

Alternatives

Packages that do the same job and could replace simple_3d.

  • three_js

    If you need a more full-featured 3D library ported from Three.js instead of a custom simple format.

Works with

Packages commonly used together with simple_3d: ones it builds on, ones built on it, and its own family.