lightmap Posted December 20, 2019 Posted December 20, 2019 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?
morbid Posted December 21, 2019 Posted December 21, 2019 Hi, @lightmap, There are no such methods available in the API. Could you please explain what do you want to do? Thanks. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
lightmap Posted December 23, 2019 Author Posted December 23, 2019 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
morbid Posted December 23, 2019 Posted December 23, 2019 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. 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
lightmap Posted December 23, 2019 Author Posted December 23, 2019 Thanks! I did not expect these functions in base class
Recommended Posts