diff --git a/.gitignore b/.gitignore index 8ce467e13..5484ffc9a 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,7 @@ x64/ Release/ Debug/ Inc/ +enc_temp_folder/ Jusin154_Team3D/Client/Bin/Resources/ # Imgui 임시 파일 diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index fb7b8052c..b2b060724 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -179,6 +179,7 @@ call Update_Resources.bat + @@ -203,8 +204,8 @@ call Update_Resources.bat - - + + @@ -461,7 +462,10 @@ call Update_Resources.bat + + + @@ -484,8 +488,8 @@ call Update_Resources.bat - - + + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 9cc25103f..13af0b1dc 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -809,11 +809,11 @@ 04.Mechanic\State\Focus\Fear - - 02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_Bbooster_Slot + + 02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_Booster_Slot - - 02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_BboosterBar + + 02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_BoosterBar 02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_HpBar @@ -862,6 +862,9 @@ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadImpact + + + 02.GameObjects\NPC\Hostile\Human_Duelist @@ -1740,12 +1743,6 @@ {5bf233fa-6f9c-40d5-85c6-adbc7fcf7d28} - - {9c357e12-18b3-461e-b74c-76f85280796f} - - - {8b69e309-b90b-47f6-8f2d-3dd778b468fe} - {d3ad8db7-ff00-498d-ba50-aa4c38a56d4a} @@ -1773,6 +1770,9 @@ {88b62177-01fc-424d-a444-4fb5fd4b2db5} + + {9bd903be-dc05-4dd6-9abc-d676be0b7f7e} + {9cf44fef-f3be-409e-b530-6aef90db5c0c} @@ -1781,6 +1781,12 @@ {eb8e52f5-0283-4acf-8fbb-0e734b7580e9} + + + {9c357e12-18b3-461e-b74c-76f85280796f} + + + {8b69e309-b90b-47f6-8f2d-3dd778b468fe} {a7aeb7ef-a180-49ba-81f6-c8a47dcb941d} @@ -2547,11 +2553,11 @@ 04.Mechanic\State\Focus\Fear - - 02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_Bbooster_Slot + + 02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_Booster_Slot - - 02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_BboosterBar + + 02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_BoosterBar 02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_HpBar @@ -2583,6 +2589,15 @@ 02.GameObjects\NPC\Ally\RandomNpc + + 02.GameObjects\NPC\Hostile\Human_Duelist + + + 02.GameObjects\NPC\Hostile\Human_Duelist + + + 02.GameObjects\Player\Robe + 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Rush diff --git a/Jusin154_Team3D/Client/Private/Action_Panel.cpp b/Jusin154_Team3D/Client/Private/Action_Panel.cpp index 08df3b239..cb63d3bbe 100644 --- a/Jusin154_Team3D/Client/Private/Action_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Action_Panel.cpp @@ -296,82 +296,82 @@ HRESULT CAction_Panel::Ready_Components(void* pArg) HRESULT CAction_Panel::Ready_Element(void* pArg) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pSpell_Slot)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pSpell_Slot)))) { return E_FAIL; } Add_Element(TEXT("Spell_Slot"), m_pSpell_Slot); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Overlay1)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Overlay1)))) { return E_FAIL; } Add_Element(TEXT("Spell_Overlay1"), m_pSpell_Overlay1); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Overlay2)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Overlay2)))) { return E_FAIL; } static_cast(m_pSpell_Overlay2)->MoveX(481.f); Add_Element(TEXT("Spell_Overlay2"), m_pSpell_Overlay2); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Overlay3)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Overlay3)))) { return E_FAIL; } static_cast(m_pSpell_Overlay3)->MoveX(582.f); Add_Element(TEXT("Spell_Overlay3"), m_pSpell_Overlay3); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Overlay4)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Overlay4)))) { return E_FAIL; } static_cast(m_pSpell_Overlay4)->MoveX(683.f); Add_Element(TEXT("Spell_Overlay4"), m_pSpell_Overlay4); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSlot_Number)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSlot_Number)))) { return E_FAIL; } Add_Element(TEXT("Slot_Number"), m_pSlot_Number); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pHpBarBG)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pHpBarBG)))) { return E_FAIL; } Add_Element(TEXT("HpBarBG"), m_pHpBarBG); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter1)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter1)))) { return E_FAIL; } - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter2)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter2)))) { return E_FAIL; } - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter3)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter3)))) { return E_FAIL; } - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter4)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter4)))) { return E_FAIL; } - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLastMagic_Meter)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLastMagic_Meter)))) { return E_FAIL; } - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Icon)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Icon)))) { return E_FAIL; } Add_Element(TEXT("Magic_Icon"), m_pMagic_Icon); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_UI)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_UI)))) { return E_FAIL; } Add_Element(TEXT("Spell_UI"), m_pSpell_UI); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pPotion)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pPotion)))) { return E_FAIL; } Add_Element(TEXT("Potion"), m_pPotion); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Item)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Item)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/Avadakedavra.cpp b/Jusin154_Team3D/Client/Private/Avadakedavra.cpp index 6296b3046..2f1f2e6ca 100644 --- a/Jusin154_Team3D/Client/Private/Avadakedavra.cpp +++ b/Jusin154_Team3D/Client/Private/Avadakedavra.cpp @@ -64,9 +64,6 @@ void CAvadakedavra::Update(_float fTimeDelta) Update_Event(fTimeDelta); - - - } void CAvadakedavra::Late_Update(_float fTimeDelta) @@ -90,7 +87,6 @@ void CAvadakedavra::Late_Update(_float fTimeDelta) OnCollision(this, &CollisionInfo); } - } HRESULT CAvadakedavra::Pre_Setting(CGameObject* pObject, void* pArg) diff --git a/Jusin154_Team3D/Client/Private/Broom.cpp b/Jusin154_Team3D/Client/Private/Broom.cpp index b14ed9223..bf5b7331b 100644 --- a/Jusin154_Team3D/Client/Private/Broom.cpp +++ b/Jusin154_Team3D/Client/Private/Broom.cpp @@ -53,7 +53,7 @@ HRESULT CBroom::Initialize(void* pArg) m_pFSM->Change_State(FSMSTATE::IDLE); } - m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f,-100.f, 0.f, 1.f)); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, -100.f, 0.f, 1.f)); m_pParentUnit = dynamic_cast(m_pOwner); @@ -87,6 +87,7 @@ void CBroom::Update(_float fTimeDelta) if (!m_pParentUnit->IsAI()) { PlayerInput(fTimeDelta); + m_pInfoInstance->Set_Broom_Booster_Timer(m_fTurboBoost); } else { m_fAITime += fTimeDelta; @@ -102,9 +103,9 @@ void CBroom::Update(_float fTimeDelta) m_bHoverToggle = true; m_fSpeed = 0.f; - if(m_pWindEffect != nullptr) + if (m_pWindEffect != nullptr) { - if(m_pWindEffect->Get_Visible() == true) // 전 프레임에 트루였다면 + if (m_pWindEffect->Get_Visible() == true) // 전 프레임에 트루였다면 { m_pWindEffect->Set_Visible(false); m_pWindEffect->Get_Effect_Info()->fSoftMask = 1.f; @@ -162,7 +163,7 @@ void CBroom::Late_Update(_float fTimeDelta) HRESULT CBroom::Render() { - if (!m_pModelCom){ + if (!m_pModelCom) { return S_OK; } @@ -326,6 +327,7 @@ void CBroom::PlayerInput(_float fTimeDelta) m_fTurboBoost = 0.f; } m_Input.bTurbo = true; + m_pInfoInstance->Event_CallBack(TEXT("BroomBooster"), &m_Input.bTurbo); } else { m_Input.bTurbo = false; @@ -343,6 +345,7 @@ void CBroom::PlayerInput(_float fTimeDelta) } } m_Input.bTurbo = false; + m_pInfoInstance->Event_CallBack(TEXT("BroomBooster"), &m_Input.bTurbo); } m_bTurbo = m_Input.bTurbo; diff --git a/Jusin154_Team3D/Client/Private/Broom_Panel.cpp b/Jusin154_Team3D/Client/Private/Broom_Panel.cpp index 938ac1392..18370b3da 100644 --- a/Jusin154_Team3D/Client/Private/Broom_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Broom_Panel.cpp @@ -142,43 +142,43 @@ HRESULT CBroom_Panel::Ready_Components(void* pArg) HRESULT CBroom_Panel::Ready_Element(void* pArg) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Flag)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Flag)))) { return E_FAIL; } Add_Element(TEXT("Broom_Flag"), m_pBroom_Flag); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Circle)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Circle)))) { return E_FAIL; } Add_Element(TEXT("Broom_Circle"), m_pBroom_Circle); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Scoreboard)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Scoreboard)))) { return E_FAIL; } Add_Element(TEXT("Broom_Scoreboard"), m_pBroom_Scoreboard); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Finish)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Finish)))) { return E_FAIL; } Add_Element(TEXT("Broom_Fiish"), m_pBroom_Finish); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Record)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Record)))) { return E_FAIL; } Add_Element(TEXT("Broom_Record"), m_pBroom_Record); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Exit)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Exit)))) { return E_FAIL; } Add_Element(TEXT("Broom_Exit"), m_pBroom_Exit); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Trophy)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Trophy)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp index 02f2a30a1..a93dc7f28 100644 --- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp +++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp @@ -332,6 +332,11 @@ void CCamPosition_Shoulder::Set_CameraShake(_float fXShock, _float fYShock) m_vAccRealDegrees.x = fXShock; m_vAccRealDegrees.y = fYShock; } +void CCamPosition_Shoulder::Set_CameraAnim(_uint iIndex) +{ + m_bPlayAnim = true; + m_pModelCom->Set_AnimationIndex(iIndex,false); +} _vector CCamPosition_Shoulder::Get_ShoulderGlobalPos() { // Right/Left 숄더를 로컬 X 부호로 결정 diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp index e32387fbb..f71bc98f4 100644 --- a/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp +++ b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp @@ -11,7 +11,7 @@ CDialogue_Data::CDialogue_Data() HRESULT CDialogue_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex) { - Load_SpellInfo("../Bin/Resources/Data/UI/Dialogue/Dialogue.xml"); + Load_SpellInfo("../Bin/Resources/Data/Dialogue/Dialogue.xml"); return S_OK; } @@ -33,6 +33,9 @@ HRESULT CDialogue_Data::Load_SpellInfo(const _char* pFilePath) while (pDialogue) { NpcDialogue npc{}; + const char* NpcName = pDialogue->Attribute("NpcName"); + if (pDialogue) npc.pNpcName = CMyTools::ToWstring(NpcName); + pDialogue->QueryIntAttribute("NpcID", &npc.iNpcID); tinyxml2::XMLElement* pLine = pDialogue->FirstChildElement("Line"); @@ -68,19 +71,25 @@ HRESULT CDialogue_Data::Load_SpellInfo(const _char* pFilePath) pChoice = pChoice->NextSiblingElement("Choice"); } - npc.Info.push_back(line); + npc.Info.emplace(line.iLineID, line); pLine = pLine->NextSiblingElement("Line"); } - m_DialogueInfo.push_back(npc); + m_DialogueInfo.emplace(npc.pNpcName, npc); pDialogue = pDialogue->NextSiblingElement("Dialogue"); } return S_OK; } -const NPCDIALOGUEINFO& CDialogue_Data::Get_Info(_uint DialogueID) const +const NPCDIALOGUEINFO& CDialogue_Data::Get_Info(_wstring NpcName) const { - return m_DialogueInfo[DialogueID]; + auto iter = m_DialogueInfo.find(NpcName); + if (iter == m_DialogueInfo.end()) + { + return Dummy; + } + + return iter->second; } CDialogue_Data* CDialogue_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp index 0099970ac..6ce9e85f9 100644 --- a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp +++ b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp @@ -5,154 +5,184 @@ #include "Dialogue.h" CDialogue_Font::CDialogue_Font(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) - :CGameObject(pDevice, pContext) + :CGameObject(pDevice, pContext) { } CDialogue_Font::CDialogue_Font(const CDialogue_Font& rhs) - :CGameObject(rhs), - m_pInfoInstance(CInfoInstance::GetInstance()) + :CGameObject(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) { } HRESULT CDialogue_Font::Initialize_Prototype() { - return S_OK; + return S_OK; } HRESULT CDialogue_Font::Initialize(void* pArg) { - m_pInfoInstance->Add_Event(TEXT("Dialogue"), [this](void* p) {this->Add_Text(p); }); + m_pInfoInstance->Add_Event(TEXT("Dialogue"), [this](void* p) {this->Add_Text(p); }); - for (_int i = 0; i < 5; ++i) - { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pDialogue)))) { - return E_FAIL; - } + m_pInfoInstance->Add_Event(TEXT("NpcInteract"), [this](void* p) {this->NpcInteract(*reinterpret_cast<_bool*>(p)); }); + m_pInfoInstance->Add_Event(TEXT("NPCInteractionOn"), [this](void* p) {this->NpcInfo(p); }); - m_pDialogue->Visible(true); - m_DialoguInfo.push_back(m_pDialogue); - } + for (_int i = 0; i < 5; ++i) + { + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pDialogue)))) { + return E_FAIL; + } - return S_OK; + m_pDialogue->Visible(true); + m_DialoguInfo.push_back(m_pDialogue); + } + + return S_OK; } - void CDialogue_Font::Priority_Update(_float fTimeDelta) { } void CDialogue_Font::Update(_float fTimeDelta) { - if (!m_pCurrentDialogue.empty()) - { - for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end();) - { - if ((*it)->Get_Hover() == false) - { - (*it)->Visible(false); - m_DialoguInfo.push_back((*it)); - it = m_pCurrentDialogue.erase(it); - } - else - { - it++; - } - } - } + if (!m_pCurrentDialogue.empty()) + { + for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end();) + { + if ((*it)->Get_Hover() == false) + { + (*it)->Visible(false); + m_DialoguInfo.push_back((*it)); + it = m_pCurrentDialogue.erase(it); + } + else + { + it++; + } + } + } + + if (m_bNpcInteract != m_bCurrentInteract) + { + m_bCurrentInteract = m_bNpcInteract; + m_pInfoInstance->Get_Dialogue(m_pNpcName); + } + + if (m_bNpcInteract == false) + { + if (m_bCurrentInteract == true) + m_bCurrentInteract = false; + } + } void CDialogue_Font::Late_Update(_float fTimeDelta) { - if (!m_DialoguInfo.empty()) - { - m_pGameInstance->Add_RenderGroup(RENDER::UI_OVERLAY, this); - } + if (!m_DialoguInfo.empty()) + { + m_pGameInstance->Add_RenderGroup(RENDER::UI_OVERLAY, this); + } } HRESULT CDialogue_Font::Render() { - if (!m_pCurrentDialogue.empty()) - { - for (auto it : m_pCurrentDialogue) - { - it->Render(); - } - } - return S_OK; + if (!m_pCurrentDialogue.empty()) + { + for (auto it : m_pCurrentDialogue) + { + it->Render(); + } + } + + + + return S_OK; } _vector CDialogue_Font::Get_WorldPostion() { - return _vector(); + return _vector(); } HRESULT CDialogue_Font::Bind_ShaderResources() { - return S_OK; + return S_OK; } HRESULT CDialogue_Font::Ready_Components(void* pArg) { - return S_OK; + return S_OK; } void CDialogue_Font::Add_Text(void* pArg) { - if (m_DialoguInfo.empty() == true) - return; + if (m_DialoguInfo.empty() == true) + return; - DIALOGUEINFO pInfo = *reinterpret_cast(pArg); - - CDialogue* Dialogue = m_DialoguInfo.back(); - m_DialoguInfo.pop_back(); + DIALOGUEINFO pInfo = *reinterpret_cast(pArg); - for (auto& it : m_pCurrentDialogue) - { - it->Up(); - } - - pInfo.fTime = 2.5f; - Dialogue->SizeUpdate(pInfo.pName, pInfo.pText); - Dialogue->Visible(true); - Dialogue->Set_Time(pInfo.fTime); + CDialogue* Dialogue = m_DialoguInfo.back(); + m_DialoguInfo.pop_back(); - m_pCurrentDialogue.push_front(Dialogue); + for (auto& it : m_pCurrentDialogue) + { + it->Up(); + } + + pInfo.fTime = 2.5f; + Dialogue->SizeUpdate(pInfo.pName, pInfo.pText); + Dialogue->Visible(true); + Dialogue->Set_Time(pInfo.fTime); + + m_pCurrentDialogue.push_front(Dialogue); +} + +void CDialogue_Font::NpcInfo(void* pArg) +{ + NPCINTERACTIONINFO* Info = reinterpret_cast(pArg); + m_pNpcName = Info->pName; + m_iTextID = Info->iTextID; +} + +void CDialogue_Font::NpcInteract(_bool bInteract) +{ + m_bNpcInteract = bInteract; } CDialogue_Font* CDialogue_Font::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { - CDialogue_Font* pInstance = new CDialogue_Font(pDevice, pContext); + CDialogue_Font* pInstance = new CDialogue_Font(pDevice, pContext); - if (FAILED(pInstance->Initialize_Prototype())) - { - MSG_BOX("Failed to Created : CDialogue_Font"); - SAFE_RELEASE(pInstance); - } + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CDialogue_Font"); + SAFE_RELEASE(pInstance); + } - return pInstance; + return pInstance; } CGameObject* CDialogue_Font::Clone(void* pArg, CGameObject* pOwner) { - CDialogue_Font* pInstance = new CDialogue_Font(*this); - pInstance->m_pOwner = pOwner; - if (FAILED(pInstance->Initialize(pArg))) - { - MSG_BOX("Failed to Cloned : CDialogue_Font"); - SAFE_RELEASE(pInstance); - } + CDialogue_Font* pInstance = new CDialogue_Font(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CDialogue_Font"); + SAFE_RELEASE(pInstance); + } - return pInstance; + return pInstance; } void CDialogue_Font::Free() { - __super::Free(); + __super::Free(); - m_DialoguInfo.clear(); + m_DialoguInfo.clear(); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp index 7e4ff00e1..528945a31 100644 --- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp +++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp @@ -865,6 +865,8 @@ ON_COLLISION_INFO CEffect_Container::MonsterSweepTarget(_fvector StartPos, _fvec { PHYSX_USERDATA* pUserData = static_cast(pActor->userData); tagCollInfo.pObject = pUserData->pOwner; + tagCollInfo.eHitType = ENUM_CLASS(HIT_TYPE::HIT_PROJECTILE); + tagCollInfo.fDamage = 10.f; switch (pUserData->eKind) { diff --git a/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp b/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp index 34b99e202..abae5f8ce 100644 --- a/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp @@ -137,19 +137,19 @@ HRESULT CEnemy_Panel::Ready_Components(void* pArg) HRESULT CEnemy_Panel::Ready_Element(void* pArg) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pEnemy_HpBar)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pEnemy_HpBar)))) { return E_FAIL; } Add_Element(TEXT("Enemy_HpBar"), m_pEnemy_HpBar); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pEnemy_Info)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pEnemy_Info)))) { return E_FAIL; } Add_Element(TEXT("Enemy_Info"), m_pEnemy_Info); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pBoss_HpBar)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pBoss_HpBar)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp b/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp index fc6dbdfe1..3c74f95c1 100644 --- a/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp +++ b/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp @@ -111,43 +111,43 @@ HRESULT CGamePlay_Canvas::Ready_Components(void* pArg) HRESULT CGamePlay_Canvas::Ready_Panel(void* pArg) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLoading_Panel)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLoading_Panel)))) { return E_FAIL; } Add_Panel(TEXT("LoadingPanel"), m_pLoading_Panel); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMinimap_Panel)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMinimap_Panel)))) { return E_FAIL; } Add_Panel(TEXT("MinimapPanel"), m_pMinimap_Panel); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMission_Panel)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMission_Panel)))) { return E_FAIL; } Add_Panel(TEXT("MissionPanel"), m_pMission_Panel); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pAction_Panel)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pAction_Panel)))) { return E_FAIL; } Add_Panel(TEXT("ActionPanel"), m_pAction_Panel); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pEnemy_Panel)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pEnemy_Panel)))) { return E_FAIL; } Add_Panel(TEXT("Enemy_Panel"), m_pEnemy_Panel); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pBroom_Panel)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pBroom_Panel)))) { return E_FAIL; } Add_Panel(TEXT("Broom_Panel"), m_pBroom_Panel); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pRide_Panel)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pRide_Panel)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp index bec186621..8253d8675 100644 --- a/Jusin154_Team3D/Client/Private/Goblin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin.cpp @@ -81,6 +81,9 @@ HRESULT CGoblin::Initialize(void* pArg) if (pSender == this) return; + if (isDead()) + return; + m_pFSM->Change_State(FSMSTATE::FEAR); }); diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp index 108a3de50..445812f3d 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp @@ -72,6 +72,9 @@ HRESULT CGoblin_Assassin::Initialize(void* pArg) if (pSender == this) return; + if (isDead()) + return; + m_pFSM->Change_State(FSMSTATE::FEAR); }); @@ -342,8 +345,6 @@ HRESULT CGoblin_Assassin::Render_Shadow(SHADOW eType) HRESULT CGoblin_Assassin::Render_MotionTrail(ID3D11ShaderResourceView* pSRV) { - ID3D11RasterizerState* pPrevRS = nullptr; - m_pContext->RSGetState(&pPrevRS); _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); for (_uint i = 0; i < iNumMeshes; i++) @@ -360,16 +361,12 @@ HRESULT CGoblin_Assassin::Render_MotionTrail(ID3D11ShaderResourceView* pSRV) if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) return E_FAIL; - m_pContext->RSSetState(m_pRS_Wireframe); - m_pContext->VSSetShaderResources(26, 1, &pSRV); if (FAILED(m_pModelCom->Render(i))) return E_FAIL; } - m_pContext->RSSetState(pPrevRS); - if (pPrevRS) SAFE_RELEASE(pPrevRS); return S_OK; } @@ -550,15 +547,6 @@ HRESULT CGoblin_Assassin::Ready_Components() } } - D3D11_RASTERIZER_DESC rsDesc{}; - rsDesc.FillMode = D3D11_FILL_WIREFRAME; - rsDesc.CullMode = D3D11_CULL_NONE; - rsDesc.DepthClipEnable = TRUE; - - HRESULT hr = m_pDevice->CreateRasterizerState(&rsDesc, &m_pRS_Wireframe); - if (FAILED(hr)) - return E_FAIL; - return S_OK; @@ -714,7 +702,6 @@ void CGoblin_Assassin::Free() SAFE_RELEASE(m_pGoblin_Particle); SAFE_RELEASE(m_pGoblin_Particle2); SAFE_RELEASE(m_pEffectPool); - SAFE_RELEASE(m_pRS_Wireframe); Safe_Delete(m_pCallBack_Behavior); Safe_Delete(m_pCallBack_HitReport); diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp index d24d871e8..5bef767e6 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp @@ -241,8 +241,30 @@ void CGoblin_Assassin::Behavior_SlashEnter() pair<_uint, _bool> pairAnimInfo = {}; m_pFSM->Enable_State(FSMSTATE::SLASH); + _float fDisAmount = {1.f}; + + if (m_fTargetDistance <= 4.f) + { + fDisAmount = 1.f; + } + else if (m_fTargetDistance <= 7.f) + { + fDisAmount = 1.5f; + } + else if (m_fTargetDistance <= 10.f) + { + fDisAmount = 2.f; + } + else if (m_fTargetDistance <= 13.f) + { + fDisAmount = 2.5f; + } + else if (m_fTargetDistance <= 16.f) + { + fDisAmount = 3.f; + } pairAnimInfo = m_Animation[STATEANIM::SLASH]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.5f,false,1.3f); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, fDisAmount,false,1.3f); Add_Event(pairAnimInfo.first, [this]() { @@ -304,23 +326,20 @@ void CGoblin_Assassin::Behavior_DashEnter() m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.f,false); m_fSkillCoolTime[ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::DASH)] = m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::DASH)]; - _float2 Dir8[5] = + _float2 Dir8[8] = { { 0, 1 }, { 1, 1 }, { 1, 0 }, - { -1, 0 }, { -1, 1 }, + { -1, 0 }, { -1, 1 }, { 0, -1 }, + { 1, -1 }, { -1, -1 } }; - _int iIndex = m_pGameInstance->Real_Random_Int(0, 4); + _int iIndex = m_pGameInstance->Real_Random_Int(0, 7); _float2 dir = Dir8[iIndex]; _vector vRight = m_pTransformCom->Get_State(STATE::RIGHT); _vector vLook = m_pTransformCom->Get_State(STATE::LOOK); - _vector vDash = - XMVector3Normalize( - vRight * dir.x + - vLook * dir.y - ); + _vector vDash = XMVector3Normalize(vRight * dir.x + vLook * dir.y); XMStoreFloat4(&m_vDashDir, vDash); } diff --git a/Jusin154_Team3D/Client/Private/Goblin_Dagger.cpp b/Jusin154_Team3D/Client/Private/Goblin_Dagger.cpp index fa04c9144..df3b190cc 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Dagger.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Dagger.cpp @@ -204,23 +204,41 @@ void CGoblin_Dagger::Dagger_Hit() PHYSX_USERDATA* pUserData = static_cast(pActor->userData); tagCollInfo.pObject = pUserData->pOwner; - switch (PXOBJECT(pUserData->iSubKind)) + tagCollInfo.eHitType = ENUM_CLASS(HIT_TYPE::HIT_PROJECTILE); + tagCollInfo.fDamage = 10.f; + + switch (pUserData->eKind) { - case Engine::PXOBJECT::PLAYER: - { - if (false == m_bVisible) { - break; + case PHYSX_KIND::BODY_DYNAMIC: + switch (PXOBJECT(pUserData->iSubKind)) + { + case PXOBJECT::SKILL_PROTEGO: + { + if (false == m_bVisible) { + break; + } + m_bVisible = false; + pUserData->pOwner->OnCollision(this, &tagCollInfo); + } + break; + } + break; + case PHYSX_KIND::CCTActor: + { + switch (PXOBJECT(pUserData->iSubKind)) + { + case Engine::PXOBJECT::PLAYER: + { + if (false == m_bVisible) { + break; + } + m_bVisible = false; + pUserData->pOwner->OnCollision(this, &tagCollInfo); + } + break; + } - m_bVisible = false; - CStat* pStat = pUserData->pCharacter->Get_Owner()->Get_Component(); - pStat->Get_Damage(10.f); - pUserData->pOwner->OnCollision(this, &tagCollInfo); } - break; - case Engine::PXOBJECT::ALLY_HITBOX: - break; - default: - break; } diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp index eab5290b1..fe0a14f9a 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp @@ -77,6 +77,9 @@ HRESULT CGoblin_Mage::Initialize(void* pArg) if (pSender == this) return; + if (isDead()) + return; + m_pFSM->Change_State(FSMSTATE::FEAR); }); diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp new file mode 100644 index 000000000..995911400 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp @@ -0,0 +1,605 @@ +#include "pch.h" +#include "Human_Duelist.h" + +#include "CallBack_Playable_Behavior.h" +#include "CallBack_Playable_HitReport.h" +#include "Character_Controller.h" +#include "EffectPool.h" +#include "GameInstance.h" +#include "InfoInstance.h" +#include "Layer.h" +#include "Wand.h" +#include "Mesh.h" + +CHuman_Duelist::CHuman_Duelist(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CMonster(pDevice, pContext) +{ +} + +CHuman_Duelist::CHuman_Duelist(const CHuman_Duelist& Prototype) + : CMonster(Prototype) +{ +} + +HRESULT CHuman_Duelist::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CHuman_Duelist::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components())) { + return E_FAIL; + } + + if (FAILED(Ready_Parts())) { + return E_FAIL; + } + + Add_FSM(); + + Load_AnimXML("../Bin/Resources/Data/AnimList/Human_Duelist.xml"); + + { + CFSM::FSM_DESC FSMDesc{}; + FSMDesc.pStates = &m_States; + FSMDesc.pStateMask = &m_iStateMask; + + m_pFSM->Bind_States(FSMDesc); + m_pFSM->Change_State(FSMSTATE::IDLE); + } + + m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody); + m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody); + + m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); + SAFE_ADDREF(m_pEffectPool); + + m_pInfoInstance->Regist_ActiveMonster(this); + { + PLAYERDESC* pDesc = static_cast(pArg); + _vector vPos = XMLoadFloat4(&pDesc->vPos); + _vector vRotQ = XMLoadFloat4(&pDesc->vRotQ); + m_pCharacter_Controller->Set_Position(vPos); + m_pTransformCom->Set_State(STATE::POSITION, vPos); + m_pTransformCom->Rotation(vRotQ); + } + + m_bAI = true; + + m_pModelCom->Set_DisableRootMotionScale(true); + + return S_OK; +} + +void CHuman_Duelist::Priority_Update(_float fTimeDelta) +{ + SetGravity(); + m_pTransformCom->RewindMomentum(); + + __super::Priority_Update(fTimeDelta); + +} + +void CHuman_Duelist::Update(_float fTimeDelta) +{ + m_pFSM->Update_State(fTimeDelta); + + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); + + Play_Event(); + + __super::Update(fTimeDelta); +#ifdef _DEBUG + Describe_Entity(); +#endif // _DEBUG + + { // 세트 + m_pCallBack_HitReport->BeginFrame(); + m_pCharacter_Controller->Move(fTimeDelta); + m_pCallBack_HitReport->Set_CurrentSlop(); + } + + for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++) + m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta); + + m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION)); +} + +void CHuman_Duelist::Late_Update(_float fTimeDelta) +{ + m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition()); + + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); +#ifdef _DEBUG + m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this); +#endif // _DEBUG + + Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())); + + __super::Late_Update(fTimeDelta); + + if (true == m_bLookAt) { + m_pTransformCom->LookAt_Horizontal_Lerp(XMLoadFloat4(&m_vTargetPos), fTimeDelta, 3.f); + } +} + + +HRESULT CHuman_Duelist::Render() +{ + if (!m_bVisible) { + return S_OK; + } + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + _float fIntensity = 0.f; + m_pShaderCom->Bind_RawValue("g_fMBIntensity", &fIntensity, sizeof(_float)); + RENDER eType = m_pGameInstance->Get_CurrentRenderPass(); + if (RENDER::NONBLEND == eType) { + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrices( + "g_OffsetMatrix", m_pModelCom->Get_OffsetMatrix(i).data(), + (_int)m_pModelCom->Get_OffsetMatrix(i).size()))) + { + return E_FAIL; + } + if (FAILED(Bind_ShaderParameters(i))) { + return E_FAIL; + } + if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) { + return E_FAIL; + } + + m_pModelCom->Bind_OutPut_SRV_VS(26, 0); + m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } +#ifdef _DEBUG + //m_pCharacter_Controller->Render(); +#endif // _DEBUG + + } +#ifdef _DEBUG + if (RENDER::NONLIGHT == eType) { + //m_pRigidBody->Render(); + } +#endif + + return S_OK; +} + +HRESULT CHuman_Duelist::Render_Shadow(SHADOW eType) +{ + if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ViewMatrix", D3DTS::VIEW, eType))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ, eType))) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pShaderCom->Bind_Matrices("g_OffsetMatrix", + m_pModelCom->Get_OffsetMatrix(i).data(), + (_int)m_pModelCom->Get_OffsetMatrix(i).size()))) + { + return E_FAIL; + } + if (FAILED(Bind_ShaderParameters(i))) { + return E_FAIL; + } + if (i == ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)) { + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW_LEGACY)))) { + return E_FAIL; + } + + } + else { + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) { + return E_FAIL; + } + } + m_pModelCom->Bind_OutPut_SRV_VS(26, 0); + m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + return S_OK; +} +void CHuman_Duelist::OnCollision(CGameObject* pOther, void* pDesc) +{ + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + if (CollisionDesc) { + Check_HitAngle(XMLoadFloat4(&CollisionDesc->vHitDir)); + m_eHitType = CollisionDesc->eHitType; + m_pStat->Get_Damage(CollisionDesc->fDamage); + } + else { + m_fHitDegree = -1.f; + } + + if (m_eHitType != ENUM_CLASS(HIT_TYPE::HIT_NONE)) + m_pFSM->Change_State(FSMSTATE::HIT); +} +void CHuman_Duelist::OnHit(CGameObject* pOther, CGameObject* pCaller) +{ +} + + +HRESULT CHuman_Duelist::Ready_Components() +{ + CTransform::TRANSFORM_DESC Desc = {}; + + Desc.fSpeedPerSec = 10.f; + Desc.fRotationPerSec = XMConvertToRadians(180.0f); + Desc.fRadius = 10.f; + + if (FAILED(Add_Component(g_iStaticLevel, &m_pTransformCom, &Desc))) { + return E_FAIL; + } + + if (FAILED(Add_Component(g_iStaticLevel, &m_pFSM))) { + return E_FAIL; + } + + m_strModelPrototypeTag = TEXT("Prototype_Component_M_Student_Model"); + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag, + reinterpret_cast(&m_pModelCom)))) { + return E_FAIL; + } + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM, + reinterpret_cast(&m_pShaderCom)))) { + return E_FAIL; + } + LightDesc.eType = LIGHT::POINT; + LightDesc.fRange = 10.f; + LightDesc.iLevel = NEXT_LEVEL; + LightDesc.pPosition = m_pTransformCom->Get_StatePtr(STATE::POSITION); + LightDesc.vAmbient = CMyTools::ColorRGB_A_HEXtoFLOAT4(0xffffff, 1.f); + LightDesc.vDiffuse = CMyTools::ColorRGB_A_HEXtoFLOAT4(0xffffff, 1.f); + LightDesc.vSpecular = CMyTools::ColorRGB_A_HEXtoFLOAT4(0xffffff, 1.f); + if (FAILED(Add_Component(g_iStaticLevel, &m_pLightCom, &LightDesc))) { + return E_FAIL; + } + + + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_M_STUDENT"), (CComponent**)&m_pStat))) { + return E_FAIL; + } + + { // CCT + CCharacter_Controller::Character_Controller_DESC Desc{}; + + Desc.iSubKind = ENUM_CLASS(PXOBJECT::PLAYER); + Desc.pTransform = m_pTransformCom; + Desc.eBodyType = ACTOR::CAPSULE; + Desc.fContactOffset = 0.001f; + Desc.fMaterial = { 1.2f, 1.0f, 0.0f }; + Desc.bAutoStepping = { false }; + Desc.fStepOffset = { 0.02f }; + Desc.fRadius = 0.5f; + Desc.fHeight = 0.6f; + Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Playable_HitReport::Create(); + Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_Playable_Behavior::Create(); + Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY; + Desc.fWalkableSlope = 45.f; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) { + return E_FAIL; + } + m_pCharacter_Controller->SetGravity(false); + } + + { // DO + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::PLAYER); + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) { + return E_FAIL; + } + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + } + + return S_OK; +} + +HRESULT CHuman_Duelist::Ready_Parts() +{ + CWand::WAND_DESC WandDesc{}; + WandDesc.pParentTransform = m_pTransformCom; + WandDesc.pSocketMatrices = m_pModelCom->Get_BoneMatrixPtr("SKT_RightHand"); + + if (FAILED(Add_PartObject("Wand", g_iStaticLevel, nullptr, &WandDesc))) + { + return E_FAIL; + } + + + return S_OK; +} + +HRESULT CHuman_Duelist::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + return S_OK; +} + +HRESULT CHuman_Duelist::Bind_ShaderParameters(_uint iMeshOrder) +{ + _bool bUseColorMixer = false; + + _uint iColorParam = { UINT_MAX }; + _float fMixerFactor = { FLT_MAX }; + _uint iColorMixerMethod = { 0 }; + + switch (PLAYER_MESH_ORDER(iMeshOrder)) + { + case PLAYER_MESH_ORDER::HAIR_MAIN: + case PLAYER_MESH_ORDER::HEAD_EYELASH: + case PLAYER_MESH_ORDER::HAIR_SUB: + bUseColorMixer = true; + iColorParam = 0x2E2E2E; + fMixerFactor = 0.9f; + iColorMixerMethod = 1; + break; + case PLAYER_MESH_ORDER::LOWER: + bUseColorMixer = true; + iColorParam = 0x292557; + fMixerFactor = 0.5f; + iColorMixerMethod = 1; + break; + case PLAYER_MESH_ORDER::SHOES: + bUseColorMixer = true; + iColorParam = 0x614242; + fMixerFactor = 0.5f; + iColorMixerMethod = 1; + break; + case PLAYER_MESH_ORDER::UPPER: + bUseColorMixer = true; + iColorParam = 0xBFAC29; + fMixerFactor = 0.658333f; + iColorMixerMethod = 1; + break; +#ifdef 기무리 + + case PLAYER_MESH_ORDER::ROBE_CLOTH: + { + CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)); + _uint MeshBoneCount = pMesh->Get_NumBone(); + + for (_uint i = 0; i < MeshBoneCount; ++i) + { + XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity()); + } + + _uint temp = 0; + vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)); + vector<_int> boneIndices = pMesh->Get_BoneIndices(); + + for (_uint i = 0; i < MeshBoneCount; ++i) + { + _uint global = boneIndices[i]; + if (global == 38) + continue; + if (globalMask[global] == 1) + { + SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++); + } + } + + GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f); + + if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) { + return E_FAIL; + } + + + if (FAILED(m_pShaderCom->Bind_Matrices( + "g_BoneMatrices", + SkinMatrices.data(), + (_int)SkinMatrices.size() + ))) + { + return E_FAIL; + } + } + break; +#endif // _DEBUG + + default: + break; + } + if (true == bUseColorMixer) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_iPackedBlendColor", &iColorParam, sizeof(_uint)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fMixerFactor", &fMixerFactor, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_iColorMixerMethod", &iColorMixerMethod, sizeof(_uint)))) { + return E_FAIL; + } + } + return S_OK; +} + + +void CHuman_Duelist::SetGravity() +{ + PSX::PxControllerCollisionFlags eCollisionFlags = m_pCharacter_Controller->Get_CollisionFlags(); + eCollisionFlags; + if (false == eCollisionFlags.isSet(PSX::PxControllerCollisionFlag::Enum::eCOLLISION_DOWN) + && false == eCollisionFlags.isSet(PSX::PxControllerCollisionFlag::Enum::eCOLLISION_SIDES)) { + if (false == m_pFSM->IsEnable(FSMSTATE::JUMP) && m_eHitType != ENUM_CLASS(HIT_TYPE::HIT_HEAVY)) { // 벽에 닿지 않았는데 점프 중이 아닐 땐 중력 on + m_pCharacter_Controller->SetGravity(true); + } + else { // 점프 중일 땐 off + m_pCharacter_Controller->SetGravity(false); + } + } + else { // 벽에 닿는중일 땐 항상 중력 off + m_pCharacter_Controller->SetGravity(false); + } +} + +_matrix CHuman_Duelist::Get_WandPos() +{ + CWand* pWand = Get_PartObject(); + + if (pWand == nullptr) + return _matrix(); + + return pWand->Get_WorldMatrix(); +} + +CHuman_Duelist* CHuman_Duelist::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CHuman_Duelist* pInstance = new CHuman_Duelist(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CHuman_Duelist"); + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +CGameObject* CHuman_Duelist::Clone(void* pArg, CGameObject* pOwner) +{ + CHuman_Duelist* pInstance = new CHuman_Duelist(*this); + + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CHuman_Duelist"); + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CHuman_Duelist::Free() +{ + __super::Free(); + + + if (nullptr != m_pInfoInstance) { + CInfoInstance* pInfo = m_pInfoInstance; + m_pInfoInstance = nullptr; + pInfo->Deregist_PlayerAlly(this); + } + + if (nullptr != m_pCallBack_Behavior) { + m_pCallBack_Behavior->Finalize(); + } + if (nullptr != m_pCallBack_HitReport) { + m_pCallBack_HitReport->Finalize(); + } + SAFE_RELEASE(m_pCharacter_Controller); + SAFE_RELEASE(m_pRigidBody); + SAFE_RELEASE(m_pLightCom); + SAFE_RELEASE(m_pStat); + Safe_Delete(m_pCallBack_Behavior); + Safe_Delete(m_pCallBack_HitReport); + SAFE_RELEASE(m_pEffectPool); +} +#ifdef _DEBUG + +void CHuman_Duelist::Describe_Entity() +{ + GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG); + GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); + if (GUI::CollapsingHeader("HUMAN_DUELIST_DESC")) { + if (true == GUI::Button("ShaderRefresh")) { + m_pShaderCom->Shader_Refresh(); + } + m_pCharacter_Controller->Describe_Entity(); + _float4 vMomentum = {}; + XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum()); + GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w); + _char label[256]; + for (auto& iter : m_KeyFrames) + { + sprintf_s(label, "%s %.2f", iter.first.c_str(), iter.second); + + GUI::Text(label); + } + + _float3 Pos; + XMStoreFloat3(&Pos, Get_WorldPostion()); + + float Pos3[3] = { Pos.x, Pos.y, Pos.z }; + GUI::DragFloat3("Pos", Pos3); + + + _float RotR, RotU, RotL; + RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT)); + RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP)); + RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK)); + + float Rot3[3] = { RotR, RotU,RotL }; + GUI::DragFloat3("Rot", Rot3); + + + string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex()); + GUI::Text(AnimList.c_str()); + + GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition()); + GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio()); + GUI::Text("AnimSpeed %.2f", m_pModelCom->Get_AnimSpeed()); + + GUI::Checkbox("Render", &m_bVisible); + + GUI::Text("%d", m_iStateMask); + GUI::Text("HP : %f, %f", m_pStat->Get_Stat().fCurrentHp, m_pStat->Get_Stat().fMaxHp); + GUI::SameLine(); if (GUI::Button("FULL")) { m_pStat->Set_Stat(ENUM_CLASS(STAT::CURRENTHP), m_pStat->Get_Stat().fMaxHp); } + + m_pLightCom->Describe_Entity(); + } + GUI::End(); +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp new file mode 100644 index 000000000..bc0454557 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp @@ -0,0 +1,287 @@ +#include "pch.h" +#include "Human_Duelist.h" + +#include "InfoInstance.h" + +#include "GameInstance.h" +#include "Wand.h" +#include "Character_Controller.h" +#include "CallBack_Playable_Behavior.h" +#include "CallBack_Playable_HitReport.h" + +#pragma region STATE +#include "State_Idle.h" +#include "State_Move.h" +#include "State_Combat.h" +#include "State_LightAttack.h" +#include "State_Spell.h" +#include "State_Shield.h" +#include "State_Hit.h" +#pragma endregion + +#include "EffectPool.h" + +void CHuman_Duelist::Behavior_IdleEnter() +{ + m_pFSM->Enable_State(FSMSTATE::IDLE); + pair<_uint, _bool> pairAnimInfo; + pairAnimInfo = m_Animation[STATEANIM::IDLE]; + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CHuman_Duelist::Behavior_IdleExitCheck(_float fTimeDelta) +{ + for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++) + { + if (m_fSkillCoolTime[i] == 0.f) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } + } + return S_OK; +} + +void CHuman_Duelist::Behavior_IdleExit() +{ + m_pFSM->Disable_State(FSMSTATE::IDLE); +} + +void CHuman_Duelist::Behavior_CombatEnter() +{ + m_pFSM->Enable_State(FSMSTATE::COMBAT); +} + +HRESULT CHuman_Duelist::Behavior_CombatExitCheck() +{ + if (m_fSkillCoolTime[ENUM_CLASS(SKILL::LEVIOSO)] <= 0.f) + { + m_pFSM->Change_State(FSMSTATE::SPELL); + return E_FAIL; + } + else if (m_fSkillCoolTime[ENUM_CLASS(SKILL::PROTEGO)] <= 0.f) + { + m_pFSM->Change_State(FSMSTATE::SHIELD); + return E_FAIL; + } + else if (m_fSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)] <= 0.f) + { + m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK); + return E_FAIL; + } + else { + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } + + return S_OK; +} + +void CHuman_Duelist::Behavior_CombatExit() +{ + m_pFSM->Disable_State(FSMSTATE::COMBAT); +} + +void CHuman_Duelist::Behavior_LightAttackEnter() +{ + pair<_uint, _bool> pairAnimInfo; + m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK); + _int iRand = m_pGameInstance->Real_Random_Int(0, 3); + switch (iRand) + { + case 0: + pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK]; + break; + case 1: + pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK2]; + break; + case 2: + pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK3]; + break; + case 3: + pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK4]; + break; + } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + + Add_Event(pairAnimInfo.first, + [this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject(), &iIndex); }, + 0.2f); + + Add_Event(pairAnimInfo.first, + [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject()); }, + 0.0f); + + m_fSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)] = m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)]; +} + +HRESULT CHuman_Duelist::Behavior_LightAttackExitCheck(_float fTimeDelta) +{ + if (m_pModelCom->IsFinishedAnim()) + { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } + return S_OK; +} + +void CHuman_Duelist::Behavior_LightAttackExit() +{ + m_pFSM->Disable_State(FSMSTATE::LIGHT_ATTACK); +} + +void CHuman_Duelist::Behavior_SpellEnter() +{ + m_pFSM->Enable_State(FSMSTATE::SPELL); + pair<_uint, _bool> pairAnimInfo; + pairAnimInfo = m_Animation[STATEANIM::SPELL]; + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + + Add_Event(pairAnimInfo.first, + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this); }, + 0.2f); + Add_Event(pairAnimInfo.first, + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject()); }, + 0.f); + + m_fSkillCoolTime[ENUM_CLASS(SKILL::LEVIOSO)] = m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::LEVIOSO)]; +} + +HRESULT CHuman_Duelist::Behavior_SpellExitCheck() +{ + if (m_pModelCom->IsFinishedAnim()) + { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } + return S_OK; +} + +void CHuman_Duelist::Behavior_SpellExit() +{ + m_pFSM->Disable_State(FSMSTATE::SPELL); +} + +void CHuman_Duelist::Behavior_ShieldEnter() +{ + m_pFSM->Enable_State(FSMSTATE::SHIELD); + + pair<_uint, _bool> pairAnimInfo; + pairAnimInfo = m_Animation[STATEANIM::SKILL]; + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + + Add_Event(pairAnimInfo.first, + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); }, + 0.1f); + + m_fSkillCoolTime[ENUM_CLASS(SKILL::PROTEGO)] = m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::PROTEGO)]; +} + +HRESULT CHuman_Duelist::Behavior_ShieldExitCheck() +{ + if (m_pModelCom->IsFinishedAnim()) + { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } + return S_OK; +} + +void CHuman_Duelist::Behavior_ShieldExit() +{ + m_pFSM->Disable_State(FSMSTATE::SHIELD); +} + +void CHuman_Duelist::Behavior_HitEnter() +{ + m_pFSM->Enable_State(FSMSTATE::HIT); +} + +HRESULT CHuman_Duelist::Behavior_HitExitCheck() +{ + return S_OK; +} + +void CHuman_Duelist::Behavior_HitExit() +{ + m_pFSM->Disable_State(FSMSTATE::HIT); +} + +void CHuman_Duelist::Add_FSM() +{ +#pragma region Behavior_Movement_NotFocus + { + CState_Idle::STATE_IDLE_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_IdleEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_IdleExitCheck(fTimedelta); }; + Desc.funcExitEvent = [this]() { Behavior_IdleExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc)); + } +#pragma endregion +#pragma region Behavior_Combat + { + CState_Combat::STATE_COMBAT_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_CombatEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_CombatExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_CombatExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::COMBAT, CState_Combat::Create(&Desc)); + } + + { + CState_LightAttack::STATE_LIGHTATTACK_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_LightAttackEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_LightAttackExitCheck(fTimedelta); }; + Desc.funcExitEvent = [this]() { Behavior_LightAttackExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::LIGHT_ATTACK, CState_LightAttack::Create(&Desc)); + } + + { + CState_Spell::STATE_SPELL_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_SpellEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_SpellExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_SpellExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::SPELL, CState_Spell::Create(&Desc)); + } + + { + CState_Shield::STATE_SHIELD_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_ShieldEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_ShieldExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_ShieldExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::SHIELD, CState_Shield::Create(&Desc)); + } +#pragma endregion + +#pragma region Behavior_Hit + { + CState_Hit::STATE_HIT_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_HitEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_HitExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_HitExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::HIT, CState_Hit::Create(&Desc)); + } + +#pragma endregion + +} + diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp index 5dc08865d..5a9593be4 100644 --- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp +++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp @@ -12,6 +12,7 @@ #include "NPCStat.h" #include "Player.h" #include "Dialogue_Font.h" +#include "Dialogue_Data.h" IMPLEMENT_SINGLETON(CInfoInstance) @@ -35,6 +36,7 @@ void CInfoInstance::Change_Level() m_pMapInfo->Change_Level(); m_pSkillInfo->Change_Level(); m_pInteractiveInfo->Change_Level(); + UI_Event.clear(); } CStat* CInfoInstance::Get_PlayerStatPtr() @@ -105,10 +107,18 @@ HRESULT CInfoInstance::Deregist_ActiveMonster(CMonster* pUnit) void CInfoInstance::Get_LockOnInfo(LOCKON_INFO& Info) { + if (false == m_bSearchLockOnTarget) { + return; + } Info.pUnit = m_pMonsterInfo->Get_LockOnUnit(); Info.pInteractive = m_pInteractiveInfo->Get_LockOnUnit(); } +void CInfoInstance::Set_SearchLockOnFlag(_bool bLockOn) +{ + m_bSearchLockOnTarget = bLockOn; +} + pair CInfoInstance::Get_NearestPlayerAlly(_fvector vPos) { return m_pMonsterInfo->Get_NearestPlayerAlly(vPos); @@ -329,9 +339,14 @@ _int CInfoInstance::Get_SpellLearnIndex() return m_pSpellLearn_Data->Get_Index(); } -void CInfoInstance::Set_Font(void* pArg) +//void CInfoInstance::Set_Font(void* pArg) +//{ +// m_pDialogue_Font->Add_Text(pArg); +//} + +const NPCDIALOGUEINFO& CInfoInstance::Get_Dialogue(_wstring NpcName) const { - m_pDialogue_Font->Add_Text(pArg); + return m_pDialogue_Data->Get_Info(NpcName); } HRESULT CInfoInstance::Regist_ActiveInteractive(CMapElement_Interactable* pInteractive) @@ -365,6 +380,16 @@ _float CInfoInstance::Get_Broom_Timer() return m_fBroom_Timer; } +void CInfoInstance::Set_Broom_Booster_Timer(_float fTimer) +{ + m_fBroom_Booster = fTimer; +} + +_float CInfoInstance::Get_Broom_Booster_Timer() +{ + return m_fBroom_Booster; +} + #pragma endregion LEVEL CInfoInstance::Get_RestartLevel() { @@ -423,6 +448,10 @@ HRESULT CInfoInstance::Initialize_Information(ID3D11Device* pDevice, ID3D11Devic if (nullptr == m_pDialogue_Font) { return E_FAIL; } + m_pDialogue_Data = CDialogue_Data::Create(pDevice, pContext); + if (nullptr == m_pDialogue_Data) { + return E_FAIL; + } return S_OK; } @@ -497,6 +526,7 @@ void CInfoInstance::Release_Information() DestroyInstance(); + SAFE_RELEASE(m_pDialogue_Data); SAFE_RELEASE(m_pDialogue_Font); SAFE_RELEASE(m_pSpellLearn_Data); SAFE_RELEASE(m_pMapInfo); diff --git a/Jusin154_Team3D/Client/Private/Land.cpp b/Jusin154_Team3D/Client/Private/Land.cpp index b7a5e8578..aab65132f 100644 --- a/Jusin154_Team3D/Client/Private/Land.cpp +++ b/Jusin154_Team3D/Client/Private/Land.cpp @@ -10,6 +10,7 @@ CLand::CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) CLand::CLand(const CLand& rhs) : CGameObject(rhs) + , m_fUsingSurfaceParams(rhs.m_fUsingSurfaceParams) { } @@ -33,8 +34,8 @@ HRESULT CLand::Render() return E_FAIL; } - if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom))) - return E_FAIL; + //if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom))) + // return E_FAIL; if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::LAND)))) { return E_FAIL; @@ -71,6 +72,8 @@ HRESULT CLand::Render_Shadow(SHADOW eType) HRESULT CLand::Initialize_Prototype() { + m_fUsingSurfaceParams = MRO_PARAMETER; + return S_OK; } @@ -108,6 +111,26 @@ HRESULT CLand::Ready_Components(void* pArg) reinterpret_cast(&m_pShaderCom)))) return E_FAIL; + /* Com_Texture */ + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_Diffuse"), reinterpret_cast(&m_pDiffuseTextureCom), nullptr))) { + return E_FAIL; + } + + /* Com_Texture */ + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_Normal"), reinterpret_cast(&m_pNormalTextureCom), nullptr))) { + return E_FAIL; + } + + /* Com_Texture */ + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_MRO"), reinterpret_cast(&m_pMROTextureCom), nullptr))) { + return E_FAIL; + } + + /* Com_Texture */ + if (FAILED(Add_Asset_Component(g_iStaticLevel, pDesc->strAlphaMapTag, reinterpret_cast(&m_pMaskTextureCom), nullptr))) { + return E_FAIL; + } + return S_OK; } @@ -129,6 +152,22 @@ HRESULT CLand::Bind_ShaderResources() return E_FAIL; } + if (FAILED(m_pDiffuseTextureCom->Bind_ShaderResources(m_pShaderCom, "g_DiffuseTextures", 0, m_pDiffuseTextureCom->Get_Size()))) { + return E_FAIL; + } + if (FAILED(m_pNormalTextureCom->Bind_ShaderResources(m_pShaderCom, "g_NormalTextures", 0, m_pNormalTextureCom->Get_Size()))) { + return E_FAIL; + } + if (FAILED(m_pMROTextureCom->Bind_ShaderResources(m_pShaderCom, "g_SurfaceParamsTextures", 0, m_pMROTextureCom->Get_Size()))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_SRV("g_MaskTexture", m_pMaskTextureCom->Get_SRV(0)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float)))) + return E_FAIL; + return S_OK; } @@ -161,6 +200,11 @@ void CLand::Free() { __super::Free(); + SAFE_RELEASE(m_pDiffuseTextureCom); + SAFE_RELEASE(m_pNormalTextureCom); + SAFE_RELEASE(m_pMROTextureCom); + SAFE_RELEASE(m_pMaskTextureCom); + SAFE_RELEASE(m_pShaderCom); SAFE_RELEASE(m_pModelCom); } diff --git a/Jusin154_Team3D/Client/Private/Level_Field.cpp b/Jusin154_Team3D/Client/Private/Level_Field.cpp index 05aaf643d..7a1b1cff9 100644 --- a/Jusin154_Team3D/Client/Private/Level_Field.cpp +++ b/Jusin154_Team3D/Client/Private/Level_Field.cpp @@ -11,6 +11,9 @@ #include "Terrain.h" #include "SkyBox.h" #include "Ranrok.h" +#include "UI_Manager.h" + + CLevel_Field::CLevel_Field(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } { diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 514197bd1..99fd6b626 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -23,6 +23,7 @@ #pragma region ACTOR #include "Player.h" +#include "Human_Duelist.h" #include "Troll.h" #include "Goblin.h" #include "Goblin_Mage.h" @@ -81,6 +82,9 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) if (FAILED(Ready_Background())) { return E_FAIL; } + if (FAILED(Ready_Land())) { + return E_FAIL; + } if (FAILED(Ready_Markers())) { return E_FAIL; } @@ -266,48 +270,6 @@ HRESULT CLevel_GamePlay::Ready_Background() if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_BACKGROUND, &Terrain_Desc))) { return E_FAIL; } - - CLand::LAND_DESC Land_Desc = {}; - - /* South_Hogwart_Land */ - Land_Desc.vPosition = _float3(290.5f, 59.5f, -347.f); - Land_Desc.vScale = _float3(1.f, 1.25f, 1.f); - Land_Desc.strModelComTag = L"Prototype_Component_South_Hogwart_Land_LOD1"; - - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) - return E_FAIL; - - /* North_Hogwart_Land */ - Land_Desc.vPosition = _float3(-370.f, -37.5f, -21.4f); - Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); - Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart_Land_LOD1"; - - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) - return E_FAIL; - - /* North_Hogwart2_Land */ - Land_Desc.vPosition = _float3(-378.f, -17.5f, 285.6f); - Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); - Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart2_Land_LOD1"; - - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) - return E_FAIL; - - /* West_Hogwart_Land */ - Land_Desc.vPosition = _float3(-653.f, 20.f, -327.4f); - Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); - Land_Desc.strModelComTag = L"Prototype_Component_West_Hogwart_Land_LOD1"; - - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) - return E_FAIL; - - /* East_Hogsmeade_Land */ - Land_Desc.vPosition = _float3(436.f, 55.f, 60.3f); - Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); - Land_Desc.strModelComTag = L"Prototype_Component_East_Hogsmeade_Land_LOD1"; - - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) - return E_FAIL; /* 물 오브젝트 */ if (FAILED(CInfoInstance::GetInstance()->Load_WaterElemet("Element_Water_Info"))) { @@ -340,7 +302,7 @@ HRESULT CLevel_GamePlay::Ready_Background() #endif // #ifdef 기무리 isReady_Background = true; - isReady_Hogsmeade = true; + isReady_Hogsmeade = false; isReady_Hogwart = false; #endif // #ifdef 나 @@ -383,6 +345,125 @@ HRESULT CLevel_GamePlay::Ready_Background() return S_OK; } +HRESULT CLevel_GamePlay::Ready_Land() +{ + CLand::LAND_DESC Land_Desc = {}; + + /* South_Hogwart_Land */ + Land_Desc.vPosition = _float3(290.5f, 59.5f, -347.f); + Land_Desc.vScale = _float3(1.f, 1.25f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_South_Hogwart_Land_LOD1"; + Land_Desc.strAlphaMapTag = L"Land_HN_BC_AlphaMap"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + return E_FAIL; + + /* North_Hogwart_Land */ + Land_Desc.vPosition = _float3(-370.f, -37.5f, -21.4f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart_Land_LOD1"; + Land_Desc.strAlphaMapTag = L"Land_HN_AV_AlphaMap"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + return E_FAIL; + + /* North_Hogwart2_Land */ + Land_Desc.vPosition = _float3(-378.f, -17.5f, 285.6f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart2_Land_LOD1"; + Land_Desc.strAlphaMapTag = L"Land_HN_AU_AlphaMap"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + return E_FAIL; + + /* West_Hogwart_Land */ + Land_Desc.vPosition = _float3(-653.f, 20.f, -327.4f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_West_Hogwart_Land_LOD1"; + Land_Desc.strAlphaMapTag = L"Land_HN_AZ_AlphaMap"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + return E_FAIL; + + /* East_Hogsmeade_Land */ + Land_Desc.vPosition = _float3(436.f, 55.f, 60.3f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_East_Hogsmeade_Land_LOD1"; + Land_Desc.strAlphaMapTag = L"Land_HN_AY_AlphaMap"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + return E_FAIL; + + /* HN_BA */ + Land_Desc.vPosition = _float3(-606.f, 70.f, -647.7f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BA"; + Land_Desc.strAlphaMapTag = L"Land_HN_BA_AlphaMap"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + return E_FAIL; + + /* HN_BD */ + Land_Desc.vPosition = _float3(201.4f, -22.9f, -650.1f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BD"; + Land_Desc.strAlphaMapTag = L"Land_HN_BD_AlphaMap"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + return E_FAIL; + + /* HN_BG */ + Land_Desc.vPosition = _float3(-377.8f, 5.f, -1038.49f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BG"; + Land_Desc.strAlphaMapTag = L"Land_HN_BG_AlphaMap"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + return E_FAIL; + + /* HN_BH */ + Land_Desc.vPosition = _float3(80.1f, -63.f, -908.3f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BH"; + Land_Desc.strAlphaMapTag = L"Land_HN_BH_AlphaMap"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + return E_FAIL; + + /* HN_BE */ + Land_Desc.vPosition = _float3(431.2f, 100.1f, -658.3f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BE"; + Land_Desc.strAlphaMapTag = L"Land_HN_BE_AlphaMap"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + return E_FAIL; + + /* HN_BF */ + Land_Desc.vPosition = _float3(-688.9f, 170.7f, -1066.f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BF"; + Land_Desc.strAlphaMapTag = L"Land_HN_BF_AlphaMap"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + return E_FAIL; + + /* HN_BI */ + Land_Desc.vPosition = _float3(82.7f, -61.f, -1141.6f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BI"; + Land_Desc.strAlphaMapTag = L"Land_HN_BI_AlphaMap"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + return E_FAIL; + + /* HN_BJ */ + Land_Desc.vPosition = _float3(367.1f, 44.8f, -1016.f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BJ"; + Land_Desc.strAlphaMapTag = L"Land_HN_BJ_AlphaMap"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + return E_FAIL; + + /* TU_BB */ + Land_Desc.vPosition = _float3(-829.5f, 58.3f, 112.9f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_TU_BB"; + Land_Desc.strAlphaMapTag = L"Land_TU_BB_AlphaMap"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + return E_FAIL; + + return S_OK; +} + HRESULT CLevel_GamePlay::Ready_Layer_Hogsmeade() { /* 전체 맵 */ @@ -726,8 +807,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) isLoad_RandomNPC = true; #endif // #ifdef 기무리 - isLoad_NPC = true; - isLoad_RandomNPC = true; + isLoad_NPC = false; + isLoad_RandomNPC = false; #endif // #ifdef 나 isLoad_RandomNPC = true; @@ -760,7 +841,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) if (true == isLoad_NPC) { - for (_uint i = 0; i < 12; i++) + for (_uint i = 0; i < 11; i++) { { CRandomNpc::NPCDESC NPCDesc{}; @@ -774,8 +855,17 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) } } } + + CPlayer::PLAYERDESC playerDesc = {}; + playerDesc.vPos = _float4(-21.f, 0.f, -14.f, 1.f); + playerDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag,&playerDesc))) { + return E_FAIL; + } } + + return S_OK; } @@ -856,6 +946,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster() return E_FAIL; } + + } #if 진우 #else diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 2aa1ec1c5..9ec6a961e 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -30,6 +30,7 @@ #pragma region ACTOR #include "Player.h" +#include "Human_Duelist.h" #include "PlayerRobe.h" #include "Goblin.h" #include "Goblin_Mage.h" @@ -153,8 +154,8 @@ #include "Ride_Info_Key.h" #include "Ride_Info.h" #include "Ride_InfoBG.h" -#include "Ride_Bbooster_Slot.h" -#include "Ride_BboosterBar.h" +#include "Ride_Booster_Slot.h" +#include "Ride_BoosterBar.h" #include "Ride_HpBar.h" #include "Ride_HpSlot.h" @@ -412,7 +413,7 @@ HRESULT CLoader::Loading_For_GamePlay() isLoad_Background = true; isLoad_Hogwart = false; isLoad_UI_SEQUANTIAL = false; - isLoad_NPC = true; + isLoad_NPC = false; isLoad_Monster = true; #endif // #ifdef 나 @@ -1029,7 +1030,126 @@ HRESULT CLoader::Loading_For_GamePlay() } } + /* LAND_MODEL */ + { + /* For.Prototype_Component_South_Hogwart_Land_LOD1 */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_South_Hogwart_Land_LOD1"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + /* For.Prototype_Component_North_Hogwart_Land_LOD1 */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart_Land_LOD1"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_North_Hogwart2_Land_LOD1 */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_West_Hogwart_Land_LOD1 */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_West_Hogwart_Land_LOD1"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_East_Hogwart_Land_LOD1 */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + // ----------------- + /* For.Prototype_Component_Land_HN_BA */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BA"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_Land_HN_BD */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BD"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_Land_HN_BE */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BE"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_Land_HN_BF */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BF"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_Land_HN_BG */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BG"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_Land_HN_BH */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BH"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_Land_HN_BI */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BI"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_Land_HN_BJ */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BJ"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_Land_TU_BB */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_TU_BB"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + + ///* For.Prototype_Component_Land_HN_BA */ + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BA"), + // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + // return E_FAIL; + + ///* For.Prototype_Component_Land_HN_BD */ + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BD"), + // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + // return E_FAIL; + + ///* For.Prototype_Component_Land_HN_BG */ + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BG"), + // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin")))) + // return E_FAIL; + + ///* For.Prototype_Component_Land_HN_BH */ + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BH"), + // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + // return E_FAIL; + + + ///* For.Prototype_Component_Land_HN_BE */ + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BE"), + // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + // return E_FAIL; + + ///* For.Prototype_Component_Land_HN_BF */ + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BF"), + // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + // return E_FAIL; + + ///* For.Prototype_Component_Land_HN_BI */ + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BI"), + // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + // return E_FAIL; + + ///* For.Prototype_Component_Land_HN_BJ */ + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BJ"), + // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + // return E_FAIL; + + ///* For.Prototype_Component_Land_TU_BB */ + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_TU_BB"), + // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + // return E_FAIL; + } #pragma endregion #pragma region UI @@ -1452,6 +1572,77 @@ HRESULT CLoader::Loading_For_GamePlay() return E_FAIL; } + /* Land_HN_AU_AlphaMap */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_AU_AlphaMap"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_AU_AlphaMap.dds"), 0)))) { + return E_FAIL; + } + /* Land_HN_AV_AlphaMap */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_AV_AlphaMap"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_AV_AlphaMap.dds"), 0)))) { + return E_FAIL; + } + /* Land_HN_AY_AlphaMap */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_AY_AlphaMap"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_AY_AlphaMap.dds"), 0)))) { + return E_FAIL; + } + /* Land_HN_AZ_AlphaMap */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_AZ_AlphaMap"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_AZ_AlphaMap.dds"), 0)))) { + return E_FAIL; + } + /* Land_HN_BA_AlphaMap */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BA_AlphaMap"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BA_AlphaMap.dds"), 0)))) { + return E_FAIL; + } + /* Land_HN_BC_AlphaMap */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BC_AlphaMap"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BC_AlphaMap.dds"), 0)))) { + return E_FAIL; + } + /* Land_HN_BD_AlphaMap */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BD_AlphaMap"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BD_AlphaMap.dds"), 0)))) { + return E_FAIL; + } + /* Land_HN_BE_AlphaMap */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BE_AlphaMap"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BE_AlphaMap.dds"), 0)))) { + return E_FAIL; + } + /* Land_HN_BF_AlphaMap */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BF_AlphaMap"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BF_AlphaMap.dds"), 0)))) { + return E_FAIL; + } + /* Land_HN_BG_AlphaMap */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BG_AlphaMap"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BG_AlphaMap.dds"), 0)))) { + return E_FAIL; + } + /* Land_HN_BH_AlphaMap */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BH_AlphaMap"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BH_AlphaMap.dds"), 0)))) { + return E_FAIL; + } + /* Land_HN_BI_AlphaMap */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BI_AlphaMap"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BI_AlphaMap.dds"), 0)))) { + return E_FAIL; + } + /* Land_HN_BJ_AlphaMap */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BJ_AlphaMap"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BJ_AlphaMap.dds"), 0)))) { + return E_FAIL; + } + /* Land_TU_BB_AlphaMap */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_TU_BB_AlphaMap"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_TU_BB_AlphaMap.dds"), 0)))) { + return E_FAIL; + } + /* For.Prototype_Component_LightPost_Emissive */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LightPost_Emissive"), CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, @@ -2123,11 +2314,10 @@ HRESULT CLoader::Loading_For_GamePlay() } if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Professor_EleazarFig_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { + CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { return E_FAIL; } - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ghost_Peeves_Model"), CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { return E_FAIL; @@ -2889,12 +3079,12 @@ HRESULT CLoader::Loading_For_GamePlay() return E_FAIL; } /* For.Prototype_GameObject_SpellLearn_Ride_Bbooster_Slot*/ - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRide_Bbooster_Slot::Create(m_pDevice, m_pContext)))) + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRide_Booster_Slot::Create(m_pDevice, m_pContext)))) { return E_FAIL; } /* For.Prototype_GameObject_SpellLearn_Ride_BboosterBar*/ - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRide_BboosterBar::Create(m_pDevice, m_pContext)))) + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRide_BoosterBar::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -3165,30 +3355,7 @@ HRESULT CLoader::Loading_For_GamePlay() } #pragma endregion - /* For.Prototype_Component_South_Hogwart_Land_LOD1 */ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_South_Hogwart_Land_LOD1"), - CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - return E_FAIL; - - /* For.Prototype_Component_North_Hogwart_Land_LOD1 */ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart_Land_LOD1"), - CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - return E_FAIL; - - /* For.Prototype_Component_North_Hogwart2_Land_LOD1 */ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1"), - CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - return E_FAIL; - - /* For.Prototype_Component_West_Hogwart_Land_LOD1 */ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_West_Hogwart_Land_LOD1"), - CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - return E_FAIL; - - /* For.Prototype_Component_East_Hogwart_Land_LOD1 */ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1"), - CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - return E_FAIL; + /* For.Prototype_Component_Hogwart_Lake */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Hogwart_Lake"), @@ -3293,6 +3460,10 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CPlayer::Create(m_pDevice, m_pContext)))) return E_FAIL; + /* For.Prototype_GameObject_Human_Duelist */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CHuman_Duelist::Create(m_pDevice, m_pContext)))) + return E_FAIL; + /* For.Prototype_GameObject_BroomRacerAI */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroomRacerAI::Create(m_pDevice, m_pContext)))) return E_FAIL; diff --git a/Jusin154_Team3D/Client/Private/Loading_Panel.cpp b/Jusin154_Team3D/Client/Private/Loading_Panel.cpp index 55973eb04..f4b8b8ed9 100644 --- a/Jusin154_Team3D/Client/Private/Loading_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Loading_Panel.cpp @@ -101,13 +101,13 @@ HRESULT CLoading_Panel::Ready_Components(void* pArg) HRESULT CLoading_Panel::Ready_Element(void* pArg) { - //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLoadingWidget)))) + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLoadingWidget)))) //{ // return E_FAIL; //} //Add_Element(TEXT("LoadingWidget"), m_pLoadingWidget); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLoadingWidget_Flame)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLoadingWidget_Flame)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp b/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp index 2bffa31c1..bef6474df 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp @@ -75,7 +75,7 @@ void CMapElement_Chest::Update(_float fTimeDelta) #ifdef _DEBUG /*if(CHEST_STATE::OPENED != m_eCurState) { - _vector vPlayerPos = m_pGameInstance->Get_Layer(g_iStaticLevel, LAYER_PLAYER)->Get_Object()->Get_WorldPostion(); + _vector vPlayerPos = m_pGameInstance->Get_Layer(g_iStaticLevel, LAYER_PLAYER)->Get_Object()->Get_WorldPostion(); _float fDistance = XMVectorGetX(XMVector3Length(vPlayerPos - m_pTransformCom->Get_State(STATE::POSITION))); @@ -161,12 +161,12 @@ HRESULT CMapElement_Chest::Render() } #ifdef _DEBUG - if (FAILED(m_pRigidBody->Render())) { + /*if (FAILED(m_pRigidBody->Render())) { return E_FAIL; - } + }*/ #endif // _DEBUG - if (FAILED(m_pLid->Render(m_iShaderPass_Index))) + if (FAILED(m_pLid->Render(m_iShaderPass_Index))) return E_FAIL; return S_OK; diff --git a/Jusin154_Team3D/Client/Private/MapElement_Door.cpp b/Jusin154_Team3D/Client/Private/MapElement_Door.cpp index 0b97ab38e..e539ed59b 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Door.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Door.cpp @@ -100,6 +100,9 @@ void CMapElement_Door::Late_Update(_float fTimeDelta) HRESULT CMapElement_Door::Render() { + if (m_bDead == true) { + return S_OK; + } if (FAILED(Bind_ShaderResources())) return E_FAIL; diff --git a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp index 38854ab5e..d8aa5aaea 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp @@ -24,6 +24,7 @@ HRESULT CMapElement_Static::Initialize(void* pArg) { MAPELEMENT_DESC* pDesc = static_cast(pArg); + m_bVisible = pDesc->bVisible; m_iMaxLodLevel = pDesc->iMaxLodLevel; for (_uint i = 0; i < m_iMaxLodLevel + 1; i++) @@ -68,7 +69,7 @@ void CMapElement_Static::Late_Update(_float fTimeDelta) m_fCamDepth = XMVectorGetX(XMVector3LengthSq(XMLoadFloat4(m_pGameInstance->Get_CamPosition()) - m_pTransformCom->Get_State(STATE::POSITION))); m_iLodIndex = min(m_iMaxLodLevel, (_uint)(m_fCamDepth / (m_fRadius * m_fRadius + 40000.f)));*/ - + if(m_bVisible) m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); //} } diff --git a/Jusin154_Team3D/Client/Private/MapInfo.cpp b/Jusin154_Team3D/Client/Private/MapInfo.cpp index 341a74d9c..1e80ee64f 100644 --- a/Jusin154_Team3D/Client/Private/MapInfo.cpp +++ b/Jusin154_Team3D/Client/Private/MapInfo.cpp @@ -115,10 +115,10 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName, const _wchar* pLayerTa for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object")) { - CMapPartObject::MAPOBJECT_DESC Desc = {}; + CMapElement::MAPELEMENT_DESC Desc = {}; MAPOBJECT_TYPE eType = {}; - + Desc.bVisible = true; Object->QueryUnsignedAttribute("Type", (_uint*)(&eType)); Object->QueryUnsignedAttribute("Lod_Level", &Desc.iMaxLodLevel); @@ -148,6 +148,11 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName, const _wchar* pLayerTa if (MAPOBJECT_TYPE::ELEMENT_STATIC == eType) m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, pLayerTag, &Desc); + else if (MAPOBJECT_TYPE::ELEMENT_COLLIDER == eType) + { + Desc.bVisible = false; + m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, pLayerTag, &Desc); + } /*else if (MAPOBJECT_TYPE::ELEMENT_INTERACT == eType) m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interact"), &Desc);*/ } diff --git a/Jusin154_Team3D/Client/Private/MiniMap_Panel.cpp b/Jusin154_Team3D/Client/Private/MiniMap_Panel.cpp index 9e6c91082..22744c680 100644 --- a/Jusin154_Team3D/Client/Private/MiniMap_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/MiniMap_Panel.cpp @@ -98,12 +98,12 @@ HRESULT CMiniMap_Panel::Ready_Components(void* pArg) HRESULT CMiniMap_Panel::Ready_Element(void* pArg) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pMiniMap_TrimBorder)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pMiniMap_TrimBorder)))) { return E_FAIL; } Add_Element(TEXT("MiniMap_TrimBorder"), m_pMiniMap_TrimBorder); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pNoMountIcon)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pNoMountIcon)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp index 398411a21..d3154d442 100644 --- a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp +++ b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp @@ -97,11 +97,11 @@ void CNPCInteraction::NpcInfo(void* pArg) m_pInfo.pOwner = Info->pOwner; m_pInfo.pNPCName = Info->pNPCName; - m_pInfo.pNPCPosition = Info->pNPCPosition; + m_pInfo.fNPCPosition = Info->fNPCPosition; _vector MonsterPos = static_cast(Info->pOwner)->Get_WorldPostion(); _vector HeadPos = MonsterPos + XMVectorSet(0.5f, 2.f, 0.f, 0.f); - XMStoreFloat4(&m_pInfo.pNPCPosition, HeadPos); + XMStoreFloat4(&m_pInfo.fNPCPosition, HeadPos); } void CNPCInteraction::Priority_Update(_float fTimeDelta) @@ -110,7 +110,7 @@ void CNPCInteraction::Priority_Update(_float fTimeDelta) { _vector MonsterPos = static_cast(m_pInfo.pOwner)->Get_WorldPostion(); _vector HeadPos = XMVectorAdd(MonsterPos, XMVectorSet(0.5f, 2.f, 0.f, 0.f)); - XMStoreFloat4(&m_pInfo.pNPCPosition, HeadPos); + XMStoreFloat4(&m_pInfo.fNPCPosition, HeadPos); _vector ScreenPos = XMVector3Project( HeadPos, @@ -137,7 +137,7 @@ void CNPCInteraction::Priority_Update(_float fTimeDelta) XMStoreFloat4(&m_vFontPosition, WorldOffsetPos); m_fSize = _float3(m_fSize.x, m_fOrigin_Size.y, m_fOrigin_Size.z); m_fFontSize = 0; - m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_pInfo.pNPCPosition)); + m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_pInfo.fNPCPosition)); } } @@ -190,7 +190,7 @@ HRESULT CNPCInteraction::Render() m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), TEXT("Font_size15"), TEXT("대화하기"), - XMLoadFloat4(&m_pInfo.pNPCPosition)); + XMLoadFloat4(&m_pInfo.fNPCPosition)); return S_OK; diff --git a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp index 2b3dc0930..b442840c7 100644 --- a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp +++ b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp @@ -152,6 +152,16 @@ _wstring CNPC_Ollivander::Get_Name() return m_pNpcStat->Get_Stat().pNpc_Name; } +_wstring CNPC_Ollivander::Get_NpcName() +{ + return m_pNpcStat->Get_Stat().pName; +} + +_int CNPC_Ollivander::Get_TextID() +{ + return m_iNpc_DialogueTextID; +} + HRESULT CNPC_Ollivander::Bind_ShaderResources() { if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { @@ -237,6 +247,9 @@ HRESULT CNPC_Ollivander::Initialize(void* pArg) m_pModelCom->Set_AnimationIndex(0, true); m_pCallBack_Behavior->Initialize(m_pCharacter_Controller); m_pCallBack_HitReport->Initialize(m_pCharacter_Controller); + + //m_pInfoInstance->Add_Event(TEXT("NPCDialogue"), [this](void* p) {this->Get_TextID(*reinterpret_cast<_int*>(p)); }); + m_bNpc = true; return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp index c4f08c21d..582505a75 100644 --- a/Jusin154_Team3D/Client/Private/NomalJap.cpp +++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp @@ -303,7 +303,12 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc) Get_PartObject()->Set_Visible(false); Get_PartObject()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); - dynamic_cast(m_pOwner->Get_Owner())->Start_CameraShake(0.2f, 1.f); + CPlayer* pPlayer = dynamic_cast(m_pOwner->Get_Owner()); + if (pPlayer != nullptr) + { + pPlayer->Start_CameraShake(0.2f, 1.f); + } + } void CNomalJap::Free() diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 17d0f9d39..6f6c040d6 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -54,6 +54,9 @@ HRESULT CPlayer::Initialize(void* pArg) #if 진우 m_isDebugMode = true; // 디버그 무적 모드 #endif +#if 나 + m_isDebugMode = true; // 디버그 무적 모드 +#endif #endif // _DEBUG @@ -154,6 +157,14 @@ void CPlayer::Update(_float fTimeDelta) CheckMouseInput(); + if (m_pGameInstance->Key_Down(DIK_F)) + { + if (m_bNpcInteraction == true) + { + m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &m_bNpcInteraction); + } + } + m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION)); } @@ -186,6 +197,8 @@ void CPlayer::Late_Update(_float fTimeDelta) { m_pTransformCom->LookAt_Horizontal_Lerp(m_LockOnInfo.pUnit->Get_WorldPostion(), fTimeDelta, 5.f); } + + Player_PixRot(); } @@ -330,9 +343,11 @@ HRESULT CPlayer::Update_RaycastElements() Info.pOwner = pFoundNPC; Info.pNPCName = static_cast(pFoundNPC)->Get_Name(); + Info.pName = static_cast(pFoundNPC)->Get_NpcName(); _float4 Pos{}; XMStoreFloat4(&Pos, static_cast(pFoundNPC)->Get_WorldPostion()); - Info.pNPCPosition = Pos; + Info.fNPCPosition = Pos; + Info.iTextID = static_cast(pFoundNPC)->Get_TextID(); m_bNpcInteraction = true; m_pInfoInstance->Event_CallBack(TEXT("NPCInteractionOn"), &Info); } @@ -512,7 +527,6 @@ HRESULT CPlayer::Ready_Components() m_pStat = m_pInfoInstance->Get_PlayerStatPtr(); m_Components.push_back(m_pStat); SAFE_ADDREF(m_pStat); - SAFE_ADDREF(m_pStat); { // CCT CCharacter_Controller::Character_Controller_DESC Desc{}; @@ -587,15 +601,15 @@ HRESULT CPlayer::Ready_Parts() //XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("broomSocket")); #ifdef 기무리 - { - CPlayerRobe::PlayerRobe_DESC Desc{}; - Desc.pModel = m_pModelCom; - Desc.pParentTransform = m_pTransformCom; - Desc.pSocketMatrix = m_pModelCom->Get_BoneMatrixPtr("Hips_Cloth"); - if (FAILED(Add_PartObject("RobePart", g_iStaticLevel, &m_pRobePart, &Desc))) { - assert(false); - } - } + //{ + // CPlayerRobe::PlayerRobe_DESC Desc{}; + // Desc.pModel = m_pModelCom; + // Desc.pParentTransform = m_pTransformCom; + // Desc.pSocketMatrix = m_pModelCom->Get_BoneMatrixPtr("Hips_Cloth"); + // if (FAILED(Add_PartObject("RobePart", g_iStaticLevel, &m_pRobePart, &Desc))) { + // assert(false); + // } + //} #endif // 기무리 @@ -665,51 +679,51 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder) fMixerFactor = 0.658333f; iColorMixerMethod = 1; break; -#ifdef 기무리 - - case PLAYER_MESH_ORDER::ROBE_CLOTH: - { - CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)); - _uint MeshBoneCount = pMesh->Get_NumBone(); - - for (_uint i = 0; i < MeshBoneCount; ++i) - { - XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity()); - } - - _uint temp = 0; - vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)); - vector<_int> boneIndices = pMesh->Get_BoneIndices(); - - for (_uint i = 0; i < MeshBoneCount; ++i) - { - _uint global = boneIndices[i]; - if (global == 38) - continue; - if (globalMask[global] == 1) - { - SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++); - } - } - - GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f); - - if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) { - return E_FAIL; - } - - - if (FAILED(m_pShaderCom->Bind_Matrices( - "g_BoneMatrices", - SkinMatrices.data(), - (_int)SkinMatrices.size() - ))) - { - return E_FAIL; - } - } - break; -#endif // _DEBUG +//#ifdef 기무리 +// +// case PLAYER_MESH_ORDER::ROBE_CLOTH: +// { +// CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)); +// _uint MeshBoneCount = pMesh->Get_NumBone(); +// +// for (_uint i = 0; i < MeshBoneCount; ++i) +// { +// XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity()); +// } +// +// _uint temp = 0; +// vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)); +// vector<_int> boneIndices = pMesh->Get_BoneIndices(); +// +// for (_uint i = 0; i < MeshBoneCount; ++i) +// { +// _uint global = boneIndices[i]; +// if (global == 38) +// continue; +// if (globalMask[global] == 1) +// { +// SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++); +// } +// } +// +// GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f); +// +// if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) { +// return E_FAIL; +// } +// +// +// if (FAILED(m_pShaderCom->Bind_Matrices( +// "g_BoneMatrices", +// SkinMatrices.data(), +// (_int)SkinMatrices.size() +// ))) +// { +// return E_FAIL; +// } +// } +// break; +//#endif // _DEBUG default: break; @@ -777,6 +791,31 @@ void CPlayer::SetGravity() } } +void CPlayer::Player_PixRot() +{ + _int iCurrAnim = m_pModelCom->Get_AnimIndex(); + if (iCurrAnim == m_Animation[STATEANIM::AVADA_KEDAVRA].first || + iCurrAnim == m_Animation[STATEANIM::BROOM_DISMOUNT].first) + { + _vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f); + + _vector vLook = m_pTransformCom->Get_State(STATE::LOOK); + vLook = XMVectorSetY(vLook, 0.f); + + if (XMVector3LengthSq(vLook).m128_f32[0] < 1e-6f) + vLook = XMVectorSet(0.f, 0.f, 1.f, 0.f); + + vLook = XMVector3Normalize(vLook); + + _vector vRight = XMVector3Normalize(XMVector3Cross(vUp, vLook)); + vLook = XMVector3Cross(vRight, vUp); + + m_pTransformCom->Set_State(STATE::RIGHT, vRight); + m_pTransformCom->Set_State(STATE::UP, vUp); + m_pTransformCom->Set_State(STATE::LOOK, vLook); + } +} + void CPlayer::Update_CameraCoordinateSystem(_float fTimeDelta) { _vector xmvCameraLook = XMVector3Normalize(XMVectorSetY(m_pGameInstance->Get_CameraLook(), 0.f)); @@ -989,6 +1028,17 @@ void CPlayer::Describe_Entity() GUI::Text("Angle %.2f", degree); + _vector vRight = m_pTransformCom->Get_State(STATE::RIGHT); + _vector vUp = m_pTransformCom->Get_State(STATE::UP); + _vector vLook = m_pTransformCom->Get_State(STATE::LOOK); + + auto dotRU = XMVectorGetX(XMVector3Dot(vRight, vUp)); + auto dotUL = XMVectorGetX(XMVector3Dot(vUp, vLook)); + auto dotLR = XMVectorGetX(XMVector3Dot(vLook, vRight)); + + GUI::Text("dot RU %.4f | UL %.4f | LR %.4f\n", dotRU, dotUL, dotLR); + + m_pLightCom->Describe_Entity(); } GUI::End(); diff --git a/Jusin154_Team3D/Client/Private/PlayerRobe.cpp b/Jusin154_Team3D/Client/Private/PlayerRobe.cpp index 72906c3ac..17ce09cb6 100644 --- a/Jusin154_Team3D/Client/Private/PlayerRobe.cpp +++ b/Jusin154_Team3D/Client/Private/PlayerRobe.cpp @@ -2,31 +2,21 @@ #include "PlayerRobe.h" #include "GameInstance.h" -CPlayerRobe::CPlayerRobe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) - : CPartObject(pDevice, pContext) -{ -} - -CPlayerRobe::CPlayerRobe(const CPlayerRobe& Prototype) - : CPartObject(Prototype) -{ -} void CPlayerRobe::Priority_Update(_float fTimeDelta) { #ifdef _DEBUG #ifdef 기무리 - //Update_RobeJoints(); -#endif // 기무리 - Describe_Entity(); + Update_RobeJoints(); +#endif // 기무리 #endif // _DEBUG } void CPlayerRobe::Update(_float fTimeDelta) { - _matrix SocketMatrixFixed = (XMMatrixRotationZ(XM_PI) * XMLoadFloat4x4(m_pSocketMatrix)) * - XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr()); + _matrix SocketMatrixFixed = (XMMatrixRotationZ(XM_PI) * XMLoadFloat4x4(m_pSocketMatrix)) + * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr()); m_pRobeMainAnchor->Move_Kinematic(SocketMatrixFixed, false); //m_pRobeMainAnchor->Get_Actor()->wakeUp(); @@ -44,7 +34,12 @@ HRESULT CPlayerRobe::Render() { #ifdef _DEBUG #ifdef 기무리 - //Render_BonePhysX(); + if (m_pGameInstance->Key_Up(DIK_8)) { + m_bRenderDebug = !m_bRenderDebug; + } + if (m_bRenderDebug) { + Render_BonePhysX(); + } #endif // 기무리 #endif // _DEBUG return S_OK; @@ -56,12 +51,6 @@ HRESULT CPlayerRobe::Update_RobeSocketPosition() PSX::PxTransform pxTransform = {}; _matrix WorldMatrix = {}; _matrix OwnerInvWorldMatrix = m_pParentTransformCom->Get_WorldMatrixInv(); - //{ - // pxTransform = m_pRobeMainAnchor->Get_GlobalPosition(); - // WorldMatrix = XMMatrixAffineTransformation(XMVectorSet(1.f, 1.f, 1.f, 0.f), XMVectorZero(), XMLoadFloat4((_float4*)&pxTransform.q), XMVectorSetW(XMLoadFloat3((_float3*)&pxTransform.p), 1.f)); - // _fmatrix LocalMatrix = WorldMatrix * OwnerInvWorldMatrix; - // m_pModelCom->Set_BoneCombinedTransformation("Hips_Cloth", LocalMatrix); - //} for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) { pxTransform = m_pRobeJointAnchor[i]->Get_GlobalPosition(); WorldMatrix = XMMatrixAffineTransformation(XMVectorSet(1.f, 1.f, 1.f, 0.f), XMVectorZero(), XMLoadFloat4((_float4*)&pxTransform.q), XMVectorSetW(XMLoadFloat3((_float3*)&pxTransform.p), 1.f)); @@ -73,29 +62,6 @@ HRESULT CPlayerRobe::Update_RobeSocketPosition() return S_OK; } -HRESULT CPlayerRobe::Helper_RouteJointGenerater(CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC& Desc_Body, ROUTE_DESC& Desc_Route, _matrix* xmAnchorMatricesWorld) -{ - - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) { - return E_FAIL; - } - m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(xmAnchorMatricesWorld[Desc_Route.iStartBoneIndex].r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true); - - - PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iStartBoneIndex]->Get_Actor(); - PSX::PxRigidDynamic* routeRigidActor = m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor(); - PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor(); - - PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y-- - PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++ - - m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose); - - m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose); - - return S_OK; -} - HRESULT CPlayerRobe::Update_LegsPosition() { _matrix WorldMatrix = m_pParentTransformCom->Get_XMWorldMatrix(); @@ -137,60 +103,73 @@ HRESULT CPlayerRobe::Update_LegsPosition() } #endif // _DEBUG } - m_pLower0Bound->Move_Kinematic(m_pParentTransformCom->Get_XMWorldMatrix(), false); - m_pLower1Bound->Move_Kinematic(m_pParentTransformCom->Get_XMWorldMatrix(), false); + { + + _vector vLegPos = XMVector4Transform(XMLoadFloat4((_float4*)&m_pLeftLegLocalMatrix->m[3][0]), WorldMatrix); + _vector vLegUp = XMVector4Transform(XMLoadFloat4((_float4*)&m_pLeftLegUpLocalMatrix->m[3][0]), WorldMatrix); + m_pLeftThigh->Set_CenterTransform(vLegPos, vLegUp, false); + +#ifdef _DEBUG + { + _vector vCenterWorldPos = (vLegPos + vLegUp ) * 0.5f; + _vector vRotQ = XMQuaternionIdentity(); + _vector vDir = XMVectorSetW(vLegUp - vLegPos, 0.f); + _float vLength = XMVectorGetX(XMVector3Length(vDir)); + if (vLength > FLT_EPSILON5) { + vDir = XMVector3Normalize(vDir); + vRotQ = CMyTools::MakeQuaternionFromTo(XMVectorSet(0.f, 1.f, 0.f, 0.f), vDir); + } + XMStoreFloat4x4(&m_LeftThighMatrix, XMMatrixRotationQuaternion(vRotQ) * XMMatrixTranslationFromVector(vCenterWorldPos)); + } +#endif // _DEBUG + + vLegPos = XMVector4Transform(XMLoadFloat4((_float4*)&m_pRightLegLocalMatrix->m[3][0]), WorldMatrix); + vLegUp = XMVector4Transform(XMLoadFloat4((_float4*)&m_pRightLegUpLocalMatrix->m[3][0]), WorldMatrix); + m_pRightThigh->Set_CenterTransform(vLegPos, vLegUp, false); + +#ifdef _DEBUG + { + _vector vCenterWorldPos = (vLegPos + vLegUp) * 0.5f; + _vector vRotQ = XMQuaternionIdentity(); + _vector vDir = XMVectorSetW(vLegUp - vLegPos, 0.f); + _float vLength = XMVectorGetX(XMVector3Length(vDir)); + if (vLength > FLT_EPSILON5) { + vDir = XMVector3Normalize(vDir); + vRotQ = CMyTools::MakeQuaternionFromTo(XMVectorSet(0.f, 1.f, 0.f, 0.f), vDir); + } + XMStoreFloat4x4(&m_RightThighMatrix, XMMatrixRotationQuaternion(vRotQ) * XMMatrixTranslationFromVector(vCenterWorldPos)); + } +#endif // _DEBUG + } + m_pLower0Bound->Move_Kinematic(XMMatrixTranslationFromVector(XMVectorSet(0.f, -0.2f, 0.f, 0.f)) * XMLoadFloat4x4(m_pLower0BoundMatrix) * WorldMatrix, false); + m_pLower1Bound->Move_Kinematic(XMMatrixTranslationFromVector(XMVectorSet(0.f, -0.7f, 0.f, 0.f)) * XMLoadFloat4x4(m_pLower1BoundMatrix) * WorldMatrix, false); return S_OK; } #ifdef _DEBUG -HRESULT CPlayerRobe::Render_Legs() +HRESULT CPlayerRobe::Render_Legs(_fmatrix LowerMatrix) { _float fHeight = 0.25f; - _matrix WorldMatrix = XMLoadFloat4x4(&m_LeftLegMatrix); _matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW); _matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ); _vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0xff0000, 1.f); - m_pMainShape->Draw(WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true, + m_pMainShape->Draw(LowerMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true, [this]() { m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0); }); - _matrix WorldUp = XMMatrixTranslationFromVector(WorldMatrix.r[1] * fHeight); - _matrix WorldDown = XMMatrixTranslationFromVector(WorldMatrix.r[1] * -fHeight); - m_pSubShape->Draw(WorldUp * WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true, + _matrix WorldUp = XMMatrixTranslationFromVector(LowerMatrix.r[1] * fHeight); + _matrix WorldDown = XMMatrixTranslationFromVector(LowerMatrix.r[1] * -fHeight); + m_pSubShape->Draw(WorldUp * LowerMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true, [this]() { m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0); }); - m_pSubShape->Draw(WorldDown * WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true, + m_pSubShape->Draw(WorldDown * LowerMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true, [this]() { m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0); }); - - WorldMatrix = XMLoadFloat4x4(&m_RightLegMatrix); - - m_pMainShape->Draw(WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true, - [this]() { - m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0); - }); - WorldUp = XMMatrixTranslationFromVector(WorldMatrix.r[1] * fHeight); - WorldDown = XMMatrixTranslationFromVector(WorldMatrix.r[1] * -fHeight); - m_pSubShape->Draw(WorldUp * WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true, - [this]() { - m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0); - }); - m_pSubShape->Draw(WorldDown * WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true, - [this]() { - m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0); - }); - m_pLower0Bound->Render([this]() { - m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0); - }); - m_pLower1Bound->Render([this]() { - m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0); - }); - return S_OK; } HRESULT CPlayerRobe::Render_BonePhysX() @@ -220,7 +199,10 @@ HRESULT CPlayerRobe::Render_BonePhysX() m_pRobeMainAnchor->Render([this]() { m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0); }); - Render_Legs(); + Render_Legs(XMLoadFloat4x4(&m_LeftLegMatrix)); + Render_Legs(XMLoadFloat4x4(&m_RightLegMatrix)); + Render_Legs(XMLoadFloat4x4(&m_LeftThighMatrix)); + Render_Legs(XMLoadFloat4x4(&m_RightThighMatrix)); _vector vRouteColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x0000ff, 1.f); for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) { m_pRobeJointAnchor[i]->Render([this]() { @@ -231,403 +213,134 @@ HRESULT CPlayerRobe::Render_BonePhysX() if (pPrevDSS != nullptr) { pPrevDSS->Release(); } + m_pLower0Bound->Render(); + m_pLower1Bound->Render(); return S_OK; } #endif // _DEBUG -HRESULT CPlayerRobe::Ready_Components() +HRESULT CPlayerRobe::Update_RobeJoints() { - __super::Ready_Components(nullptr); - - _matrix socketWorld = /*XMMatrixRotationZ(XM_PIDIV2) * */XMLoadFloat4x4(m_pSocketMatrix) * m_pParentTransformCom->Get_XMWorldMatrix(); - _matrix xmAnchorMatricesWorld[ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END)] = { }; - for (_uint iBoneIndex = 0; iBoneIndex < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++iBoneIndex) { - xmAnchorMatricesWorld[iBoneIndex] = XMLoadFloat4x4(&m_ReconstructedJointAnchorMatirces[iBoneIndex]) * socketWorld; - } - - { // - CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; - Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG); - Desc.bAutoOwnerTranslation = false; - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_Leg"), (CComponent**)&m_pLeftLeg, &Desc))) { - return E_FAIL; - } - } - { // - CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; - Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG); - Desc.bAutoOwnerTranslation = false; - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_Leg"), (CComponent**)&m_pRightLeg, &Desc))) { - return E_FAIL; - } - } - { // - CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; - Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG); - Desc.bAutoOwnerTranslation = false; - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_LowerBound"), (CComponent**)&m_pLower0Bound, &Desc))) { - return E_FAIL; - } - } - { // - CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; - Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG); - Desc.bAutoOwnerTranslation = false; - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_LowerBound"), (CComponent**)&m_pLower1Bound, &Desc))) { - return E_FAIL; - } - } - { // RobeSocket - { // Fixed_MainAnchor - CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; - Desc.iSubKind = ENUM_CLASS(PXOBJECT::JOINT_ANCHOR); - Desc.bAutoOwnerTranslation = false; - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ANCHOR"), (CComponent**)&m_pRobeMainAnchor, &Desc))) { - return E_FAIL; - } - m_pRobeMainAnchor->Set_Kinematic(true); - m_pRobeMainAnchor->Set_Transform(socketWorld, true); -#ifdef _DEBUG - m_pRobeMainAnchor->Set_Name("MainAnchor"); -#endif // _DEBUG - } - // SubAnchors - for (_int i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) { - CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; - Desc.iSubKind = ENUM_CLASS(PXOBJECT::JOINT_ANCHOR); - Desc.bAutoOwnerTranslation = false; - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ANCHOR"), (CComponent**)&m_pRobeJointAnchor[i], &Desc))) { - return E_FAIL; - } - - m_pRobeJointAnchor[i]->Set_Transform(xmAnchorMatricesWorld[i], true); -#ifdef _DEBUG - m_pRobeJointAnchor[i]->Set_Name(PLAYER_JOINT_BONE_NAMES[i]); -#endif // _DEBUG - } - } - { // RobeRoute - CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc_Body = {}; - ROUTE_DESC Desc_Route = {}; - Desc_Body.bAutoOwnerTranslation = false; - Desc_Body.iSubKind = ENUM_CLASS(PXOBJECT::JOINT_ROUTE); - /*Origin_Linked_Routes*/ - { - { - Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::ORIGIN_TO_RUP); - Desc_Route.iStartBoneIndex = -1; - Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTUP); - Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START); - Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) { - return E_FAIL; - } - m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true); -#ifdef _DEBUG - m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Set_Name("Origin_Linked_Routes"); -#endif // _DEBUG - { // Joint - PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor(); - PSX::PxRigidDynamic* routeRigidActor = m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor(); - PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor(); - - PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y-- - PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++ - - m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose); - m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose); - } - } - { - Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::ORIGIN_TO_TUP); - Desc_Route.iStartBoneIndex = -1; - Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILUP); - Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_START); - Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) { - return E_FAIL; - } - m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true); -#ifdef _DEBUG - m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Set_Name("Origin_Linked_Routes"); -#endif // _DEBUG - { // Joint - PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor(); - PSX::PxRigidDynamic* routeRigidActor = m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor(); - PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor(); - - PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y-- - PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++ - - m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose); - m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose); - } - } - { - Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::ORIGIN_TO_LUP); - Desc_Route.iStartBoneIndex = -1; - Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTUP); - Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_START); - Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) { - return E_FAIL; - } - m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true); -#ifdef _DEBUG - m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Set_Name("Origin_Linked_Routes"); -#endif // _DEBUG - { // Joint - PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor(); - PSX::PxRigidDynamic* routeRigidActor = m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor(); - PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor(); - - PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y-- - PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++ - - m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose); - m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose); - } - } - } - /*UP_TO_MIDDLE*/ - { - { - Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::RUP_TO_RMIDDLE); - Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTUP); - Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHT); - Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_START); - Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; - Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld); - } - { - Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::TUP_TO_TMIDDLE); - Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILUP); - Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL); - Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_START); - Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; - Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld); - } - { - Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::LUP_TO_LMIDDLE); - Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTUP); - Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT); - Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_START); - Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; - Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld); - } - } - /*MIDDLE_TO_DOWN*/ - { - { - Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::RMIDDLE_TO_RR); - Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHT); - Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTDOWNRIGHT); - Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_START); - Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; - Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld); - } - { - Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::RMIDDLE_TO_R); - Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHT); - Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTDOWN); - Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::RMIDDLE_TO_R_START); - Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; - Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld); - } - { - Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::TMIDDLE_TO_TR); - Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL); - Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILRIGHTDOWN); - Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_START); - Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; - Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld); - } - { - Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::TMIDDLE_TO_TL); - Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL); - Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILLEFTDOWN); - Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_START); - Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; - Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld); - } - { - Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::LMIDDLE_TO_L); - Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT); - Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTDOWN); - Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LMIDDLE_TO_L_START); - Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; - Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld); - } - { - Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::LMIDDLE_TO_LL); - Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT); - Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTDOWNLEFT); - Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_START); - Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; - Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld); - } - } - } - return S_OK; -} - -HRESULT CPlayerRobe::Initialize_Prototype() -{ - return S_OK; -} - -HRESULT CPlayerRobe::Initialize(void* pArg) -{ - PlayerRobe_DESC* pDesc = static_cast (pArg); - m_pSocketMatrix = pDesc->pSocketMatrix; - m_pModelCom = pDesc->pModel; - - m_ReconstructedJointAnchorMatirces.resize(ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END)); - - m_iBoneNum = m_pModelCom->Get_MeshInfluencedBoneNum(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)); - m_PrevRobeBoneMatrices.resize(m_iBoneNum); - if (FAILED(m_pModelCom->Capture_BoneMatrices(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH), m_PrevRobeBoneMatrices))) { - return E_FAIL; - } - - m_pLeftFootLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("LeftFoot"); - m_pLeftLegLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("LeftLeg"); - m_pRightFootLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("RightFoot"); - m_pRightLegLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("RightLeg"); - - XMStoreFloat4x4(&m_PreTransformMatrix, XMLoadFloat4x4(m_pModelCom->Get_PreTransformMatrixPtr())); - - for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) { - m_RobeJointAnchorMatrices[i] = m_pModelCom->Get_BoneLocalMatrixPtr(PLAYER_JOINT_BONE_NAMES[i]); - } - for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) - { - _uint iParentIndex = UINT_MAX; - _bool bCopyPreTransform = false; - - switch ((PLAYER_JOINT_BONE_ORDER)i) - { - case PLAYER_JOINT_BONE_ORDER::RIGHTUP: - case PLAYER_JOINT_BONE_ORDER::TAILUP: - case PLAYER_JOINT_BONE_ORDER::LEFTUP: - bCopyPreTransform = true; - break; - - case PLAYER_JOINT_BONE_ORDER::RIGHT: - iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTUP); - break; - case PLAYER_JOINT_BONE_ORDER::TAIL: - iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILUP); - break; - case PLAYER_JOINT_BONE_ORDER::LEFT: - iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTUP); - break; - case PLAYER_JOINT_BONE_ORDER::RIGHTDOWNRIGHT: - case PLAYER_JOINT_BONE_ORDER::RIGHTDOWN: - iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHT); - break; - case PLAYER_JOINT_BONE_ORDER::TAILRIGHTDOWN: - case PLAYER_JOINT_BONE_ORDER::TAILLEFTDOWN: - iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL); - break; - case PLAYER_JOINT_BONE_ORDER::LEFTDOWN: - case PLAYER_JOINT_BONE_ORDER::LEFTDOWNLEFT: - iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT); - break; - default: - assert(false); - break; - } - - if (true == bCopyPreTransform) - { - _matrix constructedMatrix = XMLoadFloat4x4(m_RobeJointAnchorMatrices[i]) * XMLoadFloat4x4(&m_PreTransformMatrix); - - XMStoreFloat4x4(&m_ReconstructedJointAnchorMatirces[i], constructedMatrix); - continue; - } - - _matrix constructedMatrix = XMLoadFloat4x4(m_RobeJointAnchorMatrices[i]) - * XMLoadFloat4x4(&m_ReconstructedJointAnchorMatirces[iParentIndex]); - - XMStoreFloat4x4(&m_ReconstructedJointAnchorMatirces[i], constructedMatrix); - } - - if (FAILED(__super::Initialize(pArg))) { - return E_FAIL; - } - - if (FAILED(Ready_Components())) { - return E_FAIL; - } - - D6JOINTDESC JointDesc = D6JOINTDESC(); for (_uint i = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START); i < ENUM_CLASS(PLAYER_JOINT_ORDER::END); ++i) { - JointDesc.ApplyToJoint(*m_pDynamicJoints[i]); - m_JointDescriptions[i] = JointDesc; - } + m_JointDescriptions[i].InitFromJoint(*m_pDynamicJoints[i]); + switch (PLAYER_JOINT_ORDER(i)) + { + /* From Origin */ + { + case PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START: + case PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_START: + case PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_START: + case PLAYER_JOINT_ORDER::ORIGIN_TO_RSIDEUP_START: + case PLAYER_JOINT_ORDER::ORIGIN_TO_LSIDEUP_START: + m_JointDescriptions[i].iMotionTwist = 1; + m_JointDescriptions[i].iMotionSwing1 = 1; + m_JointDescriptions[i].iMotionSwing2 = 1; + m_JointDescriptions[i].fLinearLimit = 0.f; + m_JointDescriptions[i].fTwistAbsDeg = 0.f; + m_JointDescriptions[i].fSwingDeg = 40.f; + break; + case PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_END: + case PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_END: + case PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_END: + case PLAYER_JOINT_ORDER::ORIGIN_TO_RSIDEUP_END: + case PLAYER_JOINT_ORDER::ORIGIN_TO_LSIDEUP_END: + m_JointDescriptions[i].iMotionTwist = 1; + m_JointDescriptions[i].iMotionSwing1 = 1; + m_JointDescriptions[i].iMotionSwing2 = 1; + m_JointDescriptions[i].fLinearLimit = 0.f; + m_JointDescriptions[i].fTwistAbsDeg = 0.f; + m_JointDescriptions[i].fSwingDeg = 40.f; + break; + } + /* From_Middle */ + { + case PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_START: + case PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_START: + case PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_START: + case PLAYER_JOINT_ORDER::RSIDEUP_TO_RSIDE_START: + case PLAYER_JOINT_ORDER::LSIDEUP_TO_LSIDE_START: + m_JointDescriptions[i].iMotionTwist = 0; + m_JointDescriptions[i].iMotionSwing1 = 0; + m_JointDescriptions[i].iMotionSwing2 = 0; + m_JointDescriptions[i].fLinearLimit = 0.f; + m_JointDescriptions[i].fTwistAbsDeg = 0.f; + m_JointDescriptions[i].fSwingDeg = 10.f; + break; -#ifdef _DEBUG - m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 0.05f, 22, false, false)); - m_pMainShape = (GeometricPrimitive::CreateCylinder(m_pContext, 0.3f, 0.075f, 22, false)); - D3D11_DEPTH_STENCIL_DESC depthStencilDesc = {}; - depthStencilDesc.DepthEnable = FALSE; - depthStencilDesc.DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ZERO; - depthStencilDesc.DepthFunc = D3D11_COMPARISON_ALWAYS; - depthStencilDesc.StencilEnable = FALSE; + case PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_END: + case PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_END: + case PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_END: + case PLAYER_JOINT_ORDER::RSIDEUP_TO_RSIDE_END: + case PLAYER_JOINT_ORDER::LSIDEUP_TO_LSIDE_END: + m_JointDescriptions[i].iMotionTwist = 1; + m_JointDescriptions[i].iMotionSwing1 = 1; + m_JointDescriptions[i].iMotionSwing2 = 1; + m_JointDescriptions[i].fLinearLimit = 0.f; + m_JointDescriptions[i].fSwingDeg = 0.f; + m_JointDescriptions[i].fTwistAbsDeg = 0.f; - HRESULT result = m_pDevice->CreateDepthStencilState(&depthStencilDesc, &m_pDepthStencilStateNone); - if (FAILED(result)){ - return E_FAIL; + m_JointDescriptions[i].bEnableSlerpDrive = true; + m_JointDescriptions[i].fLinearStiffness = 10.f; + m_JointDescriptions[i].fSlerpDamping = 3.f; + m_JointDescriptions[i].fSlerpForceLimit = 40.f; + m_JointDescriptions[i].bSlerpAccel = true; + break; + } + /* From_Lower */ + { + case PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_START: + case PLAYER_JOINT_ORDER::RSIDE_TO_R_START: + m_JointDescriptions[i].iMotionTwist = 1; + m_JointDescriptions[i].iMotionSwing1 = 1; + m_JointDescriptions[i].iMotionSwing2 = 1; + m_JointDescriptions[i].fLinearLimit = 0.f; + m_JointDescriptions[i].fTwistAbsDeg = 15.f; + m_JointDescriptions[i].fSwingDeg = 15.f; + break; + + case PLAYER_JOINT_ORDER::RSIDE_TO_R_END: + case PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_END: + break; + + case PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_START: + case PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_START: + m_JointDescriptions[i].iMotionTwist = 1; + m_JointDescriptions[i].iMotionSwing1 = 1; + m_JointDescriptions[i].iMotionSwing2 = 1; + m_JointDescriptions[i].fLinearLimit = 0.f; + m_JointDescriptions[i].fTwistAbsDeg = 15.f; + m_JointDescriptions[i].fSwingDeg = 15.f; + break; + + case PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_END: + case PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_END: + break; + + case PLAYER_JOINT_ORDER::LSIDE_TO_L_START: + case PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_START: + m_JointDescriptions[i].iMotionTwist = 1; + m_JointDescriptions[i].iMotionSwing1 = 1; + m_JointDescriptions[i].iMotionSwing2 = 1; + m_JointDescriptions[i].fLinearLimit = 0.f; + m_JointDescriptions[i].fTwistAbsDeg = 15.f; + m_JointDescriptions[i].fSwingDeg = 15.f; + break; + + case PLAYER_JOINT_ORDER::LSIDE_TO_L_END: + case PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_END: + break; + } + default: + break; + } + + //m_JointDescriptions[i].iMotionTwist = 0; + //m_JointDescriptions[i].iMotionSwing1 = 0; + //m_JointDescriptions[i].iMotionSwing2 = 0; + m_JointDescriptions[i].ApplyToJoint(*m_pDynamicJoints[i]); } -#endif // _DEBUG return S_OK; } - -CPlayerRobe* CPlayerRobe::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) -{ - CPlayerRobe* pInstance = new CPlayerRobe(pDevice, pContext); - - if (FAILED(pInstance->Initialize_Prototype())) - { - MSG_BOX("Failed to Created : CPlayerRobe"); - SAFE_RELEASE(pInstance); - } - - return pInstance; -} - -CGameObject* CPlayerRobe::Clone(void* pArg, CGameObject* pOwner) -{ - CPlayerRobe* pInstance = new CPlayerRobe(*this); - pInstance->m_pOwner = pOwner; - if (FAILED(pInstance->Initialize(pArg))) - { - MSG_BOX("Failed to Cloned : CPlayerRobe"); - SAFE_RELEASE(pInstance); - } - - return pInstance; -} - -void CPlayerRobe::Free() -{ - __super::Free(); -#ifdef _DEBUG - SAFE_RELEASE(m_pDepthStencilStateNone); -#endif // _DEBUG - SAFE_RELEASE(m_pRightLeg); - SAFE_RELEASE(m_pLower0Bound); - SAFE_RELEASE(m_pLower1Bound); - SAFE_RELEASE(m_pLeftLeg); - SAFE_RELEASE(m_pRobeMainAnchor); - for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::END); ++i) { - SAFE_RELEASE(m_pRobeJointRoute[i]); - } - for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) { - SAFE_RELEASE(m_pRobeJointAnchor[i]); - } -} #ifdef _DEBUG void CPlayerRobe::Describe_Entity() diff --git a/Jusin154_Team3D/Client/Private/PlayerRobe_Initialize.cpp b/Jusin154_Team3D/Client/Private/PlayerRobe_Initialize.cpp new file mode 100644 index 000000000..23fd682c4 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/PlayerRobe_Initialize.cpp @@ -0,0 +1,548 @@ +#include "pch.h" +#include "PlayerRobe.h" +#include "GameInstance.h" + +CPlayerRobe::CPlayerRobe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CPartObject(pDevice, pContext) { } +CPlayerRobe::CPlayerRobe(const CPlayerRobe& Prototype) : CPartObject(Prototype) { } +HRESULT CPlayerRobe::Helper_RouteJointGenerater(PHYSX_JOINT eType, CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC& Desc_Body, ROUTE_DESC& Desc_Route, _matrix* xmAnchorMatricesWorld) +{ + if (PHYSX_JOINT::D6 == eType) { + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) { + return E_FAIL; + } + m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(xmAnchorMatricesWorld[Desc_Route.iStartBoneIndex].r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true); + + PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iStartBoneIndex]->Get_Actor(); + PSX::PxRigidDynamic* routeRigidActor = m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor(); + PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor(); + + PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y-- + PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++ + + m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose); + m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose); + } + //else if (PHYSX_JOINT::FIXED == eType) { + // if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) { + // return E_FAIL; + // } + // m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(xmAnchorMatricesWorld[Desc_Route.iStartBoneIndex].r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true); + + // PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iStartBoneIndex]->Get_Actor(); + // PSX::PxRigidDynamic* routeRigidActor = m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor(); + // PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor(); + + // PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y-- + // PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++ + + // m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxFixedJoint(startAnchorRigidActor, routeRigidActor, startJointWorldPose); + // m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxFixedJoint(routeRigidActor, endAnchorRigidActor, endJointWorldPose); + //} + + return S_OK; +} +HRESULT CPlayerRobe::Ready_Components() +{ + __super::Ready_Components(nullptr); + + _matrix socketWorld = XMLoadFloat4x4(m_pSocketMatrix) * m_pParentTransformCom->Get_XMWorldMatrix(); + _matrix xmAnchorMatricesWorld[ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END)] = { }; + for (_uint iBoneIndex = 0; iBoneIndex < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++iBoneIndex) { + xmAnchorMatricesWorld[iBoneIndex] = XMLoadFloat4x4(&m_ReconstructedJointAnchorMatirces[iBoneIndex]) * socketWorld; + } +#pragma region BASIC_COMP + { // LLEG + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG); + Desc.bAutoOwnerTranslation = false; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_Leg"), (CComponent**)&m_pLeftLeg, &Desc))) { + return E_FAIL; + } + } + { // RLEG + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG); + Desc.bAutoOwnerTranslation = false; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_Leg"), (CComponent**)&m_pRightLeg, &Desc))) { + return E_FAIL; + } + } + + { // LTHIGH + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG); + Desc.bAutoOwnerTranslation = false; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_Leg"), (CComponent**)&m_pLeftThigh, &Desc))) { + return E_FAIL; + } + } + { // RTHIGH + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG); + Desc.bAutoOwnerTranslation = false; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_Leg"), (CComponent**)&m_pRightThigh, &Desc))) { + return E_FAIL; + } + } + { // L0BOUND + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG); + Desc.bAutoOwnerTranslation = false; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_LowerBound"), (CComponent**)&m_pLower0Bound, &Desc))) { + return E_FAIL; + } + } + { // L1BOUND + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG); + Desc.bAutoOwnerTranslation = false; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_LowerBound"), (CComponent**)&m_pLower1Bound, &Desc))) { + return E_FAIL; + } + } +#pragma endregion +#pragma region SOCKET +#pragma region SOCKET_DECLARE + { // RobeSocket + { // Fixed_MainAnchor + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::JOINT_ANCHOR); + Desc.bAutoOwnerTranslation = false; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ANCHOR"), (CComponent**)&m_pRobeMainAnchor, &Desc))) { + return E_FAIL; + } + m_pRobeMainAnchor->Set_Kinematic(true); + m_pRobeMainAnchor->Set_Transform(socketWorld, true); +#ifdef _DEBUG + m_pRobeMainAnchor->Set_Name("MainAnchor"); +#endif // _DEBUG + } + // SubAnchors + for (_int i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) { + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::JOINT_ANCHOR); + Desc.bAutoOwnerTranslation = false; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ANCHOR"), (CComponent**)&m_pRobeJointAnchor[i], &Desc))) { + return E_FAIL; + } + + m_pRobeJointAnchor[i]->Set_Transform(xmAnchorMatricesWorld[i], true); +#ifdef _DEBUG + m_pRobeJointAnchor[i]->Set_Name(PLAYER_JOINT_BONE_NAMES[i]); +#endif // _DEBUG + } + } +#pragma endregion + { // RobeRoute + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc_Body = {}; + ROUTE_DESC Desc_Route = {}; + Desc_Body.bAutoOwnerTranslation = false; + Desc_Body.iSubKind = ENUM_CLASS(PXOBJECT::JOINT_ROUTE); + /*Origin_Linked_Routes*/ + { + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::ORIGIN_TO_RUP); + Desc_Route.iStartBoneIndex = -1; + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTUP); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) { + return E_FAIL; + } + m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true); + { // Joint + PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor(); + PSX::PxRigidDynamic* routeRigidActor = m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor(); + PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor(); + + PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y-- + PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++ + + m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose); + m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose); + } + } + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::ORIGIN_TO_TUP); + Desc_Route.iStartBoneIndex = -1; + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILUP); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) { + return E_FAIL; + } + m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true); + { // Joint + PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor(); + PSX::PxRigidDynamic* routeRigidActor = m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor(); + PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor(); + + PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y-- + PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++ + + m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose); + m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose); + } + } + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::ORIGIN_TO_LUP); + Desc_Route.iStartBoneIndex = -1; + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTUP); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) { + return E_FAIL; + } + m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true); + { // Joint + PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor(); + PSX::PxRigidDynamic* routeRigidActor = m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor(); + PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor(); + + PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y-- + PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++ + + m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose); + m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose); + } + } + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::ORIGIN_TO_RSIDEUP); + Desc_Route.iStartBoneIndex = -1; + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTSIDEUP); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_RSIDEUP_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) { + return E_FAIL; + } + m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true); + { // Joint + PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor(); + PSX::PxRigidDynamic* routeRigidActor = m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor(); + PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor(); + + PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y-- + PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++ + + m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose); + m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose); + } + } + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::ORIGIN_TO_LSIDEUP); + Desc_Route.iStartBoneIndex = -1; + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTSIDEUP); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_LSIDEUP_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) { + return E_FAIL; + } + m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true); + { // Joint + PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor(); + PSX::PxRigidDynamic* routeRigidActor = m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor(); + PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor(); + + PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y-- + PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++ + + m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose); + m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose); + } + } + } + /*UP_TO_MIDDLE*/ + { + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::RUP_TO_RMIDDLE); + Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTUP); + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHT); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld); + } + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::TUP_TO_TMIDDLE); + Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILUP); + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld); + } + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::LUP_TO_LMIDDLE); + Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTUP); + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld); + } + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::RSIDEUP_TO_RSIDE); + Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTSIDEUP); + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTSIDE); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::RSIDEUP_TO_RSIDE_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld); + } + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::LSIDEUP_TO_LSIDE); + Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTSIDEUP); + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTSIDE); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LSIDEUP_TO_LSIDE_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld); + } + } + /*MIDDLE_TO_DOWN*/ + { + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::RMIDDLE_TO_RR); + Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHT); + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTDOWN); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld); + } + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::RSIDE_TO_R); + Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTSIDE); + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTDOWNSIDE); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::RSIDE_TO_R_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld); + } + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::TMIDDLE_TO_TR); + Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL); + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILRIGHTDOWN); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld); + } + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::TMIDDLE_TO_TL); + Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL); + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILLEFTDOWN); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld); + } + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::LSIDE_TO_L); + Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTSIDE); + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTDOWNSIDE); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LSIDE_TO_L_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld); + } + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::LMIDDLE_TO_LL); + Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT); + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTDOWN); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld); + } + { + Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::LMIDDLE_TO_LL); + Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT); + Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTDOWN); + Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_START); + Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1; + Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld); + } + } + } +#pragma endregion + return S_OK; +} +HRESULT CPlayerRobe::Initialize_Prototype() { return S_OK; } +HRESULT CPlayerRobe::Initialize(void* pArg) +{ + PlayerRobe_DESC* pDesc = static_cast (pArg); + m_pSocketMatrix = pDesc->pSocketMatrix; + m_pModelCom = pDesc->pModel; + + m_ReconstructedJointAnchorMatirces.resize(ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END)); + + m_iBoneNum = m_pModelCom->Get_MeshInfluencedBoneNum(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)); + m_PrevRobeBoneMatrices.resize(m_iBoneNum); + if (FAILED(m_pModelCom->Capture_BoneMatrices(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH), m_PrevRobeBoneMatrices))) { + return E_FAIL; + } + + // Leg-Thigh + m_pLeftFootLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("LeftFoot"); + m_pLeftLegLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("LeftLeg"); + m_pRightFootLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("RightFoot"); + m_pRightLegLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("RightLeg"); + m_pLeftLegUpLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("LeftUpLeg"); + m_pRightLegUpLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("RightUpLeg"); + + // Circle + m_pLower1BoundMatrix = m_pLower0BoundMatrix = m_pModelCom->Get_BoneMatrixPtr("Hips"); + +#pragma region READY_INITIAL_COMBINED_TRANSFORMATIONMATRIX + XMStoreFloat4x4(&m_PreTransformMatrix, XMLoadFloat4x4(m_pModelCom->Get_PreTransformMatrixPtr())); + for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) { + m_RobeJointAnchorMatrices[i] = m_pModelCom->Get_BoneLocalMatrixPtr(PLAYER_JOINT_BONE_NAMES[i]); + } + for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) + { + _uint iParentIndex = UINT_MAX; + _bool bCopyPreTransform = false; + + switch ((PLAYER_JOINT_BONE_ORDER)i) + { + case PLAYER_JOINT_BONE_ORDER::RIGHTUP: + case PLAYER_JOINT_BONE_ORDER::TAILUP: + case PLAYER_JOINT_BONE_ORDER::LEFTUP: + case PLAYER_JOINT_BONE_ORDER::RIGHTSIDEUP: + case PLAYER_JOINT_BONE_ORDER::LEFTSIDEUP: + bCopyPreTransform = true; + break; + + case PLAYER_JOINT_BONE_ORDER::RIGHT: + iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTUP); + break; + case PLAYER_JOINT_BONE_ORDER::TAIL: + iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILUP); + break; + case PLAYER_JOINT_BONE_ORDER::LEFT: + iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTUP); + break; + case PLAYER_JOINT_BONE_ORDER::RIGHTSIDE: + iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTSIDEUP); + break; + case PLAYER_JOINT_BONE_ORDER::LEFTSIDE: + iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTSIDEUP); + break; + + case PLAYER_JOINT_BONE_ORDER::RIGHTDOWN: + iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHT); + break; + case PLAYER_JOINT_BONE_ORDER::TAILRIGHTDOWN: + case PLAYER_JOINT_BONE_ORDER::TAILLEFTDOWN: + iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL); + break; + case PLAYER_JOINT_BONE_ORDER::LEFTDOWN: + iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT); + break; + case PLAYER_JOINT_BONE_ORDER::RIGHTDOWNSIDE: + iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTSIDE); + break; + case PLAYER_JOINT_BONE_ORDER::LEFTDOWNSIDE: + iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTSIDE); + break; + default: + assert(false); + break; + } + + if (true == bCopyPreTransform) + { + _matrix constructedMatrix = XMLoadFloat4x4(m_RobeJointAnchorMatrices[i]) * XMLoadFloat4x4(&m_PreTransformMatrix); + + XMStoreFloat4x4(&m_ReconstructedJointAnchorMatirces[i], constructedMatrix); + continue; + } + + _matrix constructedMatrix = XMLoadFloat4x4(m_RobeJointAnchorMatrices[i]) + * XMLoadFloat4x4(&m_ReconstructedJointAnchorMatirces[iParentIndex]); + + XMStoreFloat4x4(&m_ReconstructedJointAnchorMatirces[i], constructedMatrix); + } +#pragma endregion + + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components())) { + return E_FAIL; + } + + D6JOINTDESC JointDesc = D6JOINTDESC(); + for (_uint i = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START); i < ENUM_CLASS(PLAYER_JOINT_ORDER::END); ++i) { + JointDesc.ApplyToJoint(*m_pDynamicJoints[i]); + m_JointDescriptions[i] = JointDesc; + } + + Update_LegsPosition(); + Update_RobeJoints(); + +#ifdef _DEBUG + m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 0.05f, 22, false, false)); + m_pMainShape = (GeometricPrimitive::CreateCylinder(m_pContext, 0.3f, 0.075f, 22, false)); + D3D11_DEPTH_STENCIL_DESC depthStencilDesc = {}; + depthStencilDesc.DepthEnable = FALSE; + depthStencilDesc.DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ZERO; + depthStencilDesc.DepthFunc = D3D11_COMPARISON_ALWAYS; + depthStencilDesc.StencilEnable = FALSE; + + HRESULT result = m_pDevice->CreateDepthStencilState(&depthStencilDesc, &m_pDepthStencilStateNone); + if (FAILED(result)){ + return E_FAIL; + } +#endif // _DEBUG + return S_OK; +} + +CPlayerRobe* CPlayerRobe::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CPlayerRobe* pInstance = new CPlayerRobe(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CPlayerRobe"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CPlayerRobe::Clone(void* pArg, CGameObject* pOwner) +{ + CPlayerRobe* pInstance = new CPlayerRobe(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CPlayerRobe"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CPlayerRobe::Free() +{ + __super::Free(); +#ifdef _DEBUG + SAFE_RELEASE(m_pDepthStencilStateNone); +#endif // _DEBUG + SAFE_RELEASE(m_pRightLeg); + SAFE_RELEASE(m_pLeftLeg); + SAFE_RELEASE(m_pLeftThigh); + SAFE_RELEASE(m_pRightThigh); + SAFE_RELEASE(m_pLower0Bound); + SAFE_RELEASE(m_pLower1Bound); + SAFE_RELEASE(m_pRobeMainAnchor); + for (_uint i = 0; i < ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::END); ++i) { + SAFE_RELEASE(m_pRobeVerticalJointRoute[i]); + } + for (_uint i = 0; i < ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::END); ++i) { + SAFE_RELEASE(m_pRobeFixedJointRoute[i]); + } + for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) { + SAFE_RELEASE(m_pRobeJointAnchor[i]); + } + if (nullptr != m_pMainShape) { + m_pMainShape.release(); + m_pMainShape = nullptr; + } + if (nullptr != m_pSubShape) { + m_pSubShape.release(); + m_pSubShape = nullptr; + } +} diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 0825c1ace..cb02af8dc 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -222,6 +222,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta) } else if (m_pGameInstance->Key_Down(DIK_G)) { Get_PartObject()->Set_Visible(true); + m_pModelCom->IsSkip(true); //m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second); } else if (m_pGameInstance->Key_Down(DIK_B)) { @@ -346,6 +347,7 @@ void CPlayer::Behavior_IdleExit() { m_pFSM->Disable_State(FSMSTATE::IDLE | FSMSTATE::IDLE_TURN); Reset_Event(); + m_pModelCom->IsSkip(false); } void CPlayer::Behavior_MoveEnter() @@ -469,6 +471,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) } else if (m_pGameInstance->Key_Down(DIK_G)) { Get_PartObject()->Set_Visible(true); + m_pModelCom->IsSkip(true); //m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second); } @@ -698,6 +701,7 @@ void CPlayer::Behavior_MoveExit() { m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::STOP); Reset_Event(); + m_pModelCom->IsSkip(false); } void CPlayer::Behavior_JumpEnter() @@ -1570,6 +1574,7 @@ HRESULT CPlayer::Behavior_SpellExitCheck() void CPlayer::Behavior_SpellExit() { m_pFSM->Disable_State(FSMSTATE::SPELL); + m_pInfoInstance->Set_SearchLockOnFlag(true); m_pModelCom->Set_BlendDuration(0.3f); Reset_Event(); m_bLookAt = false; @@ -1596,6 +1601,8 @@ void CPlayer::Behavior_AncientSpellEnter() m_pEffectPool->Use_Skill(SKILL_TYPE::LIGHTNING_SIDE, Get_PartObject()); }, 0.18f); + + Get_PartObject()->Set_CameraAnim(17); } HRESULT CPlayer::Behavior_AncientSpellExitCheck() @@ -2486,16 +2493,6 @@ HRESULT CPlayer::Behavior_Broom_DismountExitCheck(_float fTimeDelta) void CPlayer::Behavior_Broom_DismountExit() { m_pFSM->Disable_State(FSMSTATE::BROOM_DISMOUNT); - _vector look = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK)); - - _vector worldUp = XMVectorSet(0.f, 1.f, 0.f, 0.f); - - _vector right = XMVector3Normalize(XMVector3Cross(worldUp, look)); - _vector up = XMVector3Normalize(XMVector3Cross(look, right)); - - m_pTransformCom->Set_State(STATE::RIGHT, right); - m_pTransformCom->Set_State(STATE::UP, up); - m_pTransformCom->Set_State(STATE::LOOK, look); Reset_Event(); } @@ -2682,8 +2679,9 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); break; case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA): + m_pInfoInstance->Set_SearchLockOnFlag(false); pairAnimInfo = m_Animation[STATEANIM::AVADA_KEDAVRA]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false,1.f,false); if (m_LockOnInfo.pUnit) m_pTransformCom->LookAt(m_LockOnInfo.pUnit->Get_WorldPostion()); @@ -2696,6 +2694,9 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) 0.f); Info.pText = TEXT("아바다 케다브라!"); m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info); + + Get_PartObject()->Set_CameraAnim(6); + break; case ENUM_CLASS(SKILL_TYPE::REPARO): { @@ -3123,7 +3124,7 @@ void CPlayer::Add_FSM() m_pBroomTransform->Set_Scale(m_BroomScale); } _float3 vPlayerScale = { 1.f,1.f,1.f }; - m_pBroomTransform->Set_Scale(vPlayerScale); + m_pTransformCom->Set_Scale(vPlayerScale); Attach_Broom(); }; Desc.funcLateUpdate = nullptr; diff --git a/Jusin154_Team3D/Client/Private/Quest_Canvas.cpp b/Jusin154_Team3D/Client/Private/Quest_Canvas.cpp index accca3075..9c413d948 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Canvas.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Canvas.cpp @@ -90,7 +90,7 @@ HRESULT CQuest_Canvas::Ready_Components(void* pArg) HRESULT CQuest_Canvas::Ready_Panel(void* pArg) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pQuest_Panel)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pQuest_Panel)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp index 41e723493..b3a5ebf2f 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp @@ -53,7 +53,7 @@ HRESULT CQuest_Panel::Initialize(void* pArg) ElementAllVisible(true); Set_Status(); Add_Function(TEXT("Click"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); }); - static_cast(m_pOwner)->Add_Function(TEXT("QuestPanelClose"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); }); + //static_cast(m_pOwner)->Add_Function(TEXT("QuestPanelClose"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); }); return S_OK; } @@ -170,49 +170,49 @@ HRESULT CQuest_Panel::Ready_Components(void* pArg) HRESULT CQuest_Panel::Ready_Element(void* pArg) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Slot)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Slot)))) { return E_FAIL; } Add_Element(TEXT("Quest_Slot"), m_pQuest_Slot); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Info)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Info)))) { return E_FAIL; } Add_Element(TEXT("Quest_Info"), m_pQuest_Info); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Info_Header)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Info_Header)))) { return E_FAIL; } Add_Element(TEXT("Quest_Info_Header"), m_pQuest_Info_Header); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Info_Line)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Info_Line)))) { return E_FAIL; } Add_Element(TEXT("Quest_Info_Line"), m_pQuest_Info_Line); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Entry_Line)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Entry_Line)))) { return E_FAIL; } Add_Element(TEXT("Quest_Entry_Line"), m_pQuest_Entry_Line); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Status1)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Status1)))) { return E_FAIL; } Add_Element(TEXT("Quest_Status1"), m_pQuest_Status1); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Status2)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Status2)))) { return E_FAIL; } Add_Element(TEXT("Quest_Status2"), m_pQuest_Status2); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Status3)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Status3)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/RandomNpc.cpp b/Jusin154_Team3D/Client/Private/RandomNpc.cpp index 2a0a56c57..3e8acb8fa 100644 --- a/Jusin154_Team3D/Client/Private/RandomNpc.cpp +++ b/Jusin154_Team3D/Client/Private/RandomNpc.cpp @@ -290,8 +290,8 @@ HRESULT CRandomNpc::Ready_Components(void* pArg) } break; case 4: - m_strModelPrototypeTag = TEXT("Prototype_Component_M_Student_Model"); - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("M_STUDENT"), (CComponent**)&m_pNpcStat))) { + m_strModelPrototypeTag = TEXT("Prototype_Component_Kitchen_Female_Model"); + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("KITCHENFEMALE"), (CComponent**)&m_pNpcStat))) { return E_FAIL; } break; @@ -331,12 +331,6 @@ HRESULT CRandomNpc::Ready_Components(void* pArg) return E_FAIL; } break; - case 11: - m_strModelPrototypeTag = TEXT("Prototype_Component_Kitchen_Female_Model"); - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("KITCHENFEMALE"), (CComponent**)&m_pNpcStat))) { - return E_FAIL; - } - break; } /* Com_Model */ diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp index 2618065d2..c6610d785 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp @@ -663,6 +663,9 @@ HRESULT CRanrok::Render_Nonblend() if (FAILED(m_pModelCom->Render(i))) { return E_FAIL; } + if (true == m_bDrawOutLine) { + m_pGameInstance->End_OutLine_Write(); + } } /*if (m_bDrawOutLine) { diff --git a/Jusin154_Team3D/Client/Private/Ride_BboosterBar.cpp b/Jusin154_Team3D/Client/Private/Ride_BoosterBar.cpp similarity index 80% rename from Jusin154_Team3D/Client/Private/Ride_BboosterBar.cpp rename to Jusin154_Team3D/Client/Private/Ride_BoosterBar.cpp index 638a37e2a..cde44a9b1 100644 --- a/Jusin154_Team3D/Client/Private/Ride_BboosterBar.cpp +++ b/Jusin154_Team3D/Client/Private/Ride_BoosterBar.cpp @@ -1,23 +1,24 @@ #include "pch.h" -#include "Ride_BboosterBar.h" +#include "Ride_BoosterBar.h" #include "GameInstance.h" +#include "InfoInstance.h" -CRide_BboosterBar::CRide_BboosterBar(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +CRide_BoosterBar::CRide_BoosterBar(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CElementObject(pDevice, pContext) { } -CRide_BboosterBar::CRide_BboosterBar(const CRide_BboosterBar& rhs) +CRide_BoosterBar::CRide_BoosterBar(const CRide_BoosterBar& rhs) :CElementObject(rhs) { } -HRESULT CRide_BboosterBar::Initialize_Prototype() +HRESULT CRide_BoosterBar::Initialize_Prototype() { return S_OK; } -HRESULT CRide_BboosterBar::Initialize(void* pArg) +HRESULT CRide_BoosterBar::Initialize(void* pArg) { CUIObject::UIOBJECT_DESC Desc{}; @@ -41,8 +42,8 @@ HRESULT CRide_BboosterBar::Initialize(void* pArg) m_fAlpha = 1.f; m_fAlphaTime = 10.f; m_vNine_Slice = _float4(27.f, 125.f, m_fSizeY * 0.5f, m_fSizeY * 0.5f); - m_fMaxGauge = 100.f; - m_fCurrentGauge = m_fMaxGauge; + m_fMaxGauge = 5.f; + m_fCurrentGauge = 5.f; m_fTargetGauge = m_fMaxGauge; m_fMoveSpeed = 5.f; m_fGaugeBGSize = _float2(144.f, 24.f); @@ -52,17 +53,27 @@ HRESULT CRide_BboosterBar::Initialize(void* pArg) return S_OK; } -void CRide_BboosterBar::Active(_float fTimeDelta) +void CRide_BoosterBar::Active(_float fTimeDelta) { m_fCurrentGauge = CMyTools::Lerp_f1D(m_fCurrentGauge, m_fTargetGauge, fTimeDelta * m_fMoveSpeed); } -void CRide_BboosterBar::NonActive(_float fTimeDelta) +void CRide_BoosterBar::NonActive(_float fTimeDelta) { m_fCurrentGauge = CMyTools::Lerp_f1D(m_fTargetGauge, m_fCurrentGauge, fTimeDelta * m_fMoveSpeed); } -void CRide_BboosterBar::Priority_Update(_float fTimeDelta) +void CRide_BoosterBar::Set_Gauge(_float fTime) +{ + m_fTargetGauge = fTime; +} + +void CRide_BoosterBar::Booster(_bool bBooster) +{ + m_bBooster = bBooster; +} + +void CRide_BoosterBar::Priority_Update(_float fTimeDelta) { if (!__super::Chack_Visible()) { @@ -71,7 +82,7 @@ void CRide_BboosterBar::Priority_Update(_float fTimeDelta) __super::Priority_Update(fTimeDelta); } -void CRide_BboosterBar::Update(_float fTimeDelta) +void CRide_BoosterBar::Update(_float fTimeDelta) { if (!__super::Chack_Visible()) { @@ -113,9 +124,8 @@ void CRide_BboosterBar::Update(_float fTimeDelta) m_fGaugeBar = m_fCurrentGauge / m_fMaxGauge; - if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON)) + if (m_bBooster == true) { - m_fTargetGauge -= fTimeDelta * m_fTimeMult; m_iClick = 1; } else @@ -130,7 +140,7 @@ void CRide_BboosterBar::Update(_float fTimeDelta) if (m_iClick == 0) { - m_fTargetGauge += fTimeDelta * m_fTimeMult; + //m_fTargetGauge += fTimeDelta; } if (m_iClick == 1) @@ -150,7 +160,7 @@ void CRide_BboosterBar::Update(_float fTimeDelta) __super::Update(fTimeDelta); } -void CRide_BboosterBar::Late_Update(_float fTimeDelta) +void CRide_BoosterBar::Late_Update(_float fTimeDelta) { if (!__super::Chack_Visible()) { @@ -162,7 +172,7 @@ void CRide_BboosterBar::Late_Update(_float fTimeDelta) } } -HRESULT CRide_BboosterBar::Render() +HRESULT CRide_BoosterBar::Render() { if (FAILED(Bind_ShaderResources())) { return E_FAIL; @@ -180,12 +190,12 @@ HRESULT CRide_BboosterBar::Render() return S_OK; } -_vector CRide_BboosterBar::Get_WorldPostion() +_vector CRide_BoosterBar::Get_WorldPostion() { return m_pTransformCom->Get_State(STATE::POSITION); } -HRESULT CRide_BboosterBar::Bind_ShaderResources() +HRESULT CRide_BoosterBar::Bind_ShaderResources() { if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { @@ -270,7 +280,7 @@ HRESULT CRide_BboosterBar::Bind_ShaderResources() return S_OK; } -HRESULT CRide_BboosterBar::Ready_Components(void* pArg) +HRESULT CRide_BoosterBar::Ready_Components(void* pArg) { if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) { @@ -295,33 +305,33 @@ HRESULT CRide_BboosterBar::Ready_Components(void* pArg) return S_OK; } -CRide_BboosterBar* CRide_BboosterBar::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +CRide_BoosterBar* CRide_BoosterBar::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { - CRide_BboosterBar* pInstance = new CRide_BboosterBar(pDevice, pContext); + CRide_BoosterBar* pInstance = new CRide_BoosterBar(pDevice, pContext); if (FAILED(pInstance->Initialize_Prototype())) { - MSG_BOX("Failed to Created : CRide_BboosterBar"); + MSG_BOX("Failed to Created : CRide_BoosterBar"); SAFE_RELEASE(pInstance); } return pInstance; } -CGameObject* CRide_BboosterBar::Clone(void* pArg, CGameObject* pOwner) +CGameObject* CRide_BoosterBar::Clone(void* pArg, CGameObject* pOwner) { - CRide_BboosterBar* pInstance = new CRide_BboosterBar(*this); + CRide_BoosterBar* pInstance = new CRide_BoosterBar(*this); pInstance->m_pOwner = pOwner; if (FAILED(pInstance->Initialize(pArg))) { - MSG_BOX("Failed to Cloned : CRide_BboosterBar"); + MSG_BOX("Failed to Cloned : CRide_BoosterBar"); SAFE_RELEASE(pInstance); } return pInstance; } -void CRide_BboosterBar::Free() +void CRide_BoosterBar::Free() { __super::Free(); @@ -333,7 +343,7 @@ void CRide_BboosterBar::Free() } #ifdef _DEBUG -void CRide_BboosterBar::Describe_Entity() +void CRide_BoosterBar::Describe_Entity() { } #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Ride_Bbooster_Slot.cpp b/Jusin154_Team3D/Client/Private/Ride_Booster_Slot.cpp similarity index 79% rename from Jusin154_Team3D/Client/Private/Ride_Bbooster_Slot.cpp rename to Jusin154_Team3D/Client/Private/Ride_Booster_Slot.cpp index 27f2e36bb..7c1c07873 100644 --- a/Jusin154_Team3D/Client/Private/Ride_Bbooster_Slot.cpp +++ b/Jusin154_Team3D/Client/Private/Ride_Booster_Slot.cpp @@ -1,22 +1,22 @@ #include "pch.h" -#include "Ride_Bbooster_Slot.h" +#include "Ride_Booster_Slot.h" #include "GameInstance.h" -CRide_Bbooster_Slot::CRide_Bbooster_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +CRide_Booster_Slot::CRide_Booster_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CElementObject(pDevice, pContext) { } -CRide_Bbooster_Slot::CRide_Bbooster_Slot(const CRide_Bbooster_Slot& rhs) +CRide_Booster_Slot::CRide_Booster_Slot(const CRide_Booster_Slot& rhs) :CElementObject(rhs) { } -HRESULT CRide_Bbooster_Slot::Initialize_Prototype() +HRESULT CRide_Booster_Slot::Initialize_Prototype() { return S_OK; } -HRESULT CRide_Bbooster_Slot::Initialize(void* pArg) +HRESULT CRide_Booster_Slot::Initialize(void* pArg) { CUIObject::UIOBJECT_DESC Desc{}; @@ -44,7 +44,7 @@ HRESULT CRide_Bbooster_Slot::Initialize(void* pArg) return S_OK; } -void CRide_Bbooster_Slot::Priority_Update(_float fTimeDelta) +void CRide_Booster_Slot::Priority_Update(_float fTimeDelta) { if (!__super::Chack_Visible()) { @@ -52,7 +52,7 @@ void CRide_Bbooster_Slot::Priority_Update(_float fTimeDelta) } __super::Priority_Update(fTimeDelta); } -void CRide_Bbooster_Slot::Update(_float fTimeDelta) +void CRide_Booster_Slot::Update(_float fTimeDelta) { if (!__super::Chack_Visible()) { @@ -88,7 +88,7 @@ void CRide_Bbooster_Slot::Update(_float fTimeDelta) __super::Update(fTimeDelta); } -void CRide_Bbooster_Slot::Late_Update(_float fTimeDelta) +void CRide_Booster_Slot::Late_Update(_float fTimeDelta) { if (!__super::Chack_Visible()) { @@ -100,7 +100,7 @@ void CRide_Bbooster_Slot::Late_Update(_float fTimeDelta) } } -HRESULT CRide_Bbooster_Slot::Render() +HRESULT CRide_Booster_Slot::Render() { if (FAILED(Bind_ShaderResources())) { return E_FAIL; @@ -118,12 +118,12 @@ HRESULT CRide_Bbooster_Slot::Render() return S_OK; } -_vector CRide_Bbooster_Slot::Get_WorldPostion() +_vector CRide_Booster_Slot::Get_WorldPostion() { return m_pTransformCom->Get_State(STATE::POSITION); } -HRESULT CRide_Bbooster_Slot::Bind_ShaderResources() +HRESULT CRide_Booster_Slot::Bind_ShaderResources() { if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { @@ -180,7 +180,7 @@ HRESULT CRide_Bbooster_Slot::Bind_ShaderResources() return S_OK; } -HRESULT CRide_Bbooster_Slot::Ready_Components(void* pArg) +HRESULT CRide_Booster_Slot::Ready_Components(void* pArg) { if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) { @@ -205,33 +205,33 @@ HRESULT CRide_Bbooster_Slot::Ready_Components(void* pArg) return S_OK; } -CRide_Bbooster_Slot* CRide_Bbooster_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +CRide_Booster_Slot* CRide_Booster_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { - CRide_Bbooster_Slot* pInstance = new CRide_Bbooster_Slot(pDevice, pContext); + CRide_Booster_Slot* pInstance = new CRide_Booster_Slot(pDevice, pContext); if (FAILED(pInstance->Initialize_Prototype())) { - MSG_BOX("Failed to Created : CRide_Bbooster_Slot"); + MSG_BOX("Failed to Created : CRide_Booster_Slot"); SAFE_RELEASE(pInstance); } return pInstance; } -CGameObject* CRide_Bbooster_Slot::Clone(void* pArg, CGameObject* pOwner) +CGameObject* CRide_Booster_Slot::Clone(void* pArg, CGameObject* pOwner) { - CRide_Bbooster_Slot* pInstance = new CRide_Bbooster_Slot(*this); + CRide_Booster_Slot* pInstance = new CRide_Booster_Slot(*this); pInstance->m_pOwner = pOwner; if (FAILED(pInstance->Initialize(pArg))) { - MSG_BOX("Failed to Cloned : CRide_Bbooster_Slot"); + MSG_BOX("Failed to Cloned : CRide_Booster_Slot"); SAFE_RELEASE(pInstance); } return pInstance; } -void CRide_Bbooster_Slot::Free() +void CRide_Booster_Slot::Free() { __super::Free(); @@ -243,7 +243,7 @@ void CRide_Bbooster_Slot::Free() } #ifdef _DEBUG -void CRide_Bbooster_Slot::Describe_Entity() +void CRide_Booster_Slot::Describe_Entity() { } #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Ride_Panel.cpp b/Jusin154_Team3D/Client/Private/Ride_Panel.cpp index 7d5e9cb5d..9c7a6276c 100644 --- a/Jusin154_Team3D/Client/Private/Ride_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Ride_Panel.cpp @@ -4,10 +4,11 @@ #include "Ride_Info_Key.h" #include "Ride_Info.h" #include "Ride_InfoBG.h" -#include "Ride_Bbooster_Slot.h" -#include "Ride_BboosterBar.h" +#include "Ride_Booster_Slot.h" +#include "Ride_BoosterBar.h" #include "Ride_HpBar.h" #include "Ride_HpSlot.h" +#include "InfoInstance.h" CRide_Panel::CRide_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CPanelObject(pDevice, pContext) @@ -15,7 +16,9 @@ CRide_Panel::CRide_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) } CRide_Panel::CRide_Panel(const CRide_Panel& rhs) - :CPanelObject(rhs) + :CPanelObject(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) + { } @@ -57,9 +60,21 @@ HRESULT CRide_Panel::Initialize(void* pArg) m_vLerp_Position = _float4(1750.f, m_fY, 0.f, 1.f); static_cast(m_pRide_Info)->Visible(false); static_cast(m_pRide_InfoBG)->Visible(false); + m_pInfoInstance->Add_Event(TEXT("BroomBooster"), [this](void* p) {this->Booster(*reinterpret_cast<_bool*>(p)); }); return S_OK; } +void CRide_Panel::Booster(_bool bBooster) +{ + m_bBooster = bBooster; + static_cast(m_pRide_BoosterBar)->Booster(m_bBooster); +} + +void CRide_Panel::Set_Gauge() +{ + static_cast(m_pRide_BoosterBar)->Set_Gauge(m_pInfoInstance->Get_Broom_Booster_Timer()); +} + void CRide_Panel::Priority_Update(_float fTimeDelta) { if (!__super::Chack_Visible()) @@ -124,6 +139,8 @@ void CRide_Panel::Update(_float fTimeDelta) static_cast(m_pRide_InfoBG)->Set_Hover(true); } + Set_Gauge(); + __super::Update(fTimeDelta); } @@ -168,43 +185,43 @@ HRESULT CRide_Panel::Ready_Components(void* pArg) HRESULT CRide_Panel::Ready_Element(void* pArg) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_InfoBG)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_InfoBG)))) { return E_FAIL; } Add_Element(TEXT("Ride_InfoBG"), m_pRide_InfoBG); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_Info_Key)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_Info_Key)))) { return E_FAIL; } Add_Element(TEXT("Ride_Info_Key"), m_pRide_Info_Key); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_Info)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_Info)))) { return E_FAIL; } Add_Element(TEXT("Ride_Info"), m_pRide_Info); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_Bbooster_Slot)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_Booster_Slot)))) { return E_FAIL; } - Add_Element(TEXT("Ride_Bbooster_Slot"), m_pRide_Bbooster_Slot); + Add_Element(TEXT("Ride_Bbooster_Slot"), m_pRide_Booster_Slot); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_BboosterBar)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_BoosterBar)))) { return E_FAIL; } - Add_Element(TEXT("Ride_BboosterBar"), m_pRide_BboosterBar); + Add_Element(TEXT("Ride_BboosterBar"), m_pRide_BoosterBar); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_HpBar)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_HpBar)))) { return E_FAIL; } Add_Element(TEXT("Ride_HpBar"), m_pRide_HpBar); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_HpSlot)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_HpSlot)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Canvas.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Canvas.cpp index 36d8e4dd0..3fd849dcf 100644 --- a/Jusin154_Team3D/Client/Private/SpellLearn_Canvas.cpp +++ b/Jusin154_Team3D/Client/Private/SpellLearn_Canvas.cpp @@ -87,7 +87,7 @@ HRESULT CSpellLearn_Canvas::Ready_Components(void* pArg) HRESULT CSpellLearn_Canvas::Ready_Panel(void* pArg) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pSpellLearn_Panel)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pSpellLearn_Panel)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp index 71b6b8009..d16532b7c 100644 --- a/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp @@ -303,37 +303,37 @@ HRESULT CSpellLearn_Panel::Ready_Components(void* pArg) HRESULT CSpellLearn_Panel::Ready_Element(void* pArg) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Name)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Name)))) { return E_FAIL; } Add_Element(TEXT("SpellLearn_Name"), m_pSpellLearn_Name); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn)))) { return E_FAIL; } Add_Element(TEXT("SpellLearn"), m_pSpellLearn); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_MovePointer)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_MovePointer)))) { return E_FAIL; } Add_Element(TEXT("SpellLearn_MovePointer"), m_pSpellLearn_MovePointer); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_ChaserPointer)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_ChaserPointer)))) { return E_FAIL; } Add_Element(TEXT("SPellLeam_ChaserPointer"), m_pSpellLearn_ChaserPointer); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Slot)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Slot)))) { return E_FAIL; } Add_Element(TEXT("SpellLearn_Slot"), m_pSpellLearn_Slot); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Overlay)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Overlay)))) { return E_FAIL; } @@ -341,7 +341,7 @@ HRESULT CSpellLearn_Panel::Ready_Element(void* pArg) for (_int i = 0; i < 3; ++i) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Booster)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Booster)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/Spell_Canvas.cpp b/Jusin154_Team3D/Client/Private/Spell_Canvas.cpp index 756b5f9af..50f88e5ba 100644 --- a/Jusin154_Team3D/Client/Private/Spell_Canvas.cpp +++ b/Jusin154_Team3D/Client/Private/Spell_Canvas.cpp @@ -86,7 +86,7 @@ HRESULT CSpell_Canvas::Ready_Components(void* pArg) HRESULT CSpell_Canvas::Ready_Panel(void* pArg) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pSpell_Panel)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pSpell_Panel)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/Spell_Panel.cpp b/Jusin154_Team3D/Client/Private/Spell_Panel.cpp index 4d1ad1088..3decb0b0a 100644 --- a/Jusin154_Team3D/Client/Private/Spell_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Spell_Panel.cpp @@ -240,91 +240,91 @@ HRESULT CSpell_Panel::Ready_Components(void* pArg) HRESULT CSpell_Panel::Ready_Element(void* pArg) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pCurrent_Spell_Slot)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pCurrent_Spell_Slot)))) { return E_FAIL; } Add_Element(TEXT("Current_Spell_Slot"), m_pCurrent_Spell_Slot); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_List)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_List)))) { return E_FAIL; } Add_Element(TEXT("Spell_List"), m_pSpell_List); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pEessential_Spell_Slot)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pEessential_Spell_Slot)))) { return E_FAIL; } Add_Element(TEXT("Eessential_Spell_Slot"), m_pEessential_Spell_Slot); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pEessential_Spell)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pEessential_Spell)))) { return E_FAIL; } Add_Element(TEXT("Eessential_Spell"), m_pEessential_Spell); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_List_Image)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_List_Image)))) { return E_FAIL; } Add_Element(TEXT("Spell_List_Image"), m_pSpell_List_Image); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_State)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_State)))) { return E_FAIL; } Add_Element(TEXT("Spell_State"), m_pSpell_State); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Hover)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Hover)))) { return E_FAIL; } Add_Element(TEXT("Spell_Hover"), m_pSpell_Hover); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Hover_Effect)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Hover_Effect)))) { return E_FAIL; } Add_Element(TEXT("Spell_Hover_Effect"), m_pSpell_Hover_Effect); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Preview)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Preview)))) { return E_FAIL; } Add_Element(TEXT("Spell_Preview"), m_pSpell_Preview); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Vidio_Border)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Vidio_Border)))) { return E_FAIL; } Add_Element(TEXT("Spell_Vidio_Border"), m_pSpell_Vidio_Border); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pCurrent_Slot_Number)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pCurrent_Slot_Number)))) { return E_FAIL; } Add_Element(TEXT("Current_Slot_Number"), m_pCurrent_Slot_Number); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Header)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Header)))) { return E_FAIL; } Add_Element(TEXT("Spell_Header"), m_pSpell_Header); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Header_Line)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Header_Line)))) { return E_FAIL; } Add_Element(TEXT("Spell_Header_Line"), m_pSpell_Header_Line); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Anim)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Anim)))) { return E_FAIL; } Add_Element(TEXT("Spell_Anim"), m_pSpell_Anim); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Drag)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Drag)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/Troll_Rock.cpp b/Jusin154_Team3D/Client/Private/Troll_Rock.cpp index b033f2add..d226aee9d 100644 --- a/Jusin154_Team3D/Client/Private/Troll_Rock.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_Rock.cpp @@ -126,21 +126,37 @@ void CTroll_Rock::RockHit() tagCollInfo.pObject = pUserData->pOwner; tagCollInfo.eHitType = ENUM_CLASS(HIT_TYPE::HIT_HEAVY); tagCollInfo.fDamage = 10.f; - switch (PXOBJECT(pUserData->iSubKind)) + switch (pUserData->eKind) { - case Engine::PXOBJECT::PLAYER: - { - if (false == m_bVisible) { - break; + case PHYSX_KIND::BODY_DYNAMIC: + switch (PXOBJECT(pUserData->iSubKind)) + { + case PXOBJECT::SKILL_PROTEGO: + { + if (false == m_bVisible) { + break; + } + m_bVisible = false; + pUserData->pOwner->OnCollision(this, &tagCollInfo); + } + break; + } + break; + case PHYSX_KIND::CCTActor: + { + switch (PXOBJECT(pUserData->iSubKind)) + { + case Engine::PXOBJECT::PLAYER: + { + if (false == m_bVisible) { + break; + } + m_bVisible = false; + pUserData->pOwner->OnCollision(this, &tagCollInfo); + } + break; } - m_bVisible = false; - pUserData->pOwner->OnCollision(this, &tagCollInfo); } - break; - case Engine::PXOBJECT::ALLY_HITBOX: - break; - default: - break; } } } diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp index a06507914..4bc786933 100644 --- a/Jusin154_Team3D/Client/Private/Troll_States.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp @@ -117,8 +117,14 @@ HRESULT CTroll::Behavior_IdleBreakExitCheck() if (m_fTargetDistance >= 6.f) { if (m_pModelCom->IsFinishedAnim()) { - m_pFSM->Change_State(FSMSTATE::MOVE); - return E_FAIL; + if (m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::RUSH)] == 0.f) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } + else { + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; + } } } else { @@ -143,7 +149,7 @@ void CTroll::Behavior_MoveEnter() m_pFSM->Enable_State(FSMSTATE::JOG); pairAnimInfo = m_Animation[STATEANIM::JOG_START]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.2f); } @@ -161,13 +167,20 @@ HRESULT CTroll::Behavior_MoveExitCheck(_float fTimeDelta) if (fRatio >= 0.9f) { pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.2f); } } - if (m_fTargetDistance <= 18.f && m_fTargetDistance >= 14.f) { - m_pFSM->Change_State(FSMSTATE::COMBAT); - return E_FAIL; + if (m_fTargetDistance <= 6.f) { + + for (_uint i = 0; i < ENUM_CLASS(TROLL_SKILL::END); i++) + { + if (m_fSkillCoolTime[i] == 0.f) + { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } + } } @@ -179,7 +192,7 @@ HRESULT CTroll::Behavior_MoveExitCheck(_float fTimeDelta) { m_bLookAt = true; pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.2f); } return S_OK; @@ -207,13 +220,13 @@ HRESULT CTroll::Behavior_MoveExitCheck(_float fTimeDelta) _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); if (fRatio >= 0.9f) { pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.2f); } } else if (iCurrAnimIndex != m_Animation[STATEANIM::JOG_FWD].first) { pairAnimInfo = m_Animation[STATEANIM::JOG_START]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.2f); } return S_OK; @@ -520,7 +533,7 @@ void CTroll::Behavior_SlamEnter() m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_ATTACK, this); }, 0.3f); - Set_Easing(pairAnimInfo.first, 0.1f, 0.42f, 1.8f); + Set_Easing(pairAnimInfo.first, 0.2f, 0.42f, 1.5f); Set_Easing(pairAnimInfo.first, 0.42f, 0.45f, 0.5f); @@ -647,11 +660,12 @@ void CTroll::Behavior_HitEnter() m_bLookAt = false; if (iCurrAnimIndex == m_Animation[STATEANIM::SLAM].first) { - if (fRatio >= 0.75f) { + if (fRatio <= 0.75f) { pairAnimInfo = m_Animation[STATEANIM::HIT_FACE]; Add_Event(pairAnimInfo.first, [this]() {CameraShake(10.f, 2.f, 3.f, 0.3f); }, 0.1f); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); } } else { @@ -668,8 +682,9 @@ void CTroll::Behavior_HitEnter() pairAnimInfo = m_Animation[STATEANIM::HIT_BWD3]; break; } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); } - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } HRESULT CTroll::Behavior_HitExitCheck() diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp index fda823657..4d45f7164 100644 --- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp +++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp @@ -58,6 +58,7 @@ HRESULT CUI_Manager::Initialize(void* pArg) m_fSortZ = 0.f; m_pInfoInstance->Set_UISTATE(m_eType); m_pInfoInstance->Add_Event(TEXT("Canvas_Change"), [this](void* p) {this->Canvas_Change(*reinterpret_cast(p)); }); + m_pInfoInstance->Add_Event(TEXT("NpcInteract"), [this](void* p) {this->NpcInteract(*reinterpret_cast<_bool*>(p)); }); return S_OK; } @@ -74,6 +75,10 @@ void CUI_Manager::Canvas_Change(UI_STATE eType) static_cast(m_pSpell_Canvas)->Visible(false); static_cast(m_pQuest_Canvas)->Visible(false); static_cast(m_pSpellLearn_Canvas)->Visible(false); + static_cast(m_pInteraction_Key)->Set_Visible(true); + static_cast(m_pNPCInteraction)->Set_Visible(true); + static_cast(m_pBroom_TargetGate)->Set_Visible(true); + static_cast(m_pDamage_Font)->Set_Visible(true); break; case UI_STATE::SPELL: @@ -100,6 +105,19 @@ void CUI_Manager::Canvas_Change(UI_STATE eType) static_cast(m_pGamePlay_Canves)->Visible(false); break; + case UI_STATE::NPC_INTERACT: + m_pMouse_Cursor->Set_Visible(false); + m_pCamera_LockOn->Set_Visible(false); + static_cast(m_pGamePlay_Canves)->Visible(false); + static_cast(m_pSpell_Canvas)->Visible(false); + static_cast(m_pQuest_Canvas)->Visible(false); + static_cast(m_pSpellLearn_Canvas)->Visible(false); + static_cast(m_pInteraction_Key)->Set_Visible(false); + static_cast(m_pNPCInteraction)->Set_Visible(false); + static_cast(m_pBroom_TargetGate)->Set_Visible(false); + static_cast(m_pDamage_Font)->Set_Visible(false); + break; + default: return; } @@ -152,6 +170,7 @@ void CUI_Manager::Update(_float fTimeDelta) if (m_bActive == false) { m_bActive = true; + m_bAlphaZero = true; if (m_eType == UI_STATE::GAMEPLAYER) { m_eType = UI_STATE::QUEST; @@ -164,6 +183,7 @@ void CUI_Manager::Update(_float fTimeDelta) } } } + if (m_eType == UI_STATE::GAMEPLAYER || m_eType == UI_STATE::SPELLLNEARN) { if (m_pGameInstance->Key_Down(DIK_ESCAPE)) @@ -171,6 +191,7 @@ void CUI_Manager::Update(_float fTimeDelta) if (m_bActive == false) { m_bActive = true; + m_bAlphaZero = true; if (m_eType == UI_STATE::GAMEPLAYER) { m_eType = UI_STATE::SPELLLNEARN; @@ -183,6 +204,27 @@ void CUI_Manager::Update(_float fTimeDelta) } } + if (m_eType == UI_STATE::GAMEPLAYER && m_bNPCInteract == true) + { + if (m_eType == UI_STATE::GAMEPLAYER) + { + Canvas_Change(UI_STATE::NPC_INTERACT); + } + + else + { + if (m_bActive == false) + { + m_bActive = true; + m_bAlphaZero = true; + if (m_eType == UI_STATE::GAMEPLAYER) + { + m_eType = UI_STATE::NPC_INTERACT; + } + } + } + } + if (m_bActive == true && m_bHover == false) { if (m_fAlpha <= 1.f) @@ -190,8 +232,9 @@ void CUI_Manager::Update(_float fTimeDelta) m_fAlpha += fTimeDelta * m_fAlphaTime; } - if (m_fAlpha > 1.f) + if (m_fAlpha > 1.f && m_bAlphaZero == true) { + m_bAlphaZero = false; m_fAlpha = 1.f; m_bFadeIn = true; Canvas_Change(m_eType); @@ -322,6 +365,11 @@ HRESULT CUI_Manager::Ready_Components(void* pArg) } Add_Canvas(TEXT("Quest_Canvas"), m_pQuest_Canvas); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Canvas)))) { + return E_FAIL; + } + Add_Canvas(TEXT("SpellLearn_Canvas"), m_pSpellLearn_Canvas); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMouse_Cursor)))) { return E_FAIL; } @@ -352,12 +400,7 @@ HRESULT CUI_Manager::Ready_Components(void* pArg) } Add_Canvas(TEXT("NPCInteraction"), m_pNPCInteraction); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Canvas)))) { - return E_FAIL; - } - Add_Canvas(TEXT("SpellLearn_Canvas"), m_pSpellLearn_Canvas); - - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_TargetGate)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_TargetGate)))) { return E_FAIL; } @@ -393,6 +436,11 @@ CGameObject* CUI_Manager::Find_Canvas(const _wstring& Name) return iter->second; } +void CUI_Manager::NpcInteract(_bool bInteract) +{ + m_bNPCInteract = bInteract; +} + CUI_Manager* CUI_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CUI_Manager* pInstance = new CUI_Manager(pDevice, pContext); diff --git a/Jusin154_Team3D/Client/Public/Action_Panel.h b/Jusin154_Team3D/Client/Public/Action_Panel.h index eeaa2609b..3fb8710b9 100644 --- a/Jusin154_Team3D/Client/Public/Action_Panel.h +++ b/Jusin154_Team3D/Client/Public/Action_Panel.h @@ -74,6 +74,7 @@ class CAction_Panel final : public CPanelObject CGameObject* m_pMagic_Item = { nullptr }; vector m_Magic_Meters; + //vector m_pSlot; public: static CAction_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h b/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h index ab978900c..b27d1b591 100644 --- a/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h +++ b/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h @@ -28,7 +28,7 @@ class CCamPosition_Shoulder final : public CCamPosition virtual _vector Get_WorldPostion() override; _vector Get_ShoulderGlobalPos(); void Set_CameraShake(_float fXShock, _float fYShock); - + void Set_CameraAnim(_uint iIndex); private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index 8fb567dea..13022cbcc 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -3,7 +3,7 @@ namespace Client { enum class LEVEL { STATIC, LOADING, LOGO, INTRO, GAMEPLAY, FIELD, RESTART, END }; - enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT }; + enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT, ELEMENT_COLLIDER}; enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS }; enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ,SPECTOR, END }; @@ -36,7 +36,7 @@ namespace Client PLAYER_HAIR_DAOTHV_ToSRO, PLAYER_Suit_DSRON_ToSRO, PLAYER_EyeLash_DAOTHV_ToSRO, PLAYER_Eye_ToSRO, PLAYER_Robe_ToMRO, SHADOW, SHADOW_LEGACY , END }; - enum class UI_STATE { GAMEPLAYER, SPELL, QUEST, INVENTORY, SPELLLNEARN, END }; + enum class UI_STATE { GAMEPLAYER, SPELL, QUEST, INVENTORY, SPELLLNEARN, NPC_INTERACT, END }; enum class QUESTTYPE { MAIN, SUB, END }; enum class QUESTSTATE {NONE, ACCEPTED, CLEARED, END }; diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h index e202943a2..f397d777f 100644 --- a/Jusin154_Team3D/Client/Public/Client_Struct.h +++ b/Jusin154_Team3D/Client/Public/Client_Struct.h @@ -55,8 +55,9 @@ namespace Client typedef struct NpcDialogue { + _wstring pNpcName; _int iNpcID{}; - vector Info; + unordered_map<_int, CURRENTDIALOGUEINFO> Info; }NPCDIALOGUEINFO; typedef struct tagLockOnInfo { @@ -69,7 +70,9 @@ namespace Client { CGameObject* pOwner = { nullptr }; _wstring pNPCName; - _float4 pNPCPosition{}; + _wstring pName; + _float4 fNPCPosition{}; + _int iTextID{}; }NPCINTERACTIONINFO; typedef struct tagUnitInfo diff --git a/Jusin154_Team3D/Client/Public/Dialogue_Data.h b/Jusin154_Team3D/Client/Public/Dialogue_Data.h index a9abb91a3..0e33c3d1e 100644 --- a/Jusin154_Team3D/Client/Public/Dialogue_Data.h +++ b/Jusin154_Team3D/Client/Public/Dialogue_Data.h @@ -25,14 +25,14 @@ class CDialogue_Data final : public CBase HRESULT Load_SpellInfo(const _char* pFilePath); public: - const NPCDIALOGUEINFO& Get_Info(_uint DialogueID) const; + const NPCDIALOGUEINFO& Get_Info(_wstring NpcName) const; private: CInfoInstance* m_pInfoInstance = { nullptr }; _int m_iDialogue_Count{}; - vector m_DialogueInfo; - + map<_wstring, NPCDIALOGUEINFO> m_DialogueInfo; + NPCDIALOGUEINFO Dummy{}; private: HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex); diff --git a/Jusin154_Team3D/Client/Public/Dialogue_Font.h b/Jusin154_Team3D/Client/Public/Dialogue_Font.h index 6257c3ead..0f36f010b 100644 --- a/Jusin154_Team3D/Client/Public/Dialogue_Font.h +++ b/Jusin154_Team3D/Client/Public/Dialogue_Font.h @@ -41,6 +41,10 @@ class CDialogue_Font final : public CGameObject public: void Add_Text(void* pArg); +private: + void NpcInfo(void* pArg); + void NpcInteract(_bool bInteract); + private: CInfoInstance* m_pInfoInstance = { nullptr }; @@ -49,6 +53,11 @@ class CDialogue_Font final : public CGameObject vector m_DialoguInfo; deque m_pCurrentDialogue; + _bool m_bNpcInteract = { false }; + _bool m_bCurrentInteract = { false }; + _wstring m_pNpcName; + _int m_iTextID{}; + public: static CDialogue_Font* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Client/Public/Goblin_Assassin.h b/Jusin154_Team3D/Client/Public/Goblin_Assassin.h index b695a0291..ede27e23a 100644 --- a/Jusin154_Team3D/Client/Public/Goblin_Assassin.h +++ b/Jusin154_Team3D/Client/Public/Goblin_Assassin.h @@ -54,8 +54,6 @@ class CGoblin_Assassin final : public CMonster class CEffectParts* m_pGoblin_Particle = { nullptr }; class CEffectParts* m_pGoblin_Particle2 = { nullptr }; class CGoblin_Assassin_Spector* m_pGoblinSpector = { nullptr }; - - ID3D11RasterizerState* m_pRS_Wireframe = { nullptr }; private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; diff --git a/Jusin154_Team3D/Client/Public/Human_Duelist.h b/Jusin154_Team3D/Client/Public/Human_Duelist.h new file mode 100644 index 000000000..9cd1fa96f --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Human_Duelist.h @@ -0,0 +1,108 @@ +#pragma once + +#include "Client_Define.h" +#include "Monster.h" +#include "Player_ENUM.h" + +NS_BEGIN(Client) + +class CHuman_Duelist final : public CMonster +{ +public: + typedef struct tagPlayerInitDesc { + _float4 vPos; + _float4 vRotQ; + }PLAYERDESC; + + enum class SKILL + { + LEVIOSO, + PROTEGO, + LIGHT_ATTACK, + END + }; +private: + CHuman_Duelist(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CHuman_Duelist(const CHuman_Duelist& Prototype); + virtual ~CHuman_Duelist() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + virtual HRESULT Render_Shadow(SHADOW eType) override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override; + virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override; + void Set_SpellHit(_bool bHit) { m_bSpellHit = bHit; } + void Set_Shield(_bool bShield) { m_bShield = bShield; } + _matrix Get_WandPos(); +private: + CCharacter_Controller* m_pCharacter_Controller = { nullptr }; + CRigidBody_Dynamic* m_pRigidBody = { nullptr }; + class CCallBack_Playable_Behavior* m_pCallBack_Behavior = { nullptr }; + class CCallBack_Playable_HitReport* m_pCallBack_HitReport = { nullptr }; + CLight* m_pLightCom = { nullptr }; + LIGHT_DESC LightDesc = {}; +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(); + HRESULT Ready_Parts(); + HRESULT Bind_ShaderResources(); + HRESULT Bind_ShaderParameters(_uint iMeshOrder); + void SetGravity(); + +public: + static CHuman_Duelist* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override; + virtual void Free() override; +#ifdef _DEBUG + virtual void Describe_Entity() override; + +#endif // _DEBUG + +#pragma region STATE + +private: + + virtual void Add_FSM(); + + _bool m_bSpellHit = {}; + _bool m_bShield = { false }; + + + _float m_fSkillCoolTime[ENUM_CLASS(SKILL::END)] = {}; + _float m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::END)] = { 10.f,10.f,5.f }; + + void Behavior_IdleEnter(); + HRESULT Behavior_IdleExitCheck(_float fTimeDelta); + void Behavior_IdleExit(); + + void Behavior_CombatEnter(); + HRESULT Behavior_CombatExitCheck(); + void Behavior_CombatExit(); + + void Behavior_LightAttackEnter(); + HRESULT Behavior_LightAttackExitCheck(_float fTimeDelta); + void Behavior_LightAttackExit(); + + void Behavior_SpellEnter(); + HRESULT Behavior_SpellExitCheck(); + void Behavior_SpellExit(); + + void Behavior_ShieldEnter(); + HRESULT Behavior_ShieldExitCheck(); + void Behavior_ShieldExit(); + + void Behavior_HitEnter(); + HRESULT Behavior_HitExitCheck(); + void Behavior_HitExit(); + +#pragma endregion + +private: + class CEffectPool* m_pEffectPool = nullptr; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h index db4f62a8f..4384d841c 100644 --- a/Jusin154_Team3D/Client/Public/InfoInstance.h +++ b/Jusin154_Team3D/Client/Public/InfoInstance.h @@ -46,6 +46,7 @@ DECLARE_SINGLETON(CInfoInstance) HRESULT Deregist_ActiveMonster(class CMonster* pUnit); void Get_LockOnInfo(LOCKON_INFO& Info); + void Set_SearchLockOnFlag(_bool bLockOn); pair Get_NearestPlayerAlly(_fvector vPos); class CMonster* Get_TargetMonster(); #pragma endregion @@ -86,7 +87,8 @@ DECLARE_SINGLETON(CInfoInstance) _int Get_SpellLearnIndex(); #pragma endregion #pragma region Dialogue_Font - void Set_Font(void* pArg); + //void Set_Font(void* pArg); + const NPCDIALOGUEINFO& Get_Dialogue(_wstring NpcName) const; #pragma endregion HRESULT Regist_ActiveInteractive(class CMapElement_Interactable* pInteractive); HRESULT Deregist_ActiveInteractive(class CMapElement_Interactable* pInteractive); @@ -96,6 +98,8 @@ DECLARE_SINGLETON(CInfoInstance) #pragma region BroomManager void Set_Broom_Timer(_float fTimer); _float Get_Broom_Timer(); + void Set_Broom_Booster_Timer(_float fTimer); + _float Get_Broom_Booster_Timer(); #pragma endregion private: CGameInstance* m_pGameInstance = { nullptr }; @@ -111,6 +115,7 @@ DECLARE_SINGLETON(CInfoInstance) class CDamage_Font* m_pDamage_Font = { nullptr }; class CSpellLearn_Data* m_pSpellLearn_Data = { nullptr }; class CDialogue_Font* m_pDialogue_Font = { nullptr }; + class CDialogue_Data* m_pDialogue_Data = { nullptr }; _vector m_pPlayerPos{}; @@ -118,6 +123,8 @@ DECLARE_SINGLETON(CInfoInstance) _int m_eSpell = ENUM_CLASS(SKILL_TYPE::END); _float m_fBroom_Timer{}; + _float m_fBroom_Booster{}; + _bool m_bSearchLockOnTarget = { true }; _float m_fDamage{}; UI_STATE m_eUI_State = { UI_STATE::END }; diff --git a/Jusin154_Team3D/Client/Public/Land.h b/Jusin154_Team3D/Client/Public/Land.h index 728e868e8..6f8cecada 100644 --- a/Jusin154_Team3D/Client/Public/Land.h +++ b/Jusin154_Team3D/Client/Public/Land.h @@ -15,9 +15,10 @@ class CLand final : public CGameObject public: typedef struct tagLandDesc { - _float3 vPosition; - _float3 vScale; - _wstring strModelComTag; + _float3 vPosition; + _float3 vScale; + _wstring strAlphaMapTag; + _wstring strModelComTag; }LAND_DESC; private: CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); @@ -32,10 +33,16 @@ class CLand final : public CGameObject virtual HRESULT Render_Shadow(SHADOW eType) override; private: + _float m_fRaduis = {}; + _float m_fUsingSurfaceParams = {}; + CShader* m_pShaderCom = { nullptr }; CModel* m_pModelCom = { nullptr }; - _float m_fRaduis = {}; + CTexture* m_pDiffuseTextureCom = { nullptr }; + CTexture* m_pNormalTextureCom = { nullptr }; + CTexture* m_pMROTextureCom = { nullptr }; + CTexture* m_pMaskTextureCom = { nullptr }; private: virtual HRESULT Initialize_Prototype() override; diff --git a/Jusin154_Team3D/Client/Public/Level_GamePlay.h b/Jusin154_Team3D/Client/Public/Level_GamePlay.h index 1cb47133c..c000598e7 100644 --- a/Jusin154_Team3D/Client/Public/Level_GamePlay.h +++ b/Jusin154_Team3D/Client/Public/Level_GamePlay.h @@ -27,6 +27,7 @@ class CLevel_GamePlay final : public CLevel HRESULT Ready_Lights(); HRESULT Ready_Volumetric(); HRESULT Ready_Background(); + HRESULT Ready_Land(); HRESULT Ready_Layer_Hogsmeade(); HRESULT Ready_Layer_Hogwart(); HRESULT Ready_IntstanceProp(); diff --git a/Jusin154_Team3D/Client/Public/MapElement.h b/Jusin154_Team3D/Client/Public/MapElement.h index 430f96bfa..485746a1d 100644 --- a/Jusin154_Team3D/Client/Public/MapElement.h +++ b/Jusin154_Team3D/Client/Public/MapElement.h @@ -14,6 +14,7 @@ class CMapElement abstract : public CGameObject { public: typedef struct tagMapElement_Desc { + _bool bVisible = {}; _uint iRenderType{}; CTransform* pParentTransform = { nullptr }; _float3 vScale; diff --git a/Jusin154_Team3D/Client/Public/NPC_Ollivander.h b/Jusin154_Team3D/Client/Public/NPC_Ollivander.h index 1ec66c219..b1dc0566a 100644 --- a/Jusin154_Team3D/Client/Public/NPC_Ollivander.h +++ b/Jusin154_Team3D/Client/Public/NPC_Ollivander.h @@ -26,6 +26,9 @@ class CNPC_Ollivander final : public CUnit virtual HRESULT Render_Shadow(SHADOW eType) override; virtual void OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos)override; virtual _wstring Get_Name() override; + virtual _wstring Get_NpcName() override; + void Set_TextID(_int ID) { m_iNpc_DialogueTextID = ID; } + virtual _int Get_TextID() override; protected: CInfoInstance* m_pInfoInstance = { nullptr }; @@ -37,6 +40,8 @@ class CNPC_Ollivander final : public CUnit CNPC_Ollivander* m_pNPC_Ollivander = { nullptr }; class CNPCInteraction* m_pNPCInteraction = { nullptr }; + _int m_iNpc_DialogueTextID{}; + CNPCStat* m_pNpcStat = { nullptr }; _int m_iEntered = { 0 }; diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index 0158123d5..55cbe15ba 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -103,6 +103,7 @@ class CPlayer final : public CUnit void SetGravity(); void Add_SpellEvent(_uint AnimIndex, _float fRatio); void Play_SpellHitAnim(); + void Player_PixRot(); void Update_CameraCoordinateSystem(_float fTimeDelta); #ifdef _DEBUG @@ -165,7 +166,7 @@ class CPlayer final : public CUnit _float m_fMoveTime = {}; _float m_fCross = 0.f; _float m_fabsDir = 0.f; - array<_float4x4, 256> SkinMatrices; + array<_float4x4, 256> SkinMatrices = {}; _bool m_bOpenDoor = { false }; /* 무적 불 변수*/ diff --git a/Jusin154_Team3D/Client/Public/PlayerRobe.h b/Jusin154_Team3D/Client/Public/PlayerRobe.h index 8e822a92c..ee1d3a0b8 100644 --- a/Jusin154_Team3D/Client/Public/PlayerRobe.h +++ b/Jusin154_Team3D/Client/Public/PlayerRobe.h @@ -40,8 +40,12 @@ class CPlayerRobe final : public CPartObject const _float4x4* m_pSocketMatrix = { nullptr }; const _float4x4* m_pLeftFootLocalMatrix = { nullptr }; const _float4x4* m_pLeftLegLocalMatrix = { nullptr }; + const _float4x4* m_pLeftLegUpLocalMatrix = { nullptr }; const _float4x4* m_pRightFootLocalMatrix = { nullptr }; const _float4x4* m_pRightLegLocalMatrix = { nullptr }; + const _float4x4* m_pRightLegUpLocalMatrix = { nullptr }; + const _float4x4* m_pLower0BoundMatrix = { nullptr }; + const _float4x4* m_pLower1BoundMatrix = { nullptr }; const _float4x4* m_RobeJointAnchorMatrices[ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END)] = { nullptr }; vector<_float4x4> m_ReconstructedJointAnchorMatirces = { }; //_float4x4 m_ReconstructedJointAnchorMatirces[ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END)] = { }; @@ -50,12 +54,17 @@ class CPlayerRobe final : public CPartObject _int m_iBoneNum = -1; CRigidBody_Dynamic* m_pRightLeg = { nullptr }; CRigidBody_Dynamic* m_pLeftLeg = { nullptr }; + CRigidBody_Dynamic* m_pLeftThigh = { nullptr }; + CRigidBody_Dynamic* m_pRightThigh = { nullptr }; CRigidBody_Dynamic* m_pLower0Bound = { nullptr }; CRigidBody_Dynamic* m_pLower1Bound = { nullptr }; CRigidBody_Dynamic* m_pRobeMainAnchor = { nullptr }; - CRigidBody_Dynamic* m_pRobeJointRoute[ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::END)] = { nullptr }; + + CRigidBody_Dynamic* m_pRobeVerticalJointRoute[ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::END)] = { nullptr }; + CRigidBody_Dynamic* m_pRobeFixedJointRoute[ENUM_CLASS(PLAYER_ROUTE_HORIZONTAL_ORDER::END)] = { nullptr }; CRigidBody_Dynamic* m_pRobeJointAnchor[ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END)] = { nullptr }; PSX::PxD6Joint* m_pDynamicJoints[ENUM_CLASS(PLAYER_JOINT_ORDER::END)] = { nullptr }; + PSX::PxFixedJoint* m_pFixedJoints[ENUM_CLASS(PLAYER_JOINT_HORIZONTAL_ORDER::END)] = { nullptr }; D6JOINTDESC m_JointDescriptions[ENUM_CLASS(PLAYER_JOINT_ORDER::END)] = { }; vector<_float4x4> m_PrevRobeBoneMatrices = { }; @@ -65,6 +74,9 @@ class CPlayerRobe final : public CPartObject ID3D11DepthStencilState* m_pDepthStencilStateNone = { nullptr }; _float4x4 m_LeftLegMatrix = {}; _float4x4 m_RightLegMatrix = {}; + _float4x4 m_LeftThighMatrix = {}; + _float4x4 m_RightThighMatrix = {}; + _bool m_bRenderDebug = { true }; #endif // _DEBUG private: virtual HRESULT Initialize_Prototype() override; @@ -73,11 +85,11 @@ class CPlayerRobe final : public CPartObject HRESULT Bind_ShaderResources() { return S_OK; } HRESULT Update_LegsPosition(); + HRESULT Helper_RouteJointGenerater(PHYSX_JOINT eType, CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC& Desc_Body, ROUTE_DESC& Desc_Route, _matrix* xmAnchorMatricesWorld); HRESULT Update_RobeJoints(); - HRESULT Helper_RouteJointGenerater(CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC& Desc_Body, ROUTE_DESC& Desc_Route, _matrix* xmAnchorMatricesWorld); #ifdef _DEBUG HRESULT Render_BonePhysX(); - HRESULT Render_Legs(); + HRESULT Render_Legs(_fmatrix LowerMatrix); #endif // _DEBUG public: static CPlayerRobe* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/Player_ENUM.h b/Jusin154_Team3D/Client/Public/Player_ENUM.h index 7ad5c5a99..73fa76841 100644 --- a/Jusin154_Team3D/Client/Public/Player_ENUM.h +++ b/Jusin154_Team3D/Client/Public/Player_ENUM.h @@ -23,44 +23,90 @@ enum class PLAYER_MESH_ORDER { END }; -static const _char* PLAYER_JOINT_BONE_NAMES[12] = { +static const _char* PLAYER_JOINT_BONE_NAMES[16] = { "RightUpLeg_Cloth" , "RightLeg_Cloth" , "RightDownLeg_Cloth" - , "RightDownRightLeg_Cloth" , "LeftUpLeg_Cloth" , "LeftLeg_Cloth" , "LeftDownLeg_Cloth" - , "LeftDownLeftLeg_Cloth" , "TailUp_Cloth" , "Tail_Cloth" , "TailLeftDown_Cloth" , "TailRightDown_Cloth" + , "RightSideUpLeg_Cloth" + , "RightSideLeg_Cloth" + , "RightDownSideLeg_Cloth" + + , "LeftSideUpLeg_Cloth" + , "LeftSideLeg_Cloth" + , "LeftDownSideLeg_Cloth" }; enum class PLAYER_JOINT_BONE_ORDER { RIGHTUP , RIGHT , RIGHTDOWN - , RIGHTDOWNRIGHT , LEFTUP , LEFT , LEFTDOWN - , LEFTDOWNLEFT , TAILUP , TAIL , TAILLEFTDOWN , TAILRIGHTDOWN + , RIGHTSIDEUP + , RIGHTSIDE + , RIGHTDOWNSIDE + + , LEFTSIDEUP + , LEFTSIDE + , LEFTDOWNSIDE + , END }; +enum class PLAYER_JOINT_HORIZONTAL_ORDER { + +#pragma region UP_HORIZONTAL + UP_R_RS_START + , UP_R_RS_END + , UP_RS_T_START + , UP_RS_T_END + , UP_T_LS_START + , UP_T_LS_END + , UP_LS_L_START + , UP_LS_L_END +#pragma endregion +#pragma region MIDDLE_HORIZONTAL + , MIDDLE_R_RS_START + , MIDDLE_R_RS_END + , MIDDLE_RS_T_START + , MIDDLE_RS_T_END + , MIDDLE_T_LS_START + , MIDDLE_T_LS_END + , MIDDLE_LS_L_START + , MIDDLE_LS_L_END +#pragma endregion +#pragma region DOWN_HORIZONTAL + , DOWN_R_RS_START + , DOWN_R_RS_END + , DOWN_RS_T_START + , DOWN_RS_T_END + , DOWN_T_LS_START + , DOWN_T_LS_END + , DOWN_LS_L_START + , DOWN_LS_L_END +#pragma endregion + , END +}; enum class PLAYER_JOINT_ORDER { +#pragma region ORIGIN_TO_UP ORIGIN_TO_RUP_START , ORIGIN_TO_RUP_END @@ -70,7 +116,13 @@ enum class PLAYER_JOINT_ORDER { , ORIGIN_TO_LUP_START , ORIGIN_TO_LUP_END - + , ORIGIN_TO_RSIDEUP_START + , ORIGIN_TO_RSIDEUP_END + + , ORIGIN_TO_LSIDEUP_START + , ORIGIN_TO_LSIDEUP_END +#pragma endregion +#pragma region UP_TO_MIDDLE , RUP_TO_RMIDDLE_START , RUP_TO_RMIDDLE_END @@ -80,44 +132,61 @@ enum class PLAYER_JOINT_ORDER { , LUP_TO_LMIDDLE_START , LUP_TO_LMIDDLE_END + , RSIDEUP_TO_RSIDE_START + , RSIDEUP_TO_RSIDE_END + , LSIDEUP_TO_LSIDE_START + , LSIDEUP_TO_LSIDE_END +#pragma endregion +#pragma region MIDDLE_TO_BOTTOM , RMIDDLE_TO_RR_START , RMIDDLE_TO_RR_END - , RMIDDLE_TO_R_START - , RMIDDLE_TO_R_END - , TMIDDLE_TO_TR_START , TMIDDLE_TO_TR_END , TMIDDLE_TO_TL_START , TMIDDLE_TO_TL_END - , LMIDDLE_TO_L_START - , LMIDDLE_TO_L_END - , LMIDDLE_TO_LL_START , LMIDDLE_TO_LL_END + , RSIDE_TO_R_START + , RSIDE_TO_R_END + , LSIDE_TO_L_START + , LSIDE_TO_L_END +#pragma endregion , END }; -enum class PLAYER_JOINT_ROUTE_ORDER { +enum class PLAYER_ROUTE_HORIZONTAL_ORDER { + da, + END +}; + +enum class PLAYER_ROUTE_VERTICAL_ORDER { ORIGIN_TO_RUP , ORIGIN_TO_TUP , ORIGIN_TO_LUP + , ORIGIN_TO_RSIDEUP + , ORIGIN_TO_LSIDEUP , RUP_TO_RMIDDLE , TUP_TO_TMIDDLE , LUP_TO_LMIDDLE + , RSIDEUP_TO_RSIDE + , LSIDEUP_TO_LSIDE + , RMIDDLE_TO_RR - , RMIDDLE_TO_R , TMIDDLE_TO_TR , TMIDDLE_TO_TL - , LMIDDLE_TO_L , LMIDDLE_TO_LL + + , RSIDE_TO_R + , LSIDE_TO_L + , END }; diff --git a/Jusin154_Team3D/Client/Public/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h index 5b37358e3..7a4dbe679 100644 --- a/Jusin154_Team3D/Client/Public/Ranrok.h +++ b/Jusin154_Team3D/Client/Public/Ranrok.h @@ -65,7 +65,7 @@ class CRanrok final : public CMonster _float2 m_vStunTimer = { 0.f, 4.f }; _float2 m_vAuraTimer = { 0.f, 0.16f }; _float2 m_vEtherealTimer = { 0.f, 0.16f }; - _uint iIndex; + _uint iIndex = {}; DAMAGE_INFO m_DamageInfo; _bool m_bCollisionPlayer = { false }; diff --git a/Jusin154_Team3D/Client/Public/Ride_BboosterBar.h b/Jusin154_Team3D/Client/Public/Ride_BoosterBar.h similarity index 77% rename from Jusin154_Team3D/Client/Public/Ride_BboosterBar.h rename to Jusin154_Team3D/Client/Public/Ride_BoosterBar.h index 345927288..8ff3509e4 100644 --- a/Jusin154_Team3D/Client/Public/Ride_BboosterBar.h +++ b/Jusin154_Team3D/Client/Public/Ride_BoosterBar.h @@ -11,12 +11,12 @@ NS_END NS_BEGIN(Client) -class CRide_BboosterBar final : public CElementObject +class CRide_BoosterBar final : public CElementObject { private: - CRide_BboosterBar(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); - CRide_BboosterBar(const CRide_BboosterBar& rhs); - virtual ~CRide_BboosterBar() = default; + CRide_BoosterBar(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CRide_BoosterBar(const CRide_BoosterBar& rhs); + virtual ~CRide_BoosterBar() = default; public: virtual void Priority_Update(_float fTimeDelta); @@ -35,6 +35,10 @@ class CRide_BboosterBar final : public CElementObject void Active(_float fTimeDelta); void NonActive(_float fTimeDelta); +public: + void Set_Gauge(_float fTime); + void Booster(_bool bBooster); + private: CTexture* m_pDiffuse_TextureCom = { nullptr }; CTexture* m_pDiffuse_TextureCom1 = { nullptr }; @@ -54,8 +58,10 @@ class CRide_BboosterBar final : public CElementObject _int m_iClick{}; + _bool m_bBooster = { false }; + public: - static CRide_BboosterBar* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + static CRide_BoosterBar* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; virtual void Free() override; #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Public/Ride_Bbooster_Slot.h b/Jusin154_Team3D/Client/Public/Ride_Booster_Slot.h similarity index 77% rename from Jusin154_Team3D/Client/Public/Ride_Bbooster_Slot.h rename to Jusin154_Team3D/Client/Public/Ride_Booster_Slot.h index 2288ec2d2..dabe50c7e 100644 --- a/Jusin154_Team3D/Client/Public/Ride_Bbooster_Slot.h +++ b/Jusin154_Team3D/Client/Public/Ride_Booster_Slot.h @@ -11,12 +11,12 @@ NS_END NS_BEGIN(Client) -class CRide_Bbooster_Slot final : public CElementObject +class CRide_Booster_Slot final : public CElementObject { private: - CRide_Bbooster_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); - CRide_Bbooster_Slot(const CRide_Bbooster_Slot& rhs); - virtual ~CRide_Bbooster_Slot() = default; + CRide_Booster_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CRide_Booster_Slot(const CRide_Booster_Slot& rhs); + virtual ~CRide_Booster_Slot() = default; public: virtual void Priority_Update(_float fTimeDelta); @@ -41,7 +41,7 @@ class CRide_Bbooster_Slot final : public CElementObject _float4 m_fImagePosi{}; public: - static CRide_Bbooster_Slot* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + static CRide_Booster_Slot* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; virtual void Free() override; #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Public/Ride_Panel.h b/Jusin154_Team3D/Client/Public/Ride_Panel.h index 523f1ac7a..3c07eaad2 100644 --- a/Jusin154_Team3D/Client/Public/Ride_Panel.h +++ b/Jusin154_Team3D/Client/Public/Ride_Panel.h @@ -30,16 +30,24 @@ class CRide_Panel final : public CPanelObject virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; -private: - CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; +public: + void Booster(_bool bBooster); + void Set_Gauge(); + +private: + CInfoInstance* m_pInfoInstance = { nullptr }; + CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; + CGameObject* m_pRide_Info_Key = { nullptr }; + CGameObject* m_pRide_InfoBG = { nullptr }; + CGameObject* m_pRide_Info = { nullptr }; + CGameObject* m_pRide_Booster_Slot = { nullptr }; + CGameObject* m_pRide_BoosterBar = { nullptr }; + CGameObject* m_pRide_HpBar = { nullptr }; + CGameObject* m_pRide_HpSlot = { nullptr }; + + _bool m_bBooster = { false }; + _float m_fBoosterTimer{}; - CGameObject* m_pRide_Info_Key = { nullptr }; - CGameObject* m_pRide_InfoBG = { nullptr }; - CGameObject* m_pRide_Info = { nullptr }; - CGameObject* m_pRide_Bbooster_Slot = { nullptr }; - CGameObject* m_pRide_BboosterBar = { nullptr }; - CGameObject* m_pRide_HpBar = { nullptr }; - CGameObject* m_pRide_HpSlot = { nullptr }; public: static CRide_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Client/Public/UI_Manager.h b/Jusin154_Team3D/Client/Public/UI_Manager.h index 8c47fe56e..3f7fb53a7 100644 --- a/Jusin154_Team3D/Client/Public/UI_Manager.h +++ b/Jusin154_Team3D/Client/Public/UI_Manager.h @@ -45,6 +45,8 @@ class CUI_Manager final : public CUIObject void Add_Canvas(_wstring Name, class CGameObject* pCanvas); CGameObject* Find_Canvas(const _wstring& Name); + void NpcInteract(_bool bInteract); + private: CInfoInstance* m_pInfoInstance = { nullptr }; CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; @@ -76,6 +78,10 @@ class CUI_Manager final : public CUIObject _bool m_bCgangede = { false }; _bool m_bSpellLearn = { false }; + _bool m_bNPCInteract = { false }; + + _bool m_bAlphaZero = { false }; + public: static CUI_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Human_Duelist.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Human_Duelist.xml new file mode 100644 index 000000000..a420af59e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Human_Duelist.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml index d49d0319b..bf2fec570 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml @@ -1,11 +1,59 @@  - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Dungeon_Map_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Dungeon_Map_Data.xml index 8bd354195..64277cb3b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Dungeon_Map_Data.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Dungeon_Map_Data.xml @@ -123,7 +123,7 @@ - + Prototype_GameObject_SM_ConjuredDragonZoneG3_SM_ConjuredDragonZoneG3 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Dungeon_Map_Data1231.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Dungeon_Map_Data1231.xml new file mode 100644 index 000000000..8bd354195 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Dungeon_Map_Data1231.xml @@ -0,0 +1,989 @@ + + + + + + + + + + + Prototype_GameObject_SM_Repository_Central_Structure_Core_Bottom_Rock + Prototype_GameObject_SM_Repository_Central_Structure_Core_Bottom_Rock_Lod1 + Prototype_GameObject_SM_Repository_Central_Structure_Core_Bottom_Rock_Lod2 + Prototype_GameObject_SM_Repository_Central_Structure_Core_Bottom_Rock_Lod3 + + + + + + Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve + Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_Lod1 + Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_Lod2 + Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_Lod3 + + + + + + Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A + Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A_Lod1 + Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A_Lod2 + Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A_Lod3 + + + + + + Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_B + Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_B_Lod1 + Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_B_Lod2 + Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_B_Lod3 + + + + + + Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock + Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock_Lod1 + Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock_Lod2 + Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock_Lod3 + + + + + + + + + + + + + + Prototype_GameObject_SM_Repository_ArenaFloor_A + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3 + + + + + + Prototype_GameObject_SM_Repository_ArenaFloor_A + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3 + + + + + + Prototype_GameObject_SM_Repository_ArenaFloor_A + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3 + + + + + + Prototype_GameObject_SM_Repository_ArenaFloor_A + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3 + + + + + + Prototype_GameObject_SM_Repository_ArenaFloor_A + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3 + + + + + + Prototype_GameObject_SM_Repository_ArenaFloor_A + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3 + + + + + + + Prototype_GameObject_SM_Repository_DrillWall_Wall_tunnel + Prototype_GameObject_SM_Repository_DrillWall_Wall_tunnel_Lod1 + Prototype_GameObject_SM_Repository_DrillWall_Wall_tunnel_Lod2 + + + + + + Prototype_GameObject_SM_ConjuredDragonZoneG3_SM_ConjuredDragonZoneG3 + + + + + + Prototype_GameObject_SM_CavernDun_Rock_N110 + Prototype_GameObject_SM_CavernDun_Rock_N110_Lod1 + Prototype_GameObject_SM_CavernDun_Rock_N110_Lod2 + + + + + + Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A + Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A_Lod1 + Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A_Lod2 + Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A_Lod3 + + + + + + Prototype_GameObject_SM_Repository_BreakingRock_LG_E_Large_E7 + Prototype_GameObject_SM_Repository_BreakingRock_LG_E_Large_E7_Lod1 + Prototype_GameObject_SM_Repository_BreakingRock_LG_E_Large_E7_Lod2 + + + + + + Prototype_GameObject_SM_Repository_FloatingGround_01_A + Prototype_GameObject_SM_Repository_FloatingGround_01_A_Lod1 + Prototype_GameObject_SM_Repository_FloatingGround_01_A_Lod2 + + + + + + Prototype_GameObject_SM_Gauntlet_01_barrier + Prototype_GameObject_SM_Gauntlet_01_barrier_Lod1 + Prototype_GameObject_SM_Gauntlet_01_barrier_Lod2 + Prototype_GameObject_SM_Gauntlet_01_barrier_Lod3 + + + + + + Prototype_GameObject_SM_Gauntlet_02_barrier + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod1 + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod2 + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod3 + + + + + + Prototype_GameObject_SM_Gauntlet_02_barrier + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod1 + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod2 + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod3 + + + + + + Prototype_GameObject_SM_Repository_FracturedCliff_01 + Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod1 + Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod2 + Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod3 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_AgedTombProtector_Grunt_D_A + Prototype_GameObject_SM_AgedTombProtector_Grunt_D_A_Lod1 + Prototype_GameObject_SM_AgedTombProtector_Grunt_D_A_Lod2 + Prototype_GameObject_SM_AgedTombProtector_Grunt_D_A_Lod3 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2 + + + + + + Prototype_GameObject_SM_Repository_ArenaFloor_A + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3 + + + + + + Prototype_GameObject_SM_Repository_FloatingGround_04_A + Prototype_GameObject_SM_Repository_FloatingGround_04_A_Lod1 + Prototype_GameObject_SM_Repository_FloatingGround_04_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_ArenaFloor_A + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_FloatingGround_01_A + Prototype_GameObject_SM_Repository_FloatingGround_01_A_Lod1 + Prototype_GameObject_SM_Repository_FloatingGround_01_A_Lod2 + + + + + + Prototype_GameObject_SM_Gauntlet_01_barrier + Prototype_GameObject_SM_Gauntlet_01_barrier_Lod1 + Prototype_GameObject_SM_Gauntlet_01_barrier_Lod2 + Prototype_GameObject_SM_Gauntlet_01_barrier_Lod3 + + + + + + Prototype_GameObject_SM_Gauntlet_02_barrier + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod1 + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod2 + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod3 + + + + + + Prototype_GameObject_SM_Repository_ArenaFloor_A + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3 + + + + + + Prototype_GameObject_SM_CavernDun_Rock_N110 + Prototype_GameObject_SM_CavernDun_Rock_N110_Lod1 + Prototype_GameObject_SM_CavernDun_Rock_N110_Lod2 + + + + + + Prototype_GameObject_SM_AgedTombProtector_Grunt_D_B + Prototype_GameObject_SM_AgedTombProtector_Grunt_D_B_Lod1 + Prototype_GameObject_SM_AgedTombProtector_Grunt_D_B_Lod2 + Prototype_GameObject_SM_AgedTombProtector_Grunt_D_B_Lod3 + + + + + + Prototype_GameObject_SM_Repository_TrollWall_Base + Prototype_GameObject_SM_Repository_TrollWall_Base_Lod1 + Prototype_GameObject_SM_Repository_TrollWall_Base_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock + Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock_Lod1 + Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock_Lod2 + Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock_Lod3 + + + + + + Prototype_GameObject_SM_Sanctum_CaveShell_A_K + Prototype_GameObject_SM_Sanctum_CaveShell_A_K_Lod1 + Prototype_GameObject_SM_Sanctum_CaveShell_A_K_Lod2 + + + + + + Prototype_GameObject_SM_Sanctum_CaveShell_A_I + Prototype_GameObject_SM_Sanctum_CaveShell_A_I_Lod1 + Prototype_GameObject_SM_Sanctum_CaveShell_A_I_Lod2 + + + + + + Prototype_GameObject_SM_Sanctum_CaveShell_A_A + Prototype_GameObject_SM_Sanctum_CaveShell_A_A_Lod1 + Prototype_GameObject_SM_Sanctum_CaveShell_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Sanctum_CaveShell_A_Base + Prototype_GameObject_SM_Sanctum_CaveShell_A_Base_Lod1 + Prototype_GameObject_SM_Sanctum_CaveShell_A_Base_Lod2 + + + + + + Prototype_GameObject_SM_Sanctum_CaveShell_A_Base + Prototype_GameObject_SM_Sanctum_CaveShell_A_Base_Lod1 + Prototype_GameObject_SM_Sanctum_CaveShell_A_Base_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2 + + + + + + Prototype_GameObject_SM_Repository_DestructibleCover_A + Prototype_GameObject_SM_Repository_DestructibleCover_A_Lod1 + Prototype_GameObject_SM_Repository_DestructibleCover_A_Lod2 + Prototype_GameObject_SM_Repository_DestructibleCover_A_Lod3 + + + + + + Prototype_GameObject_SM_Repository_FracturedCliff_01 + Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod1 + Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod2 + Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod3 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Gauntlet_01_barrier + Prototype_GameObject_SM_Gauntlet_01_barrier_Lod1 + Prototype_GameObject_SM_Gauntlet_01_barrier_Lod2 + Prototype_GameObject_SM_Gauntlet_01_barrier_Lod3 + + + + + + Prototype_GameObject_SM_Gauntlet_02_barrier + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod1 + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod2 + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod3 + + + + + + Prototype_GameObject_SM_Gauntlet_01_barrier + Prototype_GameObject_SM_Gauntlet_01_barrier_Lod1 + Prototype_GameObject_SM_Gauntlet_01_barrier_Lod2 + Prototype_GameObject_SM_Gauntlet_01_barrier_Lod3 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_ArenaFloor_A + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3 + + + + + + Prototype_GameObject_SM_Repository_ArenaFloor_A + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3 + + + + + + Prototype_GameObject_SM_Repository_ArenaFloor_A + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2 + Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3 + + + + + + Prototype_GameObject_SM_CavernDun_Rock_N110 + Prototype_GameObject_SM_CavernDun_Rock_N110_Lod1 + Prototype_GameObject_SM_CavernDun_Rock_N110_Lod2 + + + + + + Prototype_GameObject_SM_CavernDun_Rock_N9 + Prototype_GameObject_SM_CavernDun_Rock_N9_Lod1 + Prototype_GameObject_SM_CavernDun_Rock_N9_Lod2 + + + + + + Prototype_GameObject_SM_CavernDun_Rock_Y2 + Prototype_GameObject_SM_CavernDun_Rock_Y2_Lod1 + Prototype_GameObject_SM_CavernDun_Rock_Y2_Lod2 + + + + + + Prototype_GameObject_SM_CavernDun_Rock_Y1 + Prototype_GameObject_SM_CavernDun_Rock_Y1_Lod1 + Prototype_GameObject_SM_CavernDun_Rock_Y1_Lod2 + + + + + + Prototype_GameObject_SM_SanctumDun_Tower_B + Prototype_GameObject_SM_SanctumDun_Tower_B_Lod1 + Prototype_GameObject_SM_SanctumDun_Tower_B_Lod2 + Prototype_GameObject_SM_SanctumDun_Tower_B_Lod3 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Gauntlet_01_barrier + Prototype_GameObject_SM_Gauntlet_01_barrier_Lod1 + Prototype_GameObject_SM_Gauntlet_01_barrier_Lod2 + Prototype_GameObject_SM_Gauntlet_01_barrier_Lod3 + + + + + + Prototype_GameObject_SM_Gauntlet_02_barrier + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod1 + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod2 + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod3 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2 + + + + + + Prototype_GameObject_SM_CavernDun_Sanctum_RockGround_A + Prototype_GameObject_SM_CavernDun_Sanctum_RockGround_A_Lod1 + Prototype_GameObject_SM_CavernDun_Sanctum_RockGround_A_Lod2 + + + + + + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C_Lod1 + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C_Lod2 + + + + + + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A_Lod1 + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A_Lod2 + + + + + + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_B + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_B_Lod1 + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_B_Lod2 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2 + + + + + + Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A + Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A_Lod1 + Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A_Lod2 + Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A_Lod3 + + + + + + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A_Lod1 + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A_Lod2 + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A_Lod3 + + + + + + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_B + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_B_Lod1 + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_B_Lod2 + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_B_Lod3 + + + + + + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_C + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_C_Lod1 + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_C_Lod2 + + + + + + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_D + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_D_Lod1 + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_D_Lod2 + + + + + + Prototype_GameObject_SM_SanctumDun_Pensieve_Akio_Rock_A + Prototype_GameObject_SM_SanctumDun_Pensieve_Akio_Rock_A_Lod1 + Prototype_GameObject_SM_SanctumDun_Pensieve_Akio_Rock_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_EdgeRock_Base + Prototype_GameObject_SM_Repository_EdgeRock_Base_Lod1 + Prototype_GameObject_SM_Repository_EdgeRock_Base_Lod2 + + + + + + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C_Lod1 + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C_Lod2 + + + + + + Prototype_GameObject_SM_Repository_FracturedCliff_01 + Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod1 + Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod2 + Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod3 + + + + + + Prototype_GameObject_SM_CavernDun_Rock_Y2 + Prototype_GameObject_SM_CavernDun_Rock_Y2_Lod1 + Prototype_GameObject_SM_CavernDun_Rock_Y2_Lod2 + + + + + + Prototype_GameObject_SM_CavernDun_Sanctum_RockGround_A + Prototype_GameObject_SM_CavernDun_Sanctum_RockGround_A_Lod1 + Prototype_GameObject_SM_CavernDun_Sanctum_RockGround_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_DestructibleCover_A + Prototype_GameObject_SM_Repository_DestructibleCover_A_Lod1 + Prototype_GameObject_SM_Repository_DestructibleCover_A_Lod2 + Prototype_GameObject_SM_Repository_DestructibleCover_A_Lod3 + + + + + + Prototype_GameObject_SM_MERGED_Falling_Rocks_area3_4 + Prototype_GameObject_SM_MERGED_Falling_Rocks_area3_4_Lod1 + Prototype_GameObject_SM_MERGED_Falling_Rocks_area3_4_Lod2 + Prototype_GameObject_SM_MERGED_Falling_Rocks_area3_4_Lod3 + + + + + + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod1 + Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod2 + + + + + + Prototype_GameObject_SM_Repository_FracturedCliff_01 + Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod1 + Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod2 + Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod3 + + + + + + Prototype_GameObject_SM_Repository_FloatingGround_02_B + Prototype_GameObject_SM_Repository_FloatingGround_02_B_Lod1 + Prototype_GameObject_SM_Repository_FloatingGround_02_B_Lod2 + + + + + + Prototype_GameObject_SM_Repository_FloatingGround_04_B + Prototype_GameObject_SM_Repository_FloatingGround_04_B_Lod1 + Prototype_GameObject_SM_Repository_FloatingGround_04_B_Lod2 + + + + + + Prototype_GameObject_SM_Repository_FloatingGround_02_A + Prototype_GameObject_SM_Repository_FloatingGround_02_A_Lod1 + Prototype_GameObject_SM_Repository_FloatingGround_02_A_Lod2 + + + + + + Prototype_GameObject_SM_Repository_FloatingGround_03_B + Prototype_GameObject_SM_Repository_FloatingGround_03_B_Lod1 + Prototype_GameObject_SM_Repository_FloatingGround_03_B_Lod2 + + + + + + Prototype_GameObject_SM_Gauntlet_02_barrier + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod1 + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod2 + Prototype_GameObject_SM_Gauntlet_02_barrier_Lod3 + + + + + + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A2 + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A2_Lod1 + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A2_Lod2 + + + + + + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A3 + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A3_Lod1 + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A3_Lod2 + + + + + + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_B + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_B_Lod1 + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_B_Lod2 + + + + + + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A_Lod1 + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A_Lod2 + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A_Lod3 + + + + + + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_D + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_D_Lod1 + Prototype_GameObject_SM_SanctumDun_MagicRockTendril_D_Lod2 + + + + + + Prototype_GameObject_SM_BoH_BreakingBridge_Area07_Base + Prototype_GameObject_SM_BoH_BreakingBridge_Area07_Base_Lod1 + Prototype_GameObject_SM_BoH_BreakingBridge_Area07_Base_Lod2 + + + + + + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C_Lod1 + Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C_Lod2 + + + + + + Prototype_GameObject_SM_Repository_EdgeRock_Base + Prototype_GameObject_SM_Repository_EdgeRock_Base_Lod1 + Prototype_GameObject_SM_Repository_EdgeRock_Base_Lod2 + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AU_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AU_AlphaMap.bin new file mode 100644 index 000000000..3285ef29d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AU_AlphaMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab04bd04e6c34635fc2bb00e40b3774e967b844ff5db36d83bd116e8564428b5 +size 16777216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AU_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AU_AlphaMap.dds new file mode 100644 index 000000000..fd14af27b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AU_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AV_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AV_AlphaMap.bin new file mode 100644 index 000000000..4ce8e835e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AV_AlphaMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29bcf83ba848136a495d9e7b81ef46754ed7ce890659627b13717232428793e4 +size 16777216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AV_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AV_AlphaMap.dds new file mode 100644 index 000000000..f68260c70 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AV_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AY_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AY_AlphaMap.bin new file mode 100644 index 000000000..180622570 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AY_AlphaMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5499b764cddc49830ff8fb64e319671df7b12b32e249277ed00802966ea64f9 +size 16777216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AY_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AY_AlphaMap.dds new file mode 100644 index 000000000..14d3af825 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AY_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AZ_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AZ_AlphaMap.bin new file mode 100644 index 000000000..26a777749 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AZ_AlphaMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:52831833df971db0d99117c8a87b9f7aca9ab557244cbb21f3d28db0660fa33e +size 16777216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AZ_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AZ_AlphaMap.dds new file mode 100644 index 000000000..2c2555865 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_AZ_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BA_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BA_AlphaMap.bin new file mode 100644 index 000000000..8bb4bed23 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BA_AlphaMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e415e900e52d39a64f5d1cb224dcf95699630c034356898d3d4eda8bd9108ac +size 16777216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BA_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BA_AlphaMap.dds new file mode 100644 index 000000000..365e03d24 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BA_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BC_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BC_AlphaMap.bin new file mode 100644 index 000000000..0a53bf250 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BC_AlphaMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48c1bc4a540765efed641e7974e78c837f9289f2a4478db219c4bf42d6c3d29d +size 16777216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BC_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BC_AlphaMap.dds new file mode 100644 index 000000000..4c02b0a0e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BC_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BD_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BD_AlphaMap.bin new file mode 100644 index 000000000..8159bbd40 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BD_AlphaMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56be77030a1de3e1845a935226b8d96703b08b4a79483c4263151787e2a22a8a +size 16777216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BD_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BD_AlphaMap.dds new file mode 100644 index 000000000..4f2dff68f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BD_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BE_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BE_AlphaMap.bin new file mode 100644 index 000000000..35cd50001 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BE_AlphaMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c53f3917e7b11f0e3b27625adbb4bfd27c062b1f58369c93f7d0fcff1e7600d +size 16777216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BE_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BE_AlphaMap.dds new file mode 100644 index 000000000..4653cfb33 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BE_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BF_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BF_AlphaMap.bin new file mode 100644 index 000000000..b7b8f6ba1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BF_AlphaMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04a1b6a2f624e521bc0c00aea8d7690e64e6d8c199f47b9d1f7654dc90b78500 +size 16777216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BF_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BF_AlphaMap.dds new file mode 100644 index 000000000..5cad50723 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BF_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BG_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BG_AlphaMap.bin new file mode 100644 index 000000000..a3e2567b5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BG_AlphaMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c548c3945e980c7d39b4ff3125a357ab946be2a014b5284859eb385bf6cf8cdf +size 16777216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BG_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BG_AlphaMap.dds new file mode 100644 index 000000000..f266c4dac Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BG_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BH_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BH_AlphaMap.bin new file mode 100644 index 000000000..34ace3fba --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BH_AlphaMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6916e0ad960f9f043b31e3a1a06580302b599ebb3e2962d376c49b6be3c94e2f +size 16777216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BH_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BH_AlphaMap.dds new file mode 100644 index 000000000..cf6c24511 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BH_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BI_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BI_AlphaMap.bin new file mode 100644 index 000000000..a9314e7c4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BI_AlphaMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:332c0859c8721a1316c5132783b38c56040604167c34577b10dab4c6070da913 +size 16777216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BI_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BI_AlphaMap.dds new file mode 100644 index 000000000..cf298fbd8 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BI_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BJ_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BJ_AlphaMap.bin new file mode 100644 index 000000000..99ddd501f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BJ_AlphaMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3cef2a46d9d3a11aa77c813208083596672d69e3e126d7a4dbcadbf0179653da +size 16777216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BJ_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BJ_AlphaMap.dds new file mode 100644 index 000000000..4def66146 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_HN_BJ_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_TU_BB_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_TU_BB_AlphaMap.bin new file mode 100644 index 000000000..1264c8bc9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_TU_BB_AlphaMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73fc33cf9b02588187aceb781dc7555070537af96f2a87ea5fe71663f37db4e6 +size 16777216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_TU_BB_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_TU_BB_AlphaMap.dds new file mode 100644 index 000000000..df19cee74 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Land_TU_BB_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml index 9edeaaacf..0d078b45f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml @@ -1,17 +1,16 @@  - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml index 9abcc8552..b465052bb 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml @@ -5,4 +5,5 @@ + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student_Rct.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student_Rct.bin new file mode 100644 index 000000000..6a54663f5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student_Rct.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98bf980e8baa3dd8bfba43fed3b3ccc653dd8e38fc34222f99935eb7e1828453 +size 58079556 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin index 206e42fc9..4ee84e2bb 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7269d0454e7ce722d99f31fe2a5403c854fd764f2215de4582671bddd8e6d273 -size 6854891 +oid sha256:8071bf7e7535294dd159e85c107ce3a5c604d184ca45f8b8593f969abea05401 +size 6854890 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml index a3f031e15..59f0e3547 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml @@ -64,7 +64,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin index 401c670b0..a4c4758f5 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:19fe722384b732f55bddc9ac5d09f0d50c2a81c76bd7b8c580378f6fa077ca92 -size 10364804 +oid sha256:87c758a2826671b83278e10f317fa5da1f6d9e5f95d18a354e0462b434dd003c +size 10396801 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx index bb404edba..426160853 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:32213c93d4cc6a61dd1bfcdb4193bfa76ddb1df6446e1ab1dfeab4d5ff522efd -size 5730924 +oid sha256:01136f9f94eb8740cca6eab949a12b71aafcf8a3c8d095c24d000151702e538e +size 5782684 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin index 188c4c219..139f12b7c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f5bcb7334ffe4bc141c7dac961c6b4b34c5c65ad091dc77e51120d5ae1fd1f66 -size 10732279 +oid sha256:d7295ba4c89744713083caff0e5e8573c3621152b146cfe46699ca701efc4b7e +size 10775434 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx index 1b271d937..9b2757900 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:91f5d61f3bf321945e5c6b0bdf94afc0456cb2a7100cc4a8f846480af8e925cd -size 6356780 +oid sha256:9643af9a6c20c8c598a907ad19484ea0515d0143a3647c7872560336b85c1371 +size 6435292 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin index 87e386e1e..fd9b2e2d0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d6603be4f8c20ac9d35068a179b14d328d2e3ed8606cbbe4ff485ee20860c0e8 -size 171707390 +oid sha256:9f284800b9984ead6d6492da61715e4b4614da55252049f8afc4ff2a73d634b2 +size 172156085 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx index a9917c355..4290f0588 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a4b060e3740116655157dcef4e1c24be46ef19e135bee51f1f226c8e67f92553 -size 483257372 +oid sha256:04af77e6fd573fb448d78a4afccd218b9940479fcaef46e375499a3374a4c326 +size 496538684 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin index d0c17e284..4daef16ff 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1d7c2c35f74162db556b2ffc41430330758f2663ff74789a9df08228ed384de7 -size 23075473 +oid sha256:00dd067d5e97d20be5f8e0fbe544ba7018305af8f6b7192a5bbacc1453d37450 +size 23190066 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx index 16f03d476..90c7123a8 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0ad3ae0879799efcc14fb85e27aadb253deb42262d583646d59e96e0e4971891 -size 56931356 +oid sha256:546136e613a6efd35ab9db1e22a97373147f20f3b4831ca2ef8a869b94084afa +size 58621516 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin index 4cfeee79b..6445f6267 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d11392338e9b08f59daf4a89c6314c909324db9b8cd12eed44b9d54f0f38024a -size 69331867 +oid sha256:2265a7cb220bc45acf8bec67f8eb3855d48d4a71260f6866277bd93b286286f5 +size 69510580 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx index a6552e63f..a0caadcf2 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3852584ae91ce78b9c3299e91ea1639afa69ce3fddb78fa301aec277ecdfd796 -size 182598812 +oid sha256:46bb4f14c6166fcb966998ab1688f933776a5c0bed07bd6278a0f7c3d1f9f5fb +size 187629004 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin index 04d63a307..07b783c00 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5530b986c6bd101b5e3eda8eb5631594b07a071886f7708b69494730193fd8de -size 10807972 +oid sha256:fc989ee8bef63e3c178ea47dc22742580f0a43c254e3bb0328e2e60a4dc66275 +size 10839386 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx index f087a226a..a6a50a1ed 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8a95ec0fd1c0b1991083fd21c0fb2a87d6126400acde22ef97a6df438b1c5d3c -size 6401564 +oid sha256:424e5eb5fdf67d1e9ab6d26a22daf433c490ebef787013e31ef934621dc9378f +size 6622524 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin index 48ab10d3d..d31f28581 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ff865f8dceb4baf57465631ea28be92f8729068435d4eec8acef1b74968d1b21 -size 10798323 +oid sha256:7efd3321c9b595a11f610459b45b466eaf4269b51519cb21ec335656b634684e +size 10831979 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx index d1fcd8c1b..4968ec3c3 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7d57c7dd2a5a50ab101b390c05715319737e5fff3548684d7c652556e12be1e4 -size 7602204 +oid sha256:f32e832183b0cc92989fe661fd246a939234c04cf4809d5dad6a470c27dc6b02 +size 7711820 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin index d005baddb..33eaa83ba 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cf4c2fc354b8fe220a85cf2a4766aca198966d2afe06b99ea15b60520b3d600d -size 11563567 +oid sha256:cd9ef6d0085b5b5aa114f93658bd677b2f6e63166c7040a8b0f41d590fd1d598 +size 11599528 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx index 17ee917fe..53d4ae88d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9344cd73993ca5a9979005e4a2d6602afd495ce1a665b6693807ffc8288891bb -size 10960124 +oid sha256:d09ce4044856db084f1c27d202ce2ef8ec39caab390090c39cfea58682335f5e +size 11317660 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin index d3c6afa9c..6d3d26444 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fed83d790ce5ec13ed5cf7acd245ac38b3a86658e52c72d7c8d3424d86d500f7 -size 60651350 +oid sha256:0c2b15b19dbd5e9cac30f8dd7a0503697fefb8ba7670a0517fa76a92f1e39dd9 +size 60872730 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx index e8fc6d273..d334a4453 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c15071ebf86e8c4688d6f252de7b50487cb1454bc5e7ca5231334ac0d5546d64 -size 157682572 +oid sha256:97b6f3b412d2efaee517a4957e733bd10fa4ec2cce0cfc2ab7849f189cac1ab4 +size 162112268 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin index 3f55b79df..78b0c122c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1d369879ae3846d1bb1779818b025a714b9412cb4a7faaa238c6b862f7bdd0ec -size 19489076 +oid sha256:c014c7879bd0bf784b52c41103c914e36ccd342a19fe774d14a76db339b10406 +size 19553373 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx index 8e0194c1e..fdeecd83d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:068105d25b85bbd235d0be09005cfa7d4a2938571965019ad3459dcaa3133360 -size 41111868 +oid sha256:9a0f699ca4bd2b3fc8fe6fa488eb603e57571dcb997d415e3773959bcff3c376 +size 42318204 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin index 8173f74c8..8e2669fc2 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:97a3468fa1372811a36391ffece957b786dcf633ec84b6bb1ded222e89bca6d9 -size 15496127 +oid sha256:7cd902991cc0e07a13d661ff082063c4d91d05558745e22fd55b6236534657ce +size 15532953 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx index 4f53e5320..cd212311b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7c57f4192cd1cc660c7975d3d0c2e73680f55257a48c3d6ef6965e3290b19c0e -size 13271484 +oid sha256:0c6ea3057be2b0b2b79a9f68b04a50c57d2aafd511248eb5f45fbcacae41bf94 +size 13646412 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin index f3654b2ae..6f211a32d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e6cdba1d2a122702abe7704d60fe38a1fed7d33020713ad0478ca5374681651d -size 12209325 +oid sha256:16a8a368648f0a2a465e60be2594f116a9e5c8fd66756f68472f2da90518953b +size 12244771 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx index a2146657d..bd8c2f8b9 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:dfdb7b6f61c64274ea30443d94497b20db204a7c9e82154980154b16af194e6d -size 9383916 +oid sha256:4d1815739ab986871b4e43dc9a93594acebd8734f3cb0d18f58ea598e0322479 +size 9683692 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin new file mode 100644 index 000000000..8779cd5a1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32b51f41874a6648ba4d389840709175a6bfbc04152d800abb743fc4a6689e03 +size 13829790 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx new file mode 100644 index 000000000..f88a088c2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ce6d6d9c175b7711f49a87c50e3e16bce60ee524ea04254a7fee76b8054f5bd +size 7854460 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin new file mode 100644 index 000000000..ca3ef705e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:903ba3faf37d24ecd9e7ff0ce17f08d770cc64408f7dba0d90a993ec5d5bd245 +size 175654 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin new file mode 100644 index 000000000..505038b0c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:23d53353bb1c3906c8816454840a2b6e9665ce5a3d5b36205616eb4c0d8ddab5 +size 108530 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin new file mode 100644 index 000000000..332c2d93b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0e2c37d26b6bc57e90bc974c8b7d496892e600854eaa7aaf1a15347910cfd55 +size 106590 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin new file mode 100644 index 000000000..7b4f6256c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ba72ba5f19a563eb6c9deed998845dec4826d3c54a8fcf043a6ecc9fad7509e +size 234718 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin new file mode 100644 index 000000000..8fb63a374 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:129120100ba4d1d940fec69145da3f8968e7c5d40096a8ec5a79b1315db7e864 +size 369786 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin new file mode 100644 index 000000000..13f9fe357 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8e8d64ebda88648f78aa6db3f00cd8f414ab14387b729f0665e0aaf66f023a40 +size 92250 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin new file mode 100644 index 000000000..d9ac8b38d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa07180f1502057db3bd10a6d114abd238af5ad39add8788d73d034750121254 +size 87454 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin new file mode 100644 index 000000000..40c7cb633 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:baefd251c0d7a7a56750ca05141ea2b9b9791f80cc2801d5ff744bdb2c822cd1 +size 278010 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin new file mode 100644 index 000000000..e7bcf4b5d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8bf8a4de5903c9eb6bb89874814527d8eaacae1f60337e7123e17e7a2d810a55 +size 389678 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/Female01.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/Female01.fbx new file mode 100644 index 000000000..98fbb02b8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/Female01.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0b5e33928ae4072c6dc1dafd7d1034c18600591839da84c2ecab3757e4418b6 +size 36510876 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/male01.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/male01.fbx new file mode 100644 index 000000000..28682a24e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/male01.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f9c508279da4a3fcaac901b784f3ab70655e9bcd9a941df0fa5c064a1c37f8c +size 49008684 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.bin index c3a633e78..00406df54 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a7d1e09cadbb9b893154e11dae7e8a4dbd6519c294fbca956cf2ba11fdfe4ed5 -size 5154246 +oid sha256:66743ee440af5a10d0e74ff2203efa4f08514f6b19869fcc133869f568af7b8e +size 5163586 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.fbx index 866d6ed22..fac6a610d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:62c113acb5e15bab839185ad00acf6ede4587fcf44874078ce738d0475fec203 -size 2138700 +oid sha256:6afe140b1bd18e24b74e3631ffa881cfbcd1036fc83fd3e4d49fc5cf76206338 +size 2268364 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.xml index d24083c9d..6934e9717 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.xml @@ -173,7 +173,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.bin index 19074fb85..bc4eff994 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:aafe6c653fd8c4be89928fd725687e9939deacddbdc59f26c8a92a3e6a2251c8 -size 41873230 +oid sha256:7f0aec44a3dbeafab4cbbd655e2f193d1159aa57843d86f7eadb702358032237 +size 43489033 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.fbx index 3dc740612..d9a512f66 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2f4ac561f8c038b1e1a3697288135c24cdc8e954fd24a396c5836c36135f9206 -size 123683036 +oid sha256:cecb0a62fb33d988795f4369738633dc14988ebcd87ad85fb724fc462efe3327 +size 136112332 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.bin new file mode 100644 index 000000000..4c50849ef --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:290de4b9a47b9e07596a092531280c77548e4c6ab8bae2564a976b6338f6daa9 +size 16281507 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.fbx new file mode 100644 index 000000000..3a854e1cf --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6fa4bf2c5c8aff70c37b8a113812c4b040b2b7a3664700f5d7024358612eb2be +size 4519836 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.bin new file mode 100644 index 000000000..5e3c63885 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef3ac2202757e81a8a8a89c4a032326fdb9fad7cc3f7b4e64abd6b71e82fe0b1 +size 134860 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.fbx new file mode 100644 index 000000000..4b09a75d1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c1932284b28eaec10dc58e31f142665a4b19eee9af9392ce438495264e36128 +size 143068 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl index 3d233fe57..310cd83eb 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl @@ -28,6 +28,7 @@ StructuredBuffer g_BoneRemap : register(t6); StructuredBuffer g_SkipBone : register(t7); + RWStructuredBuffer g_LocalMatrixOut : register(u0); cbuffer AnimCB : register(b0) @@ -48,7 +49,7 @@ cbuffer AnimCB : register(b0) float HeadAimWeight; int SkipCount; - int _pad0; + int IsSkip; int _pad1; int _pad2; @@ -366,7 +367,7 @@ void CS_LOCAL(uint3 DTid : SV_DispatchThreadID) if (bone >= BoneCount) return; - if (SkipCount != 0) + if (SkipCount != 0 && IsSkip) { for (int i = 0; i < SkipCount; i++) { diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl index 3cf999034..8f7f616b2 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl @@ -29,7 +29,7 @@ cbuffer AnimCB : register(b0) float HeadAimWeight; int SkipCount; - int _pad0; + int IsSkip; int _pad1; int _pad2; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl index 74a75f3aa..ad6342569 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl @@ -200,13 +200,13 @@ VS_OUT VS_MAIN_LEGACY(VS_IN In) float sumW = max(dot(w, 1.0f), 1e-6f); w /= sumW; - //uint4 idx = In.vBlendIndex; - - //matrix BoneMatrix = (matrix) 0; - //matrix TempBoneMatrix = (matrix) 0; + uint4 idx = In.vBlendIndex; - //uint MinIdx = 30; - //uint MaxIdx = 41; + matrix BoneMatrix = (matrix) 0; + matrix TempBoneMatrix = (matrix) 0; + + int MinIdx = 30; + int MaxIdx = 45; //if (idx.x >= MinIdx && idx.x <= MaxIdx) //{ @@ -251,7 +251,7 @@ VS_OUT VS_MAIN_LEGACY(VS_IN In) //BoneMatrix = TempBoneMatrix; - matrix BoneMatrix = + BoneMatrix = mul(g_OffsetMatrix[In.vBlendIndex.x], mul(g_BoneBuffer[In.vBlendIndex.x].LocalCombined, w.x)) + mul(g_OffsetMatrix[In.vBlendIndex.y], diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl index 025e3f529..199fea1ea 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl @@ -127,6 +127,11 @@ float g_fSoftMaskEdge; float g_fUVTiling; +Texture2D g_DiffuseTextures[4]; +Texture2D g_NormalTextures[4]; +Texture2D g_SurfaceParamsTextures[4]; +Texture2D g_MaskTexture; + struct VS_IN { float3 vPosition : POSITION; @@ -538,19 +543,7 @@ PS_OUT_BLUR PS_MAIN_SKYBOX(PS_IN In) PS_OUT_BLUR Out; float4 vColor = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - - //if (0.f == g_fFogPow) - //{ - // Out.vDiffuse = vColor; - // return Out; - //} - - //vector vFinalColor; - //float fRatio; - - //fRatio = pow(1.f - saturate(exp(-1.f * g_fFar * g_fFogDensity)), g_fFogPow); - //vFinalColor = lerp(vColor, g_vFogColor, fRatio); - //vFinalColor.a = 1.f; + Out.vDiffuse = vColor; @@ -777,16 +770,38 @@ PS_OUT PS_LAND(PS_IN In) { PS_OUT Out = (PS_OUT)0; - float4 vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 10.f); - float4 vSurface = g_SurfaceParamsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 10.f); + vector vMask = g_MaskTexture.Sample(DefaultSampler, In.vTexcoord); + + vector vMtrlDiffuse_0 = g_DiffuseTextures[0].Sample(DefaultSampler, In.vTexcoord * 10.f); + vector vMtrlDiffuse_1 = g_DiffuseTextures[1].Sample(DefaultSampler, In.vTexcoord * 10.f); + vector vMtrlDiffuse_2 = g_DiffuseTextures[2].Sample(DefaultSampler, In.vTexcoord * 10.f); + vector vMtrlDiffuse_3 = g_DiffuseTextures[3].Sample(DefaultSampler, In.vTexcoord * 10.f); + + vector vMtrlDiffuse = float4(float3(vMtrlDiffuse_0.xyz * vMask.r + + vMtrlDiffuse_1.xyz * vMask.g + + vMtrlDiffuse_2.xyz * vMask.b + + vMtrlDiffuse_3.xyz * vMask.a), 1.f); - if (vMtrlDiffuse.a < 0.2f) - { - discard; - } + vector vSurface_0 = g_SurfaceParamsTextures[0].Sample(DefaultSampler, In.vTexcoord * 10.f); + vector vSurface_1 = g_SurfaceParamsTextures[1].Sample(DefaultSampler, In.vTexcoord * 10.f); + vector vSurface_2 = g_SurfaceParamsTextures[2].Sample(DefaultSampler, In.vTexcoord * 10.f); + vector vSurface_3 = g_SurfaceParamsTextures[3].Sample(DefaultSampler, In.vTexcoord * 10.f); + + vector vSurface = (vSurface_0 * vMask.r + + vSurface_1 * vMask.g + + vSurface_2 * vMask.b + + vSurface_3 * vMask.a); - - float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, In.vTexcoord); + float3 vNormalDecoded_0 = DecodeNormalFromRG(g_NormalTextures[0], DefaultSampler, In.vTexcoord * 10.f); + float3 vNormalDecoded_1 = DecodeNormalFromRG(g_NormalTextures[1], DefaultSampler, In.vTexcoord * 10.f); + float3 vNormalDecoded_2 = DecodeNormalFromRG(g_NormalTextures[2], DefaultSampler, In.vTexcoord * 10.f); + float3 vNormalDecoded_3 = DecodeNormalFromRG(g_NormalTextures[3], DefaultSampler, In.vTexcoord * 10.f); + + float3 vNormalDecoded = normalize(vNormalDecoded_0.xyz * vMask.r + + vNormalDecoded_1.xyz * vMask.g + + vNormalDecoded_1.xyz * vMask.b + + vNormalDecoded_1.xyz * vMask.a); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Sky/Daylight.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Sky/Daylight.dds new file mode 100644 index 000000000..7872ae0b6 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Sky/Daylight.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Sky/T_Sky_Stars.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Sky/T_Sky_Stars.dds new file mode 100644 index 000000000..c6105f75e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Sky/T_Sky_Stars.dds differ diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj index c981dabb1..2b600576c 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj @@ -226,8 +226,8 @@ call Update_Shaders.bat - - + + @@ -506,8 +506,8 @@ call Update_Shaders.bat - - + + diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index 2c0845dcb..3f81afff4 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -637,12 +637,6 @@ {8ada79e8-727c-40c3-95dc-ce34b8924e69} - - {906987cf-14ce-4676-8ca7-a68b6b2c29b6} - - - {12d83369-3413-478f-920e-c3c0ddeabfe8} - {353f9458-6fe9-4159-a1c6-1f3a85cffda9} @@ -759,6 +753,12 @@ {614e67ae-6df9-4826-adbe-6be96f54041d} + + + {906987cf-14ce-4676-8ca7-a68b6b2c29b6} + + + {12d83369-3413-478f-920e-c3c0ddeabfe8} {1893fa7b-b08f-4362-a212-7751614d4922} @@ -1515,11 +1515,11 @@ 50.UI\GamePlay_Canvas\Ride_Panel\Ride_HpBar - - 50.UI\GamePlay_Canvas\Ride_Panel\Ride_Bbooster_Slot + + 50.UI\GamePlay_Canvas\Ride_Panel\Ride_Booster_Slot - - 50.UI\GamePlay_Canvas\Ride_Panel\Ride_BboosterBar + + 50.UI\GamePlay_Canvas\Ride_Panel\Ride_BoosterBar 50.UI\GamePlay_Canvas\Ride_Panel\Ride_HpSlot @@ -2311,11 +2311,11 @@ 50.UI\GamePlay_Canvas\Ride_Panel\Ride_HpBar - - 50.UI\GamePlay_Canvas\Ride_Panel\Ride_Bbooster_Slot + + 50.UI\GamePlay_Canvas\Ride_Panel\Ride_Booster_Slot - - 50.UI\GamePlay_Canvas\Ride_Panel\Ride_BboosterBar + + 50.UI\GamePlay_Canvas\Ride_Panel\Ride_BoosterBar 50.UI\GamePlay_Canvas\Ride_Panel\Ride_HpSlot diff --git a/Jusin154_Team3D/Editor/Private/AlphaMap.cpp b/Jusin154_Team3D/Editor/Private/AlphaMap.cpp index dd17e6885..8cbaf5acc 100644 --- a/Jusin154_Team3D/Editor/Private/AlphaMap.cpp +++ b/Jusin154_Team3D/Editor/Private/AlphaMap.cpp @@ -34,9 +34,63 @@ void CAlphaMap::Update(_float3& vPosition, _uint iColorIndex, _float fValue, _ui iPixelIndex = (iCurrentZ * m_iNumPixelW) + iCurrentX; - if (m_iNumPixels <= iPixelIndex) + if (m_iNumPixels <= iPixelIndex || 0 > iPixelIndex) + continue; + + if (0 == iColorIndex) + { + m_pPixels[iPixelIndex].x += fValue; + } + else if (1 == iColorIndex) + { + m_pPixels[iPixelIndex].y += fValue; + } + else if (2 == iColorIndex) + { + m_pPixels[iPixelIndex].z += fValue; + } + else if (3 == iColorIndex) + { + m_pPixels[iPixelIndex].w += fValue; + } + else return; + _float fWeight = m_pPixels[iPixelIndex].x + m_pPixels[iPixelIndex].y + m_pPixels[iPixelIndex].z + m_pPixels[iPixelIndex].w; + + m_pPixels[iPixelIndex] = _float4(m_pPixels[iPixelIndex].x / fWeight, m_pPixels[iPixelIndex].y / fWeight, m_pPixels[iPixelIndex].z / fWeight, m_pPixels[iPixelIndex].w / fWeight); + } + } + + memcpy(SubResource.pData, m_pPixels, sizeof(_float4) * m_iNumPixels); + + m_pContext->Unmap(m_pTexture2D, 0); + +} + +void CAlphaMap::Update_Land(_float2 vUV, _uint iColorIndex, _float fValue, _uint iRange) +{ + D3D11_MAPPED_SUBRESOURCE SubResource{}; + if (FAILED(m_pContext->Map(m_pTexture2D, 0, D3D11_MAP_WRITE_DISCARD, 0, &SubResource))) + return; + + _uint iPixelIndex = {}; + + _uint iStartX = (_uint)(vUV.x * m_iNumPixelW) - (iRange / 2); + _uint iStartZ = (_uint)(vUV.y * m_iNumPixelH) - (iRange / 2); + + for (_uint j = 0; j < iRange; ++j) + { + for (_uint i = 0; i < iRange; ++i) + { + _uint iCurrentX = iStartX + i; + _uint iCurrentZ = iStartZ + j; + + iPixelIndex = (iCurrentZ * m_iNumPixelW) + iCurrentX; + + if (m_iNumPixels <= iPixelIndex || 0 > iPixelIndex) + continue; + if (0 == iColorIndex) { m_pPixels[iPixelIndex].x += fValue; @@ -121,7 +175,15 @@ void CAlphaMap::Load_ToFile(const _char* pFilePath) m_pContext->Unmap(m_pTexture2D, 0); - if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, L"../Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds"))) + /*if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, L"../Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds"))) + return;*/ +} + +void CAlphaMap::Save_DDS(const _char* pFilePath) +{ + string strFilePath = "../Bin/Resources/Data/Map/Terrain/" + string(pFilePath); + + if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, CMyTools::ToWstring(strFilePath).c_str()))) return; } diff --git a/Jusin154_Team3D/Editor/Private/Land.cpp b/Jusin154_Team3D/Editor/Private/Land.cpp index 837203ff5..734343327 100644 --- a/Jusin154_Team3D/Editor/Private/Land.cpp +++ b/Jusin154_Team3D/Editor/Private/Land.cpp @@ -2,6 +2,7 @@ #include "Land.h" #include "GameInstance.h" +#include "AlphaMap.h" CLand::CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CGameObject{ pDevice, pContext } @@ -25,7 +26,7 @@ void CLand::Update(_float fTimeDelta) void CLand::Late_Update(_float fTimeDelta) { - if(m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pModelCom->Get_Radius())) + if(m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), 400.f)) m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); else { @@ -43,8 +44,8 @@ HRESULT CLand::Render() for (_uint i = 0; i < iNumMeshes; i++) { - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) - return E_FAIL; + /* if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) + return E_FAIL;*/ if (FAILED(m_pShaderCom->Begin(17))) { return E_FAIL; @@ -60,6 +61,8 @@ HRESULT CLand::Render() HRESULT CLand::Initialize_Prototype() { + m_fUsingSurfaceParams = MRO_PARAMETER; + return S_OK; } @@ -74,8 +77,13 @@ HRESULT CLand::Initialize(void* pArg) if (FAILED(Ready_Components(pArg))) return E_FAIL; + if (FAILED(Ready_AlphaMap())) + return E_FAIL; + LAND_DESC* pLand_Desc = static_cast(pArg); + if(pLand_Desc->isLoadAlphaMap) + m_pAlphaMap->Load_ToFile(pLand_Desc->strAlphaMapTag.c_str()); return S_OK; } @@ -91,6 +99,7 @@ HRESULT CLand::Ready_Components(void* pArg) m_bEdit = pDesc->bEdit; m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f)); m_pTransformCom->Set_Scale(pDesc->vScale); + memcpy(&m_vScale, &pDesc->vScale, sizeof(_float3)); /* Com_Model */ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->strModelComTag, @@ -102,6 +111,19 @@ HRESULT CLand::Ready_Components(void* pArg) reinterpret_cast(&m_pShaderCom)))) return E_FAIL; + /* Com_Texture */ + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_Diffuse"), reinterpret_cast(&m_pDiffuseTextureCom), nullptr))) { + return E_FAIL; + } + /* Com_Texture */ + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_Normal"), reinterpret_cast(&m_pNormalTextureCom), nullptr))) { + return E_FAIL; + } + /* Com_Texture */ + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_MRO"), reinterpret_cast(&m_pMROTextureCom), nullptr))) { + return E_FAIL; + } + return S_OK; } @@ -123,6 +145,32 @@ HRESULT CLand::Bind_ShaderResources() return E_FAIL; } + if (FAILED(m_pDiffuseTextureCom->Bind_ShaderResources(m_pShaderCom, "g_DiffuseTextures", 0, m_pDiffuseTextureCom->Get_Size()))) { + return E_FAIL; + } + if (FAILED(m_pNormalTextureCom->Bind_ShaderResources(m_pShaderCom, "g_NormalTextures", 0, m_pNormalTextureCom->Get_Size()))) { + return E_FAIL; + } + if (FAILED(m_pMROTextureCom->Bind_ShaderResources(m_pShaderCom, "g_SurfaceParamsTextures", 0, m_pMROTextureCom->Get_Size()))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_SRV("g_MaskTexture", m_pAlphaMap->Get_SRV()))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CLand::Ready_AlphaMap() +{ + m_pAlphaMap = CAlphaMap::Create(m_pDevice, m_pContext, 1024, 1024); + + if (nullptr == m_pAlphaMap) + return E_FAIL; + return S_OK; } @@ -157,34 +205,66 @@ void CLand::Free() SAFE_RELEASE(m_pShaderCom); SAFE_RELEASE(m_pModelCom); + + SAFE_RELEASE(m_pDiffuseTextureCom); + SAFE_RELEASE(m_pNormalTextureCom); + SAFE_RELEASE(m_pMROTextureCom); + SAFE_RELEASE(m_pAlphaMap); } void CLand::Describe_Entity() { GUI::Begin("Land Debug"); - XMStoreFloat4(&m_vPosition, m_pTransformCom->Get_State(STATE::POSITION)); - GUI::DragFloat3("LandPos", (_float*)(&m_vPosition)); - m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_vPosition)); + GUI::InputFloat2("PickingUV", (_float*)(&m_vPickingUV)); + GUI::Text("----- AlphaMap ----"); + GUI::InputInt("Color", &m_iColorIndex); + m_iColorIndex = max(0, min(4, m_iColorIndex)); + GUI::InputInt("Rnage", (_int*)(&m_iMaskRange)); + GUI::DragFloat("Value", &m_fMaskValue, 0.01f, -1.0f, 1.f); + + if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_M)) + { + _float3 m_vPickingPosition = {}; + if (m_pGameInstance->isPicking(&m_vPickingPosition)) + { + if (m_pModelCom->PickingMesh(&m_vPickingPosition, &m_vPickingUV, 0, m_pTransformCom->Get_XMWorldMatrix())) + { + m_pAlphaMap->Update_Land(m_vPickingUV, m_iColorIndex, m_fMaskValue, m_iMaskRange); + } + //XMStoreFloat3(&m_vPickingPosition, XMVector3TransformCoord(XMLoadFloat3(&m_vPickingPosition), m_pTransformCom->Get_WorldMatrixInv())); + } + } + GUI::Text("----- Position ----"); + XMStoreFloat4(&m_vPosition, m_pTransformCom->Get_State(STATE::POSITION)); + GUI::InputFloat("X##LandPos", &m_vPosition.x, 0.1f, 10.f); + GUI::InputFloat("Y##LandPos", &m_vPosition.y, 0.1f, 10.f); + GUI::InputFloat("Z##LandPos", &m_vPosition.z, 0.1f, 10.f); + m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_vPosition)); GUI::Text("----- Scale ----"); GUI::InputFloat("X##Scale", &m_vScale.x, 0.1f, 1.f); GUI::InputFloat("Y##Scale", &m_vScale.y, 0.1f, 1.f); GUI::InputFloat("Z##Scale", &m_vScale.z, 0.1f, 1.f); + if (GUI::Button("Save", ImVec2(100.f, 30.f))) + { + m_pAlphaMap->Save_ToFile("Land_TU_BB_AlphaMap.bin"); + } + if (GUI::Button("Load", ImVec2(100.f, 30.f))) + { + m_pAlphaMap->Load_ToFile("Land_TU_BB_AlphaMap.bin"); + } + if (GUI::Button("SaveDDS", ImVec2(100.f, 30.f))) + { + m_pAlphaMap->Save_DDS("Land_TU_BB_AlphaMap.dds"); + } m_vScale.x = max(0.01f, m_vScale.x); m_vScale.y = max(0.01f, m_vScale.y); m_vScale.z = max(0.01f, m_vScale.z); m_pTransformCom->Set_Scale(m_vScale); - GUI::Text("----- Rotation ----"); - GUI::InputFloat("X##Rotation", &m_vRotation.x, 10.f, 45.f); - GUI::InputFloat("Y##Rotation", &m_vRotation.y, 10.f, 45.f); - GUI::InputFloat("Z##Rotation", &m_vRotation.z, 10.f, 45.f); - - m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); - GUI::End(); } diff --git a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp index 68be8bbd7..b43da265c 100644 --- a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp @@ -68,9 +68,9 @@ HRESULT CLevel_MapViewer::Initialize() return E_FAIL; } - if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) { - return E_FAIL; - } + //if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) { + // return E_FAIL; + //} //if (FAILED(Ready_Layer_BuildingContainer(TEXT("Layer_Building")))) { // return E_FAIL; @@ -92,7 +92,8 @@ HRESULT CLevel_MapViewer::Initialize() return E_FAIL; } - m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); + //m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); + m_pGameInstance->Setting_Volumetirc(0.f, 0.003f, 0.56f, 1.f, 0.031f); return S_OK; } @@ -148,7 +149,7 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag) CTerrain::TERRAIN_DESC Desc = {}; ///* Hogsmeade */ - Desc.isEdit = true; + Desc.isEdit = false; Desc.iAlphaSizeX = 2048; Desc.iAlphaSizeY = 2048; Desc.vPosition = _float3(-194, 18.5f, -153.f); @@ -159,7 +160,7 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag) return E_FAIL; /* Hogwart */ - /*Desc.isEdit = false; + Desc.isEdit = false; Desc.iAlphaSizeX = 2048; Desc.iAlphaSizeY = 2560; Desc.strAlphaMapTag = "Hogwart_AlphaMap.bin"; @@ -167,7 +168,7 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag) Desc.vPosition = _float3(-451.f, 18.5f, -791.f); Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogwart"); if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc))) - return E_FAIL;*/ + return E_FAIL; /* North_Hogwart */ //Desc.isEdit = false; @@ -215,7 +216,6 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag) if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Lake_Desc))) return E_FAIL; - return S_OK; } @@ -225,46 +225,143 @@ HRESULT CLevel_MapViewer::Ready_Layer_Land(const _wstring& strLayerTag) /* South_Hogwart_Land */ Land_Desc.bEdit = false; + Land_Desc.isLoadAlphaMap = true; Land_Desc.vPosition = _float3(290.5f, 59.5f, -347.f); Land_Desc.vScale = _float3(1.f, 1.25f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_South_Hogwart_Land_LOD1"; + Land_Desc.strAlphaMapTag = "Land_HN_BC_AlphaMap.bin"; if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Land_Desc))) return E_FAIL; /* North_Hogwart_Land */ Land_Desc.bEdit = false; + Land_Desc.isLoadAlphaMap = true; Land_Desc.vPosition = _float3(-370.f, -37.5f, -21.4f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart_Land_LOD1"; - + Land_Desc.strAlphaMapTag = "Land_HN_AV_AlphaMap.bin"; if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Land_Desc))) return E_FAIL; /* North_Hogwart2_Land */ Land_Desc.bEdit = false; + Land_Desc.isLoadAlphaMap = true; Land_Desc.vPosition = _float3(-378.f, -17.5f, 285.6f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart2_Land_LOD1"; - + Land_Desc.strAlphaMapTag = "Land_HN_AU_AlphaMap.bin"; if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Land_Desc))) return E_FAIL; /* West_Hogwart_Land */ Land_Desc.bEdit = false; + Land_Desc.isLoadAlphaMap = true; Land_Desc.vPosition = _float3(-653.f, 20.f, -327.4f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_West_Hogwart_Land_LOD1"; - + Land_Desc.strAlphaMapTag = "Land_HN_AZ_AlphaMap.bin"; if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Land_Desc))) return E_FAIL; /* East_Hogsmeade_Land */ Land_Desc.bEdit = false; + Land_Desc.isLoadAlphaMap = true; Land_Desc.vPosition = _float3(436.f, 55.f, 60.3f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_East_Hogsmeade_Land_LOD1"; + Land_Desc.strAlphaMapTag = "Land_HN_AY_AlphaMap.bin"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc))) + return E_FAIL; + + /* HN_BA */ + Land_Desc.bEdit = false; + Land_Desc.isLoadAlphaMap = true; + Land_Desc.vPosition = _float3(-606.f, 70.f, -647.7f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BA"; + Land_Desc.strAlphaMapTag = "Land_HN_BA_AlphaMap.bin"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Land_Desc))) + return E_FAIL; + + /* HN_BD */ + Land_Desc.bEdit = false; + Land_Desc.isLoadAlphaMap = true; + Land_Desc.vPosition = _float3(201.4f, -22.9f, -650.1f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BD"; + Land_Desc.strAlphaMapTag = "Land_HN_BD_AlphaMap.bin"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc))) + return E_FAIL; + + /* HN_BG */ + Land_Desc.bEdit = false; + Land_Desc.isLoadAlphaMap = true; + Land_Desc.vPosition = _float3(-377.8f, 5.f, -1038.49f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BG"; + Land_Desc.strAlphaMapTag = "Land_HN_BG_AlphaMap.bin"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc))) + return E_FAIL; + + /* HN_BH */ + Land_Desc.bEdit = false; + Land_Desc.isLoadAlphaMap = true; + Land_Desc.vPosition = _float3(80.1f, -63.f, -908.3f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BH"; + Land_Desc.strAlphaMapTag = "Land_HN_BH_AlphaMap.bin"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc))) + return E_FAIL; + + /* HN_BE */ + Land_Desc.bEdit = false; + Land_Desc.isLoadAlphaMap = true; + Land_Desc.vPosition = _float3(431.2f, 100.1f, -658.3f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BE"; + Land_Desc.strAlphaMapTag = "Land_HN_BE_AlphaMap.bin"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc))) + return E_FAIL; + + /* HN_BF */ + Land_Desc.bEdit = false; + Land_Desc.isLoadAlphaMap = true; + Land_Desc.vPosition = _float3(-688.9f, 170.7f, -1066.f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BF"; + Land_Desc.strAlphaMapTag = "Land_HN_BF_AlphaMap.bin"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc))) + return E_FAIL; + + /* HN_BI */ + Land_Desc.bEdit = false; + Land_Desc.isLoadAlphaMap = true; + Land_Desc.vPosition = _float3(82.7f, -61.f, -1141.6f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BI"; + Land_Desc.strAlphaMapTag = "Land_HN_BI_AlphaMap.bin"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc))) + return E_FAIL; + + /* HN_BJ */ + Land_Desc.bEdit = false; + Land_Desc.isLoadAlphaMap = true; + Land_Desc.vPosition = _float3(367.1f, 44.8f, -1016.f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BJ"; + Land_Desc.strAlphaMapTag = "Land_HN_BJ_AlphaMap.bin"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc))) + return E_FAIL; + + /* TU_BB */ + Land_Desc.bEdit = true; + Land_Desc.isLoadAlphaMap = true; + Land_Desc.vPosition = _float3(-829.5f, 58.3f, 112.9f); + Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); + Land_Desc.strModelComTag = L"Prototype_Component_Land_TU_BB"; + Land_Desc.strAlphaMapTag = "Land_TU_BB_AlphaMap.bin"; if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc))) return E_FAIL; diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp index 7c2d32df5..05ea5f8be 100644 --- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp @@ -771,8 +771,8 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_Dummy(const _wstring& strLayerTag) return E_FAIL; } - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, nullptr, nullptr, &m_Test))) - return E_FAIL; + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, nullptr, nullptr, &m_Test))) + // return E_FAIL; if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE))) return E_FAIL; diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index d5567f098..6f1b59325 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -139,8 +139,8 @@ #include "Ride_Info_Key.h" #include "Ride_Info.h" #include "Ride_InfoBG.h" -#include "Ride_Bbooster_Slot.h" -#include "Ride_BboosterBar.h" +#include "Ride_Booster_Slot.h" +#include "Ride_BoosterBar.h" #include "Ride_HpBar.h" #include "Ride_HpSlot.h" @@ -1245,11 +1245,11 @@ HRESULT CLoader::Loading_For_UI() { return E_FAIL; } - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRide_Bbooster_Slot::Create(m_pDevice, m_pContext)))) + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRide_Booster_Slot::Create(m_pDevice, m_pContext)))) { return E_FAIL; } - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRide_BboosterBar::Create(m_pDevice, m_pContext)))) + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRide_BoosterBar::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -1744,7 +1744,7 @@ HRESULT CLoader::Loading_For_Effect() CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Models/Lake/SkyCube.dds"), 0)))) { return E_FAIL; } - + #pragma region DUNGEON_MAP vector<_wstring> ModelPrototypeTags = {}; vector ModelPrototypePath = {}; @@ -2703,18 +2703,26 @@ HRESULT CLoader::Loading_For_MapViewer() TEXT("../Bin/Resources/Models/Lake/T_Caustics_D.dds"), 0)))) { return E_FAIL; } + /* For.Prototype_Component_T_Water_N */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Water_N"), CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Models/Lake/T_Water_N.dds"), 0)))) { return E_FAIL; } + /* Lake_Cube_D */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lake_Cube_D"), CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Models/Lake/SkyCube.dds"), 0)))) { return E_FAIL; } + /* Lake_Cube_D */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Sky_Cube"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Sky/T_Sky_Stars.dds"), 0)))) { + return E_FAIL; + } + /* Lake_Cube_D */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lake_Refraction"), CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Models/Lake/T_MudSmallRocks_A_D.dds"), 0)))) { @@ -2765,6 +2773,54 @@ HRESULT CLoader::Loading_For_MapViewer() CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + /* For.Prototype_Component_Land_HN_BA */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BA"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_Land_HN_BD */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BD"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_Land_HN_BG */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BG"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_Land_HN_BH */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BH"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + + /* For.Prototype_Component_Land_HN_BE */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BE"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_Land_HN_BF */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BF"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_Land_HN_BI */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BI"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_Land_HN_BJ */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BJ"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + /* For.Prototype_Component_Land_TU_BB */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_TU_BB"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) + return E_FAIL; + + + /* For.Prototype_Component_Hogwart_Lake */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogwart_Lake"), CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Deep.bin", XMMatrixIdentity())))) @@ -2983,7 +3039,7 @@ HRESULT CLoader::Loading_For_MapViewer() #pragma endregion -_bool bLoadHogsmeade = true; +_bool bLoadHogsmeade = false; if (bLoadHogsmeade) { #pragma region HOGSMEADE_OBJECT @@ -3069,7 +3125,7 @@ _bool bLoadHogsmeade = true; } #pragma region HOGWART -_bool bHogwartLoad = { false }; +_bool bHogwartLoad = { true }; /* Hogwart LOD */ if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD", @@ -3373,7 +3429,7 @@ vector> jobFutures; _uint iLoadCount = 44; vector*> Contents(iLoadCount); -_bool isLoad_Map = { true }; +_bool isLoad_Map = { false }; if(isLoad_Map) { { /* Terrain */ diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp index 24c0985da..cc2193456 100644 --- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp @@ -79,12 +79,6 @@ HRESULT CLoader::Loading_For_ObjectViewer() TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model") ));*/ - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_Playable_Model") - )); - - #pragma region MONSTER futures.emplace_back(Deferred_ModelLoad( @@ -106,11 +100,20 @@ HRESULT CLoader::Loading_For_ObjectViewer() CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) return E_FAIL; + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) + return E_FAIL; + futures.emplace_back(Deferred_ModelLoad( MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixIdentity(), TEXT("Prototype_Component_troll_Model") )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.bin", XMMatrixIdentity(), + TEXT("Prototype_Component_trsoll_Model") + )); + futures.emplace_back(Deferred_ModelLoad( MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), @@ -165,7 +168,7 @@ HRESULT CLoader::Loading_For_ObjectViewer() )); #pragma endregion - + futures.emplace_back(Deferred_ModelLoad( MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), @@ -188,6 +191,7 @@ HRESULT CLoader::Loading_For_ObjectViewer() )); + //futures.emplace_back(Deferred_ModelLoad( // MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/Camera.bin", XMMatrixIdentity(), // TEXT("Prototype_Component_Camera_Model") @@ -203,38 +207,45 @@ HRESULT CLoader::Loading_For_ObjectViewer() // TEXT("Prototype_Component_Camera_DSModel") //)); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_CCL_CameraRig.001_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/CCL_CameraRig.001.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/Camera_TrollIntro.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Camera_dsModel") + //)); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Camera_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/Camera.bin", XMMatrixIdentity())))) - return E_FAIL; + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_CCL_CameraRig.001_Model"), + // CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/CCL_CameraRig.001.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) + // return E_FAIL; + + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Camera_Model"), + // CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/Camera.bin", XMMatrixIdentity())))) + // return E_FAIL; -#pragma region NPC futures.emplace_back(Deferred_ModelLoad( - MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Playable_Model") + )); + +#pragma region NPC + + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), TEXT("Prototype_Component_Npc_Model") )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixRotationZ(XMConvertToRadians(180.f))* XMMatrixIdentity(), + TEXT("Prototype_Component_GerboldOlivander_Model") + )); + futures.emplace_back(Deferred_ModelLoad( MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_Professor_EleazarFig_Model") )); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_GerboldOlivander_Model") - )); - - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_VictorRookWood_Model") - )); - futures.emplace_back(Deferred_ModelLoad( MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_MatildaWeasely_Model") @@ -250,6 +261,11 @@ HRESULT CLoader::Loading_For_ObjectViewer() TEXT("Prototype_Component_PhineasBlack_Model") )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + TEXT("Prototype_Component_VictorRookWood_Model") + )); + futures.emplace_back(Deferred_ModelLoad( MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_ChiyoKogawa_Model") @@ -264,6 +280,7 @@ HRESULT CLoader::Loading_For_ObjectViewer() MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_M_Student_Model") )); + futures.emplace_back(Deferred_ModelLoad( MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_F_Student_Model") @@ -273,6 +290,7 @@ HRESULT CLoader::Loading_For_ObjectViewer() MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_Elf_Model") )); + futures.emplace_back(Deferred_ModelLoad( MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), @@ -301,6 +319,25 @@ HRESULT CLoader::Loading_For_ObjectViewer() )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") + //)); + + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") + //)); + + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") + //)); + + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") + //)); #pragma endregion for (auto& job : futures) { diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp index 82d8af06c..79a782266 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp @@ -65,8 +65,8 @@ HRESULT CMapObject_Manager::Initialize(void* pArg) m_iContainerObjectIndex = 99; - if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE))) - return E_FAIL; + //if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE))) + // return E_FAIL; //m_pContainer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Building"))->Get_Object(); @@ -94,8 +94,8 @@ HRESULT CMapObject_Manager::Initialize(void* pArg) //m_pInfoInstance->Load_Decal("Duengon_Decal_Data"); //m_pInfoInstance->Load_PointLights("Duengon_PointLight_Data"); #pragma endregion - /*if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART))) - return E_FAIL; + if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART))) + return E_FAIL;/* if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART))) return E_FAIL;*/ diff --git a/Jusin154_Team3D/Editor/Private/Ride_BboosterBar.cpp b/Jusin154_Team3D/Editor/Private/Ride_BoosterBar.cpp similarity index 83% rename from Jusin154_Team3D/Editor/Private/Ride_BboosterBar.cpp rename to Jusin154_Team3D/Editor/Private/Ride_BoosterBar.cpp index 7e1c71227..bea793fdb 100644 --- a/Jusin154_Team3D/Editor/Private/Ride_BboosterBar.cpp +++ b/Jusin154_Team3D/Editor/Private/Ride_BoosterBar.cpp @@ -1,23 +1,23 @@ #include "pch.h" -#include "Ride_BboosterBar.h" +#include "Ride_BoosterBar.h" #include "GameInstance.h" -CRide_BboosterBar::CRide_BboosterBar(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +CRide_BoosterBar::CRide_BoosterBar(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CElementObject(pDevice, pContext) { } -CRide_BboosterBar::CRide_BboosterBar(const CRide_BboosterBar& rhs) +CRide_BoosterBar::CRide_BoosterBar(const CRide_BoosterBar& rhs) :CElementObject(rhs) { } -HRESULT CRide_BboosterBar::Initialize_Prototype() +HRESULT CRide_BoosterBar::Initialize_Prototype() { return S_OK; } -HRESULT CRide_BboosterBar::Initialize(void* pArg) +HRESULT CRide_BoosterBar::Initialize(void* pArg) { CUIObject::UIOBJECT_DESC Desc{}; @@ -52,17 +52,17 @@ HRESULT CRide_BboosterBar::Initialize(void* pArg) return S_OK; } -void CRide_BboosterBar::Active(_float fTimeDelta) +void CRide_BoosterBar::Active(_float fTimeDelta) { m_fCurrentGauge = CMyTools::Lerp_f1D(m_fCurrentGauge, m_fTargetGauge, fTimeDelta * m_fMoveSpeed); } -void CRide_BboosterBar::NonActive(_float fTimeDelta) +void CRide_BoosterBar::NonActive(_float fTimeDelta) { m_fCurrentGauge = CMyTools::Lerp_f1D(m_fTargetGauge, m_fCurrentGauge, fTimeDelta * m_fMoveSpeed); } -void CRide_BboosterBar::Priority_Update(_float fTimeDelta) +void CRide_BoosterBar::Priority_Update(_float fTimeDelta) { if (!__super::Chack_Visible()) { @@ -71,7 +71,7 @@ void CRide_BboosterBar::Priority_Update(_float fTimeDelta) __super::Priority_Update(fTimeDelta); } -void CRide_BboosterBar::Update(_float fTimeDelta) +void CRide_BoosterBar::Update(_float fTimeDelta) { if (!__super::Chack_Visible()) { @@ -150,7 +150,7 @@ void CRide_BboosterBar::Update(_float fTimeDelta) __super::Update(fTimeDelta); } -void CRide_BboosterBar::Late_Update(_float fTimeDelta) +void CRide_BoosterBar::Late_Update(_float fTimeDelta) { if (!__super::Chack_Visible()) { @@ -162,7 +162,7 @@ void CRide_BboosterBar::Late_Update(_float fTimeDelta) } } -HRESULT CRide_BboosterBar::Render() +HRESULT CRide_BoosterBar::Render() { if (FAILED(Bind_ShaderResources())) { return E_FAIL; @@ -180,12 +180,12 @@ HRESULT CRide_BboosterBar::Render() return S_OK; } -_vector CRide_BboosterBar::Get_WorldPostion() +_vector CRide_BoosterBar::Get_WorldPostion() { return m_pTransformCom->Get_State(STATE::POSITION); } -HRESULT CRide_BboosterBar::Bind_ShaderResources() +HRESULT CRide_BoosterBar::Bind_ShaderResources() { if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { @@ -270,7 +270,7 @@ HRESULT CRide_BboosterBar::Bind_ShaderResources() return S_OK; } -HRESULT CRide_BboosterBar::Ready_Components(void* pArg) +HRESULT CRide_BoosterBar::Ready_Components(void* pArg) { if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) { @@ -295,33 +295,33 @@ HRESULT CRide_BboosterBar::Ready_Components(void* pArg) return S_OK; } -CRide_BboosterBar* CRide_BboosterBar::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +CRide_BoosterBar* CRide_BoosterBar::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { - CRide_BboosterBar* pInstance = new CRide_BboosterBar(pDevice, pContext); + CRide_BoosterBar* pInstance = new CRide_BoosterBar(pDevice, pContext); if (FAILED(pInstance->Initialize_Prototype())) { - MSG_BOX("Failed to Created : CRide_BboosterBar"); + MSG_BOX("Failed to Created : CRide_BoosterBar"); SAFE_RELEASE(pInstance); } return pInstance; } -CGameObject* CRide_BboosterBar::Clone(void* pArg, CGameObject* pOwner) +CGameObject* CRide_BoosterBar::Clone(void* pArg, CGameObject* pOwner) { - CRide_BboosterBar* pInstance = new CRide_BboosterBar(*this); + CRide_BoosterBar* pInstance = new CRide_BoosterBar(*this); pInstance->m_pOwner = pOwner; if (FAILED(pInstance->Initialize(pArg))) { - MSG_BOX("Failed to Cloned : CRide_BboosterBar"); + MSG_BOX("Failed to Cloned : CRide_BoosterBar"); SAFE_RELEASE(pInstance); } return pInstance; } -void CRide_BboosterBar::Free() +void CRide_BoosterBar::Free() { __super::Free(); @@ -332,6 +332,6 @@ void CRide_BboosterBar::Free() SAFE_RELEASE(m_pVIBufferCom); } -void CRide_BboosterBar::Describe_Entity() +void CRide_BoosterBar::Describe_Entity() { } diff --git a/Jusin154_Team3D/Editor/Private/Ride_Bbooster_Slot.cpp b/Jusin154_Team3D/Editor/Private/Ride_Booster_Slot.cpp similarity index 79% rename from Jusin154_Team3D/Editor/Private/Ride_Bbooster_Slot.cpp rename to Jusin154_Team3D/Editor/Private/Ride_Booster_Slot.cpp index 4710d7fee..18e84498f 100644 --- a/Jusin154_Team3D/Editor/Private/Ride_Bbooster_Slot.cpp +++ b/Jusin154_Team3D/Editor/Private/Ride_Booster_Slot.cpp @@ -1,22 +1,22 @@ #include "pch.h" -#include "Ride_Bbooster_Slot.h" +#include "Ride_Booster_Slot.h" #include "GameInstance.h" -CRide_Bbooster_Slot::CRide_Bbooster_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +CRide_Booster_Slot::CRide_Booster_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CElementObject(pDevice, pContext) { } -CRide_Bbooster_Slot::CRide_Bbooster_Slot(const CRide_Bbooster_Slot& rhs) +CRide_Booster_Slot::CRide_Booster_Slot(const CRide_Booster_Slot& rhs) :CElementObject(rhs) { } -HRESULT CRide_Bbooster_Slot::Initialize_Prototype() +HRESULT CRide_Booster_Slot::Initialize_Prototype() { return S_OK; } -HRESULT CRide_Bbooster_Slot::Initialize(void* pArg) +HRESULT CRide_Booster_Slot::Initialize(void* pArg) { CUIObject::UIOBJECT_DESC Desc{}; @@ -44,7 +44,7 @@ HRESULT CRide_Bbooster_Slot::Initialize(void* pArg) return S_OK; } -void CRide_Bbooster_Slot::Priority_Update(_float fTimeDelta) +void CRide_Booster_Slot::Priority_Update(_float fTimeDelta) { if (!__super::Chack_Visible()) { @@ -52,7 +52,7 @@ void CRide_Bbooster_Slot::Priority_Update(_float fTimeDelta) } __super::Priority_Update(fTimeDelta); } -void CRide_Bbooster_Slot::Update(_float fTimeDelta) +void CRide_Booster_Slot::Update(_float fTimeDelta) { if (!__super::Chack_Visible()) { @@ -88,7 +88,7 @@ void CRide_Bbooster_Slot::Update(_float fTimeDelta) __super::Update(fTimeDelta); } -void CRide_Bbooster_Slot::Late_Update(_float fTimeDelta) +void CRide_Booster_Slot::Late_Update(_float fTimeDelta) { if (!__super::Chack_Visible()) { @@ -100,7 +100,7 @@ void CRide_Bbooster_Slot::Late_Update(_float fTimeDelta) } } -HRESULT CRide_Bbooster_Slot::Render() +HRESULT CRide_Booster_Slot::Render() { if (FAILED(Bind_ShaderResources())) { return E_FAIL; @@ -118,12 +118,12 @@ HRESULT CRide_Bbooster_Slot::Render() return S_OK; } -_vector CRide_Bbooster_Slot::Get_WorldPostion() +_vector CRide_Booster_Slot::Get_WorldPostion() { return m_pTransformCom->Get_State(STATE::POSITION); } -HRESULT CRide_Bbooster_Slot::Bind_ShaderResources() +HRESULT CRide_Booster_Slot::Bind_ShaderResources() { if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { @@ -180,7 +180,7 @@ HRESULT CRide_Bbooster_Slot::Bind_ShaderResources() return S_OK; } -HRESULT CRide_Bbooster_Slot::Ready_Components(void* pArg) +HRESULT CRide_Booster_Slot::Ready_Components(void* pArg) { if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) { @@ -205,33 +205,33 @@ HRESULT CRide_Bbooster_Slot::Ready_Components(void* pArg) return S_OK; } -CRide_Bbooster_Slot* CRide_Bbooster_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +CRide_Booster_Slot* CRide_Booster_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { - CRide_Bbooster_Slot* pInstance = new CRide_Bbooster_Slot(pDevice, pContext); + CRide_Booster_Slot* pInstance = new CRide_Booster_Slot(pDevice, pContext); if (FAILED(pInstance->Initialize_Prototype())) { - MSG_BOX("Failed to Created : CRide_Bbooster_Slot"); + MSG_BOX("Failed to Created : CRide_Booster_Slot"); SAFE_RELEASE(pInstance); } return pInstance; } -CGameObject* CRide_Bbooster_Slot::Clone(void* pArg, CGameObject* pOwner) +CGameObject* CRide_Booster_Slot::Clone(void* pArg, CGameObject* pOwner) { - CRide_Bbooster_Slot* pInstance = new CRide_Bbooster_Slot(*this); + CRide_Booster_Slot* pInstance = new CRide_Booster_Slot(*this); pInstance->m_pOwner = pOwner; if (FAILED(pInstance->Initialize(pArg))) { - MSG_BOX("Failed to Cloned : CRide_Bbooster_Slot"); + MSG_BOX("Failed to Cloned : CRide_Booster_Slot"); SAFE_RELEASE(pInstance); } return pInstance; } -void CRide_Bbooster_Slot::Free() +void CRide_Booster_Slot::Free() { __super::Free(); @@ -242,6 +242,6 @@ void CRide_Bbooster_Slot::Free() SAFE_RELEASE(m_pVIBufferCom); } -void CRide_Bbooster_Slot::Describe_Entity() +void CRide_Booster_Slot::Describe_Entity() { } diff --git a/Jusin154_Team3D/Editor/Private/Ride_Panel.cpp b/Jusin154_Team3D/Editor/Private/Ride_Panel.cpp index 19e1d762e..0e4a565ad 100644 --- a/Jusin154_Team3D/Editor/Private/Ride_Panel.cpp +++ b/Jusin154_Team3D/Editor/Private/Ride_Panel.cpp @@ -4,8 +4,8 @@ #include "Ride_Info_Key.h" #include "Ride_Info.h" #include "Ride_InfoBG.h" -#include "Ride_Bbooster_Slot.h" -#include "Ride_BboosterBar.h" +#include "Ride_Booster_Slot.h" +#include "Ride_BoosterBar.h" #include "Ride_HpBar.h" #include "Ride_HpSlot.h" @@ -186,17 +186,17 @@ HRESULT CRide_Panel::Ready_Element(void* pArg) } Add_Element(TEXT("Ride_Info"), m_pRide_Info); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_Bbooster_Slot)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_Booster_Slot)))) { return E_FAIL; } - Add_Element(TEXT("Ride_Bbooster_Slot"), m_pRide_Bbooster_Slot); + Add_Element(TEXT("Ride_Bbooster_Slot"), m_pRide_Booster_Slot); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_BboosterBar)))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_BoosterBar)))) { return E_FAIL; } - Add_Element(TEXT("Ride_BboosterBar"), m_pRide_BboosterBar); + Add_Element(TEXT("Ride_BboosterBar"), m_pRide_BoosterBar); if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pRide_HpBar)))) { diff --git a/Jusin154_Team3D/Editor/Public/AlphaMap.h b/Jusin154_Team3D/Editor/Public/AlphaMap.h index b172d45c2..679762beb 100644 --- a/Jusin154_Team3D/Editor/Public/AlphaMap.h +++ b/Jusin154_Team3D/Editor/Public/AlphaMap.h @@ -15,10 +15,12 @@ class CAlphaMap final : public CBase public: void Update(_float3& vPosition, _uint iColorIndex, _float fValue, _uint iRange); + void Update_Land(_float2 vUV, _uint iColorIndex, _float fValue, _uint iRange); ID3D11ShaderResourceView* Get_SRV() { return m_pSRV; } void Save_ToFile(const _char* pFilePath); void Load_ToFile(const _char* pFilePath); + void Save_DDS(const _char* pFilePath); private: ID3D11Device* m_pDevice = { nullptr }; ID3D11DeviceContext* m_pContext = { nullptr }; diff --git a/Jusin154_Team3D/Editor/Public/DummySkyBox.h b/Jusin154_Team3D/Editor/Public/DummySkyBox.h index c13a2a814..87b401c63 100644 --- a/Jusin154_Team3D/Editor/Public/DummySkyBox.h +++ b/Jusin154_Team3D/Editor/Public/DummySkyBox.h @@ -24,9 +24,8 @@ class CDummySkyBox final : public CGameObject virtual HRESULT Render() override; private: - CModel* m_pModelCom = { nullptr }; - CShader* m_pShaderCom = { nullptr }; - + CModel* m_pModelCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; private: virtual HRESULT Initialize_Prototype() override; @@ -41,4 +40,4 @@ class CDummySkyBox final : public CGameObject void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Land.h b/Jusin154_Team3D/Editor/Public/Land.h index b426c2f70..715e92134 100644 --- a/Jusin154_Team3D/Editor/Public/Land.h +++ b/Jusin154_Team3D/Editor/Public/Land.h @@ -15,10 +15,12 @@ class CLand final : public CGameObject public: typedef struct tagLandDesc { - _bool bEdit; - _float3 vPosition; - _float3 vScale; - _wstring strModelComTag; + _bool bEdit; + _bool isLoadAlphaMap = { false }; + _float3 vPosition; + _float3 vScale; + _wstring strModelComTag; + _string strAlphaMapTag; }LAND_DESC; private: CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); @@ -45,16 +47,27 @@ class CLand final : public CGameObject CShader* m_pShaderCom = { nullptr }; CModel* m_pModelCom = { nullptr }; + CTexture* m_pDiffuseTextureCom = { nullptr }; + CTexture* m_pNormalTextureCom = { nullptr }; + CTexture* m_pMROTextureCom = { nullptr }; + class CAlphaMap* m_pAlphaMap = { nullptr }; + _float4 m_vPosition = {}; _float3 m_vScale = {}; _float3 m_vRotation = {}; + _uint m_iMaskRange = { 1 }; + _int m_iColorIndex = { 0 }; + _float m_fMaskValue = { 0.1f }; + + _float2 m_vPickingUV = {}; private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; virtual HRESULT Ready_Components(void* pArg) override; virtual HRESULT Bind_ShaderResources() override; + HRESULT Ready_AlphaMap(); public: static CLand* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Editor/Public/Ride_BboosterBar.h b/Jusin154_Team3D/Editor/Public/Ride_BoosterBar.h similarity index 80% rename from Jusin154_Team3D/Editor/Public/Ride_BboosterBar.h rename to Jusin154_Team3D/Editor/Public/Ride_BoosterBar.h index 0e46616bd..cd5aa8f70 100644 --- a/Jusin154_Team3D/Editor/Public/Ride_BboosterBar.h +++ b/Jusin154_Team3D/Editor/Public/Ride_BoosterBar.h @@ -5,12 +5,12 @@ NS_BEGIN(Editor) -class CRide_BboosterBar final : public CElementObject +class CRide_BoosterBar final : public CElementObject { private: - CRide_BboosterBar(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); - CRide_BboosterBar(const CRide_BboosterBar& rhs); - virtual ~CRide_BboosterBar() = default; + CRide_BoosterBar(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CRide_BoosterBar(const CRide_BoosterBar& rhs); + virtual ~CRide_BoosterBar() = default; public: virtual void Priority_Update(_float fTimeDelta); @@ -49,7 +49,7 @@ class CRide_BboosterBar final : public CElementObject _int m_iClick{}; public: - static CRide_BboosterBar* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + static CRide_BoosterBar* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; virtual void Free() override; void Describe_Entity() override; diff --git a/Jusin154_Team3D/Editor/Public/Ride_Bbooster_Slot.h b/Jusin154_Team3D/Editor/Public/Ride_Booster_Slot.h similarity index 75% rename from Jusin154_Team3D/Editor/Public/Ride_Bbooster_Slot.h rename to Jusin154_Team3D/Editor/Public/Ride_Booster_Slot.h index a558437ce..9952a85f4 100644 --- a/Jusin154_Team3D/Editor/Public/Ride_Bbooster_Slot.h +++ b/Jusin154_Team3D/Editor/Public/Ride_Booster_Slot.h @@ -5,12 +5,12 @@ NS_BEGIN(Editor) -class CRide_Bbooster_Slot final : public CElementObject +class CRide_Booster_Slot final : public CElementObject { private: - CRide_Bbooster_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); - CRide_Bbooster_Slot(const CRide_Bbooster_Slot& rhs); - virtual ~CRide_Bbooster_Slot() = default; + CRide_Booster_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CRide_Booster_Slot(const CRide_Booster_Slot& rhs); + virtual ~CRide_Booster_Slot() = default; public: virtual void Priority_Update(_float fTimeDelta); @@ -35,7 +35,7 @@ class CRide_Bbooster_Slot final : public CElementObject _float4 m_fImagePosi{}; public: - static CRide_Bbooster_Slot* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + static CRide_Booster_Slot* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; virtual void Free() override; void Describe_Entity() override; diff --git a/Jusin154_Team3D/Editor/Public/Ride_Panel.h b/Jusin154_Team3D/Editor/Public/Ride_Panel.h index c10b00c4f..4613fe132 100644 --- a/Jusin154_Team3D/Editor/Public/Ride_Panel.h +++ b/Jusin154_Team3D/Editor/Public/Ride_Panel.h @@ -32,8 +32,8 @@ class CRide_Panel final : public CPanelObject CGameObject* m_pRide_Info_Key = { nullptr }; CGameObject* m_pRide_InfoBG = { nullptr }; CGameObject* m_pRide_Info = { nullptr }; - CGameObject* m_pRide_Bbooster_Slot = { nullptr }; - CGameObject* m_pRide_BboosterBar = { nullptr }; + CGameObject* m_pRide_Booster_Slot = { nullptr }; + CGameObject* m_pRide_BoosterBar = { nullptr }; CGameObject* m_pRide_HpBar = { nullptr }; CGameObject* m_pRide_HpSlot = { nullptr }; public: diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl index 3d233fe57..310cd83eb 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl @@ -28,6 +28,7 @@ StructuredBuffer g_BoneRemap : register(t6); StructuredBuffer g_SkipBone : register(t7); + RWStructuredBuffer g_LocalMatrixOut : register(u0); cbuffer AnimCB : register(b0) @@ -48,7 +49,7 @@ cbuffer AnimCB : register(b0) float HeadAimWeight; int SkipCount; - int _pad0; + int IsSkip; int _pad1; int _pad2; @@ -366,7 +367,7 @@ void CS_LOCAL(uint3 DTid : SV_DispatchThreadID) if (bone >= BoneCount) return; - if (SkipCount != 0) + if (SkipCount != 0 && IsSkip) { for (int i = 0; i < SkipCount; i++) { diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl index 3cf999034..8f7f616b2 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl @@ -29,7 +29,7 @@ cbuffer AnimCB : register(b0) float HeadAimWeight; int SkipCount; - int _pad0; + int IsSkip; int _pad1; int _pad2; diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp index af361eb18..5969c75a8 100644 --- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp +++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp @@ -1077,6 +1077,10 @@ PSX::PxD6Joint* CGameInstance::Create_BasicPxD6Joint(PSX::PxRigidDynamic* pActor { return m_pPhysX_Manager->Create_BasicPxD6Joint(pActor0, pActor1, pxJointWorldPos); } +PSX::PxFixedJoint* CGameInstance::Create_BasicPxFixedJoint(PSX::PxRigidDynamic* pActor0, PSX::PxRigidDynamic* pActor1, const PSX::PxTransform& pxJointWorldPos) +{ + return m_pPhysX_Manager->Create_BasicPxFixedJoint(pActor0, pActor0, pxJointWorldPos); +} _bool CGameInstance::SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer) { return m_pPhysX_Manager->SphereCast(fRadius, vStartPos, vDir, fDistance, flagHitsData, flagQuery, hitBuffer); diff --git a/Jusin154_Team3D/Engine/Private/Mesh.cpp b/Jusin154_Team3D/Engine/Private/Mesh.cpp index 51bb1f188..8efa6d820 100644 --- a/Jusin154_Team3D/Engine/Private/Mesh.cpp +++ b/Jusin154_Team3D/Engine/Private/Mesh.cpp @@ -3,6 +3,7 @@ #include "Mesh.h" #include "Model.h" #include "Shader.h" +#include "GameInstance.h" CMesh::CMesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CVIBuffer{ pDevice, pContext } { @@ -10,6 +11,9 @@ CMesh::CMesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) CMesh::CMesh(const CMesh& rhs) : CVIBuffer(rhs) +#ifdef EDITOR_PROJECT + ,m_VertexTexcoords(rhs.m_VertexTexcoords) +#endif { } @@ -277,6 +281,9 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr m_pVertexPositions = new _float3[m_iNumVertices]; ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices); + m_VertexTexcoords = new _float2[m_iNumVertices]; + ZeroMemory(m_VertexTexcoords, sizeof(_float2) * m_iNumVertices); + for (_uint i = 0; i < m_iNumVertices; ++i) { memcpy(&pVertices[i].vPosition, &SaveMesh->Vertices[i].Pos, sizeof(_float3)); @@ -297,6 +304,7 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vBinormal), PreTransformMatrix))); pVertices[i].vTexcoord = SaveMesh->Vertices[i].UV; + memcpy(&m_VertexTexcoords[i], &pVertices[i].vTexcoord, sizeof(_float2)); } D3D11_SUBRESOURCE_DATA InitialVBData{}; @@ -532,7 +540,48 @@ PSX::PxTriangleMesh* CMesh::ConvertToPxMesh(const PSX::PxCookingParams* pParam, return pTriangleMesh; } + #ifdef EDITOR_PROJECT +_bool CMesh::PickingMesh(_float3* pPosition, _float2* pUV, _fmatrix WorldMatrix) +{ + _vector vCamPosition = XMLoadFloat4(m_pGameInstance->Get_CamPosition()); + + _vector vPickingPosition = XMVectorSetW(XMLoadFloat3(pPosition), 1.f); + + _vector vDir = XMVector3Normalize(vPickingPosition - vCamPosition); + _float2 vUV = _float2(0.f, 0.f); + _float fU ={}; + _float fV ={}; + _float fT = {}; + for (_uint i = 0; i < m_iNumIndices / 3; ++i) + { + _uint iIndices[3] = { + m_pIndices[i * 3 + 0] , + m_pIndices[i * 3 + 1] , + m_pIndices[i * 3 + 2] + }; + + if (true == CMyTools::IntersectTri( + vCamPosition, + vDir, + XMVector3TransformCoord(XMLoadFloat3(&m_pVertexPositions[iIndices[0]]), WorldMatrix), + XMVector3TransformCoord(XMLoadFloat3(&m_pVertexPositions[iIndices[1]]), WorldMatrix), + XMVector3TransformCoord(XMLoadFloat3(&m_pVertexPositions[iIndices[2]]), WorldMatrix), + fT, + fU, + fV + )) + { + _float fW = 1.0f - fU - fV; + pUV->x = fW * m_VertexTexcoords[iIndices[0]].x + fU * m_VertexTexcoords[iIndices[1]].x + fV * m_VertexTexcoords[iIndices[2]].x; + pUV->y = fW * m_VertexTexcoords[iIndices[0]].y + fU * m_VertexTexcoords[iIndices[1]].y + fV * m_VertexTexcoords[iIndices[2]].y; + return true; + } + } + + + return false; +} CMesh* CMesh::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, vector& Bones, const aiMesh* pAIMesh, _fmatrix& PreTransformMatrix) { CMesh* pInstance = new CMesh(pDevice, pContext); @@ -563,6 +612,9 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(const aiMesh* pAIMesh, _fmatrix Pr m_pVertexPositions = new _float3[m_iNumVertices]; ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices); + m_VertexTexcoords = new _float2[m_iNumVertices]; + ZeroMemory(m_VertexTexcoords, sizeof(_float2) * m_iNumVertices); + for (_uint i = 0; i < m_iNumVertices; ++i) { memcpy(&pVertices[i].vPosition, &pAIMesh->mVertices[i], sizeof(_float3)); @@ -575,6 +627,7 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(const aiMesh* pAIMesh, _fmatrix Pr memcpy(&pVertices[i].vBinormal, &pAIMesh->mBitangents[i], sizeof(_float3)); XMStoreFloat3(&pVertices[i].vBinormal, XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vBinormal), PreTransformMatrix))); memcpy(&pVertices[i].vTexcoord, &pAIMesh->mTextureCoords[0][i], sizeof(_float2)); + memcpy(&m_VertexTexcoords[i], &pAIMesh->mTextureCoords[0][i], sizeof(_float2)); } D3D11_SUBRESOURCE_DATA InitialVBData{}; @@ -751,6 +804,11 @@ void CMesh::Free() { __super::Free(); +#ifdef EDITOR_PROJECT + if (false == m_bCloned) + Safe_Delete_Array(m_VertexTexcoords); +#endif + SAFE_RELEASE(m_pBoneRemapBuffer); SAFE_RELEASE(m_pBoneRemapSRV); Safe_Delete_Array(m_pBoneMatrices); diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index acc76256a..6fc6a4f13 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -1445,6 +1445,13 @@ _int CModel::SaveNodeRecursive(const aiNode* pAINode, std::vector& out return currentIndex; } +_bool CModel::PickingMesh(_float3* pPosition, _float2* pUV, _uint iMeshIndex, _fmatrix WorldMatrix) +{ + if (iMeshIndex >= m_iNumMeshes) + return false; + + return m_Meshes[iMeshIndex]->PickingMesh(pPosition, pUV, WorldMatrix); +} HRESULT CModel::Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex) { _uint iFlag = {}; @@ -1571,19 +1578,19 @@ void CModel::Initialize_BoneMasks() BuildMask(m_iBoneIndex[ENUM_CLASS(BLEND_BONE::NECK)], m_BoneMask[ENUM_CLASS(BLEND_BONE::NECK)]); BuildMask(m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)], m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)]); - if (m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)] != -1) - { - for (_uint i = 0; i < (_uint)m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)].size(); i++) - { - if (m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)][i] == 1) - { - if (i == m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)]) - continue; - m_iSkipBoneCount++; - m_SkipBoneindex.push_back(i); - } - } - } + //if (m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)] != -1) + //{ + // for (_uint i = 0; i < (_uint)m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)].size(); i++) + // { + // if (m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)][i] == 1) + // { + // if (i == m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)]) + // continue; + // m_iSkipBoneCount++; + // m_SkipBoneindex.push_back(i); + // } + // } + //} for (_uint i = 0; i < m_Bones.size(); i++) { @@ -1593,6 +1600,19 @@ void CModel::Initialize_BoneMasks() m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_R)][i] = m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_R)][i] | m_BoneMask[ENUM_CLASS(BLEND_BONE::NECK)][i]; } + + + for (_uint i = 0; i < (_uint)m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L)].size(); i++) + { + if (m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L)][i] == 1) + { + //if (i == m_iBoneIndex[ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L)]) + // continue; + m_iSkipBoneCount++; + m_SkipBoneindex.push_back(i); + } + } + } HRESULT CModel::Create_ComputeShader() @@ -1990,7 +2010,7 @@ void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex) pDesc->HeadAimWeight = m_fHeadAimWeight; pDesc->SkipCount = m_iSkipBoneCount; - pDesc->padding0 = 0; + pDesc->IsSkip = m_IsSkip; pDesc->padding1 = 0; pDesc->padding2 = 0; diff --git a/Jusin154_Team3D/Engine/Private/NPCStat.cpp b/Jusin154_Team3D/Engine/Private/NPCStat.cpp index fcb9499a4..8eb63279b 100644 --- a/Jusin154_Team3D/Engine/Private/NPCStat.cpp +++ b/Jusin154_Team3D/Engine/Private/NPCStat.cpp @@ -18,6 +18,7 @@ HRESULT CNPCStat::Initialize_Prototype(tinyxml2::XMLNode* pChild) auto pElement = pChild->ToElement(); pElement->QueryIntAttribute("ID", &m_NpcInfo.iID); m_NpcInfo.pNpc_Name = CMyTools::ToWstring(pElement->Attribute("Name")); + m_NpcInfo.pName = CMyTools::ToWstring(pElement->Attribute("NpcName")); pElement->QueryIntAttribute("TAG", &m_NpcInfo.iNpcType); pElement->QueryFloatAttribute("SizeX", &m_NpcInfo.fFontPos); return S_OK; diff --git a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp index 50a435252..605dd3997 100644 --- a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp @@ -247,6 +247,12 @@ PSX::PxJoint* CPhysX_Manager::Create_PxJoint(PHYSX_JOINT eType, PSX::PxRigidActo pOut = pJoint; } break; + case PHYSX_JOINT::FIXED: + { + PSX::PxFixedJoint* pJoint = PSX::PxFixedJointCreate(*m_pPhysics, pActor0, pxLocalFrame0, pActor1, pxLocalFrame1); + pOut = pJoint; + } + break; default: break; } @@ -276,20 +282,6 @@ PSX::PxD6Joint* CPhysX_Manager::Create_BasicPxD6Joint(PSX::PxRigidDynamic* pActo pActor1->setSolverIterationCounts(4, 1); #endif // 기무리 - pJoint->setMotion(PSX::PxD6Axis::eX, PSX::PxD6Motion::eLOCKED); - pJoint->setMotion(PSX::PxD6Axis::eY, PSX::PxD6Motion::eLOCKED); - pJoint->setMotion(PSX::PxD6Axis::eZ, PSX::PxD6Motion::eLOCKED); - pJoint->setMotion(PSX::PxD6Axis::eTWIST, PSX::PxD6Motion::eLIMITED); - pJoint->setMotion(PSX::PxD6Axis::eSWING1, PSX::PxD6Motion::eLIMITED); - pJoint->setMotion(PSX::PxD6Axis::eSWING2, PSX::PxD6Motion::eLIMITED); - - - pJoint->setTwistLimit(PSX::PxJointAngularLimitPair(-XMConvertToRadians(1.f), XMConvertToRadians(1.f))); // 20도 - pJoint->setSwingLimit(PSX::PxJointLimitCone(XMConvertToRadians(1.f), XMConvertToRadians(1.f))); - - pJoint->setDrive(PSX::PxD6Drive::eSLERP, PSX::PxD6JointDrive(50.0f, 100.0f, FLT_MAX, true)); - pJoint->setDrivePosition(PSX::PxTransform(PSX::PxIdentity)); //생성 시 프레임 기준 - pJoint->setConstraintFlag(PSX::PxConstraintFlag::eVISUALIZATION, true); pJoint->setConstraintFlag(PSX::PxConstraintFlag::eIMPROVED_SLERP, true); pJoint->setConstraintFlag(PSX::PxConstraintFlag::eCOLLISION_ENABLED, false); @@ -298,6 +290,23 @@ PSX::PxD6Joint* CPhysX_Manager::Create_BasicPxD6Joint(PSX::PxRigidDynamic* pActo return pJoint; } +PSX::PxFixedJoint* CPhysX_Manager::Create_BasicPxFixedJoint(PSX::PxRigidDynamic* pActor0, PSX::PxRigidDynamic* pActor1, const PSX::PxTransform& pxJointWorldPos) +{ + const PSX::PxTransform pxWorldParentPos = pActor0->getGlobalPose(); + const PSX::PxTransform pxWorldChildPos = pActor1->getGlobalPose(); + + const PSX::PxTransform pxLocalParentPOs = pxWorldParentPos.transformInv(pxJointWorldPos); + const PSX::PxTransform pxLocalChildPos = pxWorldChildPos.transformInv(pxJointWorldPos); + + PSX::PxFixedJoint* pJoint = PSX::PxFixedJointCreate(*m_pPhysics, pActor0, pxLocalParentPOs, pActor1, pxLocalChildPos); + + pJoint->setConstraintFlag(PSX::PxConstraintFlag::eVISUALIZATION, true); + pJoint->setConstraintFlag(PSX::PxConstraintFlag::eCOLLISION_ENABLED, false); + + pJoint->setBreakForce(1e30f, 1e30f); + return pJoint; +} + PSX::PxMaterial* CPhysX_Manager::Create_Material(const _float3* vMatInfo) { PSX::PxMaterial* pPxMaterial = m_pPhysics->createMaterial(vMatInfo->x, vMatInfo->y, vMatInfo->z); diff --git a/Jusin154_Team3D/Engine/Private/PipeLine.cpp b/Jusin154_Team3D/Engine/Private/PipeLine.cpp index 419af7f40..70572e8a9 100644 --- a/Jusin154_Team3D/Engine/Private/PipeLine.cpp +++ b/Jusin154_Team3D/Engine/Private/PipeLine.cpp @@ -522,6 +522,7 @@ void CPipeLine::Free() __super::Free(); SAFE_RELEASE(m_pDevice); SAFE_RELEASE(m_pContext); + SAFE_RELEASE(m_pPrevDSS); SAFE_RELEASE(m_pDSS_OutLineWrite); SAFE_RELEASE(m_pGameInstance); for (auto& pairSRV : m_mapGlobalSRV) { diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp index d262691e9..530b24ca6 100644 --- a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp +++ b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp @@ -1,6 +1,7 @@ #include "pch.h" #include "RigidBody_Dynamic.h" #include "GameInstance.h" +#include "GameObject.h" CRigidBody_Dynamic::CRigidBody_Dynamic(ID3D11Device* pDevice, ID3D11DeviceContext* pContext): CRigidBody(pDevice, pContext) @@ -25,6 +26,8 @@ HRESULT CRigidBody_Dynamic::Render() } HRESULT CRigidBody_Dynamic::Render(function custumState) { + if (m_pOwner->isDead()) + return S_OK; PSX::PxTransform pxTranform = m_pRigidBody->getGlobalPose(); _matrix WorldMatrix = XMMatrixTranslation(m_vLocalTranslation.x, m_vLocalTranslation.y, m_vLocalTranslation.z) * XMMatrixAffineTransformation(XMVectorSet(1.f, 1.f, 1.f, 0.f), XMVectorZero(), XMLoadFloat4((_float4*)&pxTranform.q), XMVectorSetW(XMLoadFloat3((_float3*)&pxTranform.p), 1.f)); diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp index 09abc6b7f..f063eee5e 100644 --- a/Jusin154_Team3D/Engine/Private/Unit.cpp +++ b/Jusin154_Team3D/Engine/Private/Unit.cpp @@ -113,6 +113,16 @@ _wstring CUnit::Get_Name() return _wstring(); } +_wstring CUnit::Get_NpcName() +{ + return _wstring(); +} + +_int CUnit::Get_TextID() +{ + return _int(); +} + HRESULT CUnit::Ready_Components(void *pArg) { if (FAILED(__super::Ready_Components(pArg))) { @@ -297,6 +307,9 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) // LIGHT ATTACK { "LIGHT_ATTACK", LIGHT_ATTACK }, + { "LIGHT_ATTACK2", LIGHT_ATTACK2 }, + { "LIGHT_ATTACK3", LIGHT_ATTACK3 }, + { "LIGHT_ATTACK4", LIGHT_ATTACK4 }, { "LIGHT_ATTACK_180_R", LIGHT_ATTACK_180_R }, { "LIGHT_ATTACK_90_L", LIGHT_ATTACK_90_L }, { "LIGHT_ATTACK_90_R1", LIGHT_ATTACK_90_R1 }, diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h index 5245635e7..234fb4112 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h @@ -122,6 +122,7 @@ enum class PHYSX_JOINT { D6, DISTANCE, REVOLUTE, + FIXED, END }; diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h index 7042068b6..e823cf14d 100644 --- a/Jusin154_Team3D/Engine/Public/GameInstance.h +++ b/Jusin154_Team3D/Engine/Public/GameInstance.h @@ -221,6 +221,7 @@ class ENGINE_DLL CGameInstance final : public CBase PSX::PxRigidStatic* Add_StaticActor(CRigidBody_Static& RigidBody, _uint iLevel, const _float4x4* pWorldMatrix); PSX::PxJoint* Create_PxJoint(PHYSX_JOINT eType, PSX::PxRigidActor* pActor0, PSX::PxTransform& pxLocalFrame0, PSX::PxRigidActor* pActor1, PSX::PxTransform& pxLocalFrame1); PSX::PxD6Joint* Create_BasicPxD6Joint(PSX::PxRigidDynamic* pActor0, PSX::PxRigidDynamic* pActor1, const PSX::PxTransform& pxJointWorldPos); + PSX::PxFixedJoint* Create_BasicPxFixedJoint(PSX::PxRigidDynamic* pActor0, PSX::PxRigidDynamic* pActor1, const PSX::PxTransform& pxJointWorldPos); _bool SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer); _bool SphereCast(_float fRadius, _fvector vStartPos, _gvector vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer); diff --git a/Jusin154_Team3D/Engine/Public/Mesh.h b/Jusin154_Team3D/Engine/Public/Mesh.h index 41815c52d..7d3013d9c 100644 --- a/Jusin154_Team3D/Engine/Public/Mesh.h +++ b/Jusin154_Team3D/Engine/Public/Mesh.h @@ -25,6 +25,8 @@ class ENGINE_DLL CMesh final : public CVIBuffer HRESULT Copy_BoneMatrices(vector<_float4x4>& pDestination); vector<_int> Get_BoneIndices() { return m_BoneIndices; } #ifdef EDITOR_PROJECT +public: + _bool PickingMesh(_float3* pPosition, _float2* pUV, _fmatrix WorldMatrix); private: virtual HRESULT Initialize_Prototype(MODEL eType, vector& Bones, const aiMesh* pAIMesh, _fmatrix& PreTransformMatrix); HRESULT Ready_VertexBuffer_For_NonAnim(const aiMesh* pAIMesh, _fmatrix PreTransformMatrix); @@ -70,6 +72,9 @@ class ENGINE_DLL CMesh final : public CVIBuffer vector<_uint> m_Indices; vector<_float3> m_Vertices; // +#ifdef EDITOR_PROJECT + _float2* m_VertexTexcoords = {}; +#endif private: _uint m_iNumBuffer = {}; diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h index 8b4513fd9..315f51fed 100644 --- a/Jusin154_Team3D/Engine/Public/Model.h +++ b/Jusin154_Team3D/Engine/Public/Model.h @@ -25,7 +25,7 @@ class ENGINE_DLL CModel final : public CComponent _float HeadAimWeight; _int SkipCount; - _int padding0; + _int IsSkip; _int padding1; _int padding2; @@ -84,19 +84,20 @@ class ENGINE_DLL CModel final : public CComponent _float Get_CurrentTrackProgressRatio(); _float Get_TrackProgressRatio(_uint iIndex); - size_t Get_AnimSize() { return m_Animations.size(); } - void Set_PlayAnim(_bool bPlayAnim) { m_bPlayAnim = bPlayAnim; } - _bool Get_PlayAnim() const { return m_bPlayAnim; } - _int Get_AnimIndex() const { return m_iCurrentAnimIndex; } - _int Get_SecondAnimIndex() const { return m_iCurrSecondAnimIndex; } - _float Get_AnimSpeed(); - void Set_AnimSpeed(_float fSpeed); + size_t Get_AnimSize() { return m_Animations.size(); } + void Set_PlayAnim(_bool bPlayAnim) { m_bPlayAnim = bPlayAnim; } + _bool Get_PlayAnim() const { return m_bPlayAnim; } + _int Get_AnimIndex() const { return m_iCurrentAnimIndex; } + _int Get_SecondAnimIndex() const { return m_iCurrSecondAnimIndex; } + _float Get_AnimSpeed(); + void Set_AnimSpeed(_float fSpeed); - HRESULT Anim_Event(_float fRatio, _uint AnimIndex, function Event); + HRESULT Anim_Event(_float fRatio, _uint AnimIndex, function Event); - void Set_BlendDuration(_float Duration) { m_fBlendDuration = Duration; } + void Set_BlendDuration(_float Duration) { m_fBlendDuration = Duration; } + + _float4 Get_RootBoneMomentum() { return m_RootBoneMomentum; } - _float4 Get_RootBoneMomentum() { return m_RootBoneMomentum; } #pragma endregion #pragma region Mesh const _char* Get_MeshName(_uint iIndex); @@ -127,6 +128,7 @@ class ENGINE_DLL CModel final : public CComponent _uint Get_BoneAbsoluteCount(); HRESULT Set_BoneCombinedTransformation(const _char* pBoneName, _fmatrix newTransformation); HRESULT Capture_BoneBuffer(class CMotion_Trail* pTrail, const _float4x4& CurrentWorldMatrix); + void IsSkip(_bool bSkip) { m_IsSkip = bSkip; } // HRESULT Set_BoneLocalTransformationMatrix(const _char* pBoneName, _fmatrix newTransformation); #pragma endregion @@ -162,6 +164,7 @@ class ENGINE_DLL CModel final : public CComponent _bool SaveAssimpModel(const _char* filename); _int SaveNodeRecursive(const aiNode* pAINode, vector& outNodes, _int parentIndex); // + _bool PickingMesh(_float3* pPosition, _float2* pUV, _uint iMeshIndex, _fmatrix WorldMatrix); #endif // EDITOR_PROJECT @@ -204,7 +207,7 @@ class ENGINE_DLL CModel final : public CComponent _float m_fRatio = {}; _int m_iCurrSecondAnimIndex = { -1 }; - _int m_iBoneIndex[ENUM_CLASS(BLEND_BONE::END)] = { -1,-1,-1,-1,-1,-1,-1,-1 }; + _int m_iBoneIndex[ENUM_CLASS(BLEND_BONE::END)] = { -1,-1,-1,-1, -1,-1,-1,-1 }; vector> m_BoneMask; vector<_bool> m_CPUBoneMask; @@ -223,9 +226,9 @@ class ENGINE_DLL CModel final : public CComponent _float m_fRadius = { 0.f }; // 컬링용 Radius _int m_iRootBoneIndex = { -1 }; // 루트본의 인덱스 _uint m_iIndexAnimPlayableMesh = { 0 }; - _float4 m_OutScale; - _float4 m_OutRotation; - _float4 m_OutTranslation; + _float4 m_OutScale = {}; + _float4 m_OutRotation = {}; + _float4 m_OutTranslation = {}; vector<_uint> m_iBoneMask; @@ -248,6 +251,7 @@ class ENGINE_DLL CModel final : public CComponent _bool m_bQueuedLoop = false; _bool m_bQueuedAnim = { false }; _float4 m_RootBoneMomentum = {}; + _bool m_IsSkip = {false}; private: diff --git a/Jusin154_Team3D/Engine/Public/NPCStat.h b/Jusin154_Team3D/Engine/Public/NPCStat.h index 97ab4669c..775c7295e 100644 --- a/Jusin154_Team3D/Engine/Public/NPCStat.h +++ b/Jusin154_Team3D/Engine/Public/NPCStat.h @@ -10,6 +10,7 @@ class ENGINE_DLL CNPCStat final : public CComponent { _int iID{}; _wstring pNpc_Name; + _wstring pName; _int iNpcType{}; _float fFontPos{}; }NPCINFO; diff --git a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h index 4ca453131..08ad37937 100644 --- a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h +++ b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h @@ -38,6 +38,7 @@ class CPhysX_Manager final : public CBase // https://documentation.help/nvidia-physx-sdk-guide/Joints.html PSX::PxJoint* Create_PxJoint(PHYSX_JOINT eType, PSX::PxRigidActor* pActor0, PSX::PxTransform& pxLocalFrame0, PSX::PxRigidActor* pActor1, PSX::PxTransform& pxLocalFrame1); PSX::PxD6Joint* Create_BasicPxD6Joint(PSX::PxRigidDynamic* pActor0, PSX::PxRigidDynamic* pActor1, const PSX::PxTransform& pxJointWorldPos); + PSX::PxFixedJoint* Create_BasicPxFixedJoint(PSX::PxRigidDynamic* pActor0, PSX::PxRigidDynamic* pActor1, const PSX::PxTransform& pxJointWorldPos); void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh, _uint iLevel); void RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc, _uint iLevel); diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h index 4a1ba0ce6..b9574cf16 100644 --- a/Jusin154_Team3D/Engine/Public/State.h +++ b/Jusin154_Team3D/Engine/Public/State.h @@ -15,7 +15,7 @@ enum ESTATE DODGE,DODGE_BLINK, DODGE_LEFT, DODGE_RIGHT,DODGE_ATTACK, COMBAT, SKILL, SKILL2, SPELL, SPELL_180_R, SPELL_90_R, SPELL_90_L, SPELL_90_L2, - LIGHT_ATTACK,LIGHT_ATTACK_180_R, LIGHT_ATTACK_90_L, LIGHT_ATTACK_90_R1, LIGHT_ATTACK_90_R2, LIGHT_ATTACK_90_R3, + LIGHT_ATTACK, LIGHT_ATTACK2, LIGHT_ATTACK3, LIGHT_ATTACK4,LIGHT_ATTACK_180_R, LIGHT_ATTACK_90_L, LIGHT_ATTACK_90_R1, LIGHT_ATTACK_90_R2, LIGHT_ATTACK_90_R3, ATTACK_END, SHUFFLE1, SHUFFLE2, SHUFFLE3, SHUFFLE4, MAPHELP,POTION, diff --git a/Jusin154_Team3D/Engine/Public/Unit.h b/Jusin154_Team3D/Engine/Public/Unit.h index b9b9900bf..cc11e348c 100644 --- a/Jusin154_Team3D/Engine/Public/Unit.h +++ b/Jusin154_Team3D/Engine/Public/Unit.h @@ -54,6 +54,8 @@ class ENGINE_DLL CUnit abstract : public CContainerObject virtual _bool Get_Npc() { return m_bNpc; } virtual _wstring Get_Name(); + virtual _wstring Get_NpcName(); + virtual _int Get_TextID(); #pragma endregion protected: