Mesh animation

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums

Mesh animation

Postby prchakal » Thu Sep 24, 2009 12:32 am

Hi.

I have a mesh model that have some animations with the names ('walk', 'attakc', 'die').

How i can change my model animation by code with irrlicht?

Ty
prchakal
 
Posts: 56
Joined: Thu Sep 24, 2009 12:31 am

Postby omar shaaban » Thu Sep 24, 2009 5:43 am

well it seems you didn't read irrlicht tutorials
anyway all irrlicht needs to know is the animation beginning and ending frame
and to play the animation(ex walk which begins at frame 30 and ends at frame 75) all u need to do is this :
Code: Select all
                node->setFrameLoop(0, 14);
               

and to set animation speed:
Code: Select all
 node->setAnimationSpeed(15);

reference: irrlicht tutorial no 4
User avatar
omar shaaban
 
Posts: 616
Joined: Wed Nov 01, 2006 6:26 pm
Location: Cairo,Egypt

Postby prchakal » Thu Sep 24, 2009 9:53 am

Is sure that i read and try set de frameloop, but nothing change.
prchakal
 
Posts: 56
Joined: Thu Sep 24, 2009 12:31 am

Postby Ravi08 » Thu Sep 24, 2009 12:08 pm

If u hav tried the above code, r u sure that the file type of ur animation is supported by Irrlicht
"Hey Baby Wobbling Wobbling"
-Russell Peters
Ravi08
 
Posts: 249
Joined: Thu Jul 17, 2008 12:25 pm

Postby Adler1337 » Thu Sep 24, 2009 12:31 pm

I have a mesh model that have some animations with the names ('walk', 'attakc', 'die').

You can only have one animation. In order to have different actions you just keep adding frames for the one animation.
multum in parvo
User avatar
Adler1337
 
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Postby prchakal » Thu Sep 24, 2009 7:45 pm

Hi.

The file is supported, i see the model, is a ninja, but it is stand and stoped.

You can download the game preview and the model here:

http://www.prsolucoes.com/downloads/evangel-debug.zip

The ninja model that i talk about is in the path 'dados/modelos/ninja.mesh'

Can you test for me?
prchakal
 
Posts: 56
Joined: Thu Sep 24, 2009 12:31 am

Postby Adler1337 » Thu Sep 24, 2009 10:32 pm

.mesh??? .skeleton???? :? I'm thinking that's your problem. Try exporting to .x, .ms3d, or .b3d.
multum in parvo
User avatar
Adler1337
 
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Postby prchakal » Thu Sep 24, 2009 10:52 pm

Thanks for response.

And it accept keyframe animation (ms3d)?

I can define the frameloop (start, end)?
prchakal
 
Posts: 56
Joined: Thu Sep 24, 2009 12:31 am

Postby Adler1337 » Thu Sep 24, 2009 11:09 pm

And it accept keyframe animation (ms3d)?

If by "keyframe animation" you mean skeletal animation, then yes.
I can define the frameloop (start, end)?

yep
multum in parvo
User avatar
Adler1337
 
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Postby prchakal » Fri Sep 25, 2009 4:08 am

Hi, here is my game prototype.

Basic but im progressing:

http://www.prsolucoes.com/downloads/evangel3d.exe
prchakal
 
Posts: 56
Joined: Thu Sep 24, 2009 12:31 am

Postby hybrid » Fri Sep 25, 2009 2:43 pm

Just to add some more info about .mesh and .skeleton: We don't support ogre animations so far, but any patches are welcome which change this problem
hybrid
Admin
 
Posts: 13945
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany

Re: Mesh animation

Postby starsgt » Tue Dec 27, 2011 2:54 am

Along the lines of "node->setFrameLoop(x,y)", will this code work for the files of .3ds?
starsgt
 
Posts: 19
Joined: Tue Jun 29, 2010 3:49 pm

Re: Mesh animation

Postby darksmaster923 » Tue Dec 27, 2011 6:00 am

.3ds files don't support animation.
Programmers are merely tools to convert caffeine into code.
darksmaster923
 
Posts: 44
Joined: Tue Jan 02, 2007 11:04 pm
Location: huntington beach

Re: Mesh animation

Postby starsgt » Wed Dec 28, 2011 8:02 pm

I see. In that case, is there any way you can work animation with 3ds max files? Perhaps save as a different file format?
starsgt
 
Posts: 19
Joined: Tue Jun 29, 2010 3:49 pm

Re: Mesh animation

Postby aaammmsterdddam » Thu Dec 29, 2011 6:56 pm

export to b3d
it's simple. and if 3ds MAX xan't do that. import the 3ds file in blender and export as b3d
(n^(n-n))-1
aaammmsterdddam
 
Posts: 520
Joined: Mon Oct 24, 2011 10:03 pm

Next

Return to Game Programming

Who is online

Users browsing this forum: No registered users and 1 guest