Page 1 of 1
looking for a tutorial for bipedal models (infantry)
Posted: 10 Sep 2012, 06:28
by emilio_l_cruz
Hello. Newb alert.
I have been working on a RTS game involving modern military units. I have almost all the models created (over a period of 5 years). Now it is time to decide on the engine.
SPRING is definitely what I am looking for in terms of capability. But for the life of me, it seems I could not find any tutorial or lead for finding out how to do bipedal animation (for soldiers / infantry).
Any help to point me in the right direction will be very much appreciated.
Thanks alot in advance.
Re: looking for a tutorial for bipedal models (infantry)
Posted: 10 Sep 2012, 07:34
by Funkencool
You could just use a pre-existing script (from one of springs games) and tweak it to your needs. Beyond that I'm sure someone else could answer it better.
Re: looking for a tutorial for bipedal models (infantry)
Posted: 10 Sep 2012, 13:38
by PicassoCT
in knorkes tutorial game there is a walker.. and in s44 there is infantry..
if you start at the basics, all you have is a tank who has a while loop that is active while moving, doing the walk animation.
Re: looking for a tutorial for bipedal models (infantry)
Posted: 11 Sep 2012, 10:55
by knorke
in knorkes tutorial game there is a walker..
its more a stomper though
This game has infantry too:
http://springrts.com/phpbb/viewtopic.php?f=14&t=27327
Do you already know how to animate other units or is this really just about human animation?
In general, animations are scripted:
http://springrts.com/wiki/Animation-LuaScripting
Re: looking for a tutorial for bipedal models (infantry)
Posted: 11 Sep 2012, 11:07
by Beherith
Welcome to Spring!
Re: looking for a tutorial for bipedal models (infantry)
Posted: 11 Sep 2012, 11:13
by PicassoCT
Oh, yeah, almost forgot- the hawaian flower chain, were are the fucking flowers... someone sat on them. And the ukulele-burned to bake the welcome cake? And the welcome cake- eaten..come on guys...
Yes, welcome to Spring!
Re: looking for a tutorial for bipedal models (infantry)
Posted: 11 Sep 2012, 12:20
by Beherith
Just the general flow of how to make a bipedal animation:
You have to make keyframes, noting the rotation and translation of each piece:

Then you add these to a bos or lua script in a loop, and set the speeds for each rotation/translation.
If you choose to go BOS, there is an animation smoother designed so that you only have to have the positions and keyframe times, and it sets the correct move speeds.
Re: looking for a tutorial for bipedal models (infantry)
Posted: 11 Sep 2012, 14:29
by smoth
best to avoid smoothanims behe. There is a good reason but it has been lost to some other more valuable knowledge or at least my brain thought so. Maybe someone else still remembers why we all stopped using it.
Re: looking for a tutorial for bipedal models (infantry)
Posted: 11 Sep 2012, 15:52
by knorke
Beherith means his tool not the smoothanim tag, which was removed a year ago:
https://github.com/spring/spring/commit ... bab536f434
imo both is not that relevant if you start a new mod.
Re: looking for a tutorial for bipedal models (infantry)
Posted: 11 Sep 2012, 19:09
by smoth
ah, thanks for the clarification, sorry for any confusion I may have caused.
Re: looking for a tutorial for bipedal models (infantry)
Posted: 11 Sep 2012, 22:55
by PicassoCT
add some Randoms in, so it doesent look to robot like..
randSpeed=math.random(0.5,3)
randTurnAdd=math.random(0,5)
Turn(larm,x_axis,math.rad(val+randTurnAdd),dinSpeed+randSpeed)
looks complicated, but results (f handled with care, in way more realistic animations)..