looking for a tutorial for bipedal models (infantry)

looking for a tutorial for bipedal models (infantry)

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
emilio_l_cruz
Posts: 4
Joined: 10 Sep 2012, 06:21

looking for a tutorial for bipedal models (infantry)

Post 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.
User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: looking for a tutorial for bipedal models (infantry)

Post 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.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: looking for a tutorial for bipedal models (infantry)

Post 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.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: looking for a tutorial for bipedal models (infantry)

Post by knorke »

in knorkes tutorial game there is a walker..
its more a stomper though 8)

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
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: looking for a tutorial for bipedal models (infantry)

Post by Beherith »

Welcome to Spring!
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: looking for a tutorial for bipedal models (infantry)

Post 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!
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: looking for a tutorial for bipedal models (infantry)

Post 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:
Image
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.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: looking for a tutorial for bipedal models (infantry)

Post 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.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: looking for a tutorial for bipedal models (infantry)

Post 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.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: looking for a tutorial for bipedal models (infantry)

Post by smoth »

ah, thanks for the clarification, sorry for any confusion I may have caused.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: looking for a tutorial for bipedal models (infantry)

Post 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)..
Post Reply

Return to “Game Development”