diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Box/Box b/Jusin154_Team3D/Client/Bin/Resources/Models/Box/Box similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Box/Box rename to Jusin154_Team3D/Client/Bin/Resources/Models/Box/Box diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinBody b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinBody similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinBody rename to Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinBody diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinHead b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinHead similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinHead rename to Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinHead diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOB_Mage_Head_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOB_Mage_Head_D.png new file mode 100644 index 000000000..72d3d63fc Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOB_Mage_Head_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Body b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/Body similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Body rename to Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/Body diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/Body.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/Body.fbx new file mode 100644 index 000000000..a9b67e9ba --- /dev/null +++ b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/Body.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7586f3029f295dbcb4d0306a07464420af0efc524cf09568464b07d67340a95c +size 3076716 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/T_Vendor_DADA_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/T_Vendor_DADA_D.png new file mode 100644 index 000000000..bd1d863a5 Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/T_Vendor_DADA_D.png differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/T_Vendor_DADA_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/T_Vendor_DADA_N.png new file mode 100644 index 000000000..88d3686f0 Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/T_Vendor_DADA_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Hair/Hair similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair rename to Jusin154_Team3D/Client/Bin/Resources/Models/Human/Hair/Hair diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Hair/Hair.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Hair/Hair.fbx new file mode 100644 index 000000000..b30f6ac18 --- /dev/null +++ b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Hair/Hair.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6bed60c6be5555ed08388845e833b539eb5ca8095be2e7096aad754450f0320 +size 3383676 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Head b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/Head similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Head rename to Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/Head diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/Head.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/Head.fbx new file mode 100644 index 000000000..d0d7958de --- /dev/null +++ b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/Head.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8c2af954e432ef10626e687fc032c826b4042f6ba058e485347273087509b76 +size 2730924 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/T_NPC_Young_M_Head_Ivory_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/T_NPC_Young_M_Head_Ivory_D.png new file mode 100644 index 000000000..c4b770cdd Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/T_NPC_Young_M_Head_Ivory_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/Steve b/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/Steve similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/Steve rename to Jusin154_Team3D/Client/Bin/Resources/Models/Steve/Steve diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/TombProtector b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/TombProtector similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/TombProtector rename to Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/TombProtector diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Body_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Body_D.png new file mode 100644 index 000000000..b63e5e4a5 Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Body_D.png differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_D.png new file mode 100644 index 000000000..9d495b121 Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_D.png differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_N.png new file mode 100644 index 000000000..3533f9808 Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_N.png differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_D.png new file mode 100644 index 000000000..bbbb5572a Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_D.png differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_E.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_E.png new file mode 100644 index 000000000..b23efd89f Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_E.png differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_N.png new file mode 100644 index 000000000..3c8bca8ba Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_N.png differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Eye_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Eye_D.png new file mode 100644 index 000000000..df0e9262f Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Eye_D.png differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_D.png new file mode 100644 index 000000000..0276f34ab Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_D.png differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_N.png new file mode 100644 index 000000000..f4280c6f9 Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_N.png differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_D.png new file mode 100644 index 000000000..04895a31f Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_D.png differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_N.png new file mode 100644 index 000000000..e3d44cbb1 Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_N.png differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Teeth_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Teeth_D.png new file mode 100644 index 000000000..5db401caf Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Teeth_D.png differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Teeth_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Teeth_N.png new file mode 100644 index 000000000..7c0338fd8 Binary files /dev/null and b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Teeth_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/Troll b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/Troll similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/Troll rename to Jusin154_Team3D/Client/Bin/Resources/Models/Troll/Troll diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/Troll.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/Troll.fbx new file mode 100644 index 000000000..94e082474 --- /dev/null +++ b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/Troll.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b44b64d49d58489c7ac80620cbd2bf5c5827343301d5303bdaa6314b4040634 +size 136314364 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinBody.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinBody.bin new file mode 100644 index 000000000..d0c63a25f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinBody.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinHead.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinHead.bin new file mode 100644 index 000000000..70cdd40d1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinHead.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Body.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Body.bin new file mode 100644 index 000000000..594d7b2a7 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Body.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair.bin new file mode 100644 index 000000000..7305034ef Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Head.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Head.bin new file mode 100644 index 000000000..92616bccf Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Head.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/Steve.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/Steve.bin new file mode 100644 index 000000000..4cd475871 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/Steve.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/TombProtector.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/TombProtector.bin new file mode 100644 index 000000000..6662964a2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/TombProtector.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/Troll.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/Troll.bin new file mode 100644 index 000000000..181da1740 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/Troll.bin differ diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp index 20a9d21a3..e6175746c 100644 --- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp @@ -132,42 +132,26 @@ void CLevel_ObjectViewer::Add_Human() void CLevel_ObjectViewer::Show_ModelFilePath() { - /*GUI::Begin("Model_List"); + GUI::Begin("Model_List"); if(GUI::BeginTabBar("Model_List")) { - if (GUI::BeginTabItem("Assimp_Model")) - { - if (m_pGameInstance->ModelFilePathCount() > 0) - { - for (_uint i = 0; i < m_pGameInstance->ModelFilePathCount(); i++) - { - GUI::Text(m_pGameInstance->Load_ModelFilePath(i)); - GUI::SameLine(); - - std::string label = "Binary##" + std::to_string(i); - if (GUI::Button(label.c_str())) - { - m_pGameInstance->SaveAssimpModel(m_pGameInstance->Load_ModelFilePath(i)); - } - } - GUI::EndTabItem(); - } - } - - if (GUI::BeginTabItem("Binary_Model")) + if (GUI::BeginTabItem("Model")) { if (m_pGameInstance->BinaryModelFilePathCount() > 0) { for (_uint i = 0; i < m_pGameInstance->BinaryModelFilePathCount(); i++) { - GUI::Text(m_pGameInstance->Load_BinaryModelFilePath(i)); + if (GUI::Button(m_pGameInstance->Load_BinaryModelFilePath(i))) + { + + } } } GUI::EndTabItem(); } } GUI::EndTabBar(); - GUI::End();*/ + GUI::End(); } void CLevel_ObjectViewer::Show_AnimList() diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 690145c17..e9d1a43d3 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -516,44 +516,41 @@ HRESULT CLoader::Loading_For_ObjectViewer() m_strMessage = TEXT("Model Loading.."); - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinBody_Model"), - CModel::Create(m_pDevice, m_pContext, "../Bin/Resources/Models/Goblin/GoblinBody.fbx", MODEL::ANIM, XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity(), 0)))) if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_HumanBody_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Body", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Body.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_HumanHead_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/Head", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/Head.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_HumanHair_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Hair", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Hair.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinHead_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Goblin/GoblinHead", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Goblin/GoblinHead.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) return E_FAIL; - m_strMessage = TEXT("Shader Loading.."); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinBody_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Goblin/GoblinBody", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Goblin/GoblinBody.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Steve_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Steve/Steve",XMMatrixScaling(0.01f,0.01f,0.01f)* XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Steve/Steve.bin",XMMatrixScaling(0.01f,0.01f,0.01f)* XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_TombProtector_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/TombProtector/TombProtector", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/TombProtector/TombProtector.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Troll/Troll", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Troll/Troll.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) return E_FAIL; + m_strMessage = TEXT("Shader Loading.."); + m_strMessage = TEXT("Prototype Loading.."); /* For.Prototype_GameObject_RootModelPart */ diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index 6ca5896fa..acef45a16 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -827,13 +827,25 @@ HRESULT CModel::Initialize_Prototype() HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix) { - if (!LoadData(pModelFilePath)) + _char szTextureFileName[MAX_PATH] = {}; + _char szDir[MAX_PATH] = {}; + _char szName[MAX_PATH] = {}; + _char szEXT[MAX_PATH] = {}; + _splitpath_s(pModelFilePath, nullptr, 0, szDir, MAX_PATH, szName, MAX_PATH, szEXT, MAX_PATH); + + if (strcmp(".bin", szEXT) == 0) + { + LoadData(pModelFilePath); + } + else if (strcmp(".fbx", szEXT) == 0) { _char Temp[256]; - strcpy_s(Temp, pModelFilePath); - strcat_s(Temp,".fbx"); - Assimp_Model_Load(Temp, eType, PreTransformMatrix, 0); - SaveAssimpModel(pModelFilePath); + strcpy_s(Temp, szDir); + strcat_s(Temp, szName); + strcat_s(Temp, ".bin"); + Assimp_Model_Load(pModelFilePath, eType, PreTransformMatrix, 0); + SaveAssimpModel(Temp); + return S_OK; } m_pSaveModel = m_pGameInstance->Load_SaveModel(pModelFilePath);