jpnurmi / assimp.dart

Assimp for Dart

Home Page:https://pub.dev/packages/assimp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assimp for Dart

pub license: BSD build codecov

This library provides Dart FFI bindings to Open Asset Import Library aka. Assimp, which is a portable library to import and export various well-known 3D model formats in a uniform manner.

Usage

import 'package:assimp/assimp.dart';

final scene = Scene.fromFile('path/to/3d-model.obj');
for (final mesh in scene.meshes) {
  // ...
}

A little example of what you can do with Assimp:

Assimp

To use this package, add assimp as a dependency in your pubspec.yaml file.

Status

This package is currently in alpha stage. It supports 64-bit Assimp 5.x, and has been tried out on the following platforms:

  • macOS (brew install assimp)
  • Linux (apt install libassimp5)
  • Windows (vcpkg install assimp:x64-windows)
  • Android
  • iOS

The documentation is still more or less direct copy-paste from the original library, and is therefore full of broken references.

Notice also that dart:ffi is still in beta, and many fundamentally important features are still in research and development:

About

Assimp for Dart

https://pub.dev/packages/assimp

License:Other


Languages

Language:Dart 98.3%Language:C++ 1.5%Language:CMake 0.1%Language:C 0.0%Language:Batchfile 0.0%Language:Swift 0.0%Language:Kotlin 0.0%Language:QMake 0.0%Language:Objective-C 0.0%