Page 1 of 1

tried importing bvh animation to spring

Posted: 07 Oct 2012, 14:03
by knorke
Image

Image

Image

Image

Re: tried importing bvh animation to spring

Posted: 07 Oct 2012, 14:08
by FLOZi
Hence the health warning Image

Re: tried importing bvh animation to spring

Posted: 07 Oct 2012, 14:17
by Kloot
I lol'ed IRL

(wondering if it's worth my time to fix this)

Re: tried importing bvh animation to spring

Posted: 07 Oct 2012, 14:24
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.

Re: tried importing bvh animation to spring

Posted: 07 Oct 2012, 15:49
by Cubex
http://www.youtube.com/watch?v=YtespeLin2c

OMG WACKY WAVING ON Spring WOOO

Have you tried the animation without bos -> Lua conversion?

Re: tried importing bvh animation to spring

Posted: 07 Oct 2012, 16:33
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

Re: tried importing bvh animation to spring

Posted: 08 Oct 2012, 19:24
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)

Re: tried importing bvh animation to spring

Posted: 08 Oct 2012, 20:08
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)

Re: tried importing bvh animation to spring

Posted: 08 Oct 2012, 20:28
by smoth
knorke wrote:Image
try inverting z and x?