Sections

History

j3d.org

Skin and Bones

Leyland Needham posted this simple demo code to the list about how to provide a bones animation structure in Java3D. Here is his comments:

Its the start of a structure, or less of a structure more a functional prototype. Just about all that is necesary for minimal boned animations, with *no* lighting, is there. Although there is nothing in there to make it easy to build skins and bones (It took me quite a bit of time creating the cylinder and setting up its bones). My plan though is to use something like Max's Biped to do that, and export it and import it into Java3D.

I plan to work on (not any time soon)...

  1. The optimize function and optimized update code.
  2. Create an animation controler for syncing the bone animations.
  3. Create an importer for my file format.
  4. Structure it better (like a regular Java3D object).
I dont think I will work with it beyond that, because once I get that far with it, it will already be doing quite a bit and most other things that can be done with it will be for better quality and less performance.

If you run the demo, what you will see is a cylinder (16x20) which will be deformed by 2 bones that act like the upper arm and the lower arm, to bend a sort of shoulder and elbow.

Download the code (A zip file):

  • HTTP
  • FTP
  • To run the demo, run the file run.bat The zip file also includes the source.