three_js_advanced_loaders 0.1.1 copy "three_js_advanced_loaders: ^0.1.1" to clipboard
three_js_advanced_loaders: ^0.1.1 copied to clipboard

Flutter advanced loaders package e.g.(gltf, glb and fbx) converted from threejs and three_dart package.

three_js_advanced_loaders #

Pub Version analysis License: MIT

A type of three_js model loader that allows users to add either gltf, glb, or fbx files to thier projects.

Gif multiple gltf models.

This is a dart conversion of three.js and three_dart, originally created by @mrdoob and has a coverted dart fork by @wasabia.

Getting started #

To get started add this to your pubspec.yaml file along with the other portions three_js_math, three_js_core, three_js_animations, and three_js_core_loaders.

    late Scene scene;

    void init() {
        scene = Scene();
        scene.background = Color.fromHex32(0xf0f0f0);
            
        final loader = GLTFLoader();
        final gltf = await loader.fromAsset('assets/${fileName}.glb');

        mesh = gltf!.scene.children[0];
        mesh.scale.setValues(1.5, 1.5, 1.5);
        scene.add(mesh);
    }

Usage #

This project is a more advanced model loader for three_js.

Example #

Find the example for this API here.

Contributing #

Contributions are welcome. In case of any problems look at existing issues, if you cannot find anything related to your problem then open an issue. Create an issue before opening a pull request for non trivial fixes. In case of trivial fixes open a pull request directly.

3
likes
150
points
1k
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter advanced loaders package e.g.(gltf, glb and fbx) converted from threejs and three_dart package.

Repository (GitHub)

Topics

#gltf #collada #usda #flutter3d #model3d

Documentation

API reference

License

MIT (license)

Dependencies

archive, flutter, three_js_animations, three_js_controls, three_js_core, three_js_core_loaders, three_js_curves, three_js_geometry, three_js_math, xml

More

Packages that depend on three_js_advanced_loaders