21 ConfigureDef(config_assimp);
22 NotifyCategoryDef(assimp,
"");
24 ConfigureFn(config_assimp) {
29 (
"assimp-calc-tangent-space",
false,
30 PRC_DESC(
"Calculates tangents and binormals for meshes imported via Assimp."));
33 (
"assimp-join-identical-vertices",
true,
34 PRC_DESC(
"Merges duplicate vertices. Set this to false if you want each " 35 "vertex to only be in use on one triangle."));
38 (
"assimp-improve-cache-locality",
true,
39 PRC_DESC(
"Improves rendering performance of the loaded meshes by reordering " 40 "triangles for better vertex cache locality. Set this to false if " 41 "you need geometry to be loaded in the exact order that it was " 42 "specified in the file, or to improve load performance."));
45 (
"assimp-remove-redundant-materials",
true,
46 PRC_DESC(
"Removes redundant/unreferenced materials from assets."));
49 (
"assimp-fix-infacing-normals",
false,
50 PRC_DESC(
"Determines which normal vectors are facing inward and inverts them " 51 "so that they are facing outward."));
54 (
"assimp-optimize-meshes",
true,
55 PRC_DESC(
"Removes the number of draw calls by unifying geometry with the same " 56 "materials. Especially effective in conjunction with " 57 "assimp-optimize-graph and assimp-remove-redundant-materials."));
60 (
"assimp-optimize-graph",
false,
61 PRC_DESC(
"Optimizes the scene geometry by flattening the scene hierarchy. " 62 "This is very efficient (combined with assimp-optimize-meshes), but " 63 "it may result the hierarchy to become lost, so it is disabled by " 67 (
"assimp-flip-winding-order",
false,
68 PRC_DESC(
"Set this true to flip the winding order of all models loaded via " 69 "the Assimp loader. Note that you may need to clear the model-cache " 70 "after changing this."));
80 static bool initialized =
false;
86 LoaderFileTypeAssimp::init_type();
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void init_libassimp()
Initializes the library.
This is a convenience class to specialize ConfigVariable as a boolean type.
This defines the Loader interface that uses the Assimp library to load various model formats...
static LoaderFileTypeRegistry * get_global_ptr()
Returns a pointer to the global LoaderFileTypeRegistry object.
void register_type(LoaderFileType *type)
Defines a new LoaderFileType in the universe.
This class maintains the set of all known LoaderFileTypes in the universe.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.