载入中...
搜索中...
未找到
ModelData.h
浏览该文件的文档.
Resource is a game object that is managed by the ResourceManager. It can be loaded from a file or gen...
Definition Resource.h:35
CPU-side decoded 3D model (Assimp scene owned via medialoader::ModelScene). Does not upload to GPU — ...
Definition ModelData.h:23
int getEmbeddedTextureCount() const
Definition ModelData.cpp:218
float getMaterialBaseColorR(int matIndex) const
Base color: glTF BASE_COLOR, falling back to OBJ/legacy DIFFUSE.
Definition ModelData.cpp:139
float getMaterialMetallicFactor(int matIndex) const
PBR factors; defaults 0 (metallic) / 0.45 (roughness) when absent.
Definition ModelData.cpp:155
float getMaterialBaseColorB(int matIndex) const
Definition ModelData.cpp:147
float getMaterialBaseColorG(int matIndex) const
Definition ModelData.cpp:143
int getFaceCount(int meshIndex) const
Definition ModelData.cpp:104
~ModelData() override
int getEmbeddedTextureHeight(int idx) const
0 means a compressed blob (use getEmbeddedTextureImageData to decode).
Definition ModelData.cpp:239
int getBoneCount(int meshIndex) const
Definition ModelData.cpp:298
int getBoneWeightCount(int meshIndex, int boneIndex) const
Definition ModelData.cpp:339
float getMaterialOpacity(int matIndex) const
Definition ModelData.cpp:173
std::string getMaterialTexturePath(int matIndex, const std::string &type, int slot=0) const
External file path, or "*N" for an embedded texture. Empty when absent.
Definition ModelData.cpp:199
int getMaterialTextureSlotCount(int matIndex, const std::string &type) const
Texture type names (Squirrel strings): "base_color", "diffuse", "normals", "height",...
Definition ModelData.cpp:191
float getInverseBindMatrixElement(int meshIndex, int boneIndex, int elementIndex) const
Inverse-bind (offset) matrix element, column-major, elementIndex in [0,15].
Definition ModelData.cpp:314
std::string getMaterialName(int matIndex) const
Definition ModelData.cpp:130
int getEmbeddedTextureWidth(int idx) const
Definition ModelData.cpp:232
bool getMaterialTwoSided(int matIndex) const
Definition ModelData.cpp:182
float getMaterialBaseColorA(int matIndex) const
Definition ModelData.cpp:151
float getBoneWeightValue(int meshIndex, int boneIndex, int weightIndex) const
Definition ModelData.cpp:357
std::string getMorphTargetName(int meshIndex, int morphIndex) const
Definition ModelData.cpp:280
std::string getAnimationName(int animIndex) const
Definition ModelData.cpp:372
bool hasTexCoords(int meshIndex) const
Definition ModelData.cpp:118
int getBoneWeightVertex(int meshIndex, int boneIndex, int weightIndex) const
Definition ModelData.cpp:347
image::ImageData * getEmbeddedTextureImageData(int idx) const
Definition ModelData.cpp:246
int getMaterialIndex(int meshIndex) const
Assimp material slot referenced by a mesh; -1 when invalid.
Definition ModelData.cpp:125
int getMaterialTextureEmbeddedIndex(int matIndex, const std::string &type, int slot=0) const
Scene texture index for embedded "*N" references; -1 for external files.
Definition ModelData.cpp:211
float getMaterialRoughnessFactor(int matIndex) const
Definition ModelData.cpp:164
bool hasBones(int meshIndex) const
Assimp skeletal skin data (aiBone / vertex weights) on a mesh.
Definition ModelData.cpp:291
const aiMesh * getMesh(int meshIndex) const
Definition ModelData.cpp:85
std::string getBoneName(int meshIndex, int boneIndex) const
Definition ModelData.cpp:305
int getVertexCount(int meshIndex) const
Definition ModelData.cpp:97
void adopt(eve::Resource &replacement) override
Replace this scene with replacement's (cache reload).
Definition ModelData.cpp:58
std::string getEmbeddedTextureName(int idx) const
Definition ModelData.cpp:223
int getMorphTargetCount(int meshIndex) const
Assimp morph / blend-shape targets on a mesh (aiAnimMesh).
Definition ModelData.cpp:274
Definition Build.cpp:11