Nascent material setup

pull/5522/head
Steve M 2024-03-30 18:50:43 -07:00
parent 4be5bed039
commit 1e6bc0ce93
2 changed files with 19 additions and 7 deletions

View File

@ -102,13 +102,14 @@ void USDImporterImplTinyusdz::InternReadFile(
pScene->mRootNode->mMeshes = new unsigned int[pScene->mRootNode->mNumMeshes];
// Export meshes
for (size_t i = 0; i < pScene->mNumMeshes; i++) {
pScene->mMeshes[i] = new aiMesh();
verticesForMesh(render_scene, pScene, i);
facesForMesh(render_scene, pScene, i);
normalsForMesh(render_scene, pScene, i);
uvsForMesh(render_scene, pScene, i);
pScene->mRootNode->mMeshes[i] = static_cast<unsigned int>(i);
for (size_t meshIdx = 0; meshIdx < pScene->mNumMeshes; meshIdx++) {
pScene->mMeshes[meshIdx] = new aiMesh();
verticesForMesh(render_scene, pScene, meshIdx);
facesForMesh(render_scene, pScene, meshIdx);
normalsForMesh(render_scene, pScene, meshIdx);
materialsForMesh(render_scene, pScene, meshIdx);
uvsForMesh(render_scene, pScene, meshIdx);
pScene->mRootNode->mMeshes[meshIdx] = static_cast<unsigned int>(meshIdx);
}
}
@ -161,6 +162,12 @@ void USDImporterImplTinyusdz::normalsForMesh(
}
}
void USDImporterImplTinyusdz::materialsForMesh(
const tinyusdz::tydra::RenderScene &render_scene,
aiScene *pScene,
size_t meshIdx) {
}
void USDImporterImplTinyusdz::uvsForMesh(
const tinyusdz::tydra::RenderScene &render_scene,
aiScene *pScene,

View File

@ -78,6 +78,11 @@ public:
aiScene *pScene,
size_t meshIdx);
void materialsForMesh(
const tinyusdz::tydra::RenderScene &render_scene,
aiScene *pScene,
size_t meshIdx);
void uvsForMesh(
const tinyusdz::tydra::RenderScene &render_scene,
aiScene *pScene,