Need for a scale animator?
-
- Posts: 59
- Joined: Thu May 01, 2008 1:20 am
- Location: New Caledonia (France - Pacific)
- Contact:
Need for a scale animator?
Why Irrlicht doesn't have a scale animator?
I think it could be useful....
I think it could be useful....
-
- Posts: 362
- Joined: Sun Dec 16, 2007 9:25 pm
I think it would be cool to have, but I don't absolutely need it. Could be useful
Post this userbar I made on other websites to show your support for Irrlicht!
http://img147.imageshack.us/img147/1261 ... wernq4.png
http://img147.imageshack.us/img147/1261 ... wernq4.png
-
- Posts: 59
- Joined: Thu May 01, 2008 1:20 am
- Location: New Caledonia (France - Pacific)
- Contact:
A scale animator would allow a scene node to change its scale in a smooth fashion over a user supplied period of time.
In that way, scene nodes could grow or shrink.
For example, a billboard representing an explosion could grow at first, and then shrink before completely disappearing.
The same could be useful with smoke and water ripples.
In that way, scene nodes could grow or shrink.
For example, a billboard representing an explosion could grow at first, and then shrink before completely disappearing.
The same could be useful with smoke and water ripples.
i understand now
i think you can do it your self without any scale animator
try to scaling your node in mainloop
for example
that's my idea, un-tested!
i think you can do it your self without any scale animator
try to scaling your node in mainloop
for example
Code: Select all
float i;
//...
void mainloop()
{
if (i<=5) i+=0.5;
node->setScale(vector3df(i,i,i));
}
-
- Posts: 59
- Joined: Thu May 01, 2008 1:20 am
- Location: New Caledonia (France - Pacific)
- Contact:
Yes, that's the idea
But the question is not whether it is doable or how to do it. (which by the way can become a bit more complex if you have to follow the state of dozens of nodes for the x,y,z scale factors)
The question is:
should Irrlicht propose directly an animator for dynamic scaling?
So people wouldn't have to implement it themselves again and again, reducing the workload and the number of bugs in their programs.
There are 3 transformations in space:
1) translation
2) rotation
3) scaling (no animator)
Scaling is the only one not to have an animator yet.
But the question is not whether it is doable or how to do it. (which by the way can become a bit more complex if you have to follow the state of dozens of nodes for the x,y,z scale factors)
The question is:
should Irrlicht propose directly an animator for dynamic scaling?
So people wouldn't have to implement it themselves again and again, reducing the workload and the number of bugs in their programs.
There are 3 transformations in space:
1) translation
2) rotation
3) scaling (no animator)
Scaling is the only one not to have an animator yet.
-
- Posts: 59
- Joined: Thu May 01, 2008 1:20 am
- Location: New Caledonia (France - Pacific)
- Contact:
I repeat:MasterGod wrote:I'm sorry but I can't understand why can't you do it yourself and post a patch?
The problem is not how to do it!
My question is:
Would you (users of the Irrlicht engine) like Irrlicht to let you use a scale animator just like any other animator already available.
How to implement it is not my problem. I'm just wondering if there is a real need for it among the users of Irrlicht... If nobody needs it, it is not worth put any effort into it.
Do you follow me?
YeahHalifax wrote:Yeah, I think that would be cool. And, MasterGod, I think he is just throwing the idea out there for someone else to pick up, and possibly provide a patch.
I never had a use for a scale animator, but I guess some people would, as he pointed out.
It can be a cool thing to have.
P.S
piiichan: *Using IrrAI* - Following... *Found You*