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);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the root of an AnimChannel hierarchy.
This is the base class for AnimChannel and AnimBundle.
Class that interfaces with Assimp and builds Panda nodes to represent the Assimp structures.
void get_extensions(std::string &ext) const
Returns a space-separated list of extensions that Assimp can load, without the leading dots.
bool read(const Filename &filename)
Reads from the indicated file.
void build_graph()
Converts scene graph structures into a Panda3D scene graph, with _root being the root node.
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...
The name of a file, such as a texture file or an Egg file.
A container for geometry primitives.
A node of this type is created automatically at the root of each model file that is loaded.
A standard mutex, or mutual exclusion lock.
A basic node of the scene graph or data graph.
This is the base class for PartRoot and MovingPart.
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
Indicates the set of TextureStages and their associated Textures that should be applied to (or remove...
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.