Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

235
Visualizações
Why I can not export animations from AssimpLoader to GLTFExporter?

I want export model from AssimpLoader to GLTFExporter I used

const loader = new AssimpLoader();
loader.load(url, function ( result ) {
    const object = result.object;
    object.position.y = - 100;
    object.rotation.x = Math.PI * 2;
    group.add(object)
    animation = result.animation;
    export_animates = [result.animation]
    console.log(result.animation)
} );

function ani() { 
    if ( animation ) animation.setTime( performance.now() / 1000 );
}

    const gltfExporter = new GLTFExporter();

    const options = {
        trs: document.getElementById( 'option_trs' ).checked,
        onlyVisible: document.getElementById( 'option_visible' ).checked,
        truncateDrawRange: document.getElementById( 'option_drawrange' ).checked,
        binary: document.getElementById( 'option_binary' ).checked,
        animations: export_animates,
        maxTextureSize: Number( document.getElementById( 'option_maxsize' ).value ) || Infinity // To prevent NaN value
    };
    gltfExporter.parse( input, function ( result ) {

        if ( result instanceof ArrayBuffer ) {
            console.log(result)

        } else {

            const output = JSON.stringify( result, null, 2 );
            // generate object output
            console.log(output)
            
            //saveString( output, 'scene.gltf' );

        }

    }, options );

but i get error

AssimpLoader.js:302 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'name')

When i try export from FBX to GLTF.
It is work.
What am i doing wrong?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda