vertex to bones connections

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
butthead_82
Posts: 41
Joined: Mon Jun 16, 2008 12:20 pm

vertex to bones connections

Post by butthead_82 »

Hi,

I'm interested in how many bones can a vertex be attached to in Irrlicht?
That is...how many bones can affect a vertex transformation?

Thanks for help
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

AFAIK a vertex can only be attached to one bone...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
butthead_82
Posts: 41
Joined: Mon Jun 16, 2008 12:20 pm

Post by butthead_82 »

Acki wrote:AFAIK a vertex can only be attached to one bone...
Thanks for answer Acki.

I'm trying to implement face animation with Irrlicht. With "vertex to one bone" engine support I can use body animation, but to animate face I would need better support.

Do you know someone on forum I could ask to confirm this (you said you weren't sure)?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

I would say you can have more than one bone affecting a vertex.... it would be rather limiting if you couldnt'!
Image Image Image
butthead_82
Posts: 41
Joined: Mon Jun 16, 2008 12:20 pm

Post by butthead_82 »

JP wrote:I would say you can have more than one bone affecting a vertex.... it would be rather limiting if you couldnt'!
It would be limiting, yes.
Another problem is I cannot load .X file because that model's vertices bind to more bones than Irrlicht supports (at least that's what I think is the problem).
That's why I need to know how many binds Irrlicht handles. (I know Ogre supports 4, for example).
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

are X-Files in text or binary form? Irrlicht only supports text format.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
butthead_82
Posts: 41
Joined: Mon Jun 16, 2008 12:20 pm

Post by butthead_82 »

Sudi wrote:are X-Files in text or binary form? Irrlicht only supports text format.
It is in text form.
It's not that Irrlicht cannot read the file. It starts reading it and then crashes saying: "X loader: weight id out of range" (I asked about this already but nobody answered :( )
Last edited by butthead_82 on Wed Oct 22, 2008 8:58 pm, edited 1 time in total.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Irrlicht can also load binary .x files. The error might also be fixed in SVN/trunk already, because we made some fixes to the loaders in the past. Can you share an example for this problem?
Oh, and there should be no limit on the number of bones and weights IIRC.
butthead_82
Posts: 41
Joined: Mon Jun 16, 2008 12:20 pm

Post by butthead_82 »

hybrid wrote:Oh, and there should be no limit on the number of bones and weights IIRC.
Glad to hear that.
hybrid wrote:Can you share an example for this problem?
I'm not sure if I'm allowed to share that model :( I'll have to check.
butthead_82
Posts: 41
Joined: Mon Jun 16, 2008 12:20 pm

Post by butthead_82 »

I downloaded new version of Irrlicht from svn. This version loads the model but the mesh is messed up. I tried another model, it loads the mesh correctly but without bones... I guess they get messed up during conversion.

p.s. How do I upload file on this forum? (sorry for noob question, I would like to upload these models but can't figure out how)
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

use a file hoster like mediafire, rapidshare, megaupload, yousendit etc and then post the resulting link :)
Image Image Image
butthead_82
Posts: 41
Joined: Mon Jun 16, 2008 12:20 pm

Post by butthead_82 »

http://rs273.rapidshare.com/files/156756682/dubravka.X

Here is the model ...but I think it is messed up by exporter, not Irrlicht. This svn version works fine...it doesn't report that weight id error any more.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

What's your modelling package and what exporter?
Image Image Image
butthead_82
Posts: 41
Joined: Mon Jun 16, 2008 12:20 pm

Post by butthead_82 »

max 9, and panda exporter. I also have kwX but it doesn't work neither.
butthead_82
Posts: 41
Joined: Mon Jun 16, 2008 12:20 pm

Post by butthead_82 »

I tried exporting a model from Truespace7.6. The model is fine and Irrlicht loader works fine and loads it (didn't load the textures though...)
Anyway, it was that lame exporter that messed up my mesh. I'm switching to Truespace.

Thanks for help everyone.
Post Reply