A way to get vertex weights data?
A way to get vertex weights data?
Is there a way to get and set vertex weights data of the mesh? Like if I want to add some weighted vertices myself in the engine and nt in the 3D editor.
Re: A way to get vertex weights data?
I'm not too much familiar with that stuff, but from API it seems ISkinnedMesh seems to have functions to use for this. There is ISkinnedMesh::addWeight and ISkinnedMesh::getAllJoints (which contain the weights).
But as I never worked with that directly, I can't help you much with how to use that stuff.
But as I never worked with that directly, I can't help you much with how to use that stuff.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: A way to get vertex weights data?
Hm... never got to a Skinned Mesh... how do I get it from an Animatd Mesh exactly?
Re: A way to get vertex weights data?
If IAnimatedMesh::getMeshType() is EAMT_SKINNED then you can cast your IAnimatedMesh to an ISkinnedMesh.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: A way to get vertex weights data?
Oh, I see. Thanks a lot!