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

185
Visualizações
Three.js skinning issue from OpenAssetImport-converted model

I've been trying to understand the maths behind Three.JS's skinning and I've been stuck there for a while.

My use case is loading "any" 3D model that is passed through OpenAssetImport and saved in a custom model format (mostly built for a custom native render, but it's just a representation of assimp's data structures).

In this model format I track:

  • Meshes (obviously)
  • Nodes (as in the 'assimp' definition of nodes)
  • Bones

For each bone, I track:

  • The node which it is attached to
  • The individual 'bind matrix' as defined by assimp

I'm then struggling to re-construct the skeleton in Three.JS. My attempt is this:

  • Generate all the 'nodes' (as in, 'assimp' nodes) as simple THREE.Object3D
  • Attach the meshes when required
  • For each bone
    • Find the node (THREE.Object3D) it's attached to
    • Create a new THREE.Bone
    • Apply assimp's 'bind matrix' to the ThreeJS bone with bone.applyMatrix(assimpBone.bindMatrix)
    • Set the THREE.Bone as a child of the THREE.Object3D
  • Create a THREE.Skeleton with the array of THREE.Bone objects
  • Attach it to the mesh with 'attached' bind mode

However, for some models this works, while for others I have big errors with meshes being de-formed (even if the base mesh is still at least recognizable).

Example mesh loaded with skinning disabled:

no-skinning horse

Same mesh loaded with skinning enabled:

skinned horse

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