16 #include "config_chan.h" 17 #include "animBundle.h" 18 #include "animBundleNode.h" 19 #include "animChannelBase.h" 20 #include "animChannelMatrixXfmTable.h" 21 #include "animChannelMatrixDynamic.h" 22 #include "animChannelMatrixFixed.h" 23 #include "animChannelScalarTable.h" 24 #include "animChannelScalarDynamic.h" 25 #include "animControl.h" 26 #include "animGroup.h" 27 #include "animPreloadTable.h" 28 #include "bindAnimRequest.h" 29 #include "movingPartBase.h" 30 #include "movingPartMatrix.h" 31 #include "movingPartScalar.h" 32 #include "partBundle.h" 33 #include "partBundleNode.h" 34 #include "partGroup.h" 39 Configure(config_chan);
40 NotifyCategoryDef(chan,
"");
43 (
"compress-channels",
false,
44 PRC_DESC(
"Set this true to enable lossy compression of animation channels " 45 "when writing to the bam file. This serves to reduce the size of " 46 "the bam file only; it does not reduce the memory footprint of the " 47 "channels when the bam file is loaded."));
68 (
"compress-chan-quality", 95,
69 PRC_DESC(
"The quality level is an integer number that generally ranges " 70 "between 0 and 100, where smaller numbers indicate greater " 71 "compression at the cost of quality, and larger numbers indicate " 72 "higher quality but less compression. Generally, 95 is the highest " 73 "useful value; values between 95 and 100 produce substantially " 74 "larger, but not substantially better, output files. This is akin " 75 "to the JPEG compression level."));
78 (
"read-compressed-channels",
true,
79 PRC_DESC(
"Set this false to disable reading of compressed animation channels, " 80 "even if the decompression code is available. The only reason you " 81 "might want to do this would be to speed load time when you don't " 82 "care about what the animation looks like."));
85 (
"interpolate-frames",
false,
86 PRC_DESC(
"Set this true to interpolate character animations between frames, " 87 "or false to hold each frame until the next one is ready. This can " 88 "also be changed on a per-character basis with " 89 "PartBundle::set_frame_blend_flag()."));
92 (
"restore-initial-pose",
true,
93 PRC_DESC(
"When this is true, setting all control effects on an Actor to 0 " 94 "causes it to return to its default, unanimated pose. When " 95 "false, it retains whatever its last-computed pose was " 96 "(which may or may not be the default pose)."));
99 (
"async-bind-priority", 100,
100 PRC_DESC(
"This specifies the priority assign to an asynchronous bind " 101 "task when it is requested via PartBundle::load_bind_anim(). " 102 "This controls the relative order in which asynchronous loads " 103 "happen (in particular, relative to asynchronous texture or " 104 "model loads). A higher number here makes the animations " 107 ConfigureFn(config_chan) {
108 AnimBundle::init_type();
109 AnimBundleNode::init_type();
110 AnimChannelBase::init_type();
111 AnimChannelMatrixXfmTable::init_type();
112 AnimChannelMatrixDynamic::init_type();
113 AnimChannelMatrixFixed::init_type();
114 AnimChannelScalarTable::init_type();
115 AnimChannelScalarDynamic::init_type();
116 AnimControl::init_type();
117 AnimGroup::init_type();
118 AnimPreloadTable::init_type();
119 BindAnimRequest::init_type();
120 MovingPartBase::init_type();
121 MovingPartMatrix::init_type();
122 MovingPartScalar::init_type();
123 PartBundle::init_type();
124 PartBundleNode::init_type();
125 PartGroup::init_type();
131 LMatrix4::init_type();
151 #ifndef STDFLOAT_DOUBLE 154 "AnimChannelFixed<LMatrix4f>");
156 "MovingPart<LMatrix4f>");
158 "MovingPart<float>");
static void register_with_read_factory()
Factory method to generate a MovingPartMatrix object.
static void register_with_read_factory()
Factory method to generate an AnimChannelMatrixDynamic object.
static void register_with_read_factory()
Factory method to generate a AnimGroup object.
This is a convenience class to specialize ConfigVariable as a boolean type.
This is the template instantiation of MovingPartBase, on the particular type of value provided by the...
static void register_with_read_factory()
Factory method to generate a MovingPartScalar object.
static void register_with_read_factory()
Factory method to generate a PartBundle object.
static void register_with_read_factory()
Factory method to generate a AnimChannelScalarTable object.
static void register_with_read_factory()
Tells the BamReader how to create objects of type AnimChannelMatrixFixed.
static void register_with_read_factory()
Factory method to generate a AnimBundle object.
static void register_with_read_factory()
Factory method to generate a AnimChannelScalarDynamic object.
This template class is a special kind of AnimChannel that always returns just one fixed value...
void record_alternate_name(TypeHandle type, const string &name)
Indicates an alternate name for the same type.
static void register_with_read_factory()
Factory method to generate a PartGroup object.
static void register_with_read_factory()
Factory method to generate an AnimChannelMatrixXfmTable object.
static TypeRegistry * ptr()
Returns the pointer to the global TypeRegistry object.
The TypeRegistry class maintains all the assigned TypeHandles in a given system.
static void register_with_read_factory()
Tells the BamReader how to create objects of type AnimBundleNode.
This is a convenience class to specialize ConfigVariable as an integer type.
static void register_with_read_factory()
Factory method to generate an AnimPreloadTable object.