tried importing bvh animation to spring

tried importing bvh animation to spring

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

tried importing bvh animation to spring

Post by knorke »

Image

Image

Image

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

Re: tried importing bvh animation to spring

Post by FLOZi »

Hence the health warning Image
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: tried importing bvh animation to spring

Post by Kloot »

I lol'ed IRL

(wondering if it's worth my time to fix this)
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: tried importing bvh animation to spring

Post by knorke »

not sure if upspring is at fault.
i could not find an animation PLUS the model it was made for.
i think the the animations are not supposed to be compatible with all models. (origins, lenghts)
there was an BOS export script in upspring and i edited it to output lua, maybe i got the rotation angles wrong.
interessting thing is, that this kind of works at all.

The script is 1,5MB btw, which is way too large. Not sure if all bvh have so many keyframes.
User avatar
Cubex
Posts: 56
Joined: 11 Jul 2012, 00:07

Re: tried importing bvh animation to spring

Post by Cubex »

http://www.youtube.com/watch?v=YtespeLin2c

OMG WACKY WAVING ON Spring WOOO

Have you tried the animation without bos -> Lua conversion?
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: tried importing bvh animation to spring

Post by FLOZi »

knorke wrote:not sure if upspring is at fault.
i could not find an animation PLUS the model it was made for.
i think the the animations are not supposed to be compatible with all models. (origins, lenghts)
there was an BOS export script in upspring and i edited it to output lua, maybe i got the rotation angles wrong.
interessting thing is, that this kind of works at all.

The script is 1,5MB btw, which is way too large. Not sure if all bvh have so many keyframes.
http://springrts.com/phpbb/viewtopic.ph ... ck#p142736
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: tried importing bvh animation to spring

Post by knorke »

interessting thread flozi, sadly all the links are dead. :/
(for the jumpkick com video/files)
Have you tried the animation without bos -> Lua conversion?
No, dont have the bos compiler installed...

I think I stop here for now.
For anyone who wants to experiment:

-importing BVH actually does work, if you also import the skeleton via "importort skeleton + anim from BVH"
This will delete your model and replace it with some empty objects. But those dots move in a way that looks like loading worked: the original animation is recognizeable compared to the preview .gif

-imo editing the Upspring\plugins\BOSExporter.lua to export LUS should be possible.
Here is my try:
http://pastebin.com/VkmJ1jYf
(direction of rotation is wrong, needs a minus sign or w/e CBA to test again. or maybe just wrong because pieces always rotate in whatever way they want.)

-The keyframe animation function of Upspring is imo too unfinished/crude to be really usefull. It also crashed sometimes and then all work ist lost. (or that is just normal upspring crashes)
So exporter has limited use...

-I did not know Upspring was so lua it! :shock: Did not find a manual though or a way to reload scripts without restarting so yeah.

-Beware Kloot or anyone else wants to improve the animation stuff, please instead make the basic functions work better. (if there is chance of someone looking at it, i can make reports)
User avatar
KaiserJ
Community Representative
Posts: 3113
Joined: 08 Sep 2008, 22:59

Re: tried importing bvh animation to spring

Post by KaiserJ »

not sure if relevant, but the animfails you're showing are very similar to what happens when i import animations into unity with bone axes set incorrectly (i'm an expert at mucking things up)
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: tried importing bvh animation to spring

Post by smoth »

knorke wrote:Image
try inverting z and x?
Post Reply

Return to “Game Development”