Giter Site home page Giter Site logo

Comments (6)

wassname avatar wassname commented on May 20, 2024

So when you look at it 3D Software it has the hair helpers. This is something I recently fixed so you might not be using the latest version.

Perhaps you could try looking at your human.js and minde. Go in node_modules/makehuman/src/human.js and comparing it the latest code .

from makehuman-js.

hillday avatar hillday commented on May 20, 2024

That's ok.Thanks.

from makehuman-js.

hillday avatar hillday commented on May 20, 2024

// delete unused, uvs, faces, and vertices
geom.faceVertexUvs = geom.faceVertexUvs.filter((uv, i) => geom.faces[i].materialIndex === 0)
This statement maybe has a bug,the 'geom.faceVertexUvs[0] = geom.faceVertexUvs[0].filter((uv, i) => geom.faces[i].materialIndex === 0)' is really right?

from makehuman-js.

wassname avatar wassname commented on May 20, 2024

Yup, I'll explain what it's for. So I used face.materialIndex to assign each face to a group. Group one is the normal body, group 1+ are hidden helpers which we attach the clothes too. This way when we morph the body we also morph the helpers and the clothes and hair move in sync. For example the hair helper looks like a helmet in the shape of a mullet. So this code filters out faces that are not in group one, leaving us with only the body faces.

Anyway, to help you I added a download button to the example repo, so that might help you work out what's different.

Here's a workflow that works for me: If I

  • go to http://makehuman-js-example.wassname.com/
  • hard reload by pressing Cntrl-F5 (I updated it today)
  • type in the js console copy(app.human.io.toObj()) (this copys to clip board in chrome)
  • then paste it into human.obj
  • then import human.obj into blender.
  • observe that It shows up in blender as just the body, with no helpers visible.

Can you try those steps on the example website and see if it works for you? If it does you can compare the code in makehuman-js-example.wassname.com to your deployment, and that will let you narrow down your problem.

from makehuman-js.

hillday avatar hillday commented on May 20, 2024

Thanks,I try to store app.human.io.toObj() return value to a Blob object and download it to a file which is show in blender only body,with no helper visible.
Thanks again!

from makehuman-js.

wassname avatar wassname commented on May 20, 2024

That's what you wanted I think. If so I'm glad it worked!

from makehuman-js.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.