Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

149
Vistas
THREE.JS How to replace a skinnedMesh with a mesh and keep the position on the parent object?

So I'm loading my parent object that has a child a SkinnedMesh (blue jacket in the first picture) and I'm trying to replace it with another object that is a Mesh (red jacket in the second picture). After all my tries I got stuck with this result:

First picture

Second picture

Here's the code where I'm trying to do it:

loader.load( `./objects/Idle.fbx`, function ( object )
{
         object.traverse( function ( child ) 
         {
                if ( child.isMesh ) 
                {
                    if (child.name=="jacket")
                    {
                        loader.load( './objects/jacket2.fbx', function( object2 )
                        {
                            object2.traverse( function (child2)
                            {
                                if (child2.isMesh)
                                {
                                    child.geometry = child2.geometry;
                                    child.material = child2.material;
                                    child.material.skinning=true;
                                    child.verticesNeedUpdate = true;
                                }
                            }
                        }
                    }
                }
            }
}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda