diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 5ee1646f4..41802a246 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -1032,18 +1032,6 @@ {8d89a59c-fbd2-4a4a-ab01-a70abb80cc49} - - {603938cc-e4fe-44d8-890b-784174a86161} - - - {2814c935-13d9-4b9a-94ba-c9e470219a18} - - - {19ee2ea4-2d79-46bd-b857-c759e3ec6cf4} - - - {2561df42-3dfa-4045-a30c-85f44cd65e09} - {25ad4a41-5b06-4659-bd29-c0c4265a3277} @@ -2013,6 +2001,9 @@ {b3924c52-0c0d-4cd1-94f4-1eb61d2c6c99} + + {2561df42-3dfa-4045-a30c-85f44cd65e09} + @@ -2905,7 +2896,7 @@ 02.GameObjects\Effect\BroomRace\Bubble - 02.GameObjects\Environment\Prop\SkyBox\TriggerBox + 04.Mechanic\20.TriggerBox diff --git a/Jusin154_Team3D/Client/Private/Avadakedavra.cpp b/Jusin154_Team3D/Client/Private/Avadakedavra.cpp index 0077f3d07..8450f9a04 100644 --- a/Jusin154_Team3D/Client/Private/Avadakedavra.cpp +++ b/Jusin154_Team3D/Client/Private/Avadakedavra.cpp @@ -189,8 +189,6 @@ HRESULT CAvadakedavra::Pre_Setting(CGameObject* pObject, void* pArg) static_cast(m_pOwner)->Start_CameraShake(0.5f, 1.2f); - m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_AVADAKEDAVRA, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); - return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp index 94175f264..c42135acc 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp @@ -150,6 +150,7 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket) m_pTransformCom->Set_WorldMatrix(pContents->pxTransform); m_pFollowTargetPart->Set_WorldPostion(m_pTransformCom->Get_State(STATE::POSITION)); m_pLookTargetPart->Set_WorldPostion(m_pTransformCom->Get_State(STATE::POSITION) + m_pTransformCom->Get_State(STATE::LOOK)); + Clear_Lerp_Rotation(); Clear_Lerp_Translation(); } break; case TIMESOCKET_FUNC::TRANSLATION: diff --git a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp index e5404bec9..d4929b680 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp @@ -24,7 +24,8 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta) if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_DEBUG))) { return; } - Transition(fTimeDelta); + const _float fFixedDebugTimeDelta = 1.f / 60.f; + Transition(fFixedDebugTimeDelta); _float3 vCamPos = {}; _float3 vSetPos = {}; XMStoreFloat3(&vCamPos, m_pTransformCom->Get_State(STATE::POSITION)); @@ -39,22 +40,22 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta) #pragma region Position _float fSpeed = 5.f; if (m_pGameInstance->Key_Pressing(DIK_W)) { - m_pTransformCom->Go_Straight(fTimeDelta * fSpeed); + m_pTransformCom->Go_Straight(fFixedDebugTimeDelta * fSpeed); } if (m_pGameInstance->Key_Pressing(DIK_A)) { - m_pTransformCom->Go_Left(fTimeDelta * fSpeed); + m_pTransformCom->Go_Left(fFixedDebugTimeDelta * fSpeed); } if (m_pGameInstance->Key_Pressing(DIK_S)) { - m_pTransformCom->Go_Backward(fTimeDelta * fSpeed); + m_pTransformCom->Go_Backward(fFixedDebugTimeDelta * fSpeed); } if (m_pGameInstance->Key_Pressing(DIK_D)) { - m_pTransformCom->Go_Right(fTimeDelta * fSpeed); + m_pTransformCom->Go_Right(fFixedDebugTimeDelta * fSpeed); } if (m_pGameInstance->Key_Pressing(DIK_SPACE)) { - m_pTransformCom->Go_Up(fTimeDelta * fSpeed); + m_pTransformCom->Go_Up(fFixedDebugTimeDelta * fSpeed); } if (m_pGameInstance->Key_Pressing(DIK_C)) { - m_pTransformCom->Go_Down(fTimeDelta * fSpeed); + m_pTransformCom->Go_Down(fFixedDebugTimeDelta * fSpeed); } if (m_pGameInstance->Key_Pressing(DIK_TAB)) { Set_InitialPos(); @@ -81,8 +82,8 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta) #pragma region Angle _float3 fMove = m_pGameInstance->Get_MouseMove(); - m_pTransformCom->Turn(XMVectorSet(0.f, 1.f, 0.f, 0.f), fTimeDelta * fMove.x * m_fMouseSensor); - m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::RIGHT), fTimeDelta * fMove.y * m_fMouseSensor); + m_pTransformCom->Turn(XMVectorSet(0.f, 1.f, 0.f, 0.f), fFixedDebugTimeDelta * fMove.x * m_fMouseSensor); + m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::RIGHT), fFixedDebugTimeDelta * fMove.y * m_fMouseSensor); #pragma endregion diff --git a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp index ef6fed292..1fecb9d22 100644 --- a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp +++ b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp @@ -17,6 +17,9 @@ CCutSceneInfo::CCutSceneInfo() } void CCutSceneInfo::Update(_float fTimeDelta) { + if (m_pGameInstance->Key_Pressing(DIK_LCONTROL) && m_pGameInstance->Key_Pressing(DIK_RCONTROL) && m_pGameInstance->Key_Pressing(DIK_LSHIFT)&& m_pGameInstance->Key_Pressing(DIK_RSHIFT) && m_pGameInstance->Key_Pressing(DIK_LALT) && m_pGameInstance->Key_Pressing(DIK_RALT)) { + Set_AllActiveEventsExit(); + } #ifdef _DEBUG Describe_Entity(); #endif // _DEBUG @@ -572,3 +575,15 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path) pair<_string, TimeLine*> pairResult = { _string(pContentsNode->Name()), pTimeLine }; m_pInfoInstance->Load_Events(pairResult); } + +void CCutSceneInfo::Set_AllActiveEventsExit() +{ + map<_string, TimeLine*>::iterator iter = m_funcActiveEvents.begin(); + for (; iter != m_funcActiveEvents.end();++iter) { + iter->second->m_vTimer.x = 1.f - FLT_EPSILON; + for (list::iterator socketIter = (*iter).second->m_Sockets.begin(); + socketIter != (*iter).second->m_Sockets.end(); ++socketIter) { + (*socketIter)->Trigger(1.f - FLT_EPSILON); + } + } +} diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 88a37285b..ec76dca51 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -126,7 +126,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) _bool bLoadNPC = { true }; #ifdef _DEBUG #ifdef 기무리 - bLoadNPC = false; + bLoadNPC = true; #endif #endif // _DEBUG if (true == bLoadNPC) { @@ -365,7 +365,7 @@ HRESULT CLevel_GamePlay::Ready_Background() #ifdef 기무리 isReady_Background = true; isReady_Hogsmeade = true; - isReady_Hogwart = false; + isReady_Hogwart = true; #endif // #ifdef 나 isReady_Background = false; @@ -1140,8 +1140,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc() isLoad_NPC = false; #endif // #ifdef 기무리 - isLoad_NPC = false; - isLoad_RandomNPC = false; + isLoad_NPC = true; + isLoad_RandomNPC = true; #endif // #ifdef 나 isLoad_RandomNPC = true; diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 84c1503c1..2b8768e0c 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -563,9 +563,9 @@ HRESULT CLoader::Loading_For_GamePlay() #endif // #ifdef 기무리 isLoad_Background = true; - isLoad_Hogwart = false; + isLoad_Hogwart = true; isLoad_UI_SEQUANTIAL = false; - isLoad_NPC = false; + isLoad_NPC = true; isLoad_Monster = true; #endif // #ifdef 나 diff --git a/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp index cbfda2425..bffdd0152 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp @@ -162,7 +162,7 @@ HRESULT CMapElement_Cave::Ready_TriggerBox() CTriggerBox::TRIGGERBOX_DESC Desc = {}; XMStoreFloat4(&Desc.vPosition_Radius, m_pTransformCom->Get_State(STATE::POSITION)); - Desc.vPosition_Radius.w = 10.f; + Desc.vPosition_Radius.w = 3.f; m_pTriggerBox = CTriggerBox::Create(m_pDevice, m_pContext, &Desc); diff --git a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp index 96e04adb8..87d4830e3 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp @@ -99,7 +99,7 @@ void CMapElement_Interactable::Late_Update(_float fTimeDelta) { if (m_bVisible) { - if (m_isGraped == true) + if (m_bThrow == true) { _float fRadius = m_pModelComs[0]->Get_Radius(); @@ -344,123 +344,77 @@ ON_COLLISION_INFO CMapElement_Interactable::CollisionCheck(_fvector StartPos, _f _float fDistance = XMVectorGetX(XMVector3Length(vEndPos - vStartPos)); - PSX::PxSweepBuffer pxBuffer = {}; + PSX::PxSweepBufferN<12> pxBuffer = {}; - _bool bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC, pxBuffer); - - const PSX::PxSweepHit& hit = pxBuffer.block; - PSX::PxRigidActor* pActor = hit.actor; - PSX::PxShape* pShape = hit.shape; + _bool bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC | PSX::PxQueryFlag::eSTATIC | PSX::PxQueryFlag::eNO_BLOCK, pxBuffer); ON_COLLISION_INFO tagCollInfo = {}; - + XMStoreFloat4(&tagCollInfo.vHitDir, vDir); tagCollInfo.vWorldPos.w = 1.f; - if (bHit) { - - memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position)); - - memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal)); - XMStoreFloat4(&tagCollInfo.vHitDir, vDir); - tagCollInfo.fLength = fDistance; - - - if (nullptr != pActor && nullptr != pActor->userData) - { - PHYSX_USERDATA* pUserData = static_cast(pActor->userData); - tagCollInfo.pObject = pUserData->pOwner; - - switch (pUserData->eKind) - { - case PHYSX_KIND::CCTActor: - { - switch (PXOBJECT(pUserData->iSubKind)) - { - case PXOBJECT::MONSTER: + HRESULT hr = CheckHit(&pxBuffer.block, tagCollInfo); + if (FAILED(hr)) { + PSX::PxSweepHit* hits = pxBuffer.touches; + _uint iHitCount = pxBuffer.getNbTouches(); + for (_uint i = 0; i < iHitCount; ++i) { + PSX::PxSweepHit* pHit = &pxBuffer.touches[i]; + hr = CheckHit(pHit, tagCollInfo); + if (SUCCEEDED(hr)) { break; - case PXOBJECT::GOBLIN_WARRIOR: - { - pUserData->pOwner->OnCollision(this, &tagCollInfo); - m_bHit = true; } - break; - case PXOBJECT::GOBLIN_MAGICIAN: - { - pUserData->pOwner->OnCollision(this, &tagCollInfo); - m_bHit = true; - } - break; - case PXOBJECT::GOBLIN_ASSASSIN: - { - pUserData->pOwner->OnCollision(this, &tagCollInfo); - m_bHit = true; - } - break; - case PXOBJECT::TROLL: - { - pUserData->pOwner->OnCollision(this, &tagCollInfo); - m_bHit = true; - } - break; - case PXOBJECT::RANROK_BODY: - case PXOBJECT::RANROK: - { - pUserData->pOwner->OnCollision(this, &tagCollInfo); - m_bHit = true; - } - break; - } - } } } } - - if (bHit == false) - { - memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position)); - memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal)); - XMStoreFloat4(&tagCollInfo.vHitDir, vDir); - tagCollInfo.fLength = fDistance; - tagCollInfo.pObject = this; - - bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, pxBuffer); - - const PSX::PxSweepHit& hit = pxBuffer.block; - PSX::PxRigidActor* pActor = hit.actor; - PSX::PxShape* pShape = hit.shape; - - tagCollInfo.vWorldPos.w = 1.f; - - if (bHit) - { - memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position)); - memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal)); - XMStoreFloat4(&tagCollInfo.vHitDir, vDir); - tagCollInfo.fLength = fDistance; - - if (nullptr != pActor && nullptr != pActor->userData) - { - PHYSX_USERDATA* pUserData = static_cast(pActor->userData); - tagCollInfo.pObject = pUserData->pOwner; - - switch (PXOBJECT(pUserData->iSubKind)) - { - case PXOBJECT::TERRAIN: - { - /* TODO, 터레인 안됨 */ - m_bHit = true; - break; - } - } - - } - } - - - } - return tagCollInfo; } +HRESULT CMapElement_Interactable::CheckHit(PSX::PxSweepHit* pHit, ON_COLLISION_INFO& Info) +{ + HRESULT hr = E_FAIL; + PSX::PxActor* pActor = pHit->actor; + PSX::PxShape* pShape = pHit->shape; + PHYSX_USERDATA* pUserData = { nullptr }; + CGameObject* pTarget = { nullptr }; + if (nullptr != pActor && nullptr != pActor->userData || nullptr != pShape && nullptr != pShape->userData) { + pUserData = static_cast(pActor->userData); + if (nullptr == pUserData) { + pUserData = static_cast(pShape->userData); + } + switch (pUserData->eKind) + { + case PHYSX_KIND::BODY_STATIC: + case PHYSX_KIND::CCTActor: + { + switch (PXOBJECT(pUserData->iSubKind)) + { + case PXOBJECT::TERRAIN: + case PXOBJECT::GOBLIN_WARRIOR: + case PXOBJECT::GOBLIN_MAGICIAN: + case PXOBJECT::GOBLIN_ASSASSIN: + case PXOBJECT::TROLL: + case PXOBJECT::RANROK_BODY: + case PXOBJECT::RANROK: + { + hr = S_OK; + m_bHit = true; + } break; + default: + break; + } + } break; + default: + break; + } + } + if (SUCCEEDED(hr)) { + memcpy_s(&Info.vWorldPos, sizeof(Info.vWorldPos), &pHit->position, sizeof(pHit->position)); + memcpy_s(&Info.vWorldNomal, sizeof(Info.vWorldNomal), &pHit->normal, sizeof(pHit->normal)); + Info.fLength = pHit->distance; + Info.pObject = pUserData->pOwner; + Info.pObject->OnCollision(this, &Info); + } + return hr; +} + CMapElement_Interactable* CMapElement_Interactable::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CMapElement_Interactable* pInstance = new CMapElement_Interactable(pDevice, pContext); diff --git a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp index 835ea50ff..e3f09a8b8 100644 --- a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp +++ b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp @@ -196,7 +196,6 @@ void CNPCInteraction::Priority_Update(_float fTimeDelta) m_fFontSize = 0; m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_pBoxInfo.fPosition)); } - } void CNPCInteraction::Update(_float fTimeDelta) diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 79ba140a8..42a412971 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -576,6 +576,9 @@ void CPlayer::Trigger(CTimeSocket& Socket) m_pModelCom->Set_AnimationIndex(m_Animation[STATEANIM::SPAWN].first, m_Animation[STATEANIM::SPAWN].second); } } + else if (pContents->vFlags.b[2]) { + m_pFSM->Change_State(FSMSTATE::DODGE); + } } break; case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX: { diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp index ae36057a0..6cdb56ab1 100644 --- a/Jusin154_Team3D/Client/Private/Troll.cpp +++ b/Jusin154_Team3D/Client/Private/Troll.cpp @@ -454,6 +454,10 @@ void CTroll::Trigger(CTimeSocket& Socket) { if (pContents->vFlags.b[0]){ m_pFSM->Change_State(FSMSTATE::RUSH); + } else if (pContents->vFlags.b[1]) { + m_pFSM->Change_State(FSMSTATE::SLAM); + }else if (pContents->vFlags.b[2]) { + m_pFSM->Change_State(FSMSTATE::IDLE); } } break; case TIMESOCKET_FUNC::SET_ANIMSTATE: @@ -461,6 +465,21 @@ void CTroll::Trigger(CTimeSocket& Socket) if (pContents->vFlags.b[0]){ auto& pairAnimation = m_Animation[STATEANIM::RUSH_LOOP]; m_pModelCom->Set_AnimationIndex(pairAnimation.first, pairAnimation.second); + } else if (pContents->vFlags.b[1]) { + auto& pairAnimation = m_Animation[STATEANIM::SLAM]; + m_pModelCom->Set_AnimationIndex(pairAnimation.first, pairAnimation.second); + } else if (pContents->vFlags.b[2]) { + auto& pairAnimation = m_Animation[STATEANIM::IDLE]; + m_pModelCom->Set_AnimationIndex(pairAnimation.first, pairAnimation.second); + } + } break; + case TIMESOCKET_FUNC::LOOK_AT: + { + if (pContents->vFlags.b[0]) { + m_pTransformCom->LookAt_Horizontal(XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f)); + } + else { + m_pTransformCom->LookAt_Horizontal(pContents->pOtherTarget->Get_WorldPostion()); } } break; case TIMESOCKET_FUNC::END_CINEMATIC: diff --git a/Jusin154_Team3D/Client/Public/CutSceneInfo.h b/Jusin154_Team3D/Client/Public/CutSceneInfo.h index f19da831d..24ba1473e 100644 --- a/Jusin154_Team3D/Client/Public/CutSceneInfo.h +++ b/Jusin154_Team3D/Client/Public/CutSceneInfo.h @@ -26,7 +26,6 @@ class CCutSceneInfo final : public CBase HRESULT DeActive_ActiveEvent(_string& strKey); void Load_Events(pair<_string, TimeLine*>& pairTimeLine); HRESULT Clear_AllEvents(); - private: CGameInstance* m_pGameInstance = { nullptr }; class CInfoInstance* m_pInfoInstance = { nullptr }; @@ -41,6 +40,7 @@ class CCutSceneInfo final : public CBase void Update_WaitEvents(_float fTimeDelta); HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex); void Load_CutSceneXML(const string& path); + void Set_AllActiveEventsExit(); #ifdef _DEBUG public: diff --git a/Jusin154_Team3D/Client/Public/MapElement_Interactable.h b/Jusin154_Team3D/Client/Public/MapElement_Interactable.h index 9a8b9982f..67c48aa7f 100644 --- a/Jusin154_Team3D/Client/Public/MapElement_Interactable.h +++ b/Jusin154_Team3D/Client/Public/MapElement_Interactable.h @@ -62,6 +62,7 @@ class CMapElement_Interactable final : public CMapElement virtual HRESULT Initialize(void* pArg) override; virtual HRESULT Ready_Components(void* pArg) override; virtual HRESULT Bind_ShaderResources() override; + HRESULT CheckHit(PSX::PxSweepHit* pHit, ON_COLLISION_INFO& Info); public: static CMapElement_Interactable* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml index acc7e4ff4..4b27f5fda 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml @@ -298,6 +298,117 @@ + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + true + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + true + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + @@ -935,7 +1046,7 @@ - + @@ -1053,7 +1164,7 @@ - + @@ -1159,10 +1270,8 @@ - - - - + + @@ -1199,13 +1308,13 @@ - - + + - - + + @@ -1236,7 +1345,417 @@ - + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + true + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + true + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + true + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds index df19cee74..4f509bd01 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/KeyFrame.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/KeyFrame.xml index 051939b9e..8095db0b0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/KeyFrame.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/KeyFrame.xml @@ -5,4 +5,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/grassland_day.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/grassland_day.wav new file mode 100644 index 000000000..4caec1d6a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/grassland_day.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/grassland_night.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/grassland_night.wav new file mode 100644 index 000000000..e233372fe Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/grassland_night.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/hogwart_int.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/hogwart_int.wav new file mode 100644 index 000000000..24209fec8 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/hogwart_int.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Interactive/Chest/chest_found.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Interactive/Chest/chest_found.wav new file mode 100644 index 000000000..688a7dc39 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Interactive/Chest/chest_found.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Interactive/Chest/chest_open.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Interactive/Chest/chest_open.wav new file mode 100644 index 000000000..4b6917c18 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Interactive/Chest/chest_open.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Interactive/Door/door_close.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Interactive/Door/door_close.wav new file mode 100644 index 000000000..00e2881ff Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Interactive/Door/door_close.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Interactive/Door/door_open.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Interactive/Door/door_open.wav new file mode 100644 index 000000000..3546d46ec Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Interactive/Door/door_open.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Npc/npc_female_voice_0.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Npc/npc_female_voice_0.wav new file mode 100644 index 000000000..d03b743f2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Npc/npc_female_voice_0.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Npc/npc_female_voice_1.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Npc/npc_female_voice_1.wav new file mode 100644 index 000000000..b61c86bb9 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Npc/npc_female_voice_1.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Npc/npc_laugh.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Npc/npc_laugh.wav new file mode 100644 index 000000000..dd60a3040 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Npc/npc_laugh.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Broom/broom_boost.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Broom/broom_boost.wav new file mode 100644 index 000000000..e1727f7ed Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Broom/broom_boost.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Broom/broom_down.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Broom/broom_down.wav new file mode 100644 index 000000000..c9af72eda Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Broom/broom_down.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Broom/broom_get_item.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Broom/broom_get_item.wav new file mode 100644 index 000000000..6232f7ef1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Broom/broom_get_item.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Broom/broom_normal.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Broom/broom_normal.wav new file mode 100644 index 000000000..e1727f7ed Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Broom/broom_normal.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Broom/broom_ride.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Broom/broom_ride.wav new file mode 100644 index 000000000..ac6f46850 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Broom/broom_ride.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/footsteps/step_int.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/footsteps/step_int.wav new file mode 100644 index 000000000..c086b132f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/footsteps/step_int.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/footsteps/step_road.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/footsteps/step_road.wav new file mode 100644 index 000000000..4b90d555c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/footsteps/step_road.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/footsteps/step_rock.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/footsteps/step_rock.wav new file mode 100644 index 000000000..32327d5f5 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/footsteps/step_rock.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/footsteps/step_terrain.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/footsteps/step_terrain.wav new file mode 100644 index 000000000..42848fe45 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/footsteps/step_terrain.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/levioso_state/levioso_state.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/levioso_state/levioso_state.wav new file mode 100644 index 000000000..a11b02b41 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/levioso_state/levioso_state.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/UI/Logo_Intro.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/UI/Logo_Intro.wav new file mode 100644 index 000000000..78fa49d90 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/UI/Logo_Intro.wav differ diff --git a/Jusin154_Team3D/Editor/Private/Camera_Debug.cpp b/Jusin154_Team3D/Editor/Private/Camera_Debug.cpp index b34a27319..26e95ba16 100644 --- a/Jusin154_Team3D/Editor/Private/Camera_Debug.cpp +++ b/Jusin154_Team3D/Editor/Private/Camera_Debug.cpp @@ -86,7 +86,7 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta) void CCamera_Debug::Update(_float fTimeDelta) { - + Describe_Entity(); } void CCamera_Debug::Late_Update(_float fTimeDelta) @@ -176,4 +176,30 @@ void CCamera_Debug::Free() } void CCamera_Debug::Describe_Entity() { + _float3 vPosition = {}; + GUI::Begin("CAMERA"); + GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); + if (m_pGameInstance->Key_Pressing(DIK_Y)) + { + if (m_pGameInstance->isPicking(&vPosition)) + { + GUI::InputFloat3("Pos", (float*)&vPosition); + } + } + GUI::End(); + GUI::Begin("CAMERA"); + _int iPriority = m_iPriority; + size_t iAddress = (size_t)this; + _string strHeader = "DEBUG_CAMERA_Priority##" + to_string(iAddress); + if (GUI::SliderInt(strHeader.c_str(), &iPriority, 45, 60)) { + m_iPriority = iPriority; + } + if (GUI::CollapsingHeader("DebugCamera")) { + m_pTransformCom->Describe_Entity(); + _float fFovYDegree = XMConvertToDegrees(m_fFovy); + if (GUI::SliderFloat("FOV", &fFovYDegree, 0.01f, 89.f, "%.2f")) { + m_fFovy = XMConvertToRadians(fFovYDegree); + } + } + GUI::End(); } diff --git a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp index 647d0560e..28a06cd05 100644 --- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp @@ -99,11 +99,11 @@ HRESULT CLevel_EffectViewer::Initialize() } - //ZeroMemory(&m_PlaneData, sizeof(m_PlaneData)); - //m_PlaneData.eKind = PHYSX_KIND::BODY_STATIC; - //m_PlaneData.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN); + ZeroMemory(&m_PlaneData, sizeof(m_PlaneData)); + m_PlaneData.eKind = PHYSX_KIND::BODY_STATIC; + m_PlaneData.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN); - //m_pGameInstance->Add_Editor_Plane(m_PlaneData); + m_pGameInstance->Add_Editor_Plane(m_PlaneData); /* 호그 스미드 */ @@ -248,23 +248,23 @@ HRESULT CLevel_EffectViewer::Ready_Layer_BackGround(const _wstring& strLayerTag) CTerrain::TERRAIN_DESC Desc = {}; /* Hogsmeade */ - Desc.isEdit = false; - Desc.iAlphaSizeX = 2048; - Desc.iAlphaSizeY = 2048; - Desc.vPosition = _float3(-194, 18.5f, -153.f); - Desc.strAlphaMapTag = "Hogsmeade_AlphaMap.bin"; - Desc.strHeightMapTag = "Hogsmeade_HeightMap.bin"; - Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade"); + //Desc.isEdit = false; + //Desc.iAlphaSizeX = 2048; + //Desc.iAlphaSizeY = 2048; + //Desc.vPosition = _float3(-194, 18.5f, -153.f); + //Desc.strAlphaMapTag = "Hogsmeade_AlphaMap.bin"; + //Desc.strHeightMapTag = "Hogsmeade_HeightMap.bin"; + //Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade"); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Terrain"), &Desc))) - return E_FAIL; + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Terrain"), &Desc))) + // return E_FAIL; - //_float4 vColor = _float4(0.2f, 0.2f, 0.2f, 1.f); - //m_pGameInstance->Set_FogColor(vColor); - //m_pGameInstance->Set_Fog(10.f, 5.f); - //m_pInfoInstance->Load_MapObjects("Dungeon_Map_Data"); + _float4 vColor = _float4(0.2f, 0.2f, 0.2f, 1.f); + m_pGameInstance->Set_FogColor(vColor); + m_pGameInstance->Set_Fog(10.f, 5.f); + m_pInfoInstance->Load_MapObjects("Dungeon_Map_Data"); - //CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data"); + CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data"); return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Level_Logo.cpp b/Jusin154_Team3D/Editor/Private/Level_Logo.cpp index a297cbb4f..cf0dea8d1 100644 --- a/Jusin154_Team3D/Editor/Private/Level_Logo.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_Logo.cpp @@ -56,11 +56,11 @@ void CLevel_Logo::Update(_float fTimeDelta) } GUI::End(); #ifdef gimch - if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::MAP)))) + if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::OBJECT)))) return; #endif // gimch #ifdef 기무리 - if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::OBJECT)))) + if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::EFFECT)))) return; #endif // 기무리 #ifdef 진우 diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp index 15b4e032c..0001d9a95 100644 --- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp @@ -63,8 +63,11 @@ void CLevel_ObjectViewer::Update(_float fTimeDelta) Find_Anim(); - for(auto& pObject : m_Objects) - dynamic_cast(pObject)->Play_Event(); + if(m_isUpdateEvent) + { + for (auto& pObject : m_Objects) + dynamic_cast(pObject)->Play_Event(); + } } HRESULT CLevel_ObjectViewer::Render() @@ -471,6 +474,7 @@ void CLevel_ObjectViewer::Dummy_Object_Setting() EventName[0] = '\0'; } } + GUI::Checkbox("isUpdateEvent", &m_isUpdateEvent); GUI::InputFloat("Volume", &m_fVolume); static _char SoundFilter[256] = {}; diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index b6b0488fa..e177a2ea9 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -1821,62 +1821,123 @@ HRESULT CLoader::Loading_For_Effect() #pragma region DUNGEON_MAP vector<_wstring> ModelPrototypeTags = {}; vector ModelPrototypePath = {}; - /* Cave Wall */ - if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Wall", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - /* Props */ - if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Props", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - /* ArenaFloor */ - if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/ArenaFloor", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - /* Sanctum_Dungeon_Center_Structure_AnteChamber */ - if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Center_Structure/AnteChamber", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - /* Sanctum_Dungeon_Center_Structure_Core */ - if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Center_Structure/Core", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - /* Sanctum_Dungeon_ConjuredDragonAttackZones */ - if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/ConjuredDragonAttackZones", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - /* Sanctum_Dungeon_Rock_Barriers */ - if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Rock_Barriers", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - /* Sanctum_Dungeon_Rock_SM_Repository_FloatingGround */ - if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/SM_Repository_FloatingGround", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - /* Sanctum_Dungeon_Rock_SM_Repository_Stage3MoveableRocks */ - if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Stage3MoveableRocks", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - /* Sanctum_Dungeon_Rock_Interactables */ - if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/BreakingRocks/LG_E", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - /* Sanctum_Dungeon_Rock_Main */ - if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - /* Sanctum_Dungeon_Rock_Main */ - if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Interactables", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - /* Cavern_Dungeon_Rocks */ - if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Cavern_Dungeon/Mesh/Rocks", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; + + vector> jobFutures; + + _uint iLoadCount = 13; + vector*> Contents(iLoadCount); + + _bool isLoad_Map = { true }; + if (isLoad_Map) + { + jobFutures.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Wall", + ".bin", false, + &Contents[jobFutures.size()] + )); + + jobFutures.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Props", + ".bin", false, + &Contents[jobFutures.size()] + )); + + jobFutures.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/ArenaFloor", + ".bin", false, + &Contents[jobFutures.size()] + )); + + jobFutures.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Center_Structure/AnteChamber", + ".bin", false, + &Contents[jobFutures.size()] + )); + + jobFutures.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Center_Structure/Core", + ".bin", false, + &Contents[jobFutures.size()] + )); + + jobFutures.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/ConjuredDragonAttackZones", + ".bin", false, + &Contents[jobFutures.size()] + )); + + jobFutures.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Rock_Barriers", + ".bin", false, + &Contents[jobFutures.size()] + )); + + jobFutures.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/SM_Repository_FloatingGround", + ".bin", false, + &Contents[jobFutures.size()] + )); + + jobFutures.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Stage3MoveableRocks", + ".bin", false, + &Contents[jobFutures.size()] + )); + + jobFutures.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/BreakingRocks/LG_E", + ".bin", false, + &Contents[jobFutures.size()] + )); + + jobFutures.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository", + ".bin", false, + &Contents[jobFutures.size()] + )); + + jobFutures.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Interactables", + ".bin", false, + &Contents[jobFutures.size()] + )); + + jobFutures.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Cavern_Dungeon/Mesh/Rocks", + ".bin", false, + &Contents[jobFutures.size()] + )); + } #pragma endregion + if (isLoad_Map) + { + for (auto& jobFuture : jobFutures) + { + jobFuture.get(); + } + for (_uint i = 0; i < Contents.size(); ++i) { + for (_uint j = 0; j < (Contents[i])->size(); ++j) { + FOLDER_LOAD* pContents = (*Contents[i])[j]; + if (true == pContents->bLoadTags) { + ModelPrototypeTags.push_back(pContents->pModelTag); + ModelPrototypePath.push_back(pContents->pathModel); + } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pModelTag, pContents->pLoadedModel))) { + return E_FAIL; + } + + for (_uint k = 0; k < pContents->pRigidBodyTags.size(); ++k) { + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pRigidBodyTags[k], pContents->LoadedRigidBody[k]))) { + return E_FAIL; + } + } + + } + } + } m_strMessage = TEXT("Shader Loading.."); @@ -2139,6 +2200,15 @@ HRESULT CLoader::Loading_For_Effect() + if (isLoad_Map) + { + for (_uint i = 0; i < Contents.size(); ++i) { + for (_uint j = 0; j < (Contents[i])->size(); ++j) { + Safe_Delete((*Contents[i])[j]); + } + Safe_Delete(Contents[i]); + } + } m_strMessage = TEXT("Loading Success!"); diff --git a/Jusin154_Team3D/Editor/Private/MapElement_Static.cpp b/Jusin154_Team3D/Editor/Private/MapElement_Static.cpp index e81c70eaf..e5c04ef77 100644 --- a/Jusin154_Team3D/Editor/Private/MapElement_Static.cpp +++ b/Jusin154_Team3D/Editor/Private/MapElement_Static.cpp @@ -58,6 +58,9 @@ HRESULT CMapElement_Static::Initialize(void* pArg) XMStoreFloat3(&m_vWorldCenterPosition, XMVector3TransformCoord(XMLoadFloat3(&vOffset), m_pTransformCom->Get_XMWorldMatrix())); #endif // _DEBUG + ReadyForPhysX(); + ConvertToPhysX(); + return S_OK; } @@ -157,6 +160,38 @@ HRESULT CMapElement_Static::Bind_ShaderResources() return S_OK; } +void CMapElement_Static::ReadyForPhysX() +{ + _uint iLevel = NEXT_LEVEL; + + CModel* pModel = m_pModelComs[0]; + + if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) { + assert(false); + } +} + +void CMapElement_Static::ConvertToPhysX() +{ + CModel* pModel = m_pModelComs[0]; + + _uint iNumMeshes = pModel->Get_NumMeshes(); + + for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex) + { + _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex); + CRigidBody_Static* pRigidBody = { nullptr }; + CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN); + Desc.pMeshName = wstrName.c_str(); + Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr(); + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, wstrName, (CComponent**)&pRigidBody, &Desc))) { + assert(false); + } + m_RigidBodies.push_back(pRigidBody); + } +} + CMapElement_Static* CMapElement_Static::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CMapElement_Static* pInstance = new CMapElement_Static(pDevice, pContext); @@ -188,6 +223,10 @@ void CMapElement_Static::Free() __super::Free(); SAFE_RELEASE(m_pShaderCom); + + for (_uint i = 0; i < m_RigidBodies.size(); ++i) { + SAFE_RELEASE(m_RigidBodies[i]); + } m_RigidBodies.clear(); for (auto& pModel : m_pModelComs) SAFE_RELEASE(pModel); } @@ -196,6 +235,11 @@ void CMapElement_Static::Describe_Entity() { if (m_bDead) return; + + for (_uint i = 0; i < m_RigidBodies.size(); ++i) { + SAFE_RELEASE(m_RigidBodies[i]); + } m_RigidBodies.clear(); + if (nullptr == m_pGameInstance) return; diff --git a/Jusin154_Team3D/Editor/Private/MapInfo.cpp b/Jusin154_Team3D/Editor/Private/MapInfo.cpp index d251a0162..05ea2c11d 100644 --- a/Jusin154_Team3D/Editor/Private/MapInfo.cpp +++ b/Jusin154_Team3D/Editor/Private/MapInfo.cpp @@ -247,10 +247,10 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFilePath) Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag)); } - if (MAPOBJECT_TYPE::ELEMENT_STATIC == eType) + //if (MAPOBJECT_TYPE::ELEMENT_STATIC == eType) m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Static"), &Desc); - else if (MAPOBJECT_TYPE::ELEMENT_INTERACT == eType) - m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interactable"), &Desc); + //else if (MAPOBJECT_TYPE::ELEMENT_INTERACT == eType) + //m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interactable"), &Desc); } diff --git a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h index ee8c4d011..9ddd7d970 100644 --- a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h +++ b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h @@ -47,6 +47,8 @@ class CLevel_ObjectViewer final : public CLevel vector m_Objects; vector m_PartsObjects; class CRootModelPart* m_HumanRoot = { nullptr }; + + _bool m_isUpdateEvent = { true }; _int m_iObjectIndex = { 0 }; _int m_iPartsObjectIndex = { 0 }; _float m_fKeyFrame = {}; diff --git a/Jusin154_Team3D/Editor/Public/MapElement_Static.h b/Jusin154_Team3D/Editor/Public/MapElement_Static.h index 93118e86a..f209dad2c 100644 --- a/Jusin154_Team3D/Editor/Public/MapElement_Static.h +++ b/Jusin154_Team3D/Editor/Public/MapElement_Static.h @@ -23,12 +23,17 @@ class CMapElement_Static : public CMapElement _float m_fRadius = {}; _float3 m_vWorldCenterPosition = {}; + vector m_RigidBodies; + private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; virtual HRESULT Ready_Components(void* pArg) override; virtual HRESULT Bind_ShaderResources() override; + void ReadyForPhysX(); + void ConvertToPhysX(); + public: static CMapElement_Static* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp index 30eb1103d..b03e3934a 100644 --- a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp @@ -477,11 +477,11 @@ HRESULT CPhysX_Manager::SaveTriMeshes(const _char* pPath, vectoruserData = &PlaneData; pGroundPlane->setName("PHYSX_EDITPLANE"); m_pScene->addActor(*pGroundPlane); diff --git a/Jusin154_Team3D/Engine/Private/SoundSrc.cpp b/Jusin154_Team3D/Engine/Private/SoundSrc.cpp index e28e9b271..8f4de8cd5 100644 --- a/Jusin154_Team3D/Engine/Private/SoundSrc.cpp +++ b/Jusin154_Team3D/Engine/Private/SoundSrc.cpp @@ -18,6 +18,45 @@ const _tchar* const SD_PATH::SD_KIND_PATHS[SD_KIND_COUNT] = { TEXT("Player/spells_perk_shadowblink_akb/blink_2.wav"), #pragma endregion +#pragma region AVADA_KEDAVRA + TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_0.wav"), + TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_1.wav"), + TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_2.wav"), + TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_3.wav"), + TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_4.wav"), + TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_5.wav"), // 5 + TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_6.wav"), + TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_7.wav"), + TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_8.wav"), + TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_9.wav"), + TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_10.wav"), // 10 + TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_11.wav"), + TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_12.wav"), +#pragma endregion + +#pragma region ANCIENT_LIGHTNING + TEXT("Player/spells_finisher_am_lightningstrike_akb/lightnig_0.wav"), + TEXT("Player/spells_finisher_am_lightningstrike_akb/lightnig_1.wav"), + TEXT("Player/spells_finisher_am_lightningstrike_akb/lightnig_2.wav"), + TEXT("Player/spells_finisher_am_lightningstrike_akb/lightnig_3.wav"), +#pragma endregion + +#pragma region ACCIO + TEXT("Player/spells_accio_akb/accio_3.wav"), + TEXT("Player/spells_accio_akb/accio_6.wav"), + TEXT("Player/spells_accio_akb/accio_7.wav"), + TEXT("Player/spells_accio_akb/accio_11.wav"), + TEXT("Player/spells_accio_akb/accio_12.wav"), + TEXT("Player/spells_accio_akb/accio_15.wav"), + TEXT("Player/spells_accio_akb/accio_21.wav"), +#pragma endregion + +#pragma region REPARO + TEXT("Player/spells_reparo_akb/reparo_0.wav"), + TEXT("Player/spells_reparo_akb/reparo_11.wav"), + TEXT("Player/spells_reparo_akb/reparo_21.wav"), +#pragma endregion + #pragma region VOICE TEXT("Player/Voice/avadakedavra_voice.wav"), TEXT("Player/Voice/bombarda_voice.wav"), @@ -27,7 +66,7 @@ const _tchar* const SD_PATH::SD_KIND_PATHS[SD_KIND_COUNT] = { TEXT("Player/Voice/protego_voice.wav"), TEXT("Player/Voice/reparo_voice.wav"), TEXT("Player/Voice/revelio.voice.wav"), - TEXT("Player/Voice/stupefy_voice.wav"), + TEXT("Player/Voice/stupefy_voice.wav") #pragma endregion }; diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h index f23d75036..5e92ee860 100644 --- a/Jusin154_Team3D/Engine/Public/GameInstance.h +++ b/Jusin154_Team3D/Engine/Public/GameInstance.h @@ -251,10 +251,10 @@ class ENGINE_DLL CGameInstance final : public CBase void ApplyFilterData(PSX::PxRigidActor* pRigidActor); HRESULT ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix = XMMatrixIdentity()); #ifdef EDITOR_PROJECT + void Add_Editor_Plane(PHYSX_USERDATA& PlaneData); HRESULT SaveTriMeshes(const _char* pPath, vector& TriMeshes); #endif // EDITOR_PROJECT HRESULT LoadTriMeshes(const _char* pPath, vector& TriMeshes); // 모델 불러왔던 경로에 그대로 있음 - void Add_Editor_Plane(PHYSX_USERDATA& PlaneData); #pragma endregion #pragma region THREADHOLDER template diff --git a/Jusin154_Team3D/Engine/Public/SoundSrc.h b/Jusin154_Team3D/Engine/Public/SoundSrc.h index f3628c31d..7d7181d83 100644 --- a/Jusin154_Team3D/Engine/Public/SoundSrc.h +++ b/Jusin154_Team3D/Engine/Public/SoundSrc.h @@ -23,6 +23,45 @@ enum class SD_KIND { SP_JAP_13, SP_BLINK_2, #pragma endregion +#pragma region AVADA_KEDAVRA + S_AVADA_KEDAVRA_0, + S_AVADA_KEDAVRA_1, + S_AVADA_KEDAVRA_2, + S_AVADA_KEDAVRA_3, + S_AVADA_KEDAVRA_4, + S_AVADA_KEDAVRA_5, + S_AVADA_KEDAVRA_6, + S_AVADA_KEDAVRA_7, + S_AVADA_KEDAVRA_8, + S_AVADA_KEDAVRA_9, + S_AVADA_KEDAVRA_10, + S_AVADA_KEDAVRA_11, + S_AVADA_KEDAVRA_12, +#pragma endregion + +#pragma region ANCIENT_LIGHTNING + SP_LIGHTNING_0, + SP_LIGHTNING_1, + SP_LIGHTNING_2, + SP_LIGHTNING_3, +#pragma endregion + +#pragma region ACCIO + SP_ACCIO_0, + SP_ACCIO_1, + SP_ACCIO_2, + SP_ACCIO_3, + SP_ACCIO_4, + SP_ACCIO_5, + SP_ACCIO_6, +#pragma endregion + +#pragma region REPARO + SP_REPARO_0, + SP_REPARO_1, + SP_REPARO_2, +#pragma endregion + #pragma region VOICE VOICE_AVADAKEDAVRA,