public static AnimGameItem process(MD5Model md5Model,MD5AnimModel animModel,Vector3f defaultColour) throws Exception {
  List<Matrix4f> invJointMatrices=calcInJointMatrices(md5Model);
  List<AnimatedFrame> animatedFrames=processAnimationFrames(md5Model,animModel,invJointMatrices);
  List<Mesh> list=new ArrayList<>();
  for (  MD5Mesh md5Mesh : md5Model.getMeshes()) {
    Mesh mesh=generateMesh(md5Model,md5Mesh);
    handleTexture(mesh,md5Mesh,defaultColour);
    list.add(mesh);
  }
  Mesh[] meshes=new Mesh[list.size()];
  meshes=list.toArray(meshes);
  AnimGameItem result=new AnimGameItem(meshes,animatedFrames,invJointMatrices);
  return result;
}

public static AnimGameItem process ( MD5Model md5Model , MD5AnimModel animModel , Vector3f defaultColour ) throws Exception { List < Matrix4f > invJointMatrices = calcInJointMatrices ( md5Model ) ; List < AnimatedFrame > animatedFrames = processAnimationFrames ( md5Model , animModel , invJointMatrices ) ; List < Mesh > list = new ArrayList < > ( ) ; for ( MD5Mesh md5Mesh : md5Model . getMeshes ( ) ) { Mesh mesh = generateMesh ( md5Model , md5Mesh ) ; handleTexture ( mesh , md5Mesh , defaultColour ) ; list . add ( mesh ) ; } Mesh [ ] meshes = new Mesh [ list . size ( ) ] ; meshes = list . toArray ( meshes ) ; AnimGameItem result = new AnimGameItem ( meshes , animatedFrames , invJointMatrices ) ; return result ; }
constructs and animgameitem instace based on a md5 model an md5 animation
