diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index e21db98a9..e042747c8 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -160,6 +160,8 @@ call Update_Resources.bat + + @@ -193,9 +195,10 @@ call Update_Resources.bat - + + @@ -335,6 +338,8 @@ call Update_Resources.bat + + @@ -376,6 +381,7 @@ call Update_Resources.bat + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 3e8705019..597dee9ad 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -524,6 +524,15 @@ 02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Boss_HpBar + + 02.GameObjects\Effect\PropsEffect\Box + + + 02.GameObjects\Effect\PropsEffect\Chair + + + 02.GameObjects\Effect\PropsEffect\Barral + 04.Mechanic\State\Broom_Player\State_Broom_Hover @@ -1122,6 +1131,18 @@ {b49a3671-96d0-47b8-833f-28190d549b0f} + + {215b093d-648c-4cca-a69b-f4005b34ee06} + + + {b3c9f1a4-afb1-45ba-8d8b-034267607976} + + + {c2841516-9f72-4c72-aa50-652b4ff33b5a} + + + {3103c6e1-60cb-438b-a3eb-844b919ccd43} + {24f6903f-8f6b-46ff-a387-ecb44d673887} @@ -1605,6 +1626,15 @@ 02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Boss_HpBar + + 02.GameObjects\Effect\PropsEffect\Box + + + 02.GameObjects\Effect\PropsEffect\Barral + + + 02.GameObjects\Effect\PropsEffect\Chair + 04.Mechanic\State\Broom_Player\State_Broom_Hover diff --git a/Jusin154_Team3D/Client/Private/Barral_Splesh.cpp b/Jusin154_Team3D/Client/Private/Barral_Splesh.cpp new file mode 100644 index 000000000..49a0f1db5 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Barral_Splesh.cpp @@ -0,0 +1,186 @@ +#include "pch.h" +#include "Barral_Splesh.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" + +CBarral_Splesh::CBarral_Splesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CBarral_Splesh::CBarral_Splesh(const CBarral_Splesh& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CBarral_Splesh::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CBarral_Splesh::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Barral"))) + return E_FAIL; + + + m_wstrEffectName = L"Barral_Splesh"; + + + m_fDuration = 5.f; + + return S_OK; +} + +void CBarral_Splesh::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CBarral_Splesh::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + +} + +void CBarral_Splesh::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CBarral_Splesh::Pre_Setting(CGameObject* pObject, void* pArg) +{ + + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + CEffectParts* pWood_PT0 = Get_PartObject("Wood_PT0"); + CEffectParts* pWood_PT1 = Get_PartObject("Wood_PT1"); + CEffectParts* pWood_PT2 = Get_PartObject("Wood_PT2"); + CEffectParts* pWater_Splesh = Get_PartObject("Water_Splesh"); + + + _vector vPos = m_pOwner->Get_WorldPostion(); + + pWood_PT0->Get_Component()->Set_State(STATE::POSITION, vPos); + pWood_PT1->Get_Component()->Set_State(STATE::POSITION, vPos); + pWood_PT2->Get_Component()->Set_State(STATE::POSITION, vPos); + pWater_Splesh->Get_Component()->Set_State(STATE::POSITION, vPos); + + + pWood_PT0->Set_Visible(true); + pWood_PT1->Set_Visible(true); + pWood_PT2->Set_Visible(true); + pWater_Splesh->Set_Visible(true); + + + return S_OK; +} + +HRESULT CBarral_Splesh::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CBarral_Splesh::Ready_Child() +{ + return S_OK; +} + +CBarral_Splesh* CBarral_Splesh::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CBarral_Splesh* pInstance = new CBarral_Splesh(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CBarral_Splesh"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CBarral_Splesh::Clone(void* pArg, CGameObject* pOwner) +{ + CBarral_Splesh* pInstance = new CBarral_Splesh(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CBarral_Splesh"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CBarral_Splesh::OnCollision(CGameObject* pOther, void* pDesc) +{ + _int iIndex = CollisionCheck(); + + if (iIndex < 0) + return; + + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + + _vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f); + + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); + } + + +} + +void CBarral_Splesh::Free() +{ + __super::Free(); + +} +#ifdef _DEBUG +void CBarral_Splesh::Describe_Entity() +{ + +} +#endif + +HRESULT CBarral_Splesh::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Box_Splesh.cpp b/Jusin154_Team3D/Client/Private/Box_Splesh.cpp new file mode 100644 index 000000000..4d516417d --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Box_Splesh.cpp @@ -0,0 +1,182 @@ +#include "pch.h" +#include "Box_Splesh.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" + +CBox_Splesh::CBox_Splesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CBox_Splesh::CBox_Splesh(const CBox_Splesh& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CBox_Splesh::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CBox_Splesh::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Box"))) + return E_FAIL; + + + m_wstrEffectName = L"Box_Splesh"; + + + m_fDuration = 5.f; + + return S_OK; +} + +void CBox_Splesh::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CBox_Splesh::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + +} + +void CBox_Splesh::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CBox_Splesh::Pre_Setting(CGameObject* pObject, void* pArg) +{ + + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + CEffectParts* pPaper = Get_PartObject("Paper"); + CEffectParts* pSmoke = Get_PartObject("Smoke"); + + + + _vector vPos = m_pOwner->Get_WorldPostion(); + + pPaper->Get_Component()->Set_State(STATE::POSITION, vPos); + pSmoke->Get_Component()->Set_State(STATE::POSITION, vPos); + + + pPaper->Set_Visible(true); + pSmoke->Set_Visible(true); + + + + return S_OK; +} + +HRESULT CBox_Splesh::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CBox_Splesh::Ready_Child() +{ + return S_OK; +} + +CBox_Splesh* CBox_Splesh::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CBox_Splesh* pInstance = new CBox_Splesh(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CBarral_Splesh"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CBox_Splesh::Clone(void* pArg, CGameObject* pOwner) +{ + CBox_Splesh* pInstance = new CBox_Splesh(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CBarral_Splesh"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CBox_Splesh::OnCollision(CGameObject* pOther, void* pDesc) +{ + _int iIndex = CollisionCheck(); + + if (iIndex < 0) + return; + + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + + _vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f); + + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); + } + + +} + +void CBox_Splesh::Free() +{ + __super::Free(); + +} +#ifdef _DEBUG +void CBox_Splesh::Describe_Entity() +{ + +} +#endif + +HRESULT CBox_Splesh::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Chair_Splesh.cpp b/Jusin154_Team3D/Client/Private/Chair_Splesh.cpp new file mode 100644 index 000000000..bb123e405 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Chair_Splesh.cpp @@ -0,0 +1,186 @@ +#include "pch.h" +#include "Chair_Splesh.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" + +CChair_Splesh::CChair_Splesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CChair_Splesh::CChair_Splesh(const CChair_Splesh& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CChair_Splesh::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CChair_Splesh::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Chair"))) + return E_FAIL; + + + m_wstrEffectName = L"Chair_Splesh"; + + + m_fDuration = 5.f; + + return S_OK; +} + +void CChair_Splesh::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CChair_Splesh::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + +} + +void CChair_Splesh::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CChair_Splesh::Pre_Setting(CGameObject* pObject, void* pArg) +{ + + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + CEffectParts* pHit = Get_PartObject("Hit"); + CEffectParts* pSmoke = Get_PartObject("Smoke"); + CEffectParts* pWood_PT0 = Get_PartObject("Wood_PT0"); + CEffectParts* pWood_PT1 = Get_PartObject("Wood_PT1"); + + + _vector vPos = m_pOwner->Get_WorldPostion(); + + pWood_PT0->Get_Component()->Set_State(STATE::POSITION, vPos); + pWood_PT1->Get_Component()->Set_State(STATE::POSITION, vPos); + pHit->Get_Component()->Set_State(STATE::POSITION, vPos); + pSmoke->Get_Component()->Set_State(STATE::POSITION, vPos); + + + pWood_PT0->Set_Visible(true); + pWood_PT1->Set_Visible(true); + pHit->Set_Visible(true); + pSmoke->Set_Visible(true); + + + return S_OK; +} + +HRESULT CChair_Splesh::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CChair_Splesh::Ready_Child() +{ + return S_OK; +} + +CChair_Splesh* CChair_Splesh::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CChair_Splesh* pInstance = new CChair_Splesh(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CBarral_Splesh"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CChair_Splesh::Clone(void* pArg, CGameObject* pOwner) +{ + CChair_Splesh* pInstance = new CChair_Splesh(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CBarral_Splesh"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CChair_Splesh::OnCollision(CGameObject* pOther, void* pDesc) +{ + _int iIndex = CollisionCheck(); + + if (iIndex < 0) + return; + + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + + _vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f); + + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); + } + + +} + +void CChair_Splesh::Free() +{ + __super::Free(); + +} +#ifdef _DEBUG +void CChair_Splesh::Describe_Entity() +{ + +} +#endif + +HRESULT CChair_Splesh::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index 47fb11e1d..5ceedf7f7 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -28,6 +28,9 @@ #include "Mage_Nomal_Attack.h" #include "MageSide.h" #include "StunEffect.h" +#include "Box_Splesh.h" +#include "Chair_Splesh.h" +#include "Barral_Splesh.h" CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CGameObject(pDevice, pContext) @@ -55,12 +58,41 @@ HRESULT CEffectPool::Initialize(void* pArg) return E_FAIL; } - if (FAILED(Ready_Effect())) { - return E_FAIL; +#ifdef _DEBUG + +#ifdef gimch + m_isActiveEffectCreate = false; + m_isActiveMonsterEffectCreate = false; +#endif // gimch +#ifdef Bin + m_isActiveEffectCreate = false; + m_isActiveMonsterEffectCreate = false; +#endif // +#ifdef 진우 + m_isActiveEffectCreate = true; + m_isActiveMonsterEffectCreate = true; +#endif // +#ifdef 기무리 + m_isActiveEffectCreate = false; + m_isActiveMonsterEffectCreate = false; +#endif // +#ifdef 인혁 + m_isActiveEffectCreate = false; + m_isActiveMonsterEffectCreate = false; +#endif // + +#endif + + if (m_isActiveEffectCreate) + { + if (FAILED(Ready_Effect())) + return E_FAIL; } - if (FAILED(Ready_MonsterEffect())) { - return E_FAIL; + if (m_isActiveMonsterEffectCreate) + { + if (FAILED(Ready_MonsterEffect())) + return E_FAIL; } @@ -264,6 +296,36 @@ HRESULT CEffectPool::Ready_Effect() return pEffect; } ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::BOX_SPLESH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CBox_Splesh* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + + if (FAILED(Create_Effect(SKILL_TYPE::CHAIL_SPLESH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CChair_Splesh* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + + if (FAILED(Create_Effect(SKILL_TYPE::BARRAL_SPLASH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CBarral_Splesh* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + #endif // !기무리 return S_OK; diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp index b73fdee66..a8a9027b5 100644 --- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp +++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp @@ -340,6 +340,7 @@ void CInfoInstance::Release_Information() DestroyInstance(); + SAFE_RELEASE(m_pMapInfo); SAFE_RELEASE(m_pPlayerInfo); SAFE_RELEASE(m_pMonsterInfo); diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 34621e2e4..a2e75d134 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -39,6 +39,12 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) if (FAILED(Ready_Lights())) { return E_FAIL; } + + //플레이어 , 맵 보다 먼저 생성해야함 ! + if (FAILED(Reday_Layer_EffectPool())) { + return E_FAIL; + } + if (FAILED(Ready_Background())) { return E_FAIL; } @@ -48,10 +54,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) if (FAILED(Ready_Layer_UI(LAYER_UI))) { return E_FAIL; } - //플레이어보다 먼저 생성해야함! - if (FAILED(Reday_Layer_EffectPool())) { - return E_FAIL; - } + // 이것도 플레이어보다 먼저 생성해야함! if (FAILED(Ready_Layer_Item(LAYER_ITEM))) { return E_FAIL; @@ -237,7 +240,7 @@ HRESULT CLevel_GamePlay::Ready_Background() isReady_Background = false; #endif // #ifdef 진우 - isReady_Background = false; + isReady_Background = true; #endif // #ifdef 기무리 isReady_Background = true; @@ -256,14 +259,14 @@ HRESULT CLevel_GamePlay::Ready_Background() else { /* 전체 맵 */ - CInfoInstance::GetInstance()->Load_MapObjects("Hogsmeade_MapContainer_Data"); + //CInfoInstance::GetInstance()->Load_MapObjects("Hogsmeade_MapContainer_Data"); /* 물 오브젝트 */ if (FAILED(CInfoInstance::GetInstance()->Load_WaterElemet("Element_Water_Info"))) return E_FAIL; /* 조명 오브젝트 */ - CInfoInstance::GetInstance()->Load_LightElements("LightElement"); + /*CInfoInstance::GetInstance()->Load_LightElements("LightElement");*/ /* 상호작용 오브젝트 */ CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_Barrel"); diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 1844554a9..194467cf2 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -142,6 +142,9 @@ #include "MageSide.h" #include "StunEffect.h" +#include "Box_Splesh.h" +#include "Chair_Splesh.h" +#include "Barral_Splesh.h" #pragma endregion @@ -310,7 +313,7 @@ HRESULT CLoader::Loading_For_GamePlay() isLoad_Background = false; #endif // #ifdef 진우 - isLoad_Background = false; + isLoad_Background = true; #endif // #ifdef 기무리 isLoad_Background = true; @@ -1566,6 +1569,17 @@ HRESULT CLoader::Loading_For_GamePlay() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CBox_Splesh::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CBarral_Splesh::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CChair_Splesh::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CWandEnd::Create(m_pDevice, m_pContext)))) { return E_FAIL; @@ -1578,6 +1592,17 @@ HRESULT CLoader::Loading_For_GamePlay() m_strMessage = TEXT("Model Loading.."); + + Asset_FileLoad("../Bin/Resources/Models/Effect/Box", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) { + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName, + CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0)))) + return E_FAIL; + + return S_OK; + + }); + Asset_FileLoad("../Bin/Resources/Models/Effect/ParticleMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) { if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName, diff --git a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp index 81f4b8394..ed83b7082 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp @@ -3,6 +3,8 @@ #include "InfoInstance.h" #include "GameInstance.h" +#include "EffectPool.h" +#include "Layer.h" CMapElement_Interactable::CMapElement_Interactable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CMapElement{ pDevice, pContext } @@ -32,6 +34,25 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg) //m_ModelPathIndices.push_back((*pDesc->pModelPathIndices)[i]); } + if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo") + { + m_eInteractableID = ELEMENT_INTERACTABLE_ID::BARREL; + } + + else if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_HM_OwlPost_Package_B") + { + m_eInteractableID = ELEMENT_INTERACTABLE_ID::BOX; + } + else if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_HM_TeaShop_Table_B") + { + m_eInteractableID = ELEMENT_INTERACTABLE_ID::TABLE; + } + else if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_HM_TeaShop_Chair_B") + { + m_eInteractableID = ELEMENT_INTERACTABLE_ID::TABLE; + } + + if (FAILED(__super::Initialize(pArg))) return E_FAIL; @@ -59,19 +80,43 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg) m_pInfoInstance->Regist_ActiveInteractive(this); + + m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); + SAFE_ADDREF(m_pEffectPool); + return S_OK; } void CMapElement_Interactable::Priority_Update(_float fTimeDelta) { + _float fRadius = m_pModelComs[0]->Get_Radius(); + + XMStoreFloat4(&m_vStartPos, Get_WorldPostion() + XMVectorSet(0.f , fRadius , 0.f , 0.f )); + } void CMapElement_Interactable::Update(_float fTimeDelta) { + } void CMapElement_Interactable::Late_Update(_float fTimeDelta) { + + if (m_isGraped == true) + { + _float fRadius = m_pModelComs[0]->Get_Radius(); + + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = Get_WorldPostion() + XMVectorSet(0.f, fRadius, 0.f, 0.f); + ON_COLLISION_INFO CollisionInfo = CollisionCheck(vStartPos, vEndPos, 1.f); + + if (m_bHit == true) + OnCollision(this, &CollisionInfo); + } + } + if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pModelComs[0]->Get_Radius())) { m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); } @@ -119,8 +164,46 @@ void CMapElement_Interactable::GrapToPlayer(_fvector vPos, _float fRatio) { _vector vCurrentPosition = m_pTransformCom->Get_State(STATE::POSITION); m_pTransformCom->Set_State(STATE::POSITION, XMVectorLerp(vCurrentPosition, vPos, fRatio)); + + m_isGraped = true; + } +void CMapElement_Interactable::OnCollision(CGameObject* pOther, void* pDesc) +{ + if (m_bHit == false) + return; + + ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); + + _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + + switch (m_eInteractableID) + { + case Client::ELEMENT_INTERACTABLE_ID::BARREL: + + m_pEffectPool->Use_Skill(SKILL_TYPE::BARRAL_SPLASH, this); + break; + case Client::ELEMENT_INTERACTABLE_ID::BOX: + + m_pEffectPool->Use_Skill(SKILL_TYPE::BOX_SPLESH, this); + break; + case Client::ELEMENT_INTERACTABLE_ID::TABLE: + m_pEffectPool->Use_Skill(SKILL_TYPE::CHAIL_SPLESH, this); + break; + case Client::ELEMENT_INTERACTABLE_ID::END: + break; + default: + break; + } + + + + Set_Dead(); +} + + + HRESULT CMapElement_Interactable::Ready_Components(void* pArg) { if (FAILED(__super::Ready_Components(pArg))) { @@ -241,6 +324,121 @@ void CMapElement_Interactable::Set_KinematicFlag(_bool bFlag) m_pRigidBody->Set_Kinematic(bFlag); } +ON_COLLISION_INFO CMapElement_Interactable::CollisionCheck(_fvector StartPos, _fvector EndPos, _float fRadius) +{ + + _vector vStartPos = StartPos; + _vector vEndPos = EndPos; + _vector vDir = { vEndPos - vStartPos }; + + _float fDistance = XMVectorGetX(XMVector3Length(vEndPos - vStartPos)); + + PSX::PxSweepBuffer 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; + ON_COLLISION_INFO tagCollInfo = {}; + + 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) + { + PhsXUserData* pUserData = static_cast(pActor->userData); + tagCollInfo.pObject = pUserData->pOwner; + + switch (pUserData->eKind) + { + case PHYSX_KIND::CCTActor: + { + switch (PXOBJECT(pUserData->iSubKind)) + { + case PXOBJECT::MONSTER: + 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::TROLL: + { + 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) + { + PhsXUserData* pUserData = static_cast(pActor->userData); + tagCollInfo.pObject = pUserData->pOwner; + + switch (PXOBJECT(pUserData->iSubKind)) + { + case PXOBJECT::TERRAIN: + { + /* TODO, 터레인 안됨 */ + m_bHit = true; + break; + } + } + + } + } + + + } + + return tagCollInfo; +} + CMapElement_Interactable* CMapElement_Interactable::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CMapElement_Interactable* pInstance = new CMapElement_Interactable(pDevice, pContext); @@ -276,6 +474,7 @@ void CMapElement_Interactable::Free() SAFE_RELEASE(m_pRigidBody); SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pEffectPool); if (nullptr != m_pInfoInstance) { CInfoInstance* pInfo = m_pInfoInstance; @@ -285,6 +484,8 @@ void CMapElement_Interactable::Free() for (auto& pModel : m_pModelComs){ SAFE_RELEASE(pModel); } + + } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/StunEffect.cpp b/Jusin154_Team3D/Client/Private/StunEffect.cpp index 939c7915a..5db5fb195 100644 --- a/Jusin154_Team3D/Client/Private/StunEffect.cpp +++ b/Jusin154_Team3D/Client/Private/StunEffect.cpp @@ -78,9 +78,9 @@ void CStunEffect::Update(_float fTimeDelta) BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]); } - m_pStunEffect->Get_Component()->Set_WorldMatrix(BoneMat * m_pOwner->Get_Component()->Get_XMWorldMatrix()); + BoneMat *= m_pOwner->Get_Component()->Get_XMWorldMatrix(); - m_pStunEffect->Get_Component()->Rotation(XMVectorSet(0.f, 0.f, XMConvertToRadians(180.f), 0.f)); + m_pStunEffect->Get_Component()->Set_State(STATE::POSITION, BoneMat.r[3]); } @@ -109,10 +109,11 @@ HRESULT CStunEffect::Pre_Setting(CGameObject* pObject, void* pArg) for (int i = 0; i < 3; ++i) { BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]); } + BoneMat *= m_pOwner->Get_Component()->Get_XMWorldMatrix(); + + m_pStunEffect->Get_Component()->Set_State(STATE::POSITION, BoneMat.r[3]); - m_pStunEffect->Get_Component()->Set_WorldMatrix(BoneMat * m_pOwner->Get_Component()->Get_XMWorldMatrix()); - m_pStunEffect->Get_Component()->Rotation(XMVectorSet(0.f, 0.f , 90.f, 0.f)); m_pStunEffect->Set_Visible(true); diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp index 88ac5deff..fa1f8594a 100644 --- a/Jusin154_Team3D/Client/Private/Troll.cpp +++ b/Jusin154_Team3D/Client/Private/Troll.cpp @@ -11,6 +11,7 @@ #include "EffectPool.h" #include "Layer.h" #include "TrailObject.h" +#include "MapElement_Interactable.h" #pragma region STATE #include "State_Idle.h" @@ -281,25 +282,39 @@ void CTroll::OnCollision(CGameObject* pOther, void* pDesc) { ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); - _uint iSkillType = dynamic_cast(pOther)->Get_SkillType(); - switch (iSkillType) + CEffect_Container* pEffect = dynamic_cast(pOther); + + if (pEffect != nullptr) { - case ENUM_CLASS(SKILL_TYPE::DESCENDO): - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO); - break; - case ENUM_CLASS(SKILL_TYPE::BOMBARDA): - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO); - break; - case ENUM_CLASS(SKILL_TYPE::FLIPENDO): - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::FLIPENDO); - break; - case ENUM_CLASS(SKILL_TYPE::JAP): - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP); - break; - default: - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); - break; + _uint iSkillType = dynamic_cast(pOther)->Get_SkillType(); + + switch (iSkillType) + { + case ENUM_CLASS(SKILL_TYPE::DESCENDO): + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO); + break; + case ENUM_CLASS(SKILL_TYPE::BOMBARDA): + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO); + break; + case ENUM_CLASS(SKILL_TYPE::FLIPENDO): + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::FLIPENDO); + break; + case ENUM_CLASS(SKILL_TYPE::JAP): + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP); + break; + default: + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); + break; + } } + + CMapElement_Interactable* pProps = dynamic_cast(pOther); + + if (pProps != nullptr) + { + m_eHitSpell = STATEANIM::KNOCKDOWN_FWD; + } + m_pFSM->Change_State(FSMSTATE::HIT); } diff --git a/Jusin154_Team3D/Client/Public/Barral_Splesh.h b/Jusin154_Team3D/Client/Public/Barral_Splesh.h new file mode 100644 index 000000000..5967b2a22 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Barral_Splesh.h @@ -0,0 +1,42 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CBarral_Splesh final : public CEffect_Container +{ +private: + CBarral_Splesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CBarral_Splesh(const CBarral_Splesh& rhs); + virtual ~CBarral_Splesh() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; +public: + static CBarral_Splesh* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Box_Splesh.h b/Jusin154_Team3D/Client/Public/Box_Splesh.h new file mode 100644 index 000000000..d165b109f --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Box_Splesh.h @@ -0,0 +1,42 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CBox_Splesh final : public CEffect_Container +{ +private: + CBox_Splesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CBox_Splesh(const CBox_Splesh& rhs); + virtual ~CBox_Splesh() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; +public: + static CBox_Splesh* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Chair_Splesh.h b/Jusin154_Team3D/Client/Public/Chair_Splesh.h new file mode 100644 index 000000000..23793a329 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Chair_Splesh.h @@ -0,0 +1,42 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CChair_Splesh final : public CEffect_Container +{ +private: + CChair_Splesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CChair_Splesh(const CChair_Splesh& rhs); + virtual ~CChair_Splesh() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; +public: + static CChair_Splesh* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index 77921120c..0d6ed3be7 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -31,6 +31,9 @@ namespace Client JAP, REVELIO, PROTEGO, STUPEFY, // 검은색 ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS, + /* PROPS */ + + BOX_SPLESH, CHAIL_SPLESH , BARRAL_SPLASH, /*상태 이펙트*/ STUN, diff --git a/Jusin154_Team3D/Client/Public/EffectPool.h b/Jusin154_Team3D/Client/Public/EffectPool.h index a1d0a1810..4bfbb7939 100644 --- a/Jusin154_Team3D/Client/Public/EffectPool.h +++ b/Jusin154_Team3D/Client/Public/EffectPool.h @@ -35,6 +35,9 @@ class CEffectPool final : public CGameObject HRESULT Bind_ShaderResources(); HRESULT Ready_Effect(); HRESULT Ready_MonsterEffect(); +private: + _bool m_isActiveEffectCreate = { true }; + _bool m_isActiveMonsterEffectCreate = { true }; public: static CEffectPool* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override; diff --git a/Jusin154_Team3D/Client/Public/MapElement_Interactable.h b/Jusin154_Team3D/Client/Public/MapElement_Interactable.h index 57aeb7647..e49c56fdd 100644 --- a/Jusin154_Team3D/Client/Public/MapElement_Interactable.h +++ b/Jusin154_Team3D/Client/Public/MapElement_Interactable.h @@ -27,11 +27,14 @@ class CMapElement_Interactable final : public CMapElement virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; virtual void GrapToPlayer(_fvector vPos, _float fRatio); + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; + ON_COLLISION_INFO CollisionCheck(_fvector StartPos, _fvector EndPos, _float fRadius); _vector Get_LockOnPos(); virtual void Set_DrawOutLine(); virtual HRESULT Render_OutLine() override; void Set_KinematicFlag(_bool bFlag); + private: ELEMENT_INTERACTABLE_ID m_eInteractableID = { ELEMENT_INTERACTABLE_ID::END }; class CInfoInstance* m_pInfoInstance = { nullptr }; @@ -44,7 +47,11 @@ class CMapElement_Interactable final : public CMapElement _float m_fOutLineScale = { 1.f }; _float m_fOutLinePower = { 1.f }; - + /* 충돌을 위한 변수*/ + _bool m_isGraped = { false }; + _bool m_bHit = { false }; + _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; + class CEffectPool* m_pEffectPool = { nullptr }; private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin index f863cf149..0606920d9 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:aaa06e374bcfc56f65154e4d2293463f823d5c74cc61a5c49c69a5ba55e0eeac +oid sha256:7b3118db9e9d4ebfdcd7083d8f2c7c08cee6684a4439d16cd841872e2b57b451 size 1124 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_0.bin index af1a3ce5e..ed93caf83 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e7be6c40fc89bd24a6e52b241c38060de62459db7b2ca5c9a73a3796f93ab4b6 +oid sha256:b3b6e27206610e5450a74d0ed62f3f57ba400a94f4d0c758bc67937a4d004d5b size 1086 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_1.bin index defad9844..b83b60dab 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9637ca3adc6bfb8e08c16d2aa301210d56e16746d3edcf64a601a86e4ba843f0 -size 1086 +oid sha256:c1b74e6239d4a668c7ad9f05cafde30c1c21431d731cf2e3d4a3a94d0badfbb1 +size 1097 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin index 38cf0f270..a80b6bb9e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:193806a665e16659703332985e175a4cc91701b0b6852577d51fc58b85ae49d1 -size 1078 +oid sha256:c783b881079bf3de9e100abcb7da14b73e154e927ef0f1843d9682921168fb3f +size 1097 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_3.bin index 60ff9cd2c..697d98fff 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_3.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_3.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c1ddb59edb9de096b776a19ed62ce291c1453eab460e7c34efc15696e7971677 -size 1078 +oid sha256:46e5fb3f58e6d0dda73d4119663c64f272d9f73c4b45fc54b92d137fa3d81b09 +size 1097 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/DownAttack/Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/DownAttack/Smoke.bin index f612221e7..0bf9b1c3c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/DownAttack/Smoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/DownAttack/Smoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:38dfe38192e97262014ae4fc5d6d10b2857fc9ead329f58628f083aa66d4b3f5 +oid sha256:55ccf041f8dc3d2e49cef79d73d6581fa70bfad63a30b0538db49699e8b52ec5 size 1074 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Barral.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Barral.bin new file mode 100644 index 000000000..ef712a578 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Barral.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5767731381ad50116d99f4f008e68e84e74638a12388e1fd9d44d6fc622a9dc7 +size 280 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Box.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Box.bin new file mode 100644 index 000000000..ee6a75408 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Box.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:492af061d7ed1f14189c8db77d8e59a1bc29328343e371c5057247b8e421612b +size 128 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Chair.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Chair.bin new file mode 100644 index 000000000..2673ce8c9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Chair.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3da562a51b459f78fa4688604cadb4da883e67ba63f06f017621785b33029560 +size 264 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Water_Splesh.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Water_Splesh.bin new file mode 100644 index 000000000..432959f04 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Water_Splesh.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d3366352d4a4a8d7c86f5658141461d32bf37251f3cd9e8e53b5bda2e70ae66 +size 1095 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT0.bin new file mode 100644 index 000000000..7723fa872 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:beb9cd0d559583255a806e4f300e8b7d4f7ceea2ecb4a17f0448dc20fef430bd +size 1042 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT1.bin new file mode 100644 index 000000000..9fe4db8b4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4fcc45ca864a35e1b0a75cf725cc0ddf2124914499f774f7770b5aa0bb46671a +size 1042 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT2.bin new file mode 100644 index 000000000..66e23aa27 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT2.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d1543e3630c63d41d7591360f048acca63416741f452971b5dd30065299c976 +size 1089 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Box/Paper.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Box/Paper.bin new file mode 100644 index 000000000..28b637cdf --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Box/Paper.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3985d2f4b1eb8d28092685036737ce99a1e17cbed155a103dffd583fd5c5f898 +size 1038 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Box/Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Box/Smoke.bin new file mode 100644 index 000000000..4c0ea1407 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Box/Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:697b94a630f4f0257c7d0b1ae6f2cca2175d2d801ee057c1d333ca3ffe976cab +size 1081 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Hit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Hit.bin new file mode 100644 index 000000000..c831bed53 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Hit.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:040953416567d0a143c21bf3fb1940de36e8f5c24a92f2ce290c094b38d09ae8 +size 1119 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Smoke.bin new file mode 100644 index 000000000..7826b1628 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6a55bca6de65814691c12c333fda2053e8226a58281fcec461e37b29df3732b +size 1085 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Wood_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Wood_PT0.bin new file mode 100644 index 000000000..561296e55 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Wood_PT0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:988bc29f07aa84a7a7d571269525e92637e8c159b9845c814ecae69f4a2fe95c +size 1049 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Wood_PT1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Wood_PT1.bin new file mode 100644 index 000000000..541352135 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Wood_PT1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e13e86ef501990dbf9f15e8ebb9d208a850c3a77be91ac93a36a2b9d5b417e5 +size 1055 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stun/StunEffect.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stun/StunEffect.bin index 9a1cd7e9d..646a8e273 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stun/StunEffect.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stun/StunEffect.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:65288cca05e14c1a1ecb287e36d2ce2ffd8b427f6217cd557df931fabb117a20 +oid sha256:97e343fdb35dbe4e21e8d7e431a8253f97678c8b5d9240d6b6cdb5e596e86ab4 size 1090 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_25.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_25.bin index caddd023c..c4014359d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_25.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_25.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f693501254f7fcb522d8b879ca9a02d2f69374ca18c762b8b9b4fb21cfba2acb +oid sha256:e9c6a94510ca1d5fcfd175009c2cb1a7c28f5d052fa8d5051e7f09a39065ae72 size 1031 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_0.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_0.001.bin new file mode 100644 index 000000000..297db8306 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_0.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:acd09e78e963697a3d419a55bf7864baf9a9914227dedf6e553c7bc19d731904 +size 31818 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_0.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_0.001.fbx new file mode 100644 index 000000000..bff9d909e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_0.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e968b012ccd725f3cae2ce2c0c55aa19de32fe016eac2a327c4926eb6fff4fb +size 26428 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_0.pskx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_0.pskx deleted file mode 100644 index 16cd2bb09..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_0.pskx and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_1.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_1.001.bin new file mode 100644 index 000000000..92da9ab42 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_1.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:920201f56b90e3508b6a84f6361f38a0551c48396aaa8c9ec89138c12cffa492 +size 26990 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_1.001.fbx new file mode 100644 index 000000000..92d882b26 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_1.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd834974a2d22a6e535a2acaa9c9f5106bff315f489a317cdd36bbbf3cd1c78d +size 25020 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_1.pskx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_1.pskx deleted file mode 100644 index f608109ba..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_1.pskx and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_2.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_2.001.bin new file mode 100644 index 000000000..820e5d5b9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_2.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aeb55cd03d8053dbd2146f19b0dfffdf78cbe38076b4a81fc1b030ef357afa57 +size 29326 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_2.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_2.001.fbx new file mode 100644 index 000000000..3b4058bb8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_2.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72c9298a654da937a32992f39747d59afe77816fb128920406d532c4c4b59b7c +size 25708 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_2.pskx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_2.pskx deleted file mode 100644 index 236042c61..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_2.pskx and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_3.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_3.001.bin new file mode 100644 index 000000000..d2f1dd421 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_3.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98cc4f3fdc0ca1c64492730d10423e6d7039086c30f5374b5e11d3c5d294b87f +size 22578 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_3.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_3.001.fbx new file mode 100644 index 000000000..15bf65815 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_3.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7130ae98175d4f8b4619f929cfe0716cdd1f82f5af7c496d73a12e8b606b3a57 +size 23052 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_3.pskx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_3.pskx deleted file mode 100644 index 6e43f57a7..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_3.pskx and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_0.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_0.001.bin new file mode 100644 index 000000000..83c7baec9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_0.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72fa107b0129322d7c9f07dd8c32f344dd3425c34514a15d5b823ae58cbebb8c +size 27502 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_0.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_0.001.fbx new file mode 100644 index 000000000..960e5d96b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_0.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50477d4ecbe4287736969767ade5a0f91c3d3afd04b792967e739ba998769b13 +size 25020 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_0.pskx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_0.pskx deleted file mode 100644 index 40cd09b35..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_0.pskx and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_1.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_1.001.bin new file mode 100644 index 000000000..ab01ed1fb --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_1.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fceb6456ccaf6c3f1b0e6ef3df084bdcb7222784a02763ddf24c8a27d5f833fb +size 40970 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_1.001.fbx new file mode 100644 index 000000000..9707ee8ae --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_1.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4dbe2bb7ee77dc664f71460505af675639f2a41a36730d3b6adbb59dc27d3097 +size 29276 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_1.pskx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_1.pskx deleted file mode 100644 index e80f1a5f2..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_1.pskx and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_2.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_2.001.bin new file mode 100644 index 000000000..571f4de31 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_2.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac74420ec141343a2309a52594a3bfe023e24fdda52dadb3fcc558c18d4c0c77 +size 17786 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_2.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_2.001.fbx new file mode 100644 index 000000000..aebb5a667 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_2.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69ad762ab872b3f02856385448bec7f29ad5ba31ff03da74d55ee3af4ae70e64 +size 21852 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_2.pskx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_2.pskx deleted file mode 100644 index 69a889ba9..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Large_2.pskx and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Small_0.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Small_0.001.bin new file mode 100644 index 000000000..e8e290e11 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Small_0.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f26fdf66511e1951556ec7a11fb56dc675d9a159e2ca5000c0da5ee496d2a238 +size 32014 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Small_0.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Small_0.001.fbx new file mode 100644 index 000000000..31ef03f67 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Small_0.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:313502f9bead431c62e5c135cbe6237461698fb4287b34fb13eada6e2cc2a0a5 +size 26092 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Small_0.pskx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Small_0.pskx deleted file mode 100644 index a843b7846..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Box/SM_Wood_Fracture_Small_0.pskx and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl index 2ed787044..bc9f9e91d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl @@ -46,10 +46,12 @@ struct ParticleValue bool isCompareStop; float fCollisionTime; - float fDropAttenuation; + float fDropAttenuation; float3 vVelocity; float fAcceleration; + + bool isStop; }; @@ -82,7 +84,7 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐 bool isMoveUp; bool isExcludePos; - bool isPadding1; + bool isStopMove_For_Depth_Compare; bool isPadding2; float fTimeDelta; @@ -108,8 +110,6 @@ void CS_MAIN( { int iIndex = DispatchThreadID.x; // 배열 인덱스 - - Particle particle = g_ParticleBufferInput[iIndex]; ParticleValue particleValue = g_ParticleValueBufferInput[iIndex]; @@ -152,7 +152,7 @@ void CS_MAIN( /* 내 z가 가려지는 상황이었다면 연산하지않음*/ - if (particle.vLifeTime.x >= particle.vLifeTime.y) + if (particle.vLifeTime.x >= particle.vLifeTime.y || particleValue.isStop == true) { particleValue.isCompareStop = false; @@ -165,6 +165,7 @@ void CS_MAIN( return ; } + //초기화 particle.vRight = particleValue.vOriginRight; particle.vUp = particleValue.vOriginUp; @@ -173,6 +174,7 @@ void CS_MAIN( particle.vLifeTime.x = 0.f; particleValue.vDelay.x = 0.f; + particleValue.isStop = false; if (isRandomAniIndex == false) particleValue.vAniIndex.x = 0.f; @@ -307,10 +309,15 @@ void CS_MAIN( if (isTurn == true) { + float fRotationSpeed = 1.f; + + if (particleValue.fRotaionSpeed > FLT_EPSILON5) + fRotationSpeed = particleValue.fRotaionSpeed; + /* ROTATE */ - float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta); - float4x4 RotateYMat = RotateY(particleValue.vDeltaAngle.y * fTimeDelta); - float4x4 RotateZMat = RotateZ(particleValue.vDeltaAngle.z * fTimeDelta); + float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta * fRotationSpeed); + float4x4 RotateYMat = RotateY(particleValue.vDeltaAngle.y * fTimeDelta * fRotationSpeed); + float4x4 RotateZMat = RotateZ(particleValue.vDeltaAngle.z * fTimeDelta * fRotationSpeed); float4x4 CombinedRotMat = mul(RotateZMat, mul(RotateYMat, RotateXMat)); @@ -329,9 +336,14 @@ void CS_MAIN( if (isAxisTurn) { - float4x4 RotateAxisRightMat = RotateAxis(particle.vRight, particleValue.vDeltaAxisAngle.x * fTimeDelta); - float4x4 RotateAxisUpMat = RotateAxis(particle.vUp, particleValue.vDeltaAxisAngle.y * fTimeDelta); - float4x4 RotateAxisLookMat = RotateAxis(particle.vLook, particleValue.vDeltaAxisAngle.z * fTimeDelta); + float fRotationSpeed = 1.f; + + if (particleValue.fRotaionSpeed > FLT_EPSILON5) + fRotationSpeed = particleValue.fRotaionSpeed; + + float4x4 RotateAxisRightMat = RotateAxis(particle.vRight, particleValue.vDeltaAxisAngle.x * fRotationSpeed * fTimeDelta); + float4x4 RotateAxisUpMat = RotateAxis(particle.vUp, particleValue.vDeltaAxisAngle.y * fRotationSpeed * fTimeDelta); + float4x4 RotateAxisLookMat = RotateAxis(particle.vLook, particleValue.vDeltaAxisAngle.z * fRotationSpeed * fTimeDelta); float4x4 CombinedRotMat = mul(RotateAxisLookMat, mul(RotateAxisUpMat, RotateAxisRightMat)); @@ -382,15 +394,22 @@ void CS_MAIN( particleValue.isCompareStop = true; // 내가 지면에 사라지는 순간 particleValue.fCollisionTime = particle.vLifeTime.x; + if (isStopMove_For_Depth_Compare == true) + { + particleValue.isStop = true; + particle.vTranslation.y += 0.2f; + + } + + } } - if (particleValue.isCompareStop == true) // 지면에 부딪혔을 때 + if (particleValue.isCompareStop == true && isStopMove_For_Depth_Compare == false) // 지면에 부딪혔을 때 { particle.vTranslation.y = fOnlyDropY; // 지면에 부딪혓을때 이제 y연산은 오직 drop으로만 수행함 } - } /*가속력*/ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl index 0df171305..867a0672e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl @@ -15,30 +15,33 @@ struct ParticleValue float2 vDiffuseUVMoveTime; float2 vDistortionUVMoveTime; float2 vNoiseUVMoveTime; - float2 vAniTime; float2 vDissolveUVMoveTime; + float2 vAniTime; + float2 vAniIndex; - float fGravity; + float fGravity; float3 vSinAmount; float3 vDeltaAngle; float3 vDeltaAxisAngle; - float fDrag; + float fDrag; float3 vPivot; - float fSizeDrag; + float fSizeDrag; float3 vDeltaSize; float2 vDelay; - bool isCompareStop; + + bool isCompareStop; float fCollisionTime; float fDropAttenuation; float3 vVelocity; - float fAcceleration; + float fAcceleration; + bool isStop; }; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Diffuse/T_FX_Tilable_Wood_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Diffuse/T_FX_Tilable_Wood_D.png new file mode 100644 index 000000000..98b292a8b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Diffuse/T_FX_Tilable_Wood_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Feathers_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Feathers_D.png new file mode 100644 index 000000000..82549b2e5 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Feathers_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlyingPaper_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlyingPaper_D.png new file mode 100644 index 000000000..db7254057 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlyingPaper_D.png differ diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj index 8981c3340..fcd2e5d01 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj @@ -191,6 +191,7 @@ call Update_Shaders.bat + @@ -394,6 +395,7 @@ call Update_Shaders.bat + diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index b35a3774d..8f8abc4f4 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -562,6 +562,9 @@ {49575102-9b08-494e-bf3f-bdc98774913e} + + {d276d751-77aa-423e-9499-c63875e36266} + {81c6b163-6c8b-47ac-a4b6-e86088ce709f} @@ -1125,6 +1128,9 @@ 50.UI\GamePlay_Canvas\Enemy_Panel\Boss_HpBar + + 02.GameObjects\Layer_Effect\Effect\State_Effect + 50.UI\GamePlay_Canvas\Enemy_Panel\Enemy_Detection @@ -1690,6 +1696,9 @@ 50.UI\GamePlay_Canvas\Enemy_Panel\Boss_HpBar + + 02.GameObjects\Layer_Effect\Effect\State_Effect + 50.UI\GamePlay_Canvas\Enemy_Panel\Enemy_Detection diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp index 4bbe549e5..b613f74d9 100644 --- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp @@ -19,6 +19,7 @@ #include "Troll_Rush_Hit.h" #include "Troll_Nomal_Smoke.h" #include "TrollSwing.h" +#include "StunEffect.h" CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CGameObject(pDevice, pContext) @@ -44,11 +45,38 @@ HRESULT CEffectPool::Initialize(void* pArg) if (FAILED(Ready_Components())) return E_FAIL; - if (FAILED(Ready_Effect())) - return E_FAIL; +#ifdef gimch + m_isActiveEffectCreate = false; + m_isActiveMonsterEffectCreate = false; +#endif // gimch +#ifdef Bin + m_isActiveEffectCreate = false; + m_isActiveMonsterEffectCreate = false; +#endif // +#ifdef 진우 + m_isActiveEffectCreate = false; + m_isActiveMonsterEffectCreate = false; +#endif // +#ifdef 기무리 + m_isActiveEffectCreate = false; + m_isActiveMonsterEffectCreate = false; +#endif // +#ifdef 인혁 + m_isActiveEffectCreate = false; + m_isActiveMonsterEffectCreate = false; +#endif // - //if (FAILED(Ready_MonsterEffect())) - // return E_FAIL; + if (m_isActiveEffectCreate) + { + if (FAILED(Ready_Effect())) + return E_FAIL; + } + + if (m_isActiveMonsterEffectCreate) + { + if (FAILED(Ready_MonsterEffect())) + return E_FAIL; + } return S_OK; } @@ -253,6 +281,16 @@ HRESULT CEffectPool::Ready_MonsterEffect() return pEffect; } ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::STUN, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CStunEffect* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + return S_OK; } @@ -377,6 +415,7 @@ void CEffectPool::Free() void CEffectPool::Describe_Entity() { + if(GUI::Button("Reset Pool")) { Reset_Pool(); diff --git a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp index 3fd4ebcfc..a71a30515 100644 --- a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp +++ b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp @@ -108,12 +108,6 @@ void CEffect_Editor::Update(_float fTimeDelta) /* 이펙트 컨테이너 업데이트 */ //Update_Event(fTimeDelta); - - - - - - } void CEffect_Editor::Late_Update(_float fTimeDelta) diff --git a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp index 9fd2eb7b0..21bb176e2 100644 --- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp @@ -53,6 +53,8 @@ HRESULT CLevel_EffectViewer::Initialize() 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))) diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 3b3d8a246..45c073842 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -156,6 +156,7 @@ #include "Goblin_Dagger.h" #include "Goblin_BattleAxe.h" #include "Goblin_Spector.h" +#include "StunEffect.h" #pragma endregion #pragma region PHYSX_HEADER @@ -1274,6 +1275,16 @@ HRESULT CLoader::Loading_For_Effect() return E_FAIL; + Asset_FileLoad("../Bin/Resources/Models/Effect/Box", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) { + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName, + CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0)))) + return E_FAIL; + + return S_OK; + + }); + Asset_FileLoad("../Bin/Resources/Models/Effect/Rock", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) { if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName, @@ -1474,6 +1485,9 @@ HRESULT CLoader::Loading_For_Effect() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll_Weapon::Create(m_pDevice, m_pContext)))) return E_FAIL; + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CStunEffect::Create(m_pDevice, m_pContext)))) + return E_FAIL; + /* For.Prototype_GameObject_DummySkyBox */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummySkyBox::Create(m_pDevice, m_pContext)))) diff --git a/Jusin154_Team3D/Editor/Private/StunEffect.cpp b/Jusin154_Team3D/Editor/Private/StunEffect.cpp new file mode 100644 index 000000000..e0127a2f3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/StunEffect.cpp @@ -0,0 +1,206 @@ +#include "pch.h" +#include "StunEffect.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Wand.h" +#include "Player.h" + +CStunEffect::CStunEffect(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CStunEffect::CStunEffect(const CStunEffect& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CStunEffect::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CStunEffect::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Stun"))) + return E_FAIL; + + + m_wstrEffectName = L"Stun"; + + + m_fDuration = 3.f; + + m_pStunEffect = Get_PartObject("StunEffect"); + SAFE_ADDREF(m_pStunEffect); + + + m_Events.emplace(3.f, [&]() { + + m_BoneMat = nullptr; + + }); + + return S_OK; +} + +void CStunEffect::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CStunEffect::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + if (m_BoneMat == nullptr) + return; + + _matrix BoneMat = XMLoadFloat4x4(m_BoneMat); + + for (int i = 0; i < 3; ++i) { + BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]); + } + + m_pStunEffect->Get_Component()->Set_WorldMatrix(BoneMat * m_pOwner->Get_Component()->Get_XMWorldMatrix()); + + //m_pStunEffect->Get_Component()->Rotation(XMVectorSet(0.f, 0.f, XMConvertToRadians(180.f), 0.f)); + +} + +void CStunEffect::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CStunEffect::Pre_Setting(CGameObject* pObject, void* pArg) +{ + + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + _string strBoneName = *static_cast<_string*>(pArg); + + m_BoneMat = m_pOwner->Get_Component()->Get_BoneMatrixPtr(strBoneName.c_str()) ; // 위치 넘기기 + + _matrix BoneMat = XMLoadFloat4x4(m_BoneMat); + + for (int i = 0; i < 3; ++i) { + BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]); + } + + m_pStunEffect->Get_Component()->Set_WorldMatrix(BoneMat * m_pOwner->Get_Component()->Get_XMWorldMatrix()); + + m_pStunEffect->Get_Component()->Rotation(XMVectorSet(0.f, 0.f , 90.f, 0.f)); + + m_pStunEffect->Set_Visible(true); + + + return S_OK; +} + +HRESULT CStunEffect::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CStunEffect::Ready_Child() +{ + return S_OK; +} + +CStunEffect* CStunEffect::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CStunEffect* pInstance = new CStunEffect(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CStunEffect"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CStunEffect::Clone(void* pArg, CGameObject* pOwner) +{ + CStunEffect* pInstance = new CStunEffect(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CStunEffect"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CStunEffect::OnCollision(CGameObject* pOther, void* pDesc) +{ + _int iIndex = CollisionCheck(); + + if (iIndex < 0) + return; + + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + + _vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f); + + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); + } + + +} + +void CStunEffect::Free() +{ + __super::Free(); + Safe_Release(m_pStunEffect); + +} +#ifdef _DEBUG +void CStunEffect::Describe_Entity() +{ + +} +#endif + +HRESULT CStunEffect::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Private/Troll.cpp b/Jusin154_Team3D/Editor/Private/Troll.cpp index bd86d3a2f..0365600e6 100644 --- a/Jusin154_Team3D/Editor/Private/Troll.cpp +++ b/Jusin154_Team3D/Editor/Private/Troll.cpp @@ -412,6 +412,15 @@ HRESULT CTroll::Ready_Parts() m_pWeaponTrail->Load_Trail("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Swing_Trail", static_cast(NEXT_LEVEL)); m_pWeaponTrail->Set_Visible(false); + + if (FAILED(Add_PartObject("Stun", NEXT_LEVEL, &m_pStunEffect, &PartsDesc))) + { + return E_FAIL; + } + + m_pStunEffect->Load("../Bin/Resources/Data/Effect/Stun/StunEffect", static_cast(NEXT_LEVEL)); + m_pStunEffect->FollowParants(m_pModelCom->Get_BoneMatrixPtr("HeadEnd")); + #pragma endregion return S_OK; @@ -489,6 +498,7 @@ void CTroll::Free() SAFE_RELEASE(m_pLeftTrail); SAFE_RELEASE(m_pRightTrail); SAFE_RELEASE(m_pWeaponTrail); + SAFE_RELEASE(m_pStunEffect); } #ifdef _DEBUG @@ -502,6 +512,23 @@ void CTroll::Describe_Entity() GUI::Text(strSocket.c_str()); + _uint iindex = {}; + + for (auto& pChild : m_PartObjects) + { + _string strName = to_string(iindex++) + pChild.first; + + if(GUI::TreeNode(strName.c_str())) + { + + pChild.second->Describe_Entity(); + + GUI::TreePop(); + } + + + } + m_pTransformCom->Describe_Entity(); } diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index f16d5917b..b1fadc67f 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -43,6 +43,7 @@ namespace Editor ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS, JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, + STUN, TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, END }; diff --git a/Jusin154_Team3D/Editor/Public/EffectPool.h b/Jusin154_Team3D/Editor/Public/EffectPool.h index fc1f618a8..70dc8795d 100644 --- a/Jusin154_Team3D/Editor/Public/EffectPool.h +++ b/Jusin154_Team3D/Editor/Public/EffectPool.h @@ -34,6 +34,9 @@ class CEffectPool final : public CGameObject private: list m_EffectList[ENUM_CLASS(SKILL_TYPE::END)] = {}; list m_ActiveEffectList = {}; + + _bool m_isActiveEffectCreate = {}; + _bool m_isActiveMonsterEffectCreate = {}; private: HRESULT Ready_Components(); HRESULT Bind_ShaderResources(); diff --git a/Jusin154_Team3D/Editor/Public/StunEffect.h b/Jusin154_Team3D/Editor/Public/StunEffect.h new file mode 100644 index 000000000..6986db219 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/StunEffect.h @@ -0,0 +1,44 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CStunEffect final : public CEffect_Container +{ +private: + CStunEffect(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CStunEffect(const CStunEffect& rhs); + virtual ~CStunEffect() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + class CEditEffect* m_pStunEffect = { nullptr }; + const _float4x4* m_BoneMat = { nullptr }; +public: + static CStunEffect* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Troll.h b/Jusin154_Team3D/Editor/Public/Troll.h index ceaa47aa8..09d182839 100644 --- a/Jusin154_Team3D/Editor/Public/Troll.h +++ b/Jusin154_Team3D/Editor/Public/Troll.h @@ -48,6 +48,8 @@ class CTroll final : public CMonster class CEditEffect* m_pTroll_Particle = { nullptr }; class CEditEffect* m_pTroll_Particle2 = { nullptr }; + class CEditEffect* m_pStunEffect = { nullptr }; + class CTrailObject* m_pLeftTrail = { nullptr }; class CTrailObject* m_pRightTrail = { nullptr }; class CTrailObject* m_pWeaponTrail = { nullptr }; diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl index 2ed787044..bc9f9e91d 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl @@ -46,10 +46,12 @@ struct ParticleValue bool isCompareStop; float fCollisionTime; - float fDropAttenuation; + float fDropAttenuation; float3 vVelocity; float fAcceleration; + + bool isStop; }; @@ -82,7 +84,7 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐 bool isMoveUp; bool isExcludePos; - bool isPadding1; + bool isStopMove_For_Depth_Compare; bool isPadding2; float fTimeDelta; @@ -108,8 +110,6 @@ void CS_MAIN( { int iIndex = DispatchThreadID.x; // 배열 인덱스 - - Particle particle = g_ParticleBufferInput[iIndex]; ParticleValue particleValue = g_ParticleValueBufferInput[iIndex]; @@ -152,7 +152,7 @@ void CS_MAIN( /* 내 z가 가려지는 상황이었다면 연산하지않음*/ - if (particle.vLifeTime.x >= particle.vLifeTime.y) + if (particle.vLifeTime.x >= particle.vLifeTime.y || particleValue.isStop == true) { particleValue.isCompareStop = false; @@ -165,6 +165,7 @@ void CS_MAIN( return ; } + //초기화 particle.vRight = particleValue.vOriginRight; particle.vUp = particleValue.vOriginUp; @@ -173,6 +174,7 @@ void CS_MAIN( particle.vLifeTime.x = 0.f; particleValue.vDelay.x = 0.f; + particleValue.isStop = false; if (isRandomAniIndex == false) particleValue.vAniIndex.x = 0.f; @@ -307,10 +309,15 @@ void CS_MAIN( if (isTurn == true) { + float fRotationSpeed = 1.f; + + if (particleValue.fRotaionSpeed > FLT_EPSILON5) + fRotationSpeed = particleValue.fRotaionSpeed; + /* ROTATE */ - float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta); - float4x4 RotateYMat = RotateY(particleValue.vDeltaAngle.y * fTimeDelta); - float4x4 RotateZMat = RotateZ(particleValue.vDeltaAngle.z * fTimeDelta); + float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta * fRotationSpeed); + float4x4 RotateYMat = RotateY(particleValue.vDeltaAngle.y * fTimeDelta * fRotationSpeed); + float4x4 RotateZMat = RotateZ(particleValue.vDeltaAngle.z * fTimeDelta * fRotationSpeed); float4x4 CombinedRotMat = mul(RotateZMat, mul(RotateYMat, RotateXMat)); @@ -329,9 +336,14 @@ void CS_MAIN( if (isAxisTurn) { - float4x4 RotateAxisRightMat = RotateAxis(particle.vRight, particleValue.vDeltaAxisAngle.x * fTimeDelta); - float4x4 RotateAxisUpMat = RotateAxis(particle.vUp, particleValue.vDeltaAxisAngle.y * fTimeDelta); - float4x4 RotateAxisLookMat = RotateAxis(particle.vLook, particleValue.vDeltaAxisAngle.z * fTimeDelta); + float fRotationSpeed = 1.f; + + if (particleValue.fRotaionSpeed > FLT_EPSILON5) + fRotationSpeed = particleValue.fRotaionSpeed; + + float4x4 RotateAxisRightMat = RotateAxis(particle.vRight, particleValue.vDeltaAxisAngle.x * fRotationSpeed * fTimeDelta); + float4x4 RotateAxisUpMat = RotateAxis(particle.vUp, particleValue.vDeltaAxisAngle.y * fRotationSpeed * fTimeDelta); + float4x4 RotateAxisLookMat = RotateAxis(particle.vLook, particleValue.vDeltaAxisAngle.z * fRotationSpeed * fTimeDelta); float4x4 CombinedRotMat = mul(RotateAxisLookMat, mul(RotateAxisUpMat, RotateAxisRightMat)); @@ -382,15 +394,22 @@ void CS_MAIN( particleValue.isCompareStop = true; // 내가 지면에 사라지는 순간 particleValue.fCollisionTime = particle.vLifeTime.x; + if (isStopMove_For_Depth_Compare == true) + { + particleValue.isStop = true; + particle.vTranslation.y += 0.2f; + + } + + } } - if (particleValue.isCompareStop == true) // 지면에 부딪혔을 때 + if (particleValue.isCompareStop == true && isStopMove_For_Depth_Compare == false) // 지면에 부딪혔을 때 { particle.vTranslation.y = fOnlyDropY; // 지면에 부딪혓을때 이제 y연산은 오직 drop으로만 수행함 } - } /*가속력*/ diff --git a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp index ce7a97c87..9cc90197e 100644 --- a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp @@ -546,7 +546,7 @@ void CInstance_Model::Compute_CS(_float fTimeDelta) pDesc->isDetphCompareStop = m_InstanceDesc.isDetphCompareStop; pDesc->isRandomAniIndex = m_InstanceDesc.isRandomAniIndex; pDesc->isExcludePos = m_InstanceDesc.isExcludePos; - + pDesc->isStop_Move_For_Depth_Compare = m_InstanceDesc.isStop_Move_For_Depth_Compare; pDesc->WorldMatrix = *m_pOwner->Get_Component()->Get_WorldMatrixPtr(); pDesc->fSizeLerpOption = m_InstanceDesc.fSizeLerpOption; @@ -722,7 +722,7 @@ void CInstance_Model::Instane_Buffer_ReStruct() pParticleValues[i].fCollisionTime = 0.f; pParticleValues[i].isCompareStop = false; - + pParticleValues[i].isStop = false; memcpy(&pParticleValues[i].vOriginRight, SRMatrix.m[0], sizeof(_float4)); memcpy(&pParticleValues[i].vOriginUp, SRMatrix.m[1], sizeof(_float4)); @@ -828,58 +828,6 @@ void CInstance_Model::Describe_Entity() Instane_Buffer_ReStruct(); } - if (GUI::Checkbox("Drop", &m_InstanceDesc.isDrop)) - { - Instane_Buffer_ReStruct(); - } - - if (GUI::Checkbox("Forward Move", &m_InstanceDesc.isMoveForward)) - { - Instane_Buffer_ReStruct(); - } - - if (GUI::Checkbox("Up Move", &m_InstanceDesc.isMoveUp)) - { - Instane_Buffer_ReStruct(); - } - - if (GUI::Checkbox("Right Move", &m_InstanceDesc.isMoveRight)) - { - Instane_Buffer_ReStruct(); - } - - - if (GUI::Checkbox("Sin Wave", &m_InstanceDesc.isSinWave)) - { - Instane_Buffer_ReStruct(); - } - - if (GUI::Checkbox("Turn", &m_InstanceDesc.isTurn)) - { - Instane_Buffer_ReStruct(); - } - - if (GUI::Checkbox("AxisTurn", &m_InstanceDesc.isAxisTurn)) - { - Instane_Buffer_ReStruct(); - } - - - if (GUI::Checkbox("ExcludePos From PibotMove", &m_InstanceDesc.isExcludePos)) - { - Instane_Buffer_ReStruct(); - } - - if (GUI::Checkbox("PivotMove", &m_InstanceDesc.isPivotMove)) - { - Instane_Buffer_ReStruct(); - } - - if (GUI::Checkbox("SizeLerp", &m_InstanceDesc.isSizeLerp)) - { - Instane_Buffer_ReStruct(); - } - if (GUI::Checkbox("NoWorld", &m_InstanceDesc.isNoWorld)) { Instane_Buffer_ReStruct(); @@ -890,193 +838,333 @@ void CInstance_Model::Describe_Entity() Instane_Buffer_ReStruct(); } - if (GUI::Checkbox("DetphCompareStop", &m_InstanceDesc.isDetphCompareStop)) - { - Instane_Buffer_ReStruct(); - } - if (ImGui::DragFloat3("SizeMin", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeMin))) - { - Instane_Buffer_ReStruct(); - } - if (ImGui::DragFloat3("SizeMax", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeMax))) + if (GUI::TreeNode("Transform")) { - Instane_Buffer_ReStruct(); + + if (ImGui::DragFloat3("Center", reinterpret_cast<_float*>(&m_InstanceDesc.vCenter))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat3("Range", reinterpret_cast<_float*>(&m_InstanceDesc.vRange))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat3("SizeMin", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeMin))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat3("SizeMax", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeMax))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat3("RotationMin", reinterpret_cast<_float*>(&m_InstanceDesc.vRotationAngleMin))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat3("RotationMax", reinterpret_cast<_float*>(&m_InstanceDesc.vRotationAngleMax))) + { + Instane_Buffer_ReStruct(); + } + + GUI::TreePop(); } - if (ImGui::DragFloat3("Center", reinterpret_cast<_float*>(&m_InstanceDesc.vCenter))) + if (GUI::TreeNode("Move")) { - Instane_Buffer_ReStruct(); - } + _int iMoveLerpOption = (_int)m_InstanceDesc.fMoveLerpOption; - if (ImGui::DragFloat3("Range", reinterpret_cast<_float*>(&m_InstanceDesc.vRange))) - { - Instane_Buffer_ReStruct(); - } + if (ImGui::Combo("Move Lerp Option", &iMoveLerpOption, pLerp, 9)) + { + Instane_Buffer_ReStruct(); - if (ImGui::DragFloat2("Speed", reinterpret_cast<_float*>(&m_InstanceDesc.vSpeed))) - { - Instane_Buffer_ReStruct(); - } + m_InstanceDesc.fMoveLerpOption = (_float)iMoveLerpOption; + } - if (ImGui::DragFloat2("RotationSpeed", reinterpret_cast<_float*>(&m_InstanceDesc.vRotationSpeed))) - { - Instane_Buffer_ReStruct(); - } + if (ImGui::DragFloat2("Speed", reinterpret_cast<_float*>(&m_InstanceDesc.vSpeed))) + { + Instane_Buffer_ReStruct(); + } - if (ImGui::DragFloat3("RotationMin", reinterpret_cast<_float*>(&m_InstanceDesc.vRotationAngleMin))) - { - Instane_Buffer_ReStruct(); - } + if (ImGui::DragFloat2("Drag", reinterpret_cast<_float*>(&m_InstanceDesc.vDrag))) + { + Instane_Buffer_ReStruct(); + } - if (ImGui::DragFloat3("RotationMax", reinterpret_cast<_float*>(&m_InstanceDesc.vRotationAngleMax))) - { - Instane_Buffer_ReStruct(); - } + if (ImGui::DragFloat2("Acceleration", reinterpret_cast<_float*>(&m_InstanceDesc.vAcceleration))) + { + Instane_Buffer_ReStruct(); + } - if (ImGui::DragFloat2("LifeTime", reinterpret_cast<_float*>(&m_InstanceDesc.vLifeTime))) - { - Instane_Buffer_ReStruct(); - } + if (ImGui::DragFloat3("VelocityMin", reinterpret_cast<_float*>(&m_InstanceDesc.vVelocityMin))) + { + Instane_Buffer_ReStruct(); + } - if (ImGui::DragFloat2("Delay", reinterpret_cast<_float*>(&m_InstanceDesc.vDelay))) - { - Instane_Buffer_ReStruct(); - } + if (ImGui::DragFloat3("VelocityMax", reinterpret_cast<_float*>(&m_InstanceDesc.vVelocityMax))) + { + Instane_Buffer_ReStruct(); + } - if (ImGui::DragFloat2("DiffuseUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vDiffuseUVMoveTime))) - { - Instane_Buffer_ReStruct(); - } - if (ImGui::DragFloat2("MaskingUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vMaskingUVMoveTime))) - { - Instane_Buffer_ReStruct(); + if (GUI::TreeNode("Dir Move")) + { + + + if (GUI::Checkbox("Forward Move", &m_InstanceDesc.isMoveForward)) + { + Instane_Buffer_ReStruct(); + } + + if (GUI::Checkbox("Up Move", &m_InstanceDesc.isMoveUp)) + { + Instane_Buffer_ReStruct(); + } + + if (GUI::Checkbox("Right Move", &m_InstanceDesc.isMoveRight)) + { + Instane_Buffer_ReStruct(); + } + + GUI::TreePop(); + } + + if (GUI::TreeNode("Pivot Move")) + { + + if (GUI::Checkbox("PivotMove", &m_InstanceDesc.isPivotMove)) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat3("PivotMin", reinterpret_cast<_float*>(&m_InstanceDesc.vPivotMin))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat3("PivotMax", reinterpret_cast<_float*>(&m_InstanceDesc.vPivotMax))) + { + Instane_Buffer_ReStruct(); + } + + + GUI::TreePop(); + } + + if (GUI::TreeNode("Drop Move")) + { + if (GUI::Checkbox("Drop", &m_InstanceDesc.isDrop)) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat2("Gravity", reinterpret_cast<_float*>(&m_InstanceDesc.vGravity))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat2("DropAttenuation", reinterpret_cast<_float*>(&m_InstanceDesc.vDropAttenuation))) + { + Instane_Buffer_ReStruct(); + } + + GUI::TreePop(); + } + GUI::TreePop(); } - if (ImGui::DragFloat2("DistortionUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vDistortionUVMoveTime))) + if (GUI::TreeNode("Rotate")) { - Instane_Buffer_ReStruct(); - } - if (ImGui::DragFloat2("NoiseUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vNoiseUVMoveTime))) - { - Instane_Buffer_ReStruct(); - } + if (ImGui::DragFloat2("RotationSpeed", reinterpret_cast<_float*>(&m_InstanceDesc.vRotationSpeed))) + { + Instane_Buffer_ReStruct(); + } - if (ImGui::DragFloat2("AniTime", reinterpret_cast<_float*>(&m_InstanceDesc.vAniTime))) - { - Instane_Buffer_ReStruct(); - } + if (GUI::TreeNode("Nomal Turn")) + { + if (GUI::Checkbox("Turn", &m_InstanceDesc.isTurn)) + { + Instane_Buffer_ReStruct(); + } - if (ImGui::DragFloat2("AniIndex", reinterpret_cast<_float*>(&m_InstanceDesc.vAniIndex))) - { - Instane_Buffer_ReStruct(); - } + if (ImGui::DragFloat3("DeltaAngleMin", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAngleMin))) + { + Instane_Buffer_ReStruct(); + } - if (ImGui::DragFloat2("Gravity", reinterpret_cast<_float*>(&m_InstanceDesc.vGravity))) - { - Instane_Buffer_ReStruct(); - } + if (ImGui::DragFloat3("DeltaAngleMax", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAngleMax))) + { + Instane_Buffer_ReStruct(); + } - if (ImGui::DragFloat3("SinWaveMin", reinterpret_cast<_float*>(&m_InstanceDesc.vSinMinAmount))) - { - Instane_Buffer_ReStruct(); - } + GUI::TreePop(); + } - if (ImGui::DragFloat3("SinWaveMax", reinterpret_cast<_float*>(&m_InstanceDesc.vSinMaxAmount))) - { - Instane_Buffer_ReStruct(); - } - if (ImGui::DragFloat3("VelocityMin", reinterpret_cast<_float*>(&m_InstanceDesc.vVelocityMin))) - { - Instane_Buffer_ReStruct(); - } + if (GUI::TreeNode("Axis Turn")) + { - if (ImGui::DragFloat3("VelocityMax", reinterpret_cast<_float*>(&m_InstanceDesc.vVelocityMax))) - { - Instane_Buffer_ReStruct(); - } + if (GUI::Checkbox("AxisTurn", &m_InstanceDesc.isAxisTurn)) + { + Instane_Buffer_ReStruct(); + } - if (ImGui::DragFloat3("DeltaAngleMin", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAngleMin))) - { - Instane_Buffer_ReStruct(); - } - if (ImGui::DragFloat3("DeltaAngleMax", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAngleMax))) - { - Instane_Buffer_ReStruct(); + if (GUI::Checkbox("ExcludePos From PibotMove", &m_InstanceDesc.isExcludePos)) + { + Instane_Buffer_ReStruct(); + } + + + + + if (ImGui::DragFloat3("DeltaAxisAngleMin", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAxisAngleMin))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat3("DeltaAxisAngleMax", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAxisAngleMax))) + { + Instane_Buffer_ReStruct(); + } + + + GUI::TreePop(); + } + + if (GUI::TreeNode("Sin Turn")) + { + + + if (GUI::Checkbox("Sin Wave", &m_InstanceDesc.isSinWave)) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat3("SinWaveMin", reinterpret_cast<_float*>(&m_InstanceDesc.vSinMinAmount))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat3("SinWaveMax", reinterpret_cast<_float*>(&m_InstanceDesc.vSinMaxAmount))) + { + Instane_Buffer_ReStruct(); + } + + + GUI::TreePop(); + } + + GUI::TreePop(); } - if (ImGui::DragFloat3("DeltaAxisAngleMin", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAxisAngleMin))) + if (GUI::TreeNode("Size")) { - Instane_Buffer_ReStruct(); - } - if (ImGui::DragFloat3("DeltaAxisAngleMax", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAxisAngleMax))) - { - Instane_Buffer_ReStruct(); - } + if (GUI::Checkbox("SizeLerp", &m_InstanceDesc.isSizeLerp)) + { + Instane_Buffer_ReStruct(); + } - _int iMoveLerpOption = (_int)m_InstanceDesc.fMoveLerpOption; + _int iSizeLerpOption = (_int)m_InstanceDesc.fSizeLerpOption; - if (ImGui::Combo("Move Lerp Option", &iMoveLerpOption, pLerp, 9)) - { - Instane_Buffer_ReStruct(); + if (ImGui::Combo("Size Lerp Option", &iSizeLerpOption, pLerp, 9)) + { + Instane_Buffer_ReStruct(); - m_InstanceDesc.fMoveLerpOption = (_float)iMoveLerpOption; - } + m_InstanceDesc.fSizeLerpOption = (_float)iSizeLerpOption; + } - if (ImGui::DragFloat3("PivotMin", reinterpret_cast<_float*>(&m_InstanceDesc.vPivotMin))) - { - Instane_Buffer_ReStruct(); - } + if (ImGui::DragFloat3("LerpSizeAmount", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaSize))) + { + Instane_Buffer_ReStruct(); + } - if (ImGui::DragFloat3("PivotMax", reinterpret_cast<_float*>(&m_InstanceDesc.vPivotMax))) - { - Instane_Buffer_ReStruct(); - } + if (ImGui::DragFloat2("Size Drag", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeDrag))) + { + Instane_Buffer_ReStruct(); + } - if (ImGui::DragFloat2("Drag", reinterpret_cast<_float*>(&m_InstanceDesc.vDrag))) - { - Instane_Buffer_ReStruct(); + + GUI::TreePop(); } - _int iSizeLerpOption = (_int)m_InstanceDesc.fSizeLerpOption; - - if (ImGui::Combo("Size Lerp Option", &iSizeLerpOption, pLerp, 9)) + if (GUI::TreeNode("Time")) { - Instane_Buffer_ReStruct(); + if (ImGui::DragFloat2("LifeTime", reinterpret_cast<_float*>(&m_InstanceDesc.vLifeTime))) + { + Instane_Buffer_ReStruct(); + } - m_InstanceDesc.fSizeLerpOption = (_float)iSizeLerpOption; + if (ImGui::DragFloat2("Delay", reinterpret_cast<_float*>(&m_InstanceDesc.vDelay))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat2("DiffuseUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vDiffuseUVMoveTime))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat2("MaskingUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vMaskingUVMoveTime))) + { + Instane_Buffer_ReStruct(); + } + + + if (ImGui::DragFloat2("DistortionUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vDistortionUVMoveTime))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat2("NoiseUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vNoiseUVMoveTime))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat2("AniTime", reinterpret_cast<_float*>(&m_InstanceDesc.vAniTime))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat2("AniIndex", reinterpret_cast<_float*>(&m_InstanceDesc.vAniIndex))) + { + Instane_Buffer_ReStruct(); + } + + GUI::TreePop(); } - if (ImGui::DragFloat3("LerpSizeAmount", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaSize))) + if (GUI::TreeNode("Depth Compare")) { - Instane_Buffer_ReStruct(); - } - - if (ImGui::DragFloat2("Size Drag", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeDrag))) - { - Instane_Buffer_ReStruct(); - } + if (GUI::Checkbox("DetphCompareStop", &m_InstanceDesc.isDetphCompareStop)) + { + Instane_Buffer_ReStruct(); + } - if (ImGui::DragFloat2("DropAttenuation", reinterpret_cast<_float*>(&m_InstanceDesc.vDropAttenuation))) - { - Instane_Buffer_ReStruct(); - } + if (GUI::Checkbox("Stop_Move_For_Depth_Compare", &m_InstanceDesc.isStop_Move_For_Depth_Compare)) + { + Instane_Buffer_ReStruct(); + } - if (ImGui::DragFloat2("Acceleration", reinterpret_cast<_float*>(&m_InstanceDesc.vAcceleration))) - { - Instane_Buffer_ReStruct(); + GUI::TreePop(); } + + + + ImGui::PopItemWidth(); diff --git a/Jusin154_Team3D/Engine/Public/Engine_Macro.h b/Jusin154_Team3D/Engine/Public/Engine_Macro.h index f97dab7d6..3a1da1fd2 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Macro.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Macro.h @@ -145,8 +145,7 @@ constexpr unsigned int g_iMaxShadowHeight = 9216; unsigned int iRefCnt = {}; \ if(nullptr != s_pInstance) { \ iRefCnt = s_pInstance->Release(); \ - if(0 == iRefCnt) \ - s_pInstance = nullptr; \ + s_pInstance = nullptr; \ } \ return iRefCnt; \ } diff --git a/Jusin154_Team3D/Engine/Public/Instance_Model.h b/Jusin154_Team3D/Engine/Public/Instance_Model.h index b04d39386..a7e3917b9 100644 --- a/Jusin154_Team3D/Engine/Public/Instance_Model.h +++ b/Jusin154_Team3D/Engine/Public/Instance_Model.h @@ -83,7 +83,7 @@ class ENGINE_DLL CInstance_Model final : public CComponent _bool isMoveUp = {}; _bool isMoveRight = {}; _bool isExcludePos = {}; - _bool isPadding5 = {}; + _bool isStop_Move_For_Depth_Compare = {}; }INSTANCE_DESC; @@ -108,7 +108,7 @@ class ENGINE_DLL CInstance_Model final : public CComponent _float2 vDiffuseUVMoveTime = { 1.f, 1.f }; _float2 vDistortionUVMoveTime = { 1.f , 1.f }; _float2 vNoiseUVMoveTime = { 1.f ,1.f }; - _float2 vAniTime = { 1.f , 1.f }; + _float2 vAniTime = { 0.01f , 0.01f }; _float2 vAniIndex = {}; _bool isMoveForward = {}; @@ -175,7 +175,7 @@ class ENGINE_DLL CInstance_Model final : public CComponent _int isMoveUp = {}; _int isExcludePos = {}; - _int isPadding1 = {}; + _int isStop_Move_For_Depth_Compare = {}; _int isPadding2 = {}; _float fTimeDelta = {}; @@ -230,6 +230,8 @@ class ENGINE_DLL CInstance_Model final : public CComponent _float3 vVelocity = {}; _float fAcceleration = {}; + _bool isStop = {}; + }CS_PARTICLE_VALUE_DESC; public: