14 #ifndef ASSIMPLOADER_H 15 #define ASSIMPLOADER_H 23 #include <assimp/scene.h> 24 #include <assimp/Importer.hpp> 33 bool operator () (
const char *a,
const char *b)
const {
34 return strcmp(a,b) < 0;
61 Assimp::Importer _importer;
62 const aiScene *_scene;
68 unsigned int *_geom_matindices;
72 const aiNode *find_node(
const aiNode &root,
const aiString &name);
74 void load_texture(
size_t index);
75 void load_texture_stage(
const aiMaterial &mat,
const aiTextureType &ttype, CPT(
TextureAttrib) &tattr);
76 void load_material(
size_t index);
78 void create_anim_channel(
const aiAnimation &anim,
AnimBundle *bundle,
AnimGroup *parent,
const aiNode &node);
79 void load_mesh(
size_t index);
80 void load_node(
const aiNode &node,
PandaNode *parent);
81 void load_light(
const aiLight &light);
A node of this type is created automatically at the root of each model file that is loaded.
bool read(const Filename &filename)
Reads from the indicated file.
A basic node of the scene graph or data graph.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The collection of all the joints and sliders in the character.
An animated character, with skeleton-morph animation and either soft- skinned or hard-skinned vertice...
This is the root of an AnimChannel hierarchy.
void build_graph()
Converts scene graph structures into a Panda3D scene graph, with _root being the root node.
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void get_extensions(std::string &ext) const
Returns a space-separated list of extensions that Assimp can load, without the leading dots.
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
A standard mutex, or mutual exclusion lock.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Indicates the set of TextureStages and their associated Textures that should be applied to (or remove...
This is the base class for AnimChannel and AnimBundle.
The name of a file, such as a texture file or an Egg file.
A container for geometry primitives.
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Class that interfaces with Assimp and builds Panda nodes to represent the Assimp structures.
This is the base class for PartRoot and MovingPart.