mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
bkup commit
fbx details matching for skinned meshes, gltf still offset
This commit is contained in:
parent
af6722f547
commit
4ac9639a52
6 changed files with 83 additions and 57 deletions
|
|
@ -26,6 +26,12 @@
|
|||
#ifndef _TSSHAPELOADER_H_
|
||||
#include "ts/loader/tsShapeLoader.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef _ASSIMP_APPNODE_H_
|
||||
#include "ts/assimp/assimpAppNode.h"
|
||||
#endif
|
||||
|
||||
#include <assimp/Importer.hpp>
|
||||
#include <assimp/texture.h>
|
||||
|
||||
|
|
@ -41,12 +47,14 @@ protected:
|
|||
Assimp::Importer mImporter;
|
||||
const aiScene* mScene;
|
||||
|
||||
//bool processNode(AppNode* node) override;
|
||||
bool ignoreNode(const String& name) override;
|
||||
bool ignoreMesh(const String& name) override;
|
||||
void detectDetails();
|
||||
void extractTexture(U32 index, aiTexture* pTex);
|
||||
|
||||
private:
|
||||
void processAssimpNode(const aiNode* node, const aiScene* scene, AssimpAppNode* parentNode = nullptr);
|
||||
void addNodeToTree(S32 parentItem, aiNode* node, GuiTreeViewCtrl* tree, U32& nodeCount);
|
||||
void addMetaDataToTree(const aiMetadata* metaData, GuiTreeViewCtrl* tree);
|
||||
bool getMetabool(const char* key, bool& boolVal);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue