瀏覽代碼

add support for AnimTicksPerSecond

David Rose 17 年之前
父節點
當前提交
98ea1e19ff

+ 5 - 0
pandatool/src/xfile/standardTemplates.x

@@ -267,3 +267,8 @@ template SkinWeights {
  array FLOAT weights[nWeights];
  Matrix4x4 matrixOffset;
 }
+
+template AnimTicksPerSecond {
+ <9E415A43-7BA6-4a73-8743-B73D47E88476>
+ DWORD AnimTicksPerSecond;
+} 

+ 11 - 2
pandatool/src/xfile/standardTemplates.x.c

@@ -497,8 +497,17 @@ const unsigned char standard_templates_data[] = {
   0x69, 0x67, 0x68, 0x74, 0x73, 0x5d, 0x3b, 0x0a, 0x20, 0x4d, 0x61,
   0x74, 0x72, 0x69, 0x78, 0x34, 0x78, 0x34, 0x20, 0x6d, 0x61, 0x74,
   0x72, 0x69, 0x78, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x3b, 0x0a,
-  0x7d, 0x0a
+  0x7d, 0x0a, 0x0a, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
+  0x20, 0x41, 0x6e, 0x69, 0x6d, 0x54, 0x69, 0x63, 0x6b, 0x73, 0x50,
+  0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x20, 0x7b, 0x0a,
+  0x20, 0x3c, 0x39, 0x45, 0x34, 0x31, 0x35, 0x41, 0x34, 0x33, 0x2d,
+  0x37, 0x42, 0x41, 0x36, 0x2d, 0x34, 0x61, 0x37, 0x33, 0x2d, 0x38,
+  0x37, 0x34, 0x33, 0x2d, 0x42, 0x37, 0x33, 0x44, 0x34, 0x37, 0x45,
+  0x38, 0x38, 0x34, 0x37, 0x36, 0x3e, 0x0a, 0x20, 0x44, 0x57, 0x4f,
+  0x52, 0x44, 0x20, 0x41, 0x6e, 0x69, 0x6d, 0x54, 0x69, 0x63, 0x6b,
+  0x73, 0x50, 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x3b,
+  0x0a, 0x7d, 0x20, 0x0a
 };
 
-const int standard_templates_data_len = 5403;
+const int standard_templates_data_len = 5504;
 

+ 171 - 166
pandatool/src/xfile/standardTemplates.x.pz.c

@@ -6,172 +6,177 @@
  */
 
 const unsigned char standard_templates_data[] = {
-  0x78, 0x9c, 0xa5, 0x58, 0x6b, 0x6f, 0xdb, 0x38, 0x16, 0xfd, 0x9e,
-  0x5f, 0x41, 0x4c, 0x80, 0x6e, 0x67, 0x11, 0x65, 0xf5, 0x7e, 0x8c,
-  0x3b, 0x05, 0x9c, 0x3a, 0x69, 0xbd, 0x93, 0x17, 0x6c, 0x37, 0xcd,
-  0xc0, 0x08, 0x02, 0x4a, 0x24, 0x6d, 0xb6, 0xb2, 0xe4, 0x95, 0xe4,
-  0xd4, 0xe9, 0xa2, 0xff, 0x7d, 0x2f, 0x49, 0x49, 0x96, 0xe4, 0x64,
-  0x65, 0xa0, 0x41, 0x90, 0x98, 0xaf, 0x73, 0xcf, 0x3d, 0xbc, 0xbc,
-  0xe4, 0xf5, 0x36, 0x65, 0x48, 0xb7, 0x74, 0xab, 0xd8, 0x16, 0x48,
-  0xd7, 0x2d, 0xf3, 0xe8, 0xe8, 0x18, 0xcd, 0x96, 0x3c, 0x47, 0x8c,
-  0xc7, 0x14, 0x45, 0x69, 0x52, 0x60, 0x9e, 0xe4, 0xa8, 0x58, 0x52,
-  0x94, 0x17, 0x38, 0x21, 0x38, 0x23, 0xa8, 0xa0, 0xab, 0x75, 0x8c,
-  0x0b, 0x8a, 0x08, 0x65, 0x3c, 0xe1, 0x05, 0x4f, 0x61, 0x06, 0x4b,
-  0x33, 0x34, 0xe2, 0x19, 0x8d, 0x0a, 0x6b, 0x04, 0x18, 0x13, 0x2a,
-  0x16, 0x52, 0x82, 0xae, 0x52, 0x42, 0x4f, 0x11, 0x1a, 0x23, 0xba,
-  0x2d, 0x32, 0x1c, 0x15, 0xd0, 0x05, 0x60, 0x39, 0x45, 0x2c, 0x4b,
-  0x57, 0x12, 0x57, 0xad, 0xba, 0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3a, 0xad,
-  0xf5, 0xb5, 0x18, 0x35, 0xd9, 0xa2, 0x39, 0x3c, 0x6f, 0xcf, 0x7e,
-  0x21, 0x8b, 0x5d, 0x43, 0x1c, 0x80, 0xd2, 0x4d, 0x1e, 0xd6, 0x61,
-  0x3c, 0xca, 0x95, 0xdd, 0x5c, 0x96, 0xa8, 0xee, 0x79, 0x35, 0xde,
-  0xc9, 0x64, 0xdd, 0x55, 0xad, 0x7c, 0x76, 0x5d, 0xad, 0x6d, 0xcc,
-  0xec, 0x70, 0x1e, 0x26, 0x1c, 0x82, 0x1b, 0x9e, 0x64, 0xcd, 0x13,
-  0xd6, 0x77, 0x11, 0xec, 0x9f, 0xb0, 0x1a, 0x66, 0x4a, 0x8b, 0xe6,
-  0x95, 0xa2, 0xf7, 0x21, 0xed, 0xec, 0x1f, 0x66, 0xbc, 0x93, 0x1b,
-  0xe2, 0x14, 0x17, 0x7f, 0xd1, 0x67, 0xa5, 0xb7, 0xa1, 0x13, 0x62,
-  0xbb, 0x38, 0xd0, 0x3c, 0xcf, 0x09, 0x7b, 0xf5, 0xbe, 0xc3, 0x90,
-  0x06, 0x77, 0xc2, 0x95, 0xf1, 0x25, 0x3b, 0xe7, 0xe5, 0x60, 0x47,
-  0xab, 0x19, 0x5f, 0x51, 0xd2, 0x36, 0x09, 0x51, 0xe6, 0x86, 0x86,
-  0x0f, 0xa1, 0x16, 0x5a, 0xbd, 0x26, 0x0b, 0x58, 0x2f, 0x22, 0xb9,
-  0x46, 0x28, 0xd8, 0x37, 0xf8, 0xf7, 0xca, 0x86, 0xc0, 0x8c, 0xa6,
-  0x57, 0xfe, 0x41, 0x5e, 0x01, 0xde, 0xec, 0x79, 0x4d, 0x77, 0x31,
-  0xf2, 0x97, 0x34, 0x50, 0xfa, 0xd8, 0x71, 0x40, 0x18, 0x9f, 0xcb,
-  0x19, 0x1d, 0x47, 0x3f, 0x6e, 0xb8, 0x3a, 0xa5, 0xd8, 0x36, 0xbd,
-  0x40, 0x87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,
-  0x66, 0xa6, 0xc3, 0x70, 0x18, 0xee, 0x62, 0xab, 0xa8, 0x2a, 0xb0,
-  0xeb, 0x94, 0xd0, 0x6b, 0x79, 0xf9, 0x57, 0xb4, 0x4a, 0xd0, 0x0e,
-  0x9b, 0xa7, 0xf6, 0xd7, 0x13, 0xe5, 0xa4, 0x87, 0xce, 0x63, 0xf0,
-  0xbb, 0xea, 0x6e, 0x8d, 0xef, 0x2a, 0x36, 0x55, 0x13, 0xde, 0x30,
-  0x96, 0xd3, 0x42, 0x38, 0xf3, 0x3f, 0x07, 0x7e, 0x59, 0x36
+  0x78, 0x9c, 0xa5, 0x58, 0x6b, 0x6f, 0xdb, 0x38, 0x16, 0xfd, 0xee,
+  0x5f, 0x41, 0x4c, 0x80, 0x6e, 0x67, 0x11, 0x65, 0xf5, 0x7e, 0xac,
+  0xbb, 0x05, 0xec, 0xda, 0x69, 0xbd, 0x93, 0x17, 0x6c, 0x35, 0xcd,
+  0xc0, 0x08, 0x02, 0x4a, 0x24, 0x6d, 0x4d, 0x65, 0xc9, 0x2b, 0xc9,
+  0xa9, 0x33, 0x8b, 0xfe, 0xf7, 0xbd, 0x24, 0x25, 0x59, 0x92, 0x93,
+  0x95, 0x81, 0x09, 0x82, 0xc4, 0x7c, 0x9d, 0x7b, 0xee, 0xe1, 0xe5,
+  0x25, 0xaf, 0xf7, 0x29, 0x43, 0xaa, 0xa1, 0x1a, 0xc5, 0xbe, 0x40,
+  0xaa, 0x6a, 0xe8, 0x83, 0xc1, 0x19, 0xf2, 0xd7, 0x51, 0x8e, 0x58,
+  0x14, 0x53, 0x14, 0xa6, 0x49, 0x81, 0xa3, 0x24, 0x47, 0xc5, 0x9a,
+  0xa2, 0xbc, 0xc0, 0x09, 0xc1, 0x19, 0x41, 0x05, 0xdd, 0x6c, 0x63,
+  0x5c, 0x50, 0x44, 0x28, 0x8b, 0x92, 0xa8, 0x88, 0x52, 0x98, 0xc1,
+  0xd2, 0x0c, 0x4d, 0xa2, 0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bc, 0xbe, 0x42, 0x65, 0x45, 0xfe, 0xfa, 0x17, 0x00, 0x0d, 0x3f,
+  0x04, 0x19, 0x9b, 0xa9, 0x44, 0xd3, 0xe1, 0x49, 0x15, 0x60, 0xa2,
+  0x2b, 0xa6, 0x66, 0x3b, 0x0a, 0x56, 0xe1, 0x34, 0xb8, 0xaa, 0xae,
+  0x9b, 0x4c, 0xb7, 0x18, 0x0e, 0x82, 0x43, 0x6c, 0x15, 0x55, 0x05,
+  0x76, 0x93, 0x12, 0x7a, 0x23, 0x2e, 0xff, 0x8a, 0x56, 0x09, 0xda,
+  0x61, 0xf3, 0xdc, 0xfe, 0x7a, 0xa2, 0x9c, 0xf4, 0xd8, 0x79, 0x0c,
+  0xfe, 0x90, 0xdd, 0xad, 0xf1, 0x43, 0xc5, 0x26, 0x6b, 0xc2, 0x5b,
+  0xc6, 0x72, 0x5a, 0x1c, 0x67, 0x79, 0x3f, 0x0a, 0xbf, 0xf3, 0x2d,
+  0x59, 0xd0, 0x30, 0x4d, 0x64, 0x58, 0x79, 0x53, 0x53, 0xb3, 0x46,
+  0xbc, 0x1c, 0x18, 0x8f, 0x6c, 0xc5, 0xc4, 0x8e, 0xa1, 0xb8, 0x0e,
+  0x34, 0xc7, 0x8e, 0x31, 0x31, 0x9d, 0xa9, 0xeb, 0x9a, 0x8e, 0x5d,
+  0x0b, 0x7c, 0x8c, 0x01, 0x36, 0xd0, 0xe0, 0x7f, 0x49, 0x95, 0x76,
+  0xa7
 };
 
-const int standard_templates_data_len = 1814;
+const int standard_templates_data_len = 1860;
 

File diff suppressed because it is too large
+ 436 - 305
pandatool/src/xfile/xLexer.cxx.prebuilt


File diff suppressed because it is too large
+ 549 - 217
pandatool/src/xfile/xParser.cxx.prebuilt


+ 21 - 12
pandatool/src/xfile/xParser.h.prebuilt

@@ -1,7 +1,9 @@
-/* A Bison parser, made by GNU Bison 1.875b.  */
+/* A Bison parser, made by GNU Bison 2.3.  */
 
-/* Skeleton parser for Yacc-like parsing with Bison,
-   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+/* Skeleton interface for Bison's Yacc-like parsers in C
+
+   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+   Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -15,13 +17,21 @@
 
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.  */
+   Foundation, Inc., 51 Franklin Street, Fifth Floor,
+   Boston, MA 02110-1301, USA.  */
+
+/* As a special exception, you may create a larger work that contains
+   part or all of the Bison parser skeleton and distribute that work
+   under terms of your choice, so long as that work isn't itself a
+   parser generator using the skeleton or a modified version thereof
+   as a parser skeleton.  Alternatively, if you modify or redistribute
+   the parser skeleton itself, you may (at your option) remove this
+   special exception, which will cause the skeleton and the resulting
+   Bison output files to be licensed under the GNU General Public
+   License without this special exception.
 
-/* As a special exception, when this file is copied by Bison into a
-   Bison output file, you may use that output file without restriction.
-   This special exception was added by the Free Software Foundation
-   in version 1.24 of Bison.  */
+   This special exception was added by the Free Software Foundation in
+   version 2.2 of Bison.  */
 
 /* Tokens.  */
 #ifndef YYTOKENTYPE
@@ -62,6 +72,7 @@
      TOKEN_ARRAY = 52
    };
 #endif
+/* Tokens.  */
 #define TOKEN_NAME 1
 #define TOKEN_STRING 2
 #define TOKEN_INTEGER 3
@@ -97,7 +108,7 @@
 
 
 
-#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
+#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
 typedef int YYSTYPE;
 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
 # define YYSTYPE_IS_DECLARED 1
@@ -106,5 +117,3 @@ typedef int YYSTYPE;
 
 extern YYSTYPE xyylval;
 
-
-

+ 20 - 12
pandatool/src/xfile/xParser.yxx

@@ -361,9 +361,11 @@ object:
 }
         optional_class_id data_parts_list TOKEN_CBRACE
 {
-  XFileDataNodeTemplate *current_template = 
-    DCAST(XFileDataNodeTemplate, current_node);
-  current_template->finalize_parse_data();
+  if (current_node->is_exact_type(XFileDataNodeTemplate::get_class_type())) {
+    XFileDataNodeTemplate *current_template = 
+      DCAST(XFileDataNodeTemplate, current_node);
+    current_template->finalize_parse_data();
+  }
 
   $$ = current_node;
   current_node = $<u.node>4;
@@ -387,21 +389,27 @@ data_part:
 }
         | integer_list
 {
-  XFileDataNodeTemplate *current_template = 
-    DCAST(XFileDataNodeTemplate, current_node);
-  current_template->add_parse_int($1);
+  if (current_node->is_exact_type(XFileDataNodeTemplate::get_class_type())) {
+    XFileDataNodeTemplate *current_template = 
+      DCAST(XFileDataNodeTemplate, current_node);
+    current_template->add_parse_int($1);
+  }
 }
         | realnum_list
 {
-  XFileDataNodeTemplate *current_template = 
-    DCAST(XFileDataNodeTemplate, current_node);
-  current_template->add_parse_double($1);
+  if (current_node->is_exact_type(XFileDataNodeTemplate::get_class_type())) {
+    XFileDataNodeTemplate *current_template = 
+      DCAST(XFileDataNodeTemplate, current_node);
+    current_template->add_parse_double($1);
+  }
 }
         | string list_separator
 {
-  XFileDataNodeTemplate *current_template = 
-    DCAST(XFileDataNodeTemplate, current_node);
-  current_template->add_parse_string($1);
+  if (current_node->is_exact_type(XFileDataNodeTemplate::get_class_type())) {
+    XFileDataNodeTemplate *current_template = 
+      DCAST(XFileDataNodeTemplate, current_node);
+    current_template->add_parse_string($1);
+  }
 }
         | list_separator
 {

+ 4 - 0
pandatool/src/xfileegg/xFileAnimationSet.cxx

@@ -28,6 +28,7 @@
 ////////////////////////////////////////////////////////////////////
 XFileAnimationSet::
 XFileAnimationSet() {
+  _frame_rate = 0.0;
 }
 
 ////////////////////////////////////////////////////////////////////
@@ -93,6 +94,9 @@ create_hierarchy(XFileToEggConverter *converter) {
       anim_table->add_data(joint->get_transform3d());
     }
     anim_table->optimize();
+    if (_frame_rate != 0.0) {
+      anim_table->set_fps(_frame_rate);
+    }
   }
 
   return true;

+ 3 - 0
pandatool/src/xfileegg/xFileAnimationSet.h

@@ -71,6 +71,9 @@ public:
   
   FrameData &create_frame_data(const string &joint_name);
 
+public:
+  double _frame_rate;
+
 private:
   void mirror_table(XFileToEggConverter *converter,
                     EggGroup *model_node, EggTable *anim_node);

+ 33 - 6
pandatool/src/xfileegg/xFileToEggConverter.cxx

@@ -35,7 +35,7 @@
 XFileToEggConverter::
 XFileToEggConverter() {
   _make_char = false;
-  _frame_rate = 30.0;
+  _frame_rate = 0.0;
   _x_file = new XFile(true);
   _dart_node = NULL;
 }
@@ -296,6 +296,8 @@ get_toplevel() {
   int num_objects = _x_file->get_num_objects();
   int i;
 
+  _ticks_per_second = 4800;  // X File default.
+
   // First, make a pass through the toplevel objects and see if we
   // have frames and/or animation.
   _any_frames = false;
@@ -360,6 +362,9 @@ convert_toplevel_object(XFileDataNode *obj, EggGroupNode *egg_parent) {
       return false;
     }
 
+  } else if (obj->is_standard_object("AnimTicksPerSecond")) {
+    _ticks_per_second = (*obj)[0].i();
+
   } else if (obj->is_standard_object("Mesh")) {
     // If there are any Frames at all in the file, then assume a Mesh
     // at the toplevel is just present to define a reference that will
@@ -498,6 +503,9 @@ convert_animation_set(XFileDataNode *obj) {
   XFileAnimationSet *animation_set = new XFileAnimationSet();
   animation_set->set_name(obj->get_name());
 
+  _total_tick_deltas = 0;
+  _num_ticks = 0;
+
   // Now walk through the children of the set; each one animates a
   // different joint.
   int num_objects = obj->get_num_objects();
@@ -507,6 +515,15 @@ convert_animation_set(XFileDataNode *obj) {
     }
   }
 
+  animation_set->_frame_rate = _frame_rate;
+  if (_num_ticks != 0 && _frame_rate == 0.0) {
+    // Compute the frame rate from the timing information.
+    double delta = (double)_total_tick_deltas / (double)_num_ticks;
+    if (delta != 0.0) {
+      animation_set->_frame_rate = (double)_ticks_per_second / delta;
+    }
+  }
+
   _animation_sets.push_back(animation_set);
 
   return true;
@@ -626,12 +643,22 @@ convert_animation_key(XFileDataNode *obj, const string &joint_name,
   
   const XFileDataObject &keys = (*obj)["keys"];
 
+  int last_time = 0;
   for (int i = 0; i < keys.size(); i++) {
-    // We ignore the time value.  It seems to be of questionable value
-    // anyway, being of all sorts of crazy scales; and Panda doesn't
-    // support timestamped keyframes anyway.  Assume the x file was
-    // generated with one frame per frame of animation, and translate
-    // accordingly.
+    // The time value is problematic, since it allows x files to
+    // specify keyframes of arbitrary duration.  Panda doesn't support
+    // this; all frames in Panda must be of a constant duration.
+    // Thus, we largely ignore the time value, but we take the average
+    // of all deltas as the duration.  This will correctly handle .x
+    // files with uniform keyframes, at least.
+
+    int this_time = keys[i]["time"].i();
+    if (i != 0) {
+      int delta = this_time - last_time;
+      _total_tick_deltas += delta;
+      ++_num_ticks;
+    }
+    last_time = this_time;
 
     const XFileDataObject &values = keys[i]["tfkeys"]["values"];
     if (!set_animation_frame(joint_name, table, i, key_type, values)) {

+ 4 - 1
pandatool/src/xfileegg/xFileToEggConverter.h

@@ -87,7 +87,7 @@ private:
                              FrameData &table);
   bool set_animation_frame(const string &joint_name, FrameData &table, 
                            int frame, int key_type,
-                           const XFileDataObject &values);
+                           const XFileDataObject &values); 
   bool convert_mesh(XFileDataNode *obj, EggGroupNode *egg_parent);
 
   bool create_polygons();
@@ -97,6 +97,9 @@ private:
 
   bool _any_frames;
   bool _any_animation;
+  int _ticks_per_second;
+  int _total_tick_deltas;
+  int _num_ticks;
 
   typedef pvector<XFileMesh *> Meshes;
   Meshes _meshes;

+ 4 - 5
pandatool/src/xfileprogs/xFileToEgg.cxx

@@ -51,10 +51,9 @@ XFileToEgg() :
 
   add_option
     ("fr", "fps", 0,
-     "Specify the frame rate of the resulting animation.  The animation "
-     "tables should have one entry per frame, rather than one per "
-     "keyframe; the time component of the animation tables is ignored "
-     "and the frames are played sequentially at the specified frame rate.",
+     "Specify the frame rate of the resulting animation.  If this is "
+     "omitted or 0, the frame rate is inferred from the file itself; but "
+     "note that the file must contain evenly-spaced keyframes.",
      &XFileToEgg::dispatch_double, NULL, &_frame_rate);
 
   add_option
@@ -83,7 +82,7 @@ XFileToEgg() :
      "Specify the coordinate system of the input " + _format_name +
      " file.  Normally, this is y-up-left.");
 
-  _frame_rate = 30.0;
+  _frame_rate = 0.0;
   _coordinate_system = CS_yup_left;
 }
 

Some files were not shown because too many files changed in this diff