15 #include "config_collada.h"
18 #include "loaderFileTypeDae.h"
19 #include "loaderFileTypeRegistry.h"
21 ConfigureDef(config_collada);
22 NotifyCategoryDef(collada,
"");
25 (
"collada-flatten",
false,
26 PRC_DESC(
"This is normally true to flatten out useless nodes after loading "
27 "a collada file. Set it false if you want to see the complete "
28 "and true hierarchy as specified in the file (although the "
29 "extra nodes may have a small impact on render performance)."));
32 (
"collada-flatten-radius", 0.0,
33 PRC_DESC(
"This specifies the minimum cull radius in the egg file. Nodes "
34 "whose bounding volume is smaller than this radius will be "
35 "flattened tighter than nodes larger than this radius, to "
36 "reduce the node count even further. The idea is that small "
37 "objects will not need to have their individual components "
38 "culled separately, but large environments should. This allows "
39 "the user to specify what should be considered \"small\". Set "
40 "it to 0.0 to disable this feature."));
43 (
"collada-unify",
true,
44 PRC_DESC(
"When this is true, then in addition to flattening the scene graph "
45 "nodes, the collada loader will also combine as many Geoms as "
47 "a given node into a single Geom. This has theoretical performance "
48 "benefits, especially on higher-end graphics cards, but it also "
49 "slightly slows down collada loading."));
52 (
"collada-combine-geoms",
false,
53 PRC_DESC(
"Set this true to combine sibling GeomNodes into a single GeomNode, "
57 (
"collada-accept-errors",
true,
58 PRC_DESC(
"When this is true, certain kinds of recoverable errors (not syntax "
59 "errors) in a collada file will be allowed and ignored when a "
60 "collada file is loaded. When it is false, only perfectly pristine "
61 "collada files may be loaded."));
63 ConfigureFn(config_collada) {
77 static bool initialized =
false;
This is a convenience class to specialize ConfigVariable as a boolean type.
static LoaderFileTypeRegistry * get_global_ptr()
Returns a pointer to the global LoaderFileTypeRegistry object.
This defines the Loader interface to read Dae files.
void register_type(LoaderFileType *type)
Defines a new LoaderFileType in the universe.
This is a convenience class to specialize ConfigVariable as a floating-point type.
This class maintains the set of all known LoaderFileTypes in the universe.