A way to get vertex weights data?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
JunkerKun
Posts: 97
Joined: Mon Jan 28, 2013 12:52 am

A way to get vertex weights data?

Post by JunkerKun »

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.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: A way to get vertex weights data?

Post by CuteAlien »

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.
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
JunkerKun
Posts: 97
Joined: Mon Jan 28, 2013 12:52 am

Re: A way to get vertex weights data?

Post by JunkerKun »

Hm... never got to a Skinned Mesh... how do I get it from an Animatd Mesh exactly?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: A way to get vertex weights data?

Post by CuteAlien »

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
JunkerKun
Posts: 97
Joined: Mon Jan 28, 2013 12:52 am

Re: A way to get vertex weights data?

Post by JunkerKun »

Oh, I see. Thanks a lot!
Post Reply