Page 1 of 1

animation scale, appearance & disappearance

Posted: Mon Jul 19, 2010 2:55 pm
by lpb313
Hello,

I'm French student and I work on Irrlicht since 3 months.
I wants to do different animation.

First scale animation : in the doc of irr::scene::ISceneNodeAnimator Class Reference they say that :
A scene node animator is able to animate a scene node in a very simple way. It may change its position, rotation, scale and/or material.
But I don't find the method on irr::scene::ISceneManager for create scaleAnimator. Can you help me ? :D

Next I want to create appearance & disappearance animation for IMeshSceneNode. My ideal it's to change alpha parameters of the Mesh. Can I use the TextureAnimator ? Have you go other idea or I had to create a new animator class ?

Thanks you very much for your help
LP313 :P

Posted: Mon Jul 19, 2010 3:35 pm
by slavik262
I think for both of your ideas you'd have to implement your own animator from ISceneNodeAnimator.

Posted: Mon Jul 19, 2010 9:50 pm
by hybrid
The scale animator can also be found in irrext. The alpha change needs to be done via vertex alpha or texture alpha. You can change both in a custom animator you need to write on your own.

Posted: Tue Jul 20, 2010 9:16 am
by lpb313
Thanks for you answer.
In fact I find the CSceneNodeAnimatorScale in irrext : http://irrext.svn.sourceforge.net/viewv ... ScaleNode/
I try to use it :P
Next I will try to code my own animator for appearance & disappearance animation. Where can I publish my code for the community ?

Thanks you very much for your help
LP313 :D

Posted: Tue Jul 20, 2010 11:51 am
by slavik262
You can post code in the Code Snippets area. Thanks in advance.