Jump to content

[SOLVED] how to get vertex weights and boneIndeces


photo

Recommended Posts

Posted

Hello

Can't find in api calls to get all vertices assigned to some bone and their weights, is it possible?

or I should parse .mesh file instead?

Posted

Hello

Vertex-bone indices needed to extract bounds of mesh assigned to some bone and construct physical bodies for physx

it seems I'm first who require access to bone weights and indices to ObjectSkinnedMesh

Posted

Hi,

There's a workaround. You can get mesh from ObjectMeshSkinned and use getWeightBones and getWeightWeights. Each bone can affect 4 vertexes at max, so getWeightBones will return indexes of 4 bones, connected to the vertex. getWeightWeights returns vec4 — bone weight, connected to the vertex.

Thanks.

  • Like 1

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

Thanks!

I did not expect these functions in base class

  • silent changed the title to [SOLVED] how to get vertex weights and boneIndeces
×
×
  • Create New...