Animation Questions

Animation Questions

Share and discuss visual creations and creation practices like texturing, modelling and musing on the meaning of life.

Moderators: MR.D, Moderators

Post Reply
Zhall
Posts: 46
Joined: 19 Jul 2014, 02:21

Animation Questions

Post by Zhall »

I believe this is the right forum for this.. If not please move it.

I'm reading up on Lua based animation here
http://springrts.com/wiki/Animation-LuaScripting

Is there a way to do key framed animation from 3DS max?

I want to make a garage door of a factory go down into the ground when a unit is completed and go back up as soon as it rolls out, I imagine something of the following fashion would get me close?

Code: Select all

Move(door, y_axis, -2.4)
	Sleep(150)
	Move(door, y_axis, 0, 3)
end
I seem to not be finding a document containing the possible arguments for each built in spring function? I'm certain that something of that nature exists.

Thanks
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Animation Questions

Post by smoth »

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Animation Questions

Post by FLOZi »

You will mostly want to pair Move(...) with a WaitForMove(...)

e.g.

Code: Select all

Move(door, y_axis, -2.4, SPEED)
WaitForMove(door, y_axis)
This is basically similar to Sleep(...) but sleeps the animation thread for the exact amount of time taken for the move to complete, rather than a fixed number of milliseconds.

Also I made a 'skeleton' script for a factory here: http://springrts.com/wiki/User:Flozi/An ... es#Factory which may be of help.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Animation Questions

Post by PicassoCT »

There is also a way to do keyframe animation in blender and export it to a lua script... anarchid did that one. i have tested it and it sworking.

http://springrts.com/phpbb/viewtopic.ph ... me#p553193

All hail Anarchid
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Animation Questions

Post by Anarchid »

Presumably the plugin's logic can be ported to 3dsmax somehow, but since 3ds is closed source and i don't have it, you'd have to do it yourself.

You would still get most of the caveats though, such as probably having to stick to Assimp pipeline, only using an ultra-specific euler rotation order, and being limited to linear interpolation and FK.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Animation Questions

Post by Beherith »

If you are sticking to s3o models, then you should use upspring to pose things.

Also, will you have units needing walk animations? Because I have been doing so many of them, I put together an efficient pipeline for it, and I can post the tutorial for it.
Zhall
Posts: 46
Joined: 19 Jul 2014, 02:21

Re: Animation Questions

Post by Zhall »

Yes actually, there will be spider bots in the game at some point.

That would be great!

Thanks for the good fortune welcoming me to the community
Post Reply

Return to “Art & Modelling”