how can i set animation range in irrlicht

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
hunar1997
Posts: 4
Joined: Mon Sep 26, 2016 6:36 am

how can i set animation range in irrlicht

Post by hunar1997 »

Hello

First i'm beginner to both irrlicht and blender .. i managed to make a simple animation in blender (a cube that rotates) and the only export type that worked was the .x file .. the others were animationless, now i loaded the .x with the MeshViewer and everything is working

now assume that i have two animations .. animation 1 from frame 1 to 30, and animation 2 from frame 31 to 60 .. how can i play different animations in irrlicht .. is there anything in irrlicht that says something like (define 1 to 30 as walking) :D .. i heard something called Gandalf , i have no idea what it is .. i want things to be simple and just use blender (if that is possible)

sooo .. can i set those things in Irrlicht or i have to do it outside .. in both cases how to do it

thanks
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: how can i set animation range in irrlicht

Post by CuteAlien »

IAnimatedMeshSceneNode has a function setFrameLoop where you can set the range of the animation to play.
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
hunar1997
Posts: 4
Joined: Mon Sep 26, 2016 6:36 am

Re: how can i set animation range in irrlicht

Post by hunar1997 »

Thank you .. exactly what i wanted :D
Post Reply