Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!