Jump to content

[SOLVED] how to get vertex weights and boneIndeces


photo

Recommended Posts

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

Link to comment

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:

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