mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
Update assimp importing
assimp importer now works for the most part for fbx and gltf animations for gltf still need to be sorted out
This commit is contained in:
parent
d3f8fee74e
commit
ca6e26520b
5 changed files with 229 additions and 124 deletions
|
|
@ -26,6 +26,7 @@
|
|||
#ifndef _TSSHAPELOADER_H_
|
||||
#include "ts/loader/tsShapeLoader.h"
|
||||
#endif
|
||||
#include <assimp/Importer.hpp>
|
||||
#include <assimp/texture.h>
|
||||
|
||||
class GuiTreeViewCtrl;
|
||||
|
|
@ -37,7 +38,8 @@ class AssimpShapeLoader : public TSShapeLoader
|
|||
friend TSShape* assimpLoadShape(const Torque::Path &path);
|
||||
|
||||
protected:
|
||||
const struct aiScene* mScene;
|
||||
Assimp::Importer mImporter;
|
||||
const aiScene* mScene;
|
||||
|
||||
bool ignoreNode(const String& name) override;
|
||||
bool ignoreMesh(const String& name) override;
|
||||
|
|
@ -59,6 +61,7 @@ public:
|
|||
|
||||
void releaseImport();
|
||||
void enumerateScene() override;
|
||||
void configureImportUnitsAndAxis();
|
||||
void updateMaterialsScript(const Torque::Path &path);
|
||||
void processAnimations();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue