Model Boner - Has anyone done yet?

I just want to make sure no one has done this yet before I do it.  I plan on having animation handled by code rather than by file.  My modeler is fairly new and I'm lucky if I can get him to do a base model let alone any animation.  What my plan is, is to write a program that will:


  1. Load a model by any means (ms3d, md5, md3, whatever)
  2. Allow the user to identify triangles that make up a part (bone).
  3. Write the model information to some file format.
  4. Write the bone information to some file format.



    I don't know what format 3 and 4 will be.  If jme has some native format it can write a model to I'll use that.



    I actually did 1 through 4 in C++ for a different engine, but the engine designer kept breaking the engine and I got fed up, so am switching to Java and jme.



    I just don't want to do this if someone else has already done it.

You could just use the MD5 format: model the mesh, 'weight-paint' it (which just applies a 0-1 value of bone influence to a vertex), then attach a skeleton (which you could use to animate programmatically) …



That would get you the mesh and skeleton 'info' (using the modeling program to facilitate it) and if you ever decide to go back and animate the models your work is half-way done.

I've been reading a bit about model animations and data and it seems to me that a model would consist of:


  1. Mesh (3D Vectors)
  2. Bones. (Start and end, perhaps vector and distance)
  3. Weight. (A float that means… something)



    Quaternions are only used for the animation purpose and could be handled in code etc…



    Is this correct?



    I'm unsure of the weight.  It seems that the weights are applied to the bones, looking at jmeSimpleBoneAnimation.java.  But I'm still unsure how the bone weights are applied to the vectors.  I've read a little on it but am still confused.  How does the engine know that the bone for the right arm which has weights don't move the stomach.



    Anything someone can point me at to help me with this part?

awesome topic title…

1 Like

I almost made a comment about that, but restrained myself. 

1 Like

Watching 'AnyCountriesNextTopModel' too much?  :wink:

1 Like

:smiley:

dimitristrigkakis said:
:D


You revived a centennial thread only to say ":D"?

I agree that this thread is great

glaucomardano said:You revived a centennial thread only to say ":D"?

The real question here is: What search query brought @DimitrisTrigkakis to this thread?
erlend_sh said:
The real question here is: What search query brought @DimitrisTrigkakis to this thread?

A search for "awesome topic" leads to this thread as first result. I guess Dimitris was researching awesome topics

If this thread ever shows up right next to the “My naked child” thread then I may have to log out of the forums for a while. :slight_smile:



Otherwise Chris Hanson shows up all: :suitmonkey: “Take a seat over there so we can ask you some questions.”

1 Like

look like my naked child is not welcomed here

I wonder if I should delete it or should I revive that zombie again so that it will sit next to this thread ^^