Page 1 of 1

Animation Questions

Posted: 25 Jul 2014, 01:31
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

Re: Animation Questions

Posted: 25 Jul 2014, 01:40
by smoth

Re: Animation Questions

Posted: 25 Jul 2014, 02:26
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.

Re: Animation Questions

Posted: 25 Jul 2014, 09:14
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

Re: Animation Questions

Posted: 25 Jul 2014, 11:08
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.

Re: Animation Questions

Posted: 25 Jul 2014, 11:42
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.

Re: Animation Questions

Posted: 25 Jul 2014, 11:59
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