animation scale, appearance & disappearance

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
lpb313
Posts: 4
Joined: Mon Jul 19, 2010 2:29 pm
Location: IRIT - Toulouse France

animation scale, appearance & disappearance

Post 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
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

I think for both of your ideas you'd have to implement your own animator from ISceneNodeAnimator.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
lpb313
Posts: 4
Joined: Mon Jul 19, 2010 2:29 pm
Location: IRIT - Toulouse France

Post 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
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

You can post code in the Code Snippets area. Thanks in advance.
Post Reply