(fixed now) importing models from glest game / problem with animation

I currently build an importer for glest models ( glest is an opensource game available at http://www.glest.org )

I created a converter and I can import the models now including textures, normals and so on…



But I still have a problem with animations.

In the glest format you have stored some frames for the animations. Every frame is stored with its own vertices and so on. Now for my questions:


  1. Currently I can only import/convert the first frame of an animation, how can I import the other frames too? How is this stored in jmonkey?




  2. These stored meshstates for the frames are not enough for the animation. The glest game itself calculates the missing meshstates for the other frames when loading the model( I think so ). How to do this with the jmonkey engine? Is there something available which can do this or do I have to calculate this on my own?





    This may be noob questions ( yes I'm a noob ) but please give me a hint where I can read something about this.




Is using a KeyframeController the right way?

looks like YES :).



But I still have some little problems, because my model looks very strange when animating…

Ok now its done, my man walks smoothly  :D :smiley:

Now i can import glest(xml) models :slight_smile:  with animations. I build my own GxmlToJme  FormatConverter





The problem I had before was that its not a good idea to call this:

TriMesh thisMesh
GeometryTool.minimizeVerts(thisMesh, GeometryTool.MV_SAME_COLORS
                  | GeometryTool.MV_SAME_NORMALS | GeometryTool.MV_SAME_TEXS);



for a TriMesh (thisMesh) which is used like the following when the above had any effect :) :

KeyframeController vkc = new KeyframeController();
            vkc.setMorphingMesh(thisMesh);



Cool,… any chance to have a look on that?



I always wondered what does it mean if content (e.g. glest-models) are gpl-licensed. Does that

mean the game that uses this is also under gpl or only that content based on the gpl-model is also a gpl'ed model but the game itself can have the license you want!?

ttrocha said:

Cool,... any chance to have a look on that?


Shure, but currnetly its really "work in progress" ..... I will release something when it looks a bit better.
I have a complete rewrite of the glest engine in mind and this will be an open source project ( I think gpl-licensed or more free ).
We still have no official version control system so its really at an early development stage ( current package name is "playground" )

ttrocha said:

I always wondered what does it mean if content (e.g. glest-models) are gpl-licensed. Does that
mean the game that uses this is also under gpl or only that content based on the gpl-model is also a gpl'ed model but the game itself can have the license you want!?


I think the second one, but I'm not shure. You should ask this here: http://forum.freegamedev.net/ there are some specialists. But in Glests case this doesn't matter! Glests models are now officially released with CC-By-SA V3. Before there was only one license called "give us credits" but all those linux maintainers wanted to have an official license thats why this one was choosen now. But all current glest models ( of official game ) where released with this "give us credits" license before. All the models from my site are released with GPL for now, but I will change that for the next release( of the megapack) to a dual license GPl/ CC-By-SA V3 ( and if anyone needs something else, ask me :) )