diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/KeyFrame.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/KeyFrame.bin new file mode 100644 index 000000000..3a6c52eac Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/KeyFrame.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/KeyFrame.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/KeyFrame.bin new file mode 100644 index 000000000..0b7f6d72c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/KeyFrame.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Bm.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Bm.fbx new file mode 100644 index 000000000..b40e1efb8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Bm.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dfe5505da61c11fb1e3fdb1f96102d22215790aff1b2082795b29bdcdb6e4c38 +size 370585100 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Cmbt.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Cmbt.bin new file mode 100644 index 000000000..4cbf862a1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Cmbt.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Cmbt.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Cmbt.fbx new file mode 100644 index 000000000..926b91345 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Cmbt.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b3158c947b28301b02a3f119d95b60639e0a416a4f73173e372e453d0fb2966 +size 137803084 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Ledge.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Ledge.bin new file mode 100644 index 000000000..3fe4fc73f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Ledge.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Ledge.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Ledge.fbx new file mode 100644 index 000000000..72fb19942 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Ledge.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1723ca5ba1c4efc026e20cc701ca88a59b7f8536443a43d2f5a4e09d4251b908 +size 9485804 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/KeyFrame.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/KeyFrame.bin deleted file mode 100644 index 9aa7769ec..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/KeyFrame.bin and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/KeyFrame.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/KeyFrame.bin new file mode 100644 index 000000000..318ab4761 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/KeyFrame.bin differ diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp index 3ff0aa3b1..3e1fd63d2 100644 --- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp @@ -185,6 +185,7 @@ void CLevel_ObjectViewer::Category_ModelList(const _char* Category) { if (GUI::Button(szCategory)) { + strcpy_s(m_DummyPath, szCategory); CGameObject* pTempObject = { nullptr }; CDummyObject::PARTS_OBJECT_DESC Desc = {}; @@ -303,33 +304,46 @@ void CLevel_ObjectViewer::Category_PartsModelList(const _char* Category, const _ void CLevel_ObjectViewer::Show_AnimList() { GUI::Begin("Anim_List"); - if (!m_Objects.empty()) + if (GUI::BeginTabBar("Anim_List")) { - CModel* pModel = m_Objects[m_iObjectIndex]->Get_Component(); - for (_uint i = 0; i < pModel->Get_AnimSize(); i++) + if (GUI::BeginTabItem("Dummy_Anim")) { - if (GUI::Button(pModel->Get_AnimList(i))) + if (!m_Objects.empty()) { - pModel->Set_AnimationIndex(i); - pModel->Set_CurrentTrackPosition(0.f); - pModel->Play_Animation(0.f); - } - } - } - if (m_HumanRoot) - { - CModel* pModel = m_HumanRoot->Get_MainModel(); - if (pModel) - { - for (_uint i = 0; i < pModel->Get_AnimSize(); i++) - { - if (GUI::Button(pModel->Get_AnimList(i))) + CModel* pModel = m_Objects[m_iObjectIndex]->Get_Component(); + for (_uint i = 0; i < pModel->Get_AnimSize(); i++) { - m_HumanRoot->Set_Animation(i); + if (GUI::Button(pModel->Get_AnimList(i))) + { + pModel->Set_AnimationIndex(i); + pModel->Set_CurrentTrackPosition(0.f); + pModel->Play_Animation(0.f); + } } } + GUI::EndTabItem(); + } + + if (GUI::BeginTabItem("Parts_Anim")) + { + if (m_HumanRoot) + { + CModel* pModel = m_HumanRoot->Get_MainModel(); + if (pModel) + { + for (_uint i = 0; i < pModel->Get_AnimSize(); i++) + { + if (GUI::Button(pModel->Get_AnimList(i))) + { + m_HumanRoot->Set_Animation(i); + } + } + } + } + GUI::EndTabItem(); } } + GUI::EndTabBar(); GUI::End(); } @@ -371,10 +385,73 @@ void CLevel_ObjectViewer::Dummy_Object_Setting() { pModel->Set_PlayAnim(bPlayAnim); } + + if (GUI::Button("Load KeyFrame")) + { + _char szName[MAX_PATH] = {}; + _splitpath_s(m_DummyPath, nullptr, 0, nullptr, 0, szName, MAX_PATH, nullptr, 0); + + Load_KeyFrame(szName); + } + + static _char EventName[64] = {}; + + GUI::InputText("EventName", EventName, sizeof(EventName)); + GUI::SameLine(); + + if (GUI::Button("Save KeyFrame")) + { + if (pModel) + { + _float fKeyFrame = pModel->Get_CurrentTrackPosition(); + m_KeyFrame.push_back(fKeyFrame); + m_Events.emplace_back(EventName); + + _char szDir[MAX_PATH] = {}; + + _splitpath_s(m_DummyPath, nullptr, 0, szDir, MAX_PATH, nullptr, 0, nullptr, 0); + + _string szFile = "KeyFrame.bin"; + _string Path = szDir + szFile; + + FILE* fp = nullptr; + fopen_s(&fp, Path.c_str(), "wb"); + if (!fp) return; + + _uint KeyFrameSize = (_uint)m_KeyFrame.size(); + + fwrite(&KeyFrameSize, sizeof(_uint), 1, fp); + + for (size_t i = 0; i < m_KeyFrame.size(); i++) + { + _uint EventSize = (_uint)m_Events[i].size(); + fwrite(&m_KeyFrame[i], sizeof(_float), 1, fp); + fwrite(&EventSize, sizeof(_uint), 1, fp); + fwrite(EventName, sizeof(_char), EventSize, fp); + } + + + fclose(fp); + + EventName[0] = '\0'; + } + } + + for (_uint i = 0; i < m_KeyFrame.size(); ++i) + { + ImDrawList* draw = ImGui::GetForegroundDrawList(); + ImVec2 center = ImGui::GetMainViewport()->GetCenter(); + float scale = 50.f; + + GUI::DragFloat(m_Events[i].c_str(), &m_KeyFrame[i]); + } + if (GUI::Button("Delete")) { m_pGameInstance->Get_Layer(NEXT_LEVEL, m_wszPreLayer)->Clear_Layer(); m_Objects.pop_back(); + m_Events.clear(); + m_KeyFrame.clear(); } } GUI::End(); @@ -417,7 +494,7 @@ void CLevel_ObjectViewer::Parts_Object_Setting() if (GUI::Button("Load KeyFrame")) { - Load_KeyFrame(); + Load_KeyFrame("Human"); } static _char EventName[64] = {}; @@ -434,7 +511,7 @@ void CLevel_ObjectViewer::Parts_Object_Setting() m_Events.emplace_back(EventName); FILE* fp = nullptr; - fopen_s(&fp, "../Bin/Resources/Models/KeyFrame.bin", "wb"); + fopen_s(&fp, "../Bin/Resources/Models/Human/KeyFrame.bin", "wb"); if (!fp) return; _uint KeyFrameSize = (_uint)m_KeyFrame.size(); @@ -446,9 +523,8 @@ void CLevel_ObjectViewer::Parts_Object_Setting() _uint EventSize = (_uint)m_Events[i].size(); fwrite(&m_KeyFrame[i], sizeof(_float), 1, fp); fwrite(&EventSize, sizeof(_uint), 1, fp); - fwrite(&m_Events[i], sizeof(_string), 1, fp); + fwrite(EventName, sizeof(_char), EventSize, fp); } - fclose(fp); @@ -470,6 +546,7 @@ void CLevel_ObjectViewer::Parts_Object_Setting() { m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_Root"))->Clear_Layer(); m_HumanRoot = nullptr; + m_Events.clear(); m_KeyFrame.clear(); } } @@ -501,37 +578,57 @@ _wchar* CLevel_ObjectViewer::Save_ModelName(const _char* Category) return m_wszName; } -void CLevel_ObjectViewer::Load_KeyFrame() +void CLevel_ObjectViewer::Load_KeyFrame(const _char* Name) { FILE* fp = nullptr; - fopen_s(&fp, "../Bin/Resources/Models/KeyFrame.bin", "rb"); + _string Path = {}; + if (Name == _string("Human")) + { + Path = "../Bin/Resources/Models/Human/KeyFrame.bin"; + } + else + { + _char szDir[MAX_PATH] = {}; + _splitpath_s(m_DummyPath, nullptr, 0, szDir, MAX_PATH, nullptr, 0, nullptr, 0); + Path = _string(szDir) + "KeyFrame.bin"; + } + + fopen_s(&fp, Path.c_str(), "rb"); if (!fp) return; - _uint KeyFameSize = {}; - _uint EventLen = {}; + _uint KeyFrameSize = 0; + fread(&KeyFrameSize, sizeof(_uint), 1, fp); - fread(&KeyFameSize, sizeof(_uint), 1, fp); - - for (size_t i = 0; i < KeyFameSize; i++) + for (size_t i = 0; i < KeyFrameSize; i++) { - fread(&m_fKeyFrame, sizeof(_float), 1, fp); - fread(&EventLen, sizeof(_uint), 1, fp); - fread(&m_strEvent, sizeof(_string), 1, fp); + float fKey = 0.f; + fread(&fKey, sizeof(float), 1, fp); - m_Events.push_back(m_strEvent); - m_KeyFrame.push_back(m_fKeyFrame); + _uint EventLen = 0; + fread(&EventLen, sizeof(_uint), 1, fp); + + _string str; + str.resize(EventLen); + + fread(str.data(), sizeof(_char), EventLen, fp); + + m_KeyFrame.push_back(fKey); + m_Events.push_back(str); } fclose(fp); } + + + HRESULT CLevel_ObjectViewer::Ready_Layer_Camera(const _wstring& strLayerTag) { CDebugCamera::CAMERA_DEBUG_DESC CameraDesc{}; CameraDesc.fFovy = XMConvertToRadians(60.0f); CameraDesc.fNear = 0.1f; CameraDesc.fFar = 500.f; - CameraDesc.vEye = _float3(0.f, 30.f, -10.f); + CameraDesc.vEye = _float3(0.f, 5.f, -5.f); CameraDesc.vAt = _float3(0.f, 0.f, 0.f); CameraDesc.fSpeedPerSec = 5.f; CameraDesc.pCameraKey = TEXT("Debug_Camera"); diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 5e67b46bf..03e55274a 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -806,27 +806,27 @@ HRESULT CLoader::Loading_For_ObjectViewer() #pragma region BODY if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_DADA_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_DarkWizardSoldier_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DarkWizardSoldier/M_DarkWizardSoldier.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DarkWizardSoldier/M_DarkWizardSoldier.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_DarkWizardGrunt_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DarkWizardGrunt/M_DarkWizardGrunt.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DarkWizardGrunt/M_DarkWizardGrunt.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_DarkWizardTank_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DarkWizardTank/M_DarkWizardTank.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DarkWizardTank/M_DarkWizardTank.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_F_DarkWizardMage_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/FeMale/F_DarkWizardMage/F_DarkWizardMage.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/FeMale/F_DarkWizardMage/F_DarkWizardMage.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_F_DarkWizardSniper_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/FeMale/F_DarkWizardSniper/F_DarkWizardSniper.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/FeMale/F_DarkWizardSniper/F_DarkWizardSniper.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; #pragma endregion @@ -834,19 +834,19 @@ HRESULT CLoader::Loading_For_ObjectViewer() #pragma region HEAD if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Young_M_Head_Ivory_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/Male/Young_M_Head_Ivory.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/Male/Young_M_Head_Ivory.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_T_NPC_F_Head_Eye_Honey_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/FeMale/T_NPC_F_Head_Eye_Honey.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/FeMale/T_NPC_F_Head_Eye_Honey.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_F_Head_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/FeMale/F_Head.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/FeMale/F_Head.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_Head_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/Male/M_Head.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/Male/M_Head.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; #pragma endregion @@ -854,44 +854,44 @@ HRESULT CLoader::Loading_For_ObjectViewer() #pragma region HAIR if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_Hair1_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Male/M_Hair1/M_Hair1.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Male/M_Hair1/M_Hair1.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_Hair2_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Male/M_Hair2/M_Hair2.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Male/M_Hair2/M_Hair2.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_Hair3_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Male/M_Hair3/M_Hair3.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Male/M_Hair3/M_Hair3.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_F_Hair1_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/FeMale/F_Hair1/F_Hair1.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/FeMale/F_Hair1/F_Hair1.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; #pragma endregion #pragma region MONSTER 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/Monster/TombProtector/TombProtector.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/TombProtector/TombProtector.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * 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/Monster/Troll/Troll.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Troll/Troll.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Dragon_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Dragon/Dragon.bin", XMMatrixScaling(0.0005f, 0.0005f, 0.0005f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Dragon/Dragon.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; #pragma endregion if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Npc_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Broom_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) return E_FAIL; /* For.Prototype_Component_SkyboxModel */ diff --git a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h index f1ec917af..3abe16175 100644 --- a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h +++ b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "Level.h" @@ -19,7 +19,7 @@ class CLevel_ObjectViewer final : public CLevel virtual void Update(_float fTimeDelta) override; virtual HRESULT Render() override; private: - /* ÀÌ ·¹º§¿¡¼­ ¾²±âÀ§ÇÑ °´Ã¼µéÀ» »ý¼ºÇÑ´Ù. */ + /* ì�´ 레벨ì—�서 쓰기위한 ê°�체들ì�„ ìƒ�성한다. */ virtual HRESULT Initialize() override; HRESULT Ready_Layer_Camera(const _wstring& strLayerTag); HRESULT Ready_Layer_Light(); @@ -38,7 +38,7 @@ class CLevel_ObjectViewer final : public CLevel void Parts_Object_Setting(); void Save_LayerName(const _char* Layer); _wchar* Save_ModelName(const _char* Category); - void Load_KeyFrame(); + void Load_KeyFrame(const _char* Name); private: @@ -55,10 +55,10 @@ class CLevel_ObjectViewer final : public CLevel _wchar m_wszName[MAX_PATH]; _wchar m_wszLayer[MAX_PATH]; _wchar m_wszPreLayer[MAX_PATH]; - + _char m_DummyPath[MAX_PATH]; public: static CLevel_ObjectViewer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID); virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END