SO3Engine
|
ALSceneLoader.cpp
Go to the documentation of this file.
8// aiProcess_OptimizeGraph|aiProcess_JoinIdenticalVertices|aiProcess_FixInfacingNormals|aiProcess_MakeLeftHanded
9#define AL_ASSIMP_DEFAULT_FLAG aiProcess_ImproveCacheLocality|aiProcess_RemoveRedundantMaterials|aiProcess_Triangulate|aiProcess_SortByPType|aiProcess_FindInvalidData|aiProcess_LimitBoneWeights|aiProcess_FindDegenerates|aiProcess_FindInstances|aiProcess_CalcTangentSpace //|aiProcess_GlobalScale
15 ALSceneLoader::ALSceneLoader(SScene* scene, std::string filename, std::string group, unsigned int flags, float scale)
42 ALSceneLoader::ALSceneLoader(std::string filename, std::string group, unsigned int flags, float scale)
74 bool ALSceneLoader::loadFile(const std::string& sceneName, SNode* parent, std::vector<SNode*> &objects, std::vector<SMaterial*> &materials)
78 mImporter.SetPropertyInteger(AI_CONFIG_PP_SBP_REMOVE, aiPrimitiveType_LINE /*| aiPrimitiveType_POINT*/);
102 mImporter.SetPropertyInteger(AI_CONFIG_PP_RVC_FLAGS, aiComponent_NORMALS | aiComponent_TANGENTS_AND_BITANGENTS);
113 loadedScene = mImporter.ReadFile(to_utf8(mFilename).c_str(), AL_ASSIMP_DEFAULT_FLAG | defFlags);
129 bool ALSceneLoader::convertFile(boost::filesystem::path expFolder, const std::string& sceneName)
133 mImporter.SetPropertyInteger(AI_CONFIG_PP_SBP_REMOVE, aiPrimitiveType_LINE /*| aiPrimitiveType_POINT*/);
157 mImporter.SetPropertyInteger(AI_CONFIG_PP_RVC_FLAGS, aiComponent_NORMALS | aiComponent_TANGENTS_AND_BITANGENTS);
168 loadedScene = mImporter.ReadFile(to_utf8(mFilename).c_str(), AL_ASSIMP_DEFAULT_FLAG | defFlags);
Definition ALScene.h:31
bool load(std::vector< SNode * > &scolNodes, std::vector< SMaterial * > &scolMats)
Definition ALScene.cpp:73
bool convertFile(boost::filesystem::path expFolder, const std::string &sceneName)
Definition ALSceneLoader.cpp:129
bool loadFile(const std::string &sceneName, SNode *parent, std::vector< SNode * > &objects, std::vector< SMaterial * > &materials)
Definition ALSceneLoader.cpp:74
void createDirectory(boost::filesystem::path path)
Definition ALSceneLoader.cpp:189
ALSceneLoader(SScene *scene, std::string filename, std::string group, unsigned int flags, float scale=1.0f)
Definition ALSceneLoader.cpp:15
boost::filesystem::path getFilePath()
Definition ALSceneLoader.cpp:207
Definition SO3NodeScol.h:43
Definition SO3Scene.h:125
Definition SO3DataScol.h:38
Generated by 1.9.8