8 つのテクスチャ座標スロットがあります...それぞれが異なるテクスチャで満たされているかどうかはわかりません...最初の 1 つを確認するだけで済みます
メッシュ->mTextureCoords[0]
この「const struct aiVector3D*」のような配列にキャストし、インデックス mTextureCoords[0][t] をループします。
t をループし、それが 2 次元配列であることに注意してください
for (t = 0; t < mesh->mNumVertices; ++t) {
const struct aiVector3D* textureVec = &mesh->mTextureCoords[0][t];
printf("tex (%f,%f,%f)", textureVec->x, textureVec->y, textureVec->z );
}
それが役に立てば幸い!ここにも引っかかった!ロードされていないと思っていた...
now: tex (0.159871,0.410298,0.000000)tex (0.034839,0.369741,0.000000)tex (0.147435,0.506447,0.000000)tex (0.018893,0.493014,0.000000)tex (0.159871,0.602596,0.000000)tex (0.034839,0.616288,0.000000) tex (0.196806,0.695823,0.000000)tex (0.082196,0.735817,0.000000)tex (0.257118,0.783297,0.000000)tex (0.159520,0.847968,0.000000)tex (0.314932,0.833907,0.000000)tex (0.318555,0.981848,0.000000)tex ( 0.554152,0.373114,0.000000)tex (0.557998,0.677465,0.000000)tex (0.442610,0.703479,0.000000)