diff --git a/Jusin154_Team3D/Client/Private/Bombard.cpp b/Jusin154_Team3D/Client/Private/Bombard.cpp index db881416e..62263cde9 100644 --- a/Jusin154_Team3D/Client/Private/Bombard.cpp +++ b/Jusin154_Team3D/Client/Private/Bombard.cpp @@ -3,7 +3,6 @@ #include "GameInstance.h" #include "EffectParts.h" -#include "PhysXEffectHitBox.h" #include "Wand.h" #include "Player.h" @@ -83,27 +82,16 @@ void CBombard::Late_Update(_float fTimeDelta) return; __super::Late_Update(fTimeDelta); - + XMStoreFloat4(&m_vEndPos, m_pLight_Projectile->Get_WorldPostion()); } HRESULT CBombard::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - m_pOwner = pObject; - - if (FAILED(Ready_Child())) - return E_FAIL; - - Reset_EffectParts(); - - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - CWand* pWand = static_cast(m_pOwner)->Get_PartObject(); if (pWand == nullptr) @@ -115,6 +103,7 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject) m_vCameraLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK); + pShootPt->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); m_pLight_Projectile->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); @@ -125,9 +114,6 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject) m_pLight_Projectile->Set_Visible(true); - m_bVisible = true; - - return S_OK; } @@ -174,7 +160,10 @@ CGameObject* CBombard::Clone(void* pArg, CGameObject* pOwner) void CBombard::OnCollision(CGameObject* pOther, void* pDesc) { - //CTransform* pOtherTransform = p + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; _vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f); @@ -185,14 +174,27 @@ void CBombard::OnCollision(CGameObject* pOther, void* pDesc) pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); } + CWand* pWand = static_cast(m_pOwner)->Get_PartObject(); + + if (pWand == nullptr) + return; + + CPartObject* pShootPt = Get_PartObject("Bombard_Shoot_Pt"); + CPartObject* pCircle0 = Get_PartObject("Bombard_Circle0"); + + pShootPt->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + m_pLight_Projectile->Set_Visible(false); - Get_PartObject("Bombard_Shoot_Pt")->Set_Visible(false); + + //Get_PartObject("Bombard_PT_0")->Get_Component()->LookAt(m_pOwner->Get_WorldPostion()); + //Get_PartObject("Bombard_PT_1")->Get_Component()->LookAt(m_pOwner->Get_WorldPostion()); + //Get_PartObject("Bombard_PT_2")->Get_Component()->LookAt(m_pOwner->Get_WorldPostion()); _vector vOwnerLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK); Get_PartObject("Bombard_Smoke")->Get_Component()->Translation(vOwnerLook); - Get_PartObject("Bombard_Circle0")->Set_Visible(false); - } void CBombard::Free() diff --git a/Jusin154_Team3D/Client/Private/BombardSide.cpp b/Jusin154_Team3D/Client/Private/BombardSide.cpp index 188e867e4..3bba24974 100644 --- a/Jusin154_Team3D/Client/Private/BombardSide.cpp +++ b/Jusin154_Team3D/Client/Private/BombardSide.cpp @@ -40,7 +40,7 @@ HRESULT CBombardSide::Initialize(void* pArg) m_wstrEffectName = L"BombardSide"; - m_pWandParticle = Get_PartObject("WandParticle_B_100"); + m_pWandParticle = Get_PartObject("WandParticle_B_1000"); m_pWandLight = Get_PartObject("Wand_Light_B"); m_pWandTrail = Get_PartObject(); @@ -97,17 +97,9 @@ void CBombardSide::Late_Update(_float fTimeDelta) HRESULT CBombardSide::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - m_pOwner = pObject; - - Reset_EffectParts(); - - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - CWand* pWand = static_cast(m_pOwner); @@ -126,9 +118,6 @@ HRESULT CBombardSide::Pre_Setting(CGameObject* pObject) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - - m_bVisible = true; - return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Decendo.cpp b/Jusin154_Team3D/Client/Private/Decendo.cpp index faa571951..848f4c444 100644 --- a/Jusin154_Team3D/Client/Private/Decendo.cpp +++ b/Jusin154_Team3D/Client/Private/Decendo.cpp @@ -3,7 +3,6 @@ #include "GameInstance.h" #include "EffectParts.h" -#include "PhysXEffectHitBox.h" #include "TrailObject.h" #include "Wand.h" @@ -104,22 +103,9 @@ void CDecendo::Late_Update(_float fTimeDelta) HRESULT CDecendo::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - /* 부모 할당 */ - m_pOwner = pObject; - - /* 피직스 생성*/ - if (FAILED(Ready_Child())) - return E_FAIL; - - /* 초기 셋팅 초기화 */ - Reset_EffectParts(); - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - CWand* pWand = static_cast(m_pOwner)->Get_PartObject(); @@ -129,16 +115,25 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject) CPartObject* pCircle0 = Get_PartObject(); + CPartObject* pWandLight = Get_PartObject("Decendo_Wand_Light"); + + + /* 초기 객체 위치 초기화 */ - pCircle0->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); m_pProjectile_Blur->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); /* 초기 객체 비지블 */ pCircle0->Set_Visible(true); + pWandLight->Set_Visible(true); + m_pProjectile->Set_Visible(true); m_pProjectile_Blur->Set_Visible(true); + /*트레일 초기화 */ Get_PartObject()->Set_Visible(true); Get_PartObject()->Get_Component()->Reset_Trail(); @@ -154,7 +149,6 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject) m_vRotateUp = XMVector3Rotate(vUp, vQuaternion); m_vRotateUp = XMVector3Normalize(m_vRotateUp); - m_bVisible = true; return S_OK; } @@ -202,7 +196,12 @@ CGameObject* CDecendo::Clone(void* pArg, CGameObject* pOwner) void CDecendo::OnCollision(CGameObject* pOther, void* pDesc) { - //CTransform* pOtherTransform = p + + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + _vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f); @@ -218,13 +217,26 @@ void CDecendo::OnCollision(CGameObject* pOther, void* pDesc) m_pProjectile->Set_Visible(false); + CWand* pWand = static_cast(m_pOwner)->Get_PartObject(); + + if (pWand == nullptr) + return; + + CPartObject* pCircle0 = Get_PartObject(); + CPartObject* pWandLight = Get_PartObject("Decendo_Wand_Light"); + + + pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); _vector vPlayerPos = m_pOwner->Get_Component()->Get_State(STATE::POSITION); + + Get_PartObject("Decendo_Down")->Get_Component()->LookAt(vPlayerPos); Get_PartObject("Decendo_Smoke")->Get_Component()->LookAt(vPlayerPos); - Get_PartObject()->Set_Visible(false); + Get_PartObject()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); Get_PartObject()->Set_Visible(false); diff --git a/Jusin154_Team3D/Client/Private/DecendoSide.cpp b/Jusin154_Team3D/Client/Private/DecendoSide.cpp index e1cb2f70f..f63f497eb 100644 --- a/Jusin154_Team3D/Client/Private/DecendoSide.cpp +++ b/Jusin154_Team3D/Client/Private/DecendoSide.cpp @@ -89,17 +89,9 @@ void CDecendoSide::Late_Update(_float fTimeDelta) HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - m_pOwner = pObject; - - Reset_EffectParts(); - - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - CWand* pWand = static_cast(m_pOwner); @@ -117,8 +109,6 @@ HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - m_bVisible = true; - return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/EffectObject.cpp b/Jusin154_Team3D/Client/Private/EffectObject.cpp index 6dffece71..2a6b5d2a6 100644 --- a/Jusin154_Team3D/Client/Private/EffectObject.cpp +++ b/Jusin154_Team3D/Client/Private/EffectObject.cpp @@ -655,6 +655,38 @@ HRESULT CEffectObject::Bind_ShaderResources() return E_FAIL; } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fDissolveDelay", &m_EffectInfo.fDissolveDelay, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fReverseDissolveDelay", &m_EffectInfo.fReverseDissolveDelay, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vDissolveUVGainAmount", &m_EffectInfo.vDissolveUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isDissolveMove", &m_EffectInfo.isDissolveMove, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fDissolveMaskEdge", &m_EffectInfo.vDissolveValue.x, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fDissolveSoftMask", &m_EffectInfo.vDissolveValue.y, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fDissolveCutRatio", &m_EffectInfo.vDissolveValue.z, sizeof(_float)))) { + return E_FAIL; + } + + + + + if (m_pDiffuse_TextureCom != nullptr) @@ -704,6 +736,8 @@ HRESULT CEffectObject::Bind_ShaderResources() } + + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp index b893f88c5..6ba42c4b4 100644 --- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp +++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp @@ -4,8 +4,7 @@ #include "GameInstance.h" #include "EffectParts.h" #include "TrailObject.h" - -#include "PhysXEffectHitBox.h" +#include "GameObject.h" #include @@ -23,6 +22,8 @@ CEffect_Container::CEffect_Container(const CEffect_Container& rhs) HRESULT CEffect_Container::Initialize_Prototype() { + + return S_OK; } @@ -35,7 +36,8 @@ HRESULT CEffect_Container::Initialize(void* pArg) if (FAILED(Ready_Child())) return E_FAIL; - Set_Visible(false); + + m_bVisible = false; return S_OK; } @@ -60,168 +62,6 @@ void CEffect_Container::OnCollision(CGameObject* pOther, void* pDesc) { } -HRESULT CEffect_Container::Load_Directory(const _char* pPath) -{ - - for (const auto& file : filesystem::directory_iterator(pPath)) - { - if (file.is_directory()) - continue; - - string ext = file.path().extension().string(); - - if (strcmp(ext.c_str(), ".bin")) - continue; - - _char szFilePath[MAX_PATH] = {}; - - strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str()); - - - ///////////////////////////// - - CEffectParts* pEffectParts = nullptr; - - CPartObject::PARTOBJECT_DESC PartsDesc{}; - - PartsDesc.pParentTransform = m_pTransformCom; - - - - - /*이펙트 껍데기 생성*/ - - _wstring wstrFileName = file.path().stem().wstring(); //이름 넣기 - - if (FAILED(Add_PartObject(CMyTools::ToString(wstrFileName), g_iStaticLevel, &pEffectParts, &PartsDesc))) { - assert(false); - return E_FAIL; - } - - - /*이펙트 로드 로드*/ - size_t iPos = {}; - _string strFilePath = szFilePath; - - while ((iPos = strFilePath.find(".bin")) != std::string::npos) { - strFilePath.erase(iPos, 4); - }; - - - if (FAILED(pEffectParts->Load(strFilePath.c_str(),static_cast(NEXT_LEVEL)))) - { - Safe_Release(pEffectParts); - continue; - } - - Safe_Release(pEffectParts); - } - - return S_OK; -} - -HRESULT CEffect_Container::Ready_Components(void* pArg) -{ - CTransform::TRANSFORM_DESC TransformDesc = {}; - - TransformDesc.fRadius = 20.f; - TransformDesc.fRotationPerSec = 10.f; - TransformDesc.fSpeedPerSec = 10.f; - - if (FAILED(__super::Ready_Components(&TransformDesc))) { - return E_FAIL; - } - - return S_OK; -} - -HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject) -{ - return S_OK; -} - -HRESULT CEffect_Container::Reset_EffectParts() -{ - for (auto& iter : m_PartObjects) - { - CInstance_Model* pInstanceModel = iter.second->Get_Component(); - - if (pInstanceModel == nullptr){ - continue; - } - - pInstanceModel->Instane_Buffer_ReStruct(); - } - - return S_OK; -} - - -HRESULT CEffect_Container::Ready_Child() -{ - - return S_OK; -} - -void CEffect_Container::Free() -{ - __super::Free(); - -} - -HRESULT CEffect_Container::Bind_ShaderResources() -{ - return S_OK; -} - -void CEffect_Container::Update_Event(_float fTimeDelta) -{ - - - m_fPreAccTime = m_fAccTime; - m_fAccTime += fTimeDelta; - - if (m_fAccTime >= m_fDelay || m_isDelayed == false) // 아직 딜레이되지 않았고 딜레이를 넘어섰다면 - { - m_isDelayed = true; - } - else - { - return; - } - - - if (m_fAccTime >= m_fDuration) // 듀레이션을 넘어섰다면 - { - if (m_isLoop) - { - m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - m_isDelayed = false; - } - else - { - m_bVisible = false; - - for (auto& pPart : m_PartObjects) - { - pPart.second->Set_Visible(false); - } - - } - } - - - for (auto& pPair : m_Events) // 이벤트들을 비교하면서 실행함 - { - if (pPair.first >= m_fPreAccTime && pPair.first <= m_fAccTime) - { - pPair.second(); - } - } - - -} HRESULT CEffect_Container::Load_Package(const _char* pPath) { @@ -315,7 +155,7 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath) }; - if (FAILED(pTrail->Load_Trail(strEffectPath.c_str(), static_cast(NEXT_LEVEL)))) + if (FAILED(pTrail->Load_Trail(strEffectPath.c_str() , static_cast(NEXT_LEVEL)))) { Safe_Release(pTrail); continue; @@ -329,7 +169,7 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath) ///////////////////////////// - CEffectParts* pEffectPart = nullptr; + CEffectParts* pEffectParts = nullptr; CPartObject::PARTOBJECT_DESC PartsDesc{}; @@ -337,7 +177,7 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath) /*이펙트 껍데기 생성*/ - if (FAILED(Add_PartObject(strEffectName, g_iStaticLevel, &pEffectPart, &PartsDesc))) { + if (FAILED(Add_PartObject(strEffectName, g_iStaticLevel, &pEffectParts, &PartsDesc))) { assert(false); return E_FAIL; } @@ -351,13 +191,13 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath) }; - if (FAILED(pEffectPart->Load(strFilePath.c_str(), static_cast(NEXT_LEVEL)))) + if (FAILED(pEffectParts->Load(strFilePath.c_str(), static_cast(NEXT_LEVEL)))) { - Safe_Release(pEffectPart); + Safe_Release(pEffectParts); continue; } - Safe_Release(pEffectPart); + Safe_Release(pEffectParts); } @@ -365,3 +205,116 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath) return S_OK; } + +HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject) +{ + if (pObject == nullptr) + return E_FAIL; + + m_pOwner = pObject; + + + Reset_EffectParts(); + + m_fAccTime = 0.f; + m_fPreAccTime = 0.f; + + m_bVisible = true; + m_isCollisionEnter = false; + + return S_OK; +} + +HRESULT CEffect_Container::Ready_Components(void* pArg) +{ + CTransform::TRANSFORM_DESC TransformDesc = {}; + + TransformDesc.fRadius = 20.f; + TransformDesc.fRotationPerSec = 10.f; + TransformDesc.fSpeedPerSec = 10.f; + + if (FAILED(__super::Ready_Components(&TransformDesc))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CEffect_Container::Ready_Child() +{ + + return S_OK; +} + +void CEffect_Container::Free() +{ + __super::Free(); + +} + +HRESULT CEffect_Container::Bind_ShaderResources() +{ + return S_OK; +} + +HRESULT CEffect_Container::Reset_EffectParts() +{ + for (auto& iter : m_PartObjects) + { + CInstance_Model* pInstanceModel = iter.second->Get_Component(); + + if (pInstanceModel == nullptr) + continue; + + pInstanceModel->Instane_Buffer_ReStruct(); + } + + return S_OK; +} + +void CEffect_Container::Update_Event(_float fTimeDelta) +{ + + m_fPreAccTime = m_fAccTime; + m_fAccTime += fTimeDelta; + + if (m_fAccTime >= m_fDelay || m_isDelayed == false) // 아직 딜레이되지 않았고 딜레이를 넘어섰다면 + { + m_isDelayed = true; + } + else + { + return; + } + + + if (m_fAccTime >= m_fDuration) // 듀레이션을 넘어섰다면 + { + if (m_isLoop) + { + m_fAccTime = 0.f; + m_fPreAccTime = 0.f; + m_isDelayed = false; + } + else + { + m_bVisible = false; + + for (auto& pPart : m_PartObjects) + { + pPart.second->Set_Visible(false); + } + } + } + + + for (auto& pPair : m_Events) // 이벤트들을 비교하면서 실행함 + { + if (pPair.first >= m_fPreAccTime && pPair.first <= m_fAccTime) + { + pPair.second(); + } + } + + +} diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 414ca8ab8..84a7de28f 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -34,9 +34,9 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) if (FAILED(Ready_Lights())) { return E_FAIL; } - if (FAILED(Ready_Background())) { - return E_FAIL; - } + //if (FAILED(Ready_Background())) { + // return E_FAIL; + //} if (FAILED(Ready_Markers())) { return E_FAIL; } @@ -160,9 +160,9 @@ HRESULT CLevel_GamePlay::Ready_Background() /* Map Containters */ /* 테스트용 맵 */ - //CInfoInstance::GetInstance()->Load_MapObjects("ClientTest"); + CInfoInstance::GetInstance()->Load_MapObjects("ClientTest"); /* 전체 맵 */ - CInfoInstance::GetInstance()->Load_MapObjects("Map1129"); + //CInfoInstance::GetInstance()->Load_MapObjects("Map1129"); /* 조명 오브젝트 */ CInfoInstance::GetInstance()->Load_LightElements("LightElement"); diff --git a/Jusin154_Team3D/Client/Private/Levioso.cpp b/Jusin154_Team3D/Client/Private/Levioso.cpp index f6c6aebff..e8c192743 100644 --- a/Jusin154_Team3D/Client/Private/Levioso.cpp +++ b/Jusin154_Team3D/Client/Private/Levioso.cpp @@ -5,7 +5,7 @@ #include "EffectParts.h" #include "Player.h" #include "TrailObject.h" -#include "PhysXEffectHitBox.h" +#include "Wand.h" CLevioso::CLevioso(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -38,12 +38,10 @@ HRESULT CLevioso::Initialize(void* pArg) return E_FAIL; m_pLeviosoPJ_0 = Get_PartObject("Levioso_PJ0"); - m_pLeviosoPJ_1 = Get_PartObject("Levioso_PJ1"); m_pLeviosoTrail = Get_PartObject("Levioso_Trail"); m_pTrail_PT_0 = Get_PartObject("Trail_PT0"); SAFE_ADDREF(m_pLeviosoPJ_0); - SAFE_ADDREF(m_pLeviosoPJ_1); SAFE_ADDREF(m_pLeviosoTrail); SAFE_ADDREF(m_pTrail_PT_0); @@ -54,6 +52,8 @@ HRESULT CLevioso::Initialize(void* pArg) m_fDuration = 2.f; + + return S_OK; } @@ -61,7 +61,6 @@ void CLevioso::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); - XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ_0->Get_WorldPostion()); } @@ -74,14 +73,13 @@ void CLevioso::Update(_float fTimeDelta) __super::Update(fTimeDelta); Update_Event(fTimeDelta); - + m_pLeviosoPJ_0->Get_Component()->Translation(m_vOwnerLook * 0.25f); - m_pLeviosoPJ_1->Get_Component()->Translation(m_vOwnerLook * 0.25f); m_pTrail_PT_0->Get_Component()->Translation(m_vOwnerLook * 0.25f); - if (true == m_pGameInstance->SphereCast(0.125f, XMLoadFloat4(&m_vStartPos), m_vOwnerLook, XMVectorGetX(XMVector3Length(m_vOwnerLook * 1.f)) + if (true == m_pGameInstance->SphereCast(0.0f, XMLoadFloat4(&m_vStartPos), m_vOwnerLook, XMVectorGetX(XMVector3Length(m_vOwnerLook * 1.f)) , PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer)) { OnCollision(); @@ -116,20 +114,8 @@ void CLevioso::Late_Update(_float fTimeDelta) HRESULT CLevioso::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) - return E_FAIL; - m_pOwner = pObject; - - - Reset_EffectParts(); - - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - - m_fAccRotateTime = 0.f; - - if (FAILED(Ready_Child())) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; CPlayer* pPlayer = static_cast(m_pOwner); @@ -139,26 +125,25 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject) _vector WandPos = pPlayer->Get_WandPos().r[3]; + CEffectParts* pWandSmoke = Get_PartObject("Levioso_Wand0"); + m_pLeviosoPJ_0->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix()); - m_pLeviosoPJ_1->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix()); m_pTrail_PT_0->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix()); - + + m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pLeviosoPJ_1->Get_Component()->Set_State(STATE::POSITION, WandPos); m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos); + pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); - - m_pLeviosoPJ_0 ->Set_Visible(true); - m_pLeviosoPJ_1->Set_Visible(true); + m_pLeviosoPJ_0->Set_Visible(true); m_pTrail_PT_0->Set_Visible(true); + pWandSmoke->Set_Visible(true); m_pLeviosoTrail->Set_Visible(true); m_pLeviosoTrail->Get_Component()->Reset_Trail(); m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); - m_bVisible = true; - return S_OK; } @@ -206,6 +191,11 @@ CGameObject* CLevioso::Clone(void* pArg, CGameObject* pOwner) void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) { + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + _vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f); @@ -215,19 +205,19 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); } - __super::m_fAccTime = 0.f; + m_fAccTime = 0.f; m_fDuration = 3.f; //적중하면 지속시간 3초 - //CEditEffect* pLevioso_Hit = Get_PartObject("Levioso_Hit"); - //CEditEffect* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); - //CEditEffect* pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); - //CEditEffect* pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); - //CEditEffect* pLevioso_Tornado = Get_PartObject("Levioso_Tornado"); + //CEffectParts* pLevioso_Hit = Get_PartObject("Levioso_Hit"); + //CEffectParts* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); + //CEffectParts* pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); + //CEffectParts* pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); + //CEffectParts* pLevioso_Tornado = Get_PartObject("Levioso_Tornado"); - m_pLeviosoPJ_0->Set_Visible(false); - m_pLeviosoPJ_1->Set_Visible(false); - m_pTrail_PT_0->Set_Visible(false); - m_pLeviosoTrail->Set_Visible(false); + //m_pLeviosoPJ_0->Set_Visible(false); + //m_pLeviosoPJ_1->Set_Visible(false); + //m_pTrail_PT_0->Set_Visible(false); + //m_pLeviosoTrail->Set_Visible(false); } void CLevioso::Free() @@ -236,7 +226,6 @@ void CLevioso::Free() SAFE_RELEASE(m_pLeviosoPJ_0); - SAFE_RELEASE(m_pLeviosoPJ_1); SAFE_RELEASE(m_pLeviosoTrail); SAFE_RELEASE(m_pTrail_PT_0); } diff --git a/Jusin154_Team3D/Client/Private/LeviosoSide.cpp b/Jusin154_Team3D/Client/Private/LeviosoSide.cpp index 194a6b5f4..f39e74d46 100644 --- a/Jusin154_Team3D/Client/Private/LeviosoSide.cpp +++ b/Jusin154_Team3D/Client/Private/LeviosoSide.cpp @@ -90,17 +90,9 @@ void CLeviosoSide::Late_Update(_float fTimeDelta) HRESULT CLeviosoSide::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - m_pOwner = pObject; - - Reset_EffectParts(); - - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - CWand* pWand = static_cast(m_pOwner); @@ -118,9 +110,6 @@ HRESULT CLeviosoSide::Pre_Setting(CGameObject* pObject) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - - m_bVisible = true; - return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 4469dbea5..dca99977f 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -225,249 +225,249 @@ HRESULT CLoader::Loading_For_GamePlay() #pragma region MAP_MODELS vector*>> jobMapModels; - { - { /* Terrain */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Terrain", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Terrain", - ".bin", false - )); - } + //{ + // { /* Terrain */ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Terrain", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Terrain", + // ".bin", false + // )); + // } - { /* Ollivanders*/ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Collision", - ".bin", false - )); - } + // { /* Ollivanders*/ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Collision", + // ".bin", false + // )); + // } - { /* Gatehouse*/ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Gatehouse/Meshes", - ".bin", false - )); - } + // { /* Gatehouse*/ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Gatehouse/Meshes", + // ".bin", false + // )); + // } - { /* TScrolls */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Collisions", - ".bin", false - )); - } - { /* 3BroomStick*/ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Collision", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes/3Broom_Kit", - ".bin", false - )); - } + // { /* TScrolls */ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Collisions", + // ".bin", false + // )); + // } + // { /* 3BroomStick*/ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Collision", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes/3Broom_Kit", + // ".bin", false + // )); + // } - { /* BLDG_QuidditchShop */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Collision", - ".bin", false - )); - } - { /* BLDG_HogsheadInn */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Collision", - ".bin", false - )); - } - { /* BLDG_Honeydukes */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Collision", - ".bin", false - )); - } - { /* BLDG_OwlPost */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Collision", - ".bin", false - )); - } - { /* BLDG_TeaShop */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Collision", - ".bin", false - )); - } - { /* BLDG_Zonkos */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Collision", - ".bin", false - )); - } - { /* BLDG_DB_GR */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Collision", - ".bin", false - )); - } - { /* BLDG_Potions */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Collisions", - ".bin", false - )); - } - { /* BLDG_Salon */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Collision", - ".bin", false - )); - } - { /* Hengist_Tree */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Vegetation/Hengist_Tree", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Vegetation", - ".bin", false - )); - } - { /* GEN A*/ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Collision", - ".bin", false - )); - } - { /* GEN B*/ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Collision", - ".bin", false - )); - } - { /* GEN C*/ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Collision", - ".bin", false - )); - } - { /* GEN E*/ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Collision", - ".bin", false - )); - } - { /* GEN F*/ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Collision", - ".bin", false - )); - } - { /* GEN G*/ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Collision", - ".bin", false - )); - } - { /* GEN H*/ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Collision", - ".bin", false - )); - } - { /* GEN J*/ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Meshes", - ".bin", false - )); - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Collision", - ".bin", false - )); - } - {/* Light Objects */ - jobMapModels.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/LightPosts", - ".bin", false - )); - } - } + // { /* BLDG_QuidditchShop */ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Collision", + // ".bin", false + // )); + // } + // { /* BLDG_HogsheadInn */ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Collision", + // ".bin", false + // )); + // } + // { /* BLDG_Honeydukes */ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Collision", + // ".bin", false + // )); + // } + // { /* BLDG_OwlPost */ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Collision", + // ".bin", false + // )); + // } + // { /* BLDG_TeaShop */ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Collision", + // ".bin", false + // )); + // } + // { /* BLDG_Zonkos */ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Collision", + // ".bin", false + // )); + // } + // { /* BLDG_DB_GR */ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Collision", + // ".bin", false + // )); + // } + // { /* BLDG_Potions */ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Collisions", + // ".bin", false + // )); + // } + // { /* BLDG_Salon */ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Collision", + // ".bin", false + // )); + // } + // { /* Hengist_Tree */ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Vegetation/Hengist_Tree", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Vegetation", + // ".bin", false + // )); + // } + // { /* GEN A*/ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Collision", + // ".bin", false + // )); + // } + // { /* GEN B*/ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Collision", + // ".bin", false + // )); + // } + // { /* GEN C*/ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Collision", + // ".bin", false + // )); + // } + // { /* GEN E*/ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Collision", + // ".bin", false + // )); + // } + // { /* GEN F*/ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Collision", + // ".bin", false + // )); + // } + // { /* GEN G*/ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Collision", + // ".bin", false + // )); + // } + // { /* GEN H*/ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Collision", + // ".bin", false + // )); + // } + // { /* GEN J*/ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Meshes", + // ".bin", false + // )); + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Collision", + // ".bin", false + // )); + // } + // {/* Light Objects */ + // jobMapModels.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/LightPosts", + // ".bin", false + // )); + // } + //} #pragma endregion diff --git a/Jusin154_Team3D/Client/Private/Lumos.cpp b/Jusin154_Team3D/Client/Private/Lumos.cpp index f4e176f86..0375114d0 100644 --- a/Jusin154_Team3D/Client/Private/Lumos.cpp +++ b/Jusin154_Team3D/Client/Private/Lumos.cpp @@ -82,17 +82,9 @@ void CLumos::Late_Update(_float fTimeDelta) HRESULT CLumos::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - m_pOwner = pObject; - - Reset_EffectParts(); - - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - CWand* pWand = static_cast(m_pOwner); if (pWand == nullptr) @@ -101,8 +93,6 @@ HRESULT CLumos::Pre_Setting(CGameObject* pObject) m_pLumos_Light->Set_Visible(true); m_pLumos_Light->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - m_bVisible = true; - m_isLoop = true; return S_OK; diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp index df6fd1f2b..e557ef121 100644 --- a/Jusin154_Team3D/Client/Private/NomalJap.cpp +++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp @@ -5,7 +5,6 @@ #include "InfoInstance.h" #include "GameInstance.h" #include "EffectParts.h" -#include "PhysXEffectHitBox.h" #include "TrailObject.h" @@ -39,7 +38,7 @@ HRESULT CNomalJap::Initialize(void* pArg) m_wstrEffectName = L"Nomal_Jap"; - if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Jap"))){ + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Jap"))) { return E_FAIL; } @@ -70,7 +69,7 @@ void CNomalJap::Update(_float fTimeDelta) __super::Update(fTimeDelta); Update_Event(fTimeDelta); - if (m_fAccTime > m_fDuration) { + if (m_fAccMoveTime > m_fDuration) { SAFE_RELEASE(m_pTargetUnit); } @@ -95,7 +94,7 @@ void CNomalJap::Update(_float fTimeDelta) //m_pGameInstance->SphereCast(0.125f, vfStartPos, vDir, XMVectorGetX(XMVector3Length(vEndPos - vStartPos)), ) - if (false == m_bTrailPulseEnded && m_fAccTime > m_fDuration * 0.3f) { + if (false == m_bTrailPulseEnded && m_fAccMoveTime > m_fDuration * 0.3f) { m_bTrailPulseEnded = true; if (nullptr != m_pTargetUnit && false == m_pTargetUnit->isDead()) { @@ -105,7 +104,7 @@ void CNomalJap::Update(_float fTimeDelta) XMStoreFloat3(&m_vDirection, XMVector4Normalize(vTargetPos - vCurrentPos)); _float fDistance = XMVectorGetX(XMVector3Length(vTargetPos - vCurrentPos)); - m_fLinearSpeed = fDistance / (m_fDuration - m_fAccTime) * 10 / 3; + m_fLinearSpeed = fDistance / (m_fDuration - m_fAccMoveTime) * 10 / 3; SAFE_RELEASE(m_pTargetUnit); } @@ -116,17 +115,17 @@ void CNomalJap::Update(_float fTimeDelta) return; } _vector vRotateUp = XMLoadFloat3(&m_vRotateUp); - m_fAccTime += fTimeDelta; + m_fAccMoveTime += fTimeDelta; // 각속도 - m_pProjectile_Side->Get_Component()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime)); - m_pProjectile->Get_Component()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime)); + m_pProjectile_Side->Get_Component()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccMoveTime)); + m_pProjectile->Get_Component()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccMoveTime)); } void CNomalJap::Late_Update(_float fTimeDelta) { - if (m_bVisible == false){ + if (m_bVisible == false) { return; } @@ -137,24 +136,11 @@ void CNomalJap::Late_Update(_float fTimeDelta) HRESULT CNomalJap::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - /* 부모 할당 */ - m_pOwner = pObject; - - /* 피직스 생성*/ - if (FAILED(Ready_Child())){ - return E_FAIL; - } - - /* 초기 셋팅 초기화 */ - Reset_EffectParts(); - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; m_bTrailPulseEnded = false; - + m_fAccMoveTime = 0.f; /* 초기 객체 위치 초기화 */ _vector vStartPos = m_pOwner->Get_WorldPostion(); @@ -180,7 +166,7 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject) //Get_PartObject("Circle_Particle_Red")->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix()); _vector vQuaternion = XMQuaternionRotationAxis(vDirection, m_pGameInstance->Random_Float(0.f, XM_PIDIV2)); - + { /* 대상 위치 지정 */ SAFE_RELEASE(m_pTargetUnit); m_pTargetUnit = m_pInfoInstance->Get_LockOnUnit(); @@ -204,8 +190,6 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject) XMStoreFloat3(&m_vRotateUp, XMVector3Normalize(XMVector3Rotate(vUp, vQuaternion))); - m_bVisible = true; - return S_OK; } @@ -253,7 +237,11 @@ CGameObject* CNomalJap::Clone(void* pArg, CGameObject* pOwner) void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc) { - //CTransform* pOtherTransform = p + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); for (auto& pPair : m_PartObjects) diff --git a/Jusin154_Team3D/Client/Private/NomalJapSide.cpp b/Jusin154_Team3D/Client/Private/NomalJapSide.cpp index eef2a8b95..5fdcff80c 100644 --- a/Jusin154_Team3D/Client/Private/NomalJapSide.cpp +++ b/Jusin154_Team3D/Client/Private/NomalJapSide.cpp @@ -93,17 +93,9 @@ void CNomalJapSide::Late_Update(_float fTimeDelta) HRESULT CNomalJapSide::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - m_pOwner = pObject; - - Reset_EffectParts(); - - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - CWand* pWand = static_cast(m_pOwner); @@ -122,9 +114,6 @@ HRESULT CNomalJapSide::Pre_Setting(CGameObject* pObject) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - - m_bVisible = true; - return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 999da4f0e..51dfaa4a5 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -106,7 +106,7 @@ HRESULT CPlayer::Initialize(void* pArg) void CPlayer::Priority_Update(_float fTimeDelta) { ReLockOnTarget(); - SetGravity(); + //SetGravity(); m_pTransformCom->RewindMomentum(); __super::Priority_Update(fTimeDelta); diff --git a/Jusin154_Team3D/Client/Private/Protego.cpp b/Jusin154_Team3D/Client/Private/Protego.cpp index fc8b88e33..4d487fd63 100644 --- a/Jusin154_Team3D/Client/Private/Protego.cpp +++ b/Jusin154_Team3D/Client/Private/Protego.cpp @@ -108,17 +108,9 @@ void CProtego::Late_Update(_float fTimeDelta) HRESULT CProtego::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - m_pOwner = pObject; - - Reset_EffectParts(); - - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); m_pBottom->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); @@ -138,9 +130,6 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject) m_pSphere->Set_Dissolve(false); m_pBottom->Set_Dissolve(false); m_pCircle->Set_Dissolve(false); - - m_bVisible = true; - return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Revelio.cpp b/Jusin154_Team3D/Client/Private/Revelio.cpp index fc17b10f2..9cd2df2f4 100644 --- a/Jusin154_Team3D/Client/Private/Revelio.cpp +++ b/Jusin154_Team3D/Client/Private/Revelio.cpp @@ -94,18 +94,9 @@ void CRevelio::Late_Update(_float fTimeDelta) HRESULT CRevelio::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - m_pOwner = pObject; - - - Reset_EffectParts(); - - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - CPlayer* pPlayer = static_cast(m_pOwner); @@ -128,7 +119,6 @@ HRESULT CRevelio::Pre_Setting(CGameObject* pObject) Get_PartObject("Revelio_Ring")->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); Get_PartObject("Revelio_Ring")->Set_Visible(true); - m_bVisible = true; return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/TrailObject.cpp b/Jusin154_Team3D/Client/Private/TrailObject.cpp index f7cc1e260..283fdc52c 100644 --- a/Jusin154_Team3D/Client/Private/TrailObject.cpp +++ b/Jusin154_Team3D/Client/Private/TrailObject.cpp @@ -28,6 +28,7 @@ HRESULT CTrailObject::Initialize(void* pArg) if (FAILED(Ready_Components(pArg))) return E_FAIL; + return S_OK; } @@ -42,14 +43,19 @@ void CTrailObject::Update(_float fTimeDelta) if (m_bVisible == false) return; - if (m_TrailInfo.vDistortionTime.y == 0) - return; - m_TrailInfo.vDistortionTime.x += fTimeDelta; - if (m_TrailInfo.vDistortionTime.x > m_TrailInfo.vDistortionTime.y) + + + /* 디졸브 타임*/ + if (m_TrailInfo.vDistortionTime.y != 0) { - m_TrailInfo.vDistortionTime.x = 0.f; + m_TrailInfo.vDistortionTime.x += fTimeDelta; + + if (m_TrailInfo.vDistortionTime.x > m_TrailInfo.vDistortionTime.y) + { + m_TrailInfo.vDistortionTime.x = 0.f; + } } /* 블룸 타임*/ @@ -63,19 +69,21 @@ void CTrailObject::Update(_float fTimeDelta) m_TrailInfo.vBloomTime.x = 0.f; } } + } void CTrailObject::Late_Update(_float fTimeDelta) { - if (m_bVisible == false) return; + if (m_TrailInfo.isBloom == true) { m_pGameInstance->Add_RenderGroup(RENDER::BLOOM, this); } + if (m_TrailInfo.isBlur == true) { m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this); @@ -85,40 +93,11 @@ void CTrailObject::Late_Update(_float fTimeDelta) return; if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { - m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this); + m_pGameInstance->Add_RenderGroup(m_TrailInfo.eRenderOrder, this); } } -HRESULT CTrailObject::Ready_Components(void* pArg) -{ - - if (FAILED(__super::Ready_Components(nullptr))) { - return E_FAIL; - } - - if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_POSTEX, (CComponent**)&m_pShaderCom, nullptr))) - { - return E_FAIL; - } - - CTrail::TRAIL_DESC pTrailDesc; - - pTrailDesc.vHigh = _float3(0.f, 1.f, 0.f); - pTrailDesc.vLow = _float3(0.f, -1.f, 0.f); - - if (FAILED(Add_Component(g_iStaticLevel, &m_pTrailCom, &pTrailDesc))) { - return E_FAIL; - } - - return S_OK; -} - -void CTrailObject::Trail_Update(_fmatrix WorldMat , _float fTimeDelta) -{ - m_pTrailCom->Trail_Update(fTimeDelta, WorldMat); -} - HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel) { SAFE_RELEASE(m_pDiffuse_TextureCom); @@ -243,15 +222,44 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel) CloseHandle(hFile); return S_OK; - } +HRESULT CTrailObject::Ready_Components(void* pArg) +{ + + if (FAILED(__super::Ready_Components(nullptr))) { + return E_FAIL; + } + + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_POSTEX, (CComponent**)&m_pShaderCom, nullptr))) + { + return E_FAIL; + } + + CTrail::TRAIL_DESC pTrailDesc; + + pTrailDesc.vHigh = _float3(0.f, 1.f, 0.f); + pTrailDesc.vLow = _float3(0.f, -1.f, 0.f); + + if (FAILED(Add_Component(g_iStaticLevel, &m_pTrailCom, &pTrailDesc))) { + return E_FAIL; + } + + return S_OK; +} + +void CTrailObject::Trail_Update(_fmatrix WorldMat, _float fTimeDelta) +{ + m_pTrailCom->Trail_Update(fTimeDelta, WorldMat); +} + + HRESULT CTrailObject::Render() { if (FAILED(Bind_ShaderResources())) return E_FAIL; - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL)))) + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(m_TrailInfo.eShaderPass)))) return E_FAIL; if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture"))) @@ -260,12 +268,12 @@ HRESULT CTrailObject::Render() if (FAILED(m_pTrailCom->Render())) return E_FAIL; - return S_OK; } HRESULT CTrailObject::Render_Blur() { + if (FAILED(Bind_ShaderResources())) return E_FAIL; @@ -289,6 +297,44 @@ HRESULT CTrailObject::Render_Blur() return S_OK; } +HRESULT CTrailObject::Render_Bloom() +{ + if (FAILED(Bind_ShaderResources())) + { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fBloomStrength", &m_TrailInfo.fBloomStrength, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_iBloomType", &m_TrailInfo.eBloomType, sizeof(_int)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isBloomDissolve", &m_TrailInfo.isBloomDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isBloomReverseDissolve", &m_TrailInfo.isBloomReverseDissolve, sizeof(_bool)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_vBloomTime", &m_TrailInfo.vBloomTime, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL_BLOOM)))) + return E_FAIL; + + + + if (FAILED(m_pTrailCom->Render())) + return E_FAIL; + + return S_OK; +} + + CTrailObject* CTrailObject::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -328,52 +374,6 @@ void CTrailObject::Free() SAFE_RELEASE(m_pShaderCom); SAFE_RELEASE(m_pTrailCom); } -#ifdef _DEBUG - -void CTrailObject::Describe_Entity() -{ - -} -#endif // _DEBUG - -HRESULT CTrailObject::Render_Bloom() -{ - if (FAILED(Bind_ShaderResources())) - { - return E_FAIL; - } - - if (FAILED(m_pShaderCom->Bind_RawValue("g_fBloomStrength", &m_TrailInfo.fBloomStrength, sizeof(_float)))) { - return E_FAIL; - } - - if (FAILED(m_pShaderCom->Bind_RawValue("g_iBloomType", &m_TrailInfo.eBloomType, sizeof(_int)))) { - return E_FAIL; - } - - if (FAILED(m_pShaderCom->Bind_RawValue("g_isBloomDissolve", &m_TrailInfo.isBloomDissolve, sizeof(_bool)))) { - return E_FAIL; - } - - if (FAILED(m_pShaderCom->Bind_RawValue("g_isBloomReverseDissolve", &m_TrailInfo.isBloomReverseDissolve, sizeof(_bool)))) { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Bind_RawValue("g_vBloomTime", &m_TrailInfo.vBloomTime, sizeof(_float2)))) { - return E_FAIL; - } - - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL_BLOOM)))) - return E_FAIL; - - - - if (FAILED(m_pTrailCom->Render())) - return E_FAIL; - - return S_OK; -} - - HRESULT CTrailObject::Bind_ShaderResources() { @@ -516,3 +516,10 @@ HRESULT CTrailObject::Bind_ShaderResources() return S_OK; } + +#ifdef _DEBUG +void CTrailObject::Describe_Entity() +{ + +} +#endif diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index 53b558bbb..9b4aed3d6 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -11,7 +11,7 @@ namespace Client enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, OUTLINE_WRITE, OUTLINE_READ, BLOOM, END }; enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, END }; enum class SHADER_PASS_PARTICLE { EXPLOSION, END }; - enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR, TRAIL_BLOOM, END }; + enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END }; enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, END }; enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, END }; enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, END }; diff --git a/Jusin154_Team3D/Client/Public/EffectObject.h b/Jusin154_Team3D/Client/Public/EffectObject.h index 58c07bb3d..f30eee9e8 100644 --- a/Jusin154_Team3D/Client/Public/EffectObject.h +++ b/Jusin154_Team3D/Client/Public/EffectObject.h @@ -52,7 +52,6 @@ class CEffectObject abstract : public CPartObject _bool isBlur = {}; _bool isBillboard = {}; - _float4 vEmissive = { 0.f ,0.f ,0.f ,0.f }; _float fDiffuseAlpha = { 1.f }; _float fBlurIntensity = {}; @@ -86,23 +85,35 @@ class CEffectObject abstract : public CPartObject SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP }; - _bool isBlurNoEmissive = {}; + _bool isBlurNoEmissive = {}; + _bool isTexBlur = {}; + _bool isBlurDissolve = {}; + _bool isBlurReverseDissolve = {}; - _bool isTexBlur = {}; - _bool isBlurDissolve = {}; - _bool isBlurReverseDissolve = {}; + _float fBluringStrength = { 0.01f }; - _float fBluringStrength = { 0.01f }; + _bool isBloom = {}; + _bool isBloomDissolve = {}; + _bool isBloomReverseDissolve = {}; + _float fBloomStrength = {}; + BLOOM_TYPE eBloomType = {}; - _bool isBloom = {}; + _float fDissolveDelay = {}; + _float fReverseDissolveDelay = {}; + _float2 vDissolveUVGainAmount = {}; + _bool isDissolveMove = {}; - _bool isBloomDissolve = {}; - _bool isBloomReverseDissolve = {}; + _float3 vDissolveValue = {}; - _float fBloomStrength = {}; - BLOOM_TYPE eBloomType = {}; + _float3 vPadding1 = {}; + + _float fPadding0 = {}; + _float fPadding1 = {}; + + _bool isPadding0 = {}; + _bool isPadding1 = {}; }EFFECT_INFO; diff --git a/Jusin154_Team3D/Client/Public/Effect_Container.h b/Jusin154_Team3D/Client/Public/Effect_Container.h index 3f57c2ac2..b2201d6f6 100644 --- a/Jusin154_Team3D/Client/Public/Effect_Container.h +++ b/Jusin154_Team3D/Client/Public/Effect_Container.h @@ -50,6 +50,7 @@ class CEffect_Container abstract : public CContainerObject _float m_fDuration = {}; _float m_fDelay = {}; _bool m_isDelayed = { false }; + _bool m_isCollisionEnter = { false }; map<_float, function> m_Events = {}; diff --git a/Jusin154_Team3D/Client/Public/NomalJap.h b/Jusin154_Team3D/Client/Public/NomalJap.h index 17dc6c3a7..e306bc935 100644 --- a/Jusin154_Team3D/Client/Public/NomalJap.h +++ b/Jusin154_Team3D/Client/Public/NomalJap.h @@ -39,7 +39,7 @@ class CNomalJap final : public CEffect_Container class CPartObject* m_pProjectile_Side = {}; _float3 m_vRotateUp = {}; - _float m_fAccTime = {}; + _float m_fAccMoveTime = {}; _float m_fLerpAmount = {}; _float m_fTurnValue = {}; diff --git a/Jusin154_Team3D/Client/Public/PlayerInfo.h b/Jusin154_Team3D/Client/Public/PlayerInfo.h index 089fdc3d0..e67140c35 100644 --- a/Jusin154_Team3D/Client/Public/PlayerInfo.h +++ b/Jusin154_Team3D/Client/Public/PlayerInfo.h @@ -23,12 +23,8 @@ class CPlayerInfo final : public CBase pair<_float3, _float3> Get_CameraCoordinateSystem(); private: CGameInstance* m_pGameInstance = { nullptr }; - class C - - - - * m_pInfoInstance = { nullptr }; + class CInfoInstance* m_pInfoInstance = { nullptr }; ID3D11Device* m_pDevice = { nullptr }; ID3D11DeviceContext* m_pContext = { nullptr }; diff --git a/Jusin154_Team3D/Client/Public/TrailObject.h b/Jusin154_Team3D/Client/Public/TrailObject.h index 81982c0cd..eacf2e3e4 100644 --- a/Jusin154_Team3D/Client/Public/TrailObject.h +++ b/Jusin154_Team3D/Client/Public/TrailObject.h @@ -57,17 +57,33 @@ class CTrailObject final : public CPartObject _int iBlurWeight = {}; /* 블룸 */ - _bool isBloom = {}; + _bool isBloom = {}; - _bool isBloomDissolve = {}; - _bool isBloomReverseDissolve = {}; + _bool isBloomDissolve = {}; + _bool isBloomReverseDissolve = {}; _float fBloomStrength = {}; - BLOOM_TYPE eBloomType = {}; - _float2 vBloomTime = {}; + BLOOM_TYPE eBloomType = {}; + _float2 vBloomTime = {}; - _int iNumVertex = {}; + _int iNumVertex = {}; + + + RENDER eRenderOrder = { RENDER::EFFECT }; + SHADER_PASS_POSTEX eShaderPass = { SHADER_PASS_POSTEX::TRAIL }; + + _float3 vPadding0 = {}; + _float3 vPadding1 = {}; + _float3 vPadding2 = {}; + + _float fPadding0 = {}; + _float fPadding1 = {}; + _float fPadding2 = {}; + + _bool isPadding0 = {}; + _bool isPadding1 = {}; + _bool isPadding2 = {}; }TRAIL_INFO; private: diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle0.bin index 740a20691..0c221cce2 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e50b40043abc993e440ef8023618377a6850af78b37f409dd87f13286d3530a0 -size 935 +oid sha256:96dde9ab9521a7d06c8bdc7d2e003cd745a755dcffb688ecb222cccda87e4a3c +size 934 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 09f29a8ad..b8b365e7f 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:5f525cee6af33b6081124ecf3014272e741a025511068e743ab9cff201f98659 +oid sha256:9e251d6650f1dff13cc7e513a936c5dfc7091dd2656bea006cd344237ed12762 size 892 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 9f948d145..70d349ec6 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:dfac4143e63b105b4722ada6b51c755031c7a5d1a6a1b1f6702500e2e0db8249 +oid sha256:c11ce182b2d2fae1967039a0ced8f9f8358ba967be1cf8a0fe580f2c3d393365 size 894 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 defdcdbcf..058e4cac6 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:8581fe5c72a96f33e6cc1e9372e60e8a98b02dae52ed6c89df4194e60a2ee2a1 +oid sha256:63afaa4a012202c62b96de055c71a47540f2fe0724066b43daa037b80149d948 size 894 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 d0e2df80b..e8a11edac 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:c0bd99b45ab1d462096243d144568eef6997b0dacd704b80b8223ade183f645d +oid sha256:fb13d5e52f6b67711dc45e0a8e9dfb3493191286225295f821990c111465ab11 size 886 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 0197e4f1b..c6bdbeeb7 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:f465a38beb024d0f0669aab7273f5065faaf214a27936c5f403fa5e9d67db23f +oid sha256:b3b5077077db59e5b1e24148cb7acba8468967acf431105d58ccda2207bf8a25 size 886 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Shoot_Projectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Shoot_Projectile.bin new file mode 100644 index 000000000..7dc32c452 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Shoot_Projectile.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f762a0a06673f7e077ef28d7d70de5e048be67a642a1aa0614784bb6b41a879d +size 989 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Shoot_Pt.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Shoot_Pt.bin index 4be710324..4815e7c21 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Shoot_Pt.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Shoot_Pt.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a889cb0ca5943c3b78fdd4ab3d708f7260d7334a04b71dae2d478f92b3afb74e -size 882 +oid sha256:1f06d345e92b33243f7174140081bef89062febd0582f68028062fae819baec8 +size 890 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin index 6b5e2b63d..7cd5f49e9 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5629e044e8390265d86ac9cd8dfae59673e08208390180e59d45da9fc6e10c27 +oid sha256:7a4bf86427df3ec13dc4bcb71f00c3ce4f0898187c7b813340a6b8257f7b624c size 897 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin index f5e5742b5..d192aecc0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9ee22fe9593eff4015723d0d8526f33c7e90834ac3ddf4ad7d33dc8a327ddac7 +oid sha256:2003105ed4b907096ecd7fc2cada5b139e8751a9023e05fdfec28db703597b0f size 904 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin new file mode 100644 index 000000000..e11e7ef35 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1961e10bf9395bbbbc5d3bce84d09b070749fdccdd6cd73334ea62418a45a07 +size 987 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo_Cricle_S.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo_Cricle_S.bin new file mode 100644 index 000000000..3a32a99c7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo_Cricle_S.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:419b4c8ce38f21933771411e6c87b3389e01ebdafd8716fbac077db522fce71a +size 897 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapTrail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapTrail.trail index 8b7c1bde9..8b558499e 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapTrail.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapTrail.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_PT.bin index 4f7710b4b..0ae8a5a6b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:44c44b0ddadba96b228607ddf33bcab3602c7b3d825470d19dc7d7e52a537537 +oid sha256:365f473dacad97bc673a6177441980c3f30cba563db43dbc5b1cf350054be395 size 853 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin index a02ff11d6..fa43fa4f0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6f412a3c9cc61b9897be339e0becfc73918320796402105c41da53f96ec5dacc +oid sha256:75847fb41b6a2eea91f0191132371d2361aacf88ae7ad76977e3e2fbe7daee47 size 853 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ1.bin deleted file mode 100644 index 0673db8a7..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ1.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:319fe742ef89578672a46967e72a57bb1bd2da819f62c179018e9af0dc59f1d3 -size 853 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin index 82c53ebab..a29edf398 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b7899e3ebc6b3157e506d62b31fe3888bf526bbfe383bf4be07cd3be6ff0f227 -size 838 +oid sha256:cc338064550f039aff45187d665c60e37cab57bdb986283508620b6088344326 +size 846 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin index 224d04817..d95c88834 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7297f113d785577593be60e434bde09ac60b054809b3d95c39575f1cc147fb5e +oid sha256:1f58a2779531da998d45844266496fb65ecafe27f204b2404a0fa490cc2f80ae size 846 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin index 5b22c5cea..73351ba9c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:df22e4d123a08a04508db872fa27b2900a31f48d9cacc4c1274fa939098ca49d -size 900 +oid sha256:7f546ba755bf1b14d98b6afa3ff82e9850939d9162765558785558adfabdd55c +size 908 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail index ac9950a87..f83c08f63 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin index 44b316c81..cd0c1c7b7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:24566c9354ec546adfc670b692990028a44ee6fc2cf8bc0fe1422eb3d140afb7 -size 892 +oid sha256:6234b7dc505e9affe10add215091ee37fe0fff3f48c20cdfd4f9147ec3bfddfc +size 885 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand1.bin deleted file mode 100644 index 34ed9599f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand1.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7c95be2f94699ed455661bc05c2c6e7ccb298aad4b6fc6a9ccbff9070b48a103 -size 895 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Light_P.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Light_P.bin deleted file mode 100644 index 689279aa8..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Light_P.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4e666bd02c8c1f6941aa07c6497ca554b1edaa1806f3da899141c2f8746e3575 -size 888 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Decendo.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Decendo.bin index 0cd0cc25d..b6ebfcd4a 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Decendo.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Decendo.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5805455e1494ccd694ea6f25871226e899ec5e71759e7bd1599309e136219bda -size 509 +oid sha256:8829fbed6a4a80327c0d69dc2f8e8b7ebdab3bd5160e5e99cbc4a6e5881b8958 +size 577 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin index 093a46379..517803a84 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1407184bdbe9755d19cbb50a7a3d37c3e899046274e3bf5998f521147673a3b1 -size 768 +oid sha256:4c16921bcfa5621c02d9762a53857a4436d9ea28704102476e46045763478be9 +size 644 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin index ba8e1b814..2e92a175c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8b272bfabd881500d3ed8cc900aa7667dac9b8ed7a5a84725ab29eabea0c7720 -size 834 +oid sha256:dba1c71ec461ed664e404f650c7be341d981da3da0592ed53a37cbedf051abe2 +size 877 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli index 9a1e75e37..8dc9b0ed8 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli @@ -320,13 +320,13 @@ float2 SelectLerpUV(float2 fAmount, float _fRatio, int iSelectOption) fRatio = fRatio * fRatio; // EaseInQuad 후반에 속도 증가 break; case 2: - fRatio = 1 - (1 - fRatio * fRatio); // EaseOutQuad 초반에 속도 증가 + fRatio = 1 - pow(1 - fRatio, 2); // EaseOutQuad 초반에 속도 증가 break; case 3: fRatio = fRatio * fRatio * fRatio; // EaseInCubic 더 강하게 후반 속도 증가 break; case 4: - fRatio = 1 - (1 - fRatio * fRatio * fRatio); // EaseOutCubic 더 강하게 초반 속도 증가 + fRatio = 1 - pow(1 - fRatio, 3); // EaseOutCubic 더 강하게 초반 속도 증가 break; case 5: fRatio = 0.5f * (1 - cos(PI * fRatio)); // EaseInOutSin 사인 곡선 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 952369d09..be4a346f6 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl @@ -24,8 +24,9 @@ struct ParticleValue float2 vDiffuseUVMoveTime; float2 vDistortionUVMoveTime; float2 vNoiseUVMoveTime; - float2 vAniTime; float2 vDissolveUVMoveTime; + float2 vAniTime; + float2 vAniIndex; float fGravity; @@ -70,8 +71,8 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐 bool isPadding2; float fTimeDelta; - float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다. - float fPadding2; + float fSizeLerpOption; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다. + float fMoveLerpOption; float fPadding3; } @@ -165,11 +166,11 @@ void CS_MAIN( float3 vDir = normalize(particleValue.vPivot - particleValue.vOriginTranslation.xyz); - float fRatio = (1 - fTime * fTime); + float fDrag = particleValue.fDrag; - float fDrag = particleValue.fDrag * fRatio; + if (fSizeLerpOption != 0.f) + fDrag = SelectLerpUV(float2(particleValue.fSizeDrag, 0.f), fTime, fMoveLerpOption).x; - if (particleValue.fDrag < FLT_EPSILON5) fDrag = 1; @@ -244,14 +245,14 @@ void CS_MAIN( float fTime = (particle.vLifeTime.x / particle.vLifeTime.y); - float fRatio = 1 - (1 - fTime * fTime); - float fDrag = particleValue.fSizeDrag; + if (fSizeLerpOption != 0.f) + fDrag = SelectLerpUV(float2(particleValue.fSizeDrag, 0.f), fTime, fSizeLerpOption).x; + if (particleValue.fSizeDrag < FLT_EPSILON5) fDrag = 1; - - //fDrag *= fRatio; + CurLength += particleValue.vDeltaSize * fTimeDelta * fDrag; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl index fa7367f6e..c8efd9d04 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl @@ -138,6 +138,10 @@ float g_fReverseDissolveDelay; float2 g_vDissolveUVGainAmount; bool g_isDissolveMove; +float g_fDissolveMaskEdge; +float g_fDissolveSoftMask; +float g_fDissolveCutRatio; + struct VS_IN { float3 vPosition : POSITION; @@ -253,7 +257,7 @@ float4 DrawEffect(PS_IN In) vector vMtrlDissolve; vector vMtrlDistortion; - float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x; + float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x; float2 vDiffuseTime = g_ParticleValue[In.iGPUIndex].vDiffuseUVMoveTime; float2 vMaskingTime = g_ParticleValue[In.iGPUIndex].vMaskingUVMoveTime; float2 vNoiseUVMoveTime = g_ParticleValue[In.iGPUIndex].vNoiseUVMoveTime; @@ -452,8 +456,7 @@ float4 DrawEffect(PS_IN In) { fTimeRatio = In.vLifeTime.x / In.vLifeTime.y; } - - if (fTimeX > 0 && fTimeY != 0) + else if (fTimeX > 0 && fTimeY != 0) { fTimeRatio = saturate(fTimeX / fTimeY); } @@ -463,41 +466,61 @@ float4 DrawEffect(PS_IN In) { if (g_isReverseDissolve == false) { - vMtrlDiffuse.a *= (0.95f - fTimeRatio); + vMtrlDiffuse.a *= saturate((0.96f - fTimeRatio)); } else { vMtrlDiffuse.a *= In.vLifeTime.x / In.vLifeTime.y; } + + } + + float2 vDissolveUV = In.vTexcoord + SelectLerpUV(g_vDissolveUVGainAmount, (vDissolveUVMoveTime.x / vDissolveUVMoveTime.y), 0); - - if (vMtrlDiffuse.a <= FLT_EPSILON5) + if (g_isDissolveMove) + vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, vDissolveUV); + else + vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord); + + /* */ + float fSoftDissolve; + + if (g_fDissolveSoftMask > FLT_EPSILON5) + fSoftDissolve = saturate((vMtrlDissolve.r - g_fDissolveMaskEdge) * g_fDissolveSoftMask); + else + fSoftDissolve = vMtrlDissolve.r; + + vMtrlDissolve.r = fSoftDissolve; + + if (g_isReverseDissolve == true) + { + if (vMtrlDissolve.r >= (In.vLifeTime.x / In.vLifeTime.y)) discard; } else { - - float2 vDissolveUV = In.vTexcoord + SelectLerpUV(g_vDissolveUVGainAmount, (vDissolveUVMoveTime.x / vDissolveUVMoveTime.y), 0); - - if (g_isDissolveMove) - vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, vDissolveUV); - else - vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord); - - - - if (g_isReverseDissolve == true) + if (g_fDissolveCutRatio <= fTimeRatio) // 일정 수준 이상 넘어가지 못하도록 막기 { - if (vMtrlDissolve.r >= (In.vLifeTime.x / In.vLifeTime.y)) - discard; - } - else - { - if (vMtrlDissolve.r < fTimeRatio) - discard; + fTimeRatio = g_fDissolveCutRatio; + } + + //if (vMtrlDissolve.r <= fTimeRatio + 0.1f) + // discard; + + + fTimeRatio = 1 - pow(1 - fTimeRatio, 3); + + float fFade = smoothstep(fTimeRatio - 0.1f, fTimeRatio + 0.1f, vMtrlDissolve.r); + + vMtrlDiffuse.a *= fFade; + } + + + if (vMtrlDiffuse.a <= FLT_EPSILON5) + discard; } return vMtrlDiffuse; @@ -754,8 +777,11 @@ PS_BLOOM_OUT PS_BLOOM(PS_IN In) { PS_BLOOM_OUT Out; - - vector vMtrlDiffuse; + + if (FLT_EPSILON5 >= (In.vLifeTime.x / In.vLifeTime.y)) + discard; + + vector vMtrlDiffuse = vector(0.f, 0.f, 0.f, 0.f); vMtrlDiffuse = DrawEffect(In); diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl index 930109978..f81c01772 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl @@ -386,6 +386,40 @@ PS_BLUR_OUT PS_TRAIL_BLOOM(PS_IN In) return Out; } +PS_BLOOM_OUT PS_BLEND(PS_IN In) +{ + PS_BLOOM_OUT Out; + + vector vMtrlDiffuse; + + vMtrlDiffuse = Draw_Trail(In); + + vMtrlDiffuse.rgb += EmissiveDraw(In).rgb; + + Out.vDiffuse = vMtrlDiffuse; + + return Out; +} + +PS_BLOOM_OUT PS_WEIGHTED_FOR_BLEND(PS_IN In) +{ + PS_BLOOM_OUT Out; + + vector vMtrlDiffuse; + + vMtrlDiffuse = Draw_Trail(In); + + vMtrlDiffuse.rgb += EmissiveDraw(In).rgb; + + + float fWeight = clamp(pow(In.vProjPos.w, -2.5f), 1.0f, 1000.0f); + + Out.vDiffuse = vector(vMtrlDiffuse.rgb, vMtrlDiffuse.a) * fWeight; + + + return Out; +} + technique11 PosTexTechnique11 { pass PosTexPass @@ -438,6 +472,26 @@ technique11 PosTexTechnique11 PixelShader = compile ps_5_0 PS_Trail(); } + pass TrailBlend + { + SetRasterizerState(RS_Nocull); + SetDepthStencilState(DSS_Effect, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_BLEND(); + } + + pass TrailWB_For_Blend + { + SetRasterizerState(RS_Nocull); + SetDepthStencilState(DSS_Effect, 0); + SetBlendState(BS_WB_Acc, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_WEIGHTED_FOR_BLEND(); + } + pass TrailBlur { SetRasterizerState(RS_Nocull); diff --git a/Jusin154_Team3D/Editor/Private/Bombard.cpp b/Jusin154_Team3D/Editor/Private/Bombard.cpp index cf2e24189..042976d1f 100644 --- a/Jusin154_Team3D/Editor/Private/Bombard.cpp +++ b/Jusin154_Team3D/Editor/Private/Bombard.cpp @@ -89,20 +89,9 @@ void CBombard::Late_Update(_float fTimeDelta) HRESULT CBombard::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - m_pOwner = pObject; - - if (FAILED(Ready_Child())) - return E_FAIL; - - Reset_EditEffect(); - - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - CWand* pWand = static_cast(m_pOwner)->Get_PartObject(); if (pWand == nullptr) @@ -114,6 +103,7 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject) m_vCameraLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK); + pShootPt->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); m_pLight_Projectile->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); @@ -124,9 +114,6 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject) m_pLight_Projectile->Set_Visible(true); - m_bVisible = true; - - return S_OK; } @@ -173,7 +160,10 @@ CGameObject* CBombard::Clone(void* pArg, CGameObject* pOwner) void CBombard::OnCollision(CGameObject* pOther, void* pDesc) { - //CTransform* pOtherTransform = p + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; _vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f); @@ -184,14 +174,27 @@ void CBombard::OnCollision(CGameObject* pOther, void* pDesc) pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); } + CWand* pWand = static_cast(m_pOwner)->Get_PartObject(); + + if (pWand == nullptr) + return; + + CPartObject* pShootPt = Get_PartObject("Bombard_Shoot_Pt"); + CPartObject* pCircle0 = Get_PartObject("Bombard_Circle0"); + + pShootPt->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + m_pLight_Projectile->Set_Visible(false); - Get_PartObject("Bombard_Shoot_Pt")->Set_Visible(false); + + //Get_PartObject("Bombard_PT_0")->Get_Component()->LookAt(m_pOwner->Get_WorldPostion()); + //Get_PartObject("Bombard_PT_1")->Get_Component()->LookAt(m_pOwner->Get_WorldPostion()); + //Get_PartObject("Bombard_PT_2")->Get_Component()->LookAt(m_pOwner->Get_WorldPostion()); _vector vOwnerLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK); Get_PartObject("Bombard_Smoke")->Get_Component()->Translation(vOwnerLook); - Get_PartObject("Bombard_Circle0")->Set_Visible(false); - } void CBombard::Free() diff --git a/Jusin154_Team3D/Editor/Private/BombardSide.cpp b/Jusin154_Team3D/Editor/Private/BombardSide.cpp index 2fb72f647..6261f5e74 100644 --- a/Jusin154_Team3D/Editor/Private/BombardSide.cpp +++ b/Jusin154_Team3D/Editor/Private/BombardSide.cpp @@ -113,17 +113,9 @@ void CBombardSide::Late_Update(_float fTimeDelta) HRESULT CBombardSide::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - m_pOwner = pObject; - - Reset_EditEffect(); - - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - CWand* pWand = static_cast(m_pOwner); @@ -144,9 +136,6 @@ HRESULT CBombardSide::Pre_Setting(CGameObject* pObject) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - - m_bVisible = true; - return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Decendo.cpp b/Jusin154_Team3D/Editor/Private/Decendo.cpp index b7dd4051b..fca79c71d 100644 --- a/Jusin154_Team3D/Editor/Private/Decendo.cpp +++ b/Jusin154_Team3D/Editor/Private/Decendo.cpp @@ -103,22 +103,9 @@ void CDecendo::Late_Update(_float fTimeDelta) HRESULT CDecendo::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - /* 부모 할당 */ - m_pOwner = pObject; - - /* 피직스 생성*/ - if (FAILED(Ready_Child())) - return E_FAIL; - - /* 초기 셋팅 초기화 */ - Reset_EditEffect(); - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - CWand* pWand = static_cast(m_pOwner)->Get_PartObject(); @@ -128,16 +115,25 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject) CPartObject* pCircle0 = Get_PartObject(); + CPartObject* pWandLight = Get_PartObject("Decendo_Wand_Light"); + + + /* 초기 객체 위치 초기화 */ - pCircle0->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); m_pProjectile_Blur->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); /* 초기 객체 비지블 */ pCircle0->Set_Visible(true); + pWandLight->Set_Visible(true); + m_pProjectile->Set_Visible(true); m_pProjectile_Blur->Set_Visible(true); + /*트레일 초기화 */ Get_PartObject()->Set_Visible(true); Get_PartObject()->Get_Component()->Reset_Trail(); @@ -153,7 +149,6 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject) m_vRotateUp = XMVector3Rotate(vUp, vQuaternion); m_vRotateUp = XMVector3Normalize(m_vRotateUp); - m_bVisible = true; return S_OK; } @@ -201,7 +196,12 @@ CGameObject* CDecendo::Clone(void* pArg, CGameObject* pOwner) void CDecendo::OnCollision(CGameObject* pOther, void* pDesc) { - //CTransform* pOtherTransform = p + + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + _vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f); @@ -217,13 +217,26 @@ void CDecendo::OnCollision(CGameObject* pOther, void* pDesc) m_pProjectile->Set_Visible(false); + CWand* pWand = static_cast(m_pOwner)->Get_PartObject(); + + if (pWand == nullptr) + return; + + CPartObject* pCircle0 = Get_PartObject(); + CPartObject* pWandLight = Get_PartObject("Decendo_Wand_Light"); + + + pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); _vector vPlayerPos = m_pOwner->Get_Component()->Get_State(STATE::POSITION); + + Get_PartObject("Decendo_Down")->Get_Component()->LookAt(vPlayerPos); Get_PartObject("Decendo_Smoke")->Get_Component()->LookAt(vPlayerPos); - Get_PartObject()->Set_Visible(false); + Get_PartObject()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); Get_PartObject()->Set_Visible(false); diff --git a/Jusin154_Team3D/Editor/Private/DecendoSide.cpp b/Jusin154_Team3D/Editor/Private/DecendoSide.cpp index fea17f711..f7a179cad 100644 --- a/Jusin154_Team3D/Editor/Private/DecendoSide.cpp +++ b/Jusin154_Team3D/Editor/Private/DecendoSide.cpp @@ -101,23 +101,17 @@ void CDecendoSide::Late_Update(_float fTimeDelta) HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - m_pOwner = pObject; - - Reset_EditEffect(); - - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - CWand* pWand = static_cast(m_pOwner); if (pWand == nullptr) return E_FAIL; + m_isTrailEnd = false; + m_pWandLight->Set_Visible(true); /*트레일 초기화 */ @@ -128,9 +122,6 @@ HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - - m_bVisible = true; - return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp index f5b9ab48a..396ddff81 100644 --- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp +++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp @@ -84,6 +84,7 @@ void CEditEffect::Late_Update(_float fTimeDelta) } + if (m_isWandPos == true) { _vector vWandPos = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_PLAYER)->Get_Object()->Get_PartObject()->Get_WorldPostion(); @@ -432,6 +433,7 @@ void CEditEffect::Describe_Entity() m_EffectInfo.eRenderOrder = static_cast(iCurrentItem); } + if (ImGui::Combo("Effect Type", &iCurrentType, pEffectType, ENUM_CLASS(EFFECT_TYPE::END))) { m_EffectInfo.eEffectType = static_cast(iCurrentType); @@ -443,7 +445,6 @@ void CEditEffect::Describe_Entity() } - GUI::Checkbox("Visible", &m_bVisible); GUI::Checkbox("GO", &m_isGoStraight); GUI::Checkbox("WAND POS", &m_isWandPos); @@ -725,13 +726,22 @@ void CEditEffect::Describe_Entity() GUI::Checkbox("Nomal Dissolve", &m_EffectInfo.isNomalDissolve); GUI::Checkbox("Reverse Dissolve", &m_EffectInfo.isReverseDissolve); + ImGui::PushItemWidth(80); GUI::Spacing(); GUI::Checkbox("DissolveMove", &m_EffectInfo.isDissolveMove); GUI::DragFloat2("DissolveUVGainAmount", (_float*)&m_EffectInfo.vDissolveUVGainAmount, 0.01f); + + GUI::Spacing(); GUI::DragFloat("DissolveDelay", &m_EffectInfo.fDissolveDelay, 0.005f); GUI::DragFloat("ReverseDissolveDelay", &m_EffectInfo.fReverseDissolveDelay, 0.005f); + GUI::Spacing(); + GUI::DragFloat("DissolveMaskEdge", &m_EffectInfo.vDissolveValue.x, 0.005f); + GUI::DragFloat("DissolveSoftMask", &m_EffectInfo.vDissolveValue.y, 0.005f); + GUI::DragFloat("DissolveCutRatio", &m_EffectInfo.vDissolveValue.z, 0.005f); + + ImGui::PopItemWidth(); _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DISSOLVE_TEXTURE", (CComponent**)&m_pDissolve_TextureCom, nullptr, this); if (strName != "") { diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp index 9c885d82f..4795562c7 100644 --- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp @@ -918,6 +918,18 @@ HRESULT CEffectObject::Bind_ShaderResources() return E_FAIL; } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fDissolveMaskEdge", &m_EffectInfo.vDissolveValue.x, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fDissolveSoftMask", &m_EffectInfo.vDissolveValue.y, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fDissolveCutRatio", &m_EffectInfo.vDissolveValue.z, sizeof(_float)))) { + return E_FAIL; + } + diff --git a/Jusin154_Team3D/Editor/Private/Effect_Container.cpp b/Jusin154_Team3D/Editor/Private/Effect_Container.cpp index 55d58ca0a..e9e58c49a 100644 --- a/Jusin154_Team3D/Editor/Private/Effect_Container.cpp +++ b/Jusin154_Team3D/Editor/Private/Effect_Container.cpp @@ -308,6 +308,20 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath) HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject) { + if (pObject == nullptr) + return E_FAIL; + + m_pOwner = pObject; + + + Reset_EditEffect(); + + m_fAccTime = 0.f; + m_fPreAccTime = 0.f; + + m_bVisible = true; + m_isCollisionEnter = false; + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp index 44b56727a..3fd4ebcfc 100644 --- a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp +++ b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp @@ -74,21 +74,6 @@ void CEffect_Editor::Update(_float fTimeDelta) Describe_Entity(); __super::Update(fTimeDelta); - if (m_pGameInstance->Key_Pressing(DIK_UP)) - m_pTransformCom->Go_Straight(fTimeDelta); - if (m_pGameInstance->Key_Pressing(DIK_DOWN)) - m_pTransformCom->Go_Backward(fTimeDelta); - if (m_pGameInstance->Key_Pressing(DIK_RIGHT)) - m_pTransformCom->Go_Right(fTimeDelta); - if (m_pGameInstance->Key_Pressing(DIK_LEFT)) - m_pTransformCom->Go_Left(fTimeDelta); - - if (m_pGameInstance->Key_Pressing(DIK_Z)) - m_pTransformCom->Turn(XMVectorSet(0.f, 1.f, 0.f, 0.f), fTimeDelta); - - /* 이펙트 컨테이너 업데이트 */ - //Update_Event(fTimeDelta); - /* 트레일 업데이트 */ if (m_isWandPos == true) @@ -109,6 +94,25 @@ void CEffect_Editor::Update(_float fTimeDelta) } + if (m_pGameInstance->Key_Pressing(DIK_UP)) + m_pTransformCom->Go_Straight(fTimeDelta); + if (m_pGameInstance->Key_Pressing(DIK_DOWN)) + m_pTransformCom->Go_Backward(fTimeDelta); + if (m_pGameInstance->Key_Pressing(DIK_RIGHT)) + m_pTransformCom->Go_Right(fTimeDelta); + if (m_pGameInstance->Key_Pressing(DIK_LEFT)) + m_pTransformCom->Go_Left(fTimeDelta); + + if (m_pGameInstance->Key_Pressing(DIK_Z)) + m_pTransformCom->Turn(XMVectorSet(0.f, 1.f, 0.f, 0.f), fTimeDelta); + + /* 이펙트 컨테이너 업데이트 */ + //Update_Event(fTimeDelta); + + + + + } diff --git a/Jusin154_Team3D/Editor/Private/Levioso.cpp b/Jusin154_Team3D/Editor/Private/Levioso.cpp index 310eb7be3..2a79e53bd 100644 --- a/Jusin154_Team3D/Editor/Private/Levioso.cpp +++ b/Jusin154_Team3D/Editor/Private/Levioso.cpp @@ -5,6 +5,7 @@ #include "EditEffect.h" #include "Player.h" #include "TrailObject.h" +#include "Wand.h" CLevioso::CLevioso(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -37,12 +38,10 @@ HRESULT CLevioso::Initialize(void* pArg) return E_FAIL; m_pLeviosoPJ_0 = Get_PartObject("Levioso_PJ0"); - m_pLeviosoPJ_1 = Get_PartObject("Levioso_PJ1"); m_pLeviosoTrail = Get_PartObject("Levioso_Trail"); m_pTrail_PT_0 = Get_PartObject("Trail_PT0"); SAFE_ADDREF(m_pLeviosoPJ_0); - SAFE_ADDREF(m_pLeviosoPJ_1); SAFE_ADDREF(m_pLeviosoTrail); SAFE_ADDREF(m_pTrail_PT_0); @@ -76,12 +75,11 @@ void CLevioso::Update(_float fTimeDelta) Update_Event(fTimeDelta); m_pLeviosoPJ_0->Get_Component()->Translation(m_vOwnerLook * 0.25f); - m_pLeviosoPJ_1->Get_Component()->Translation(m_vOwnerLook * 0.25f); m_pTrail_PT_0->Get_Component()->Translation(m_vOwnerLook * 0.25f); - if (true == m_pGameInstance->SphereCast(0.125f, XMLoadFloat4(&m_vStartPos), m_vOwnerLook, XMVectorGetX(XMVector3Length(m_vOwnerLook * 1.f)) + if (true == m_pGameInstance->SphereCast(0.0f, XMLoadFloat4(&m_vStartPos), m_vOwnerLook, XMVectorGetX(XMVector3Length(m_vOwnerLook * 1.f)) , PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer)) { OnCollision(); @@ -116,20 +114,8 @@ void CLevioso::Late_Update(_float fTimeDelta) HRESULT CLevioso::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) - return E_FAIL; - m_pOwner = pObject; - - - Reset_EditEffect(); - - m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - - m_fAccRotateTime = 0.f; - - if (FAILED(Ready_Child())) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; CPlayer* pPlayer = static_cast(m_pOwner); @@ -139,26 +125,25 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject) _vector WandPos = pPlayer->Get_WandPos().r[3]; + CEditEffect* pWandSmoke = Get_PartObject("Levioso_Wand0"); + m_pLeviosoPJ_0->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix()); - m_pLeviosoPJ_1->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix()); m_pTrail_PT_0->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix()); - m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pLeviosoPJ_1->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos); + m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos); + m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos); + pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); m_pLeviosoPJ_0->Set_Visible(true); - m_pLeviosoPJ_1->Set_Visible(true); m_pTrail_PT_0->Set_Visible(true); + pWandSmoke->Set_Visible(true); m_pLeviosoTrail->Set_Visible(true); m_pLeviosoTrail->Get_Component()->Reset_Trail(); m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); - m_bVisible = true; - return S_OK; } @@ -206,6 +191,11 @@ CGameObject* CLevioso::Clone(void* pArg, CGameObject* pOwner) void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) { + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + _vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f); @@ -224,10 +214,10 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) //CEditEffect* pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); //CEditEffect* pLevioso_Tornado = Get_PartObject("Levioso_Tornado"); - m_pLeviosoPJ_0->Set_Visible(false); - m_pLeviosoPJ_1->Set_Visible(false); - m_pTrail_PT_0->Set_Visible(false); - m_pLeviosoTrail->Set_Visible(false); + //m_pLeviosoPJ_0->Set_Visible(false); + //m_pLeviosoPJ_1->Set_Visible(false); + //m_pTrail_PT_0->Set_Visible(false); + //m_pLeviosoTrail->Set_Visible(false); } void CLevioso::Free() @@ -236,7 +226,6 @@ void CLevioso::Free() SAFE_RELEASE(m_pLeviosoPJ_0); - SAFE_RELEASE(m_pLeviosoPJ_1); SAFE_RELEASE(m_pLeviosoTrail); SAFE_RELEASE(m_pTrail_PT_0); } diff --git a/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp b/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp index 099178bd2..a99a9a4fa 100644 --- a/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp +++ b/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp @@ -90,17 +90,9 @@ void CLeviosoSide::Late_Update(_float fTimeDelta) HRESULT CLeviosoSide::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - m_pOwner = pObject; - - Reset_EditEffect(); - - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - CWand* pWand = static_cast(m_pOwner); @@ -118,9 +110,6 @@ HRESULT CLeviosoSide::Pre_Setting(CGameObject* pObject) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - - m_bVisible = true; - return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/NomalJap.cpp b/Jusin154_Team3D/Editor/Private/NomalJap.cpp index 890ad5dc7..ad1d780ed 100644 --- a/Jusin154_Team3D/Editor/Private/NomalJap.cpp +++ b/Jusin154_Team3D/Editor/Private/NomalJap.cpp @@ -69,7 +69,7 @@ void CNomalJap::Update(_float fTimeDelta) __super::Update(fTimeDelta); Update_Event(fTimeDelta); - if (m_fAccTime > m_fDuration) { + if (m_fAccMoveTime > m_fDuration) { SAFE_RELEASE(m_pTargetUnit); } @@ -94,7 +94,7 @@ void CNomalJap::Update(_float fTimeDelta) //m_pGameInstance->SphereCast(0.125f, vfStartPos, vDir, XMVectorGetX(XMVector3Length(vEndPos - vStartPos)), ) - if (false == m_bTrailPulseEnded && m_fAccTime > m_fDuration * 0.3f) { + if (false == m_bTrailPulseEnded && m_fAccMoveTime > m_fDuration * 0.3f) { m_bTrailPulseEnded = true; if (nullptr != m_pTargetUnit && false == m_pTargetUnit->isDead()) { @@ -104,7 +104,7 @@ void CNomalJap::Update(_float fTimeDelta) XMStoreFloat3(&m_vDirection, XMVector4Normalize(vTargetPos - vCurrentPos)); _float fDistance = XMVectorGetX(XMVector3Length(vTargetPos - vCurrentPos)); - m_fLinearSpeed = fDistance / (m_fDuration - m_fAccTime) * 10 / 3; + m_fLinearSpeed = fDistance / (m_fDuration - m_fAccMoveTime) * 10 / 3; SAFE_RELEASE(m_pTargetUnit); } @@ -115,11 +115,11 @@ void CNomalJap::Update(_float fTimeDelta) return; } _vector vRotateUp = XMLoadFloat3(&m_vRotateUp); - m_fAccTime += fTimeDelta; + m_fAccMoveTime += fTimeDelta; // 각속도 - m_pProjectile_Side->Get_Component()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime)); - m_pProjectile->Get_Component()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime)); + m_pProjectile_Side->Get_Component()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccMoveTime)); + m_pProjectile->Get_Component()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccMoveTime)); } @@ -136,24 +136,11 @@ void CNomalJap::Late_Update(_float fTimeDelta) HRESULT CNomalJap::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if(FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - /* 부모 할당 */ - m_pOwner = pObject; - - /* 피직스 생성*/ - if (FAILED(Ready_Child())) { - return E_FAIL; - } - - /* 초기 셋팅 초기화 */ - Reset_EditEffect(); - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; m_bTrailPulseEnded = false; - + m_fAccMoveTime = 0.f; /* 초기 객체 위치 초기화 */ _vector vStartPos = m_pOwner->Get_WorldPostion(); @@ -203,8 +190,6 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject) XMStoreFloat3(&m_vRotateUp, XMVector3Normalize(XMVector3Rotate(vUp, vQuaternion))); - m_bVisible = true; - return S_OK; } @@ -252,7 +237,11 @@ CGameObject* CNomalJap::Clone(void* pArg, CGameObject* pOwner) void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc) { - //CTransform* pOtherTransform = p + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); for (auto& pPair : m_PartObjects) diff --git a/Jusin154_Team3D/Editor/Private/NomalJapSide.cpp b/Jusin154_Team3D/Editor/Private/NomalJapSide.cpp index dc4abe179..103cc63c5 100644 --- a/Jusin154_Team3D/Editor/Private/NomalJapSide.cpp +++ b/Jusin154_Team3D/Editor/Private/NomalJapSide.cpp @@ -117,17 +117,9 @@ void CNomalJapSide::Late_Update(_float fTimeDelta) HRESULT CNomalJapSide::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - m_pOwner = pObject; - - Reset_EditEffect(); - - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - CWand* pWand = static_cast(m_pOwner); @@ -148,9 +140,6 @@ HRESULT CNomalJapSide::Pre_Setting(CGameObject* pObject) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - - m_bVisible = true; - return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Protego.cpp b/Jusin154_Team3D/Editor/Private/Protego.cpp index df51edf14..960e08267 100644 --- a/Jusin154_Team3D/Editor/Private/Protego.cpp +++ b/Jusin154_Team3D/Editor/Private/Protego.cpp @@ -99,18 +99,9 @@ void CProtego::Late_Update(_float fTimeDelta) HRESULT CProtego::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - m_pOwner = pObject; - - Reset_EditEffect(); - - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - - m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); m_pBottom->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); m_pCircle->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); @@ -126,8 +117,6 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject) m_fSizeAccTime = 0.f; - m_bVisible = true; - return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Revelio.cpp b/Jusin154_Team3D/Editor/Private/Revelio.cpp index a2d45c08e..b1fa1b1b1 100644 --- a/Jusin154_Team3D/Editor/Private/Revelio.cpp +++ b/Jusin154_Team3D/Editor/Private/Revelio.cpp @@ -94,19 +94,9 @@ void CRevelio::Late_Update(_float fTimeDelta) HRESULT CRevelio::Pre_Setting(CGameObject* pObject) { - if (pObject == nullptr) + if (FAILED(__super::Pre_Setting(pObject))) return E_FAIL; - m_pOwner = pObject; - - - Reset_EditEffect(); - - m_fAccTime = 0.f; - __super::m_fAccTime = 0.f; - m_fPreAccTime = 0.f; - - CPlayer* pPlayer = static_cast(m_pOwner); if (pPlayer == nullptr) @@ -128,8 +118,6 @@ HRESULT CRevelio::Pre_Setting(CGameObject* pObject) Get_PartObject("Revelio_Ring")->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); Get_PartObject("Revelio_Ring")->Set_Visible(true); - m_bVisible = true; - return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/TrailObject.cpp b/Jusin154_Team3D/Editor/Private/TrailObject.cpp index 6319599b1..6b7288990 100644 --- a/Jusin154_Team3D/Editor/Private/TrailObject.cpp +++ b/Jusin154_Team3D/Editor/Private/TrailObject.cpp @@ -93,7 +93,7 @@ void CTrailObject::Late_Update(_float fTimeDelta) return; if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { - m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this); + m_pGameInstance->Add_RenderGroup(m_TrailInfo.eRenderOrder, this); } } @@ -365,7 +365,7 @@ HRESULT CTrailObject::Render() if (FAILED(Bind_ShaderResources())) return E_FAIL; - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL)))) + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(m_TrailInfo.eShaderPass)))) return E_FAIL; if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture"))) @@ -484,13 +484,29 @@ void CTrailObject::Free() void CTrailObject::Describe_Entity() { + const char* pRenderNames[] = { "PRIORITY" , "SHADOW", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM" , "UI", "OCCLUSION" }; + const char* pEffectType[] = { "EFFECT" , "TRAIL" }; + const char* pShaderPass[] = { "DEFAULT" , "SCISSOR" , "UI" , "UVMOVE" , "TRAIL" , "TRAIL_BLEND" , "TRAILWB_FOR_BLEND" , "TRAIL_BLUR", "TRAIL_BLOOM" }; const char* pBloomType[] = { "NONE" , "BASIC" , "MUILTY" }; + _int iCurrentBloomType = static_cast<_int>(m_TrailInfo.eBloomType); + _int iCurrentItem = static_cast<_int>(m_TrailInfo.eRenderOrder); + _int iCurrentPass = static_cast<_int>(m_TrailInfo.eShaderPass); + + if (GUI::TreeNode("TRAIL")) { - m_pTrailCom->Describe_Entity(); + if (ImGui::Combo("Render Order", &iCurrentItem, pRenderNames, ENUM_CLASS(RENDER::END))) + { + m_TrailInfo.eRenderOrder = static_cast(iCurrentItem); + } + if (ImGui::Combo("Shader Pass", &iCurrentPass, pShaderPass, ENUM_CLASS(SHADER_PASS_POSTEX::END))) + { + m_TrailInfo.eShaderPass = static_cast(iCurrentPass); + } + m_pTrailCom->Describe_Entity(); m_pShaderCom->Describe_Entity(); if(GUI::InputInt("NumVertex", &m_TrailInfo.iNumVertex)) @@ -573,12 +589,14 @@ void CTrailObject::Describe_Entity() { _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DIFFUSE_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this); + if (strName != "") { + m_strTrailDiffuseName = strName; + } + GUI::TreePop(); } - if (strName != "") { - m_strTrailDiffuseName = strName; - } + GUI::TreePop(); } diff --git a/Jusin154_Team3D/Editor/Public/EditEffect.h b/Jusin154_Team3D/Editor/Public/EditEffect.h index 229184a94..aacd47acf 100644 --- a/Jusin154_Team3D/Editor/Public/EditEffect.h +++ b/Jusin154_Team3D/Editor/Public/EditEffect.h @@ -40,6 +40,7 @@ class CEditEffect final : public CEffectObject _bool m_isGoStraight = {}; _float m_fAccTime = {}; _int m_iSign = { 1 }; + _bool _isLookAt = {}; _bool m_isWandPos = {}; diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index c1bbe2c31..33b7db96f 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -25,7 +25,7 @@ namespace Editor enum class SHADER_PASS_PARTICLE { EXPLOSION, END }; - enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR , TRAIL_BLOOM, END }; + enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND , TRAILWB_FOR_BLEND , TRAIL_BLUR , TRAIL_BLOOM, END }; enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND,END }; enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, SPELL_DRAG, END }; enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, END }; diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h index 87bd9035a..49c1e3a68 100644 --- a/Jusin154_Team3D/Editor/Public/EffectObject.h +++ b/Jusin154_Team3D/Editor/Public/EffectObject.h @@ -105,7 +105,10 @@ class CEffectObject abstract : public CPartObject _bool isDissolveMove = {}; - _float3 vPadding0 = {}; + + _float3 vDissolveValue = {}; + + _float3 vPadding1 = {}; _float fPadding0 = {}; diff --git a/Jusin154_Team3D/Editor/Public/Effect_Container.h b/Jusin154_Team3D/Editor/Public/Effect_Container.h index f3885a689..ec57ab97d 100644 --- a/Jusin154_Team3D/Editor/Public/Effect_Container.h +++ b/Jusin154_Team3D/Editor/Public/Effect_Container.h @@ -48,6 +48,7 @@ class CEffect_Container abstract : public CContainerObject _float m_fDuration = {}; _float m_fDelay = {}; _bool m_isDelayed = { false }; + _bool m_isCollisionEnter = { false }; map<_float, function> m_Events = {}; diff --git a/Jusin154_Team3D/Editor/Public/Levioso.h b/Jusin154_Team3D/Editor/Public/Levioso.h index 1b3fb48bf..304035c69 100644 --- a/Jusin154_Team3D/Editor/Public/Levioso.h +++ b/Jusin154_Team3D/Editor/Public/Levioso.h @@ -35,7 +35,6 @@ class CLevioso final : public CEffect_Container class CPlayer* m_pPlayer = {}; class CEditEffect* m_pLeviosoPJ_0 = { nullptr }; - class CEditEffect* m_pLeviosoPJ_1 = { nullptr }; class CTrailObject* m_pLeviosoTrail = { nullptr }; class CEditEffect* m_pTrail_PT_0 = { nullptr }; diff --git a/Jusin154_Team3D/Editor/Public/NomalJap.h b/Jusin154_Team3D/Editor/Public/NomalJap.h index 0870d8f4c..51fd250f3 100644 --- a/Jusin154_Team3D/Editor/Public/NomalJap.h +++ b/Jusin154_Team3D/Editor/Public/NomalJap.h @@ -39,7 +39,7 @@ class CNomalJap final : public CEffect_Container class CPartObject* m_pProjectile_Side = {}; _float3 m_vRotateUp = {}; - _float m_fAccTime = {}; + _float m_fAccMoveTime = {}; _float m_fLerpAmount = {}; _float m_fTurnValue = {}; diff --git a/Jusin154_Team3D/Editor/Public/TrailObject.h b/Jusin154_Team3D/Editor/Public/TrailObject.h index f30b0240a..737b1f29c 100644 --- a/Jusin154_Team3D/Editor/Public/TrailObject.h +++ b/Jusin154_Team3D/Editor/Public/TrailObject.h @@ -58,17 +58,33 @@ class CTrailObject final : public CPartObject _int iBlurWeight = {}; /* 블룸 */ - _bool isBloom = {}; + _bool isBloom = {}; - _bool isBloomDissolve = {}; - _bool isBloomReverseDissolve = {}; + _bool isBloomDissolve = {}; + _bool isBloomReverseDissolve = {}; _float fBloomStrength = {}; - BLOOM_TYPE eBloomType = {}; - _float2 vBloomTime = {}; + BLOOM_TYPE eBloomType = {}; + _float2 vBloomTime = {}; - _int iNumVertex = {}; + _int iNumVertex = {}; + + + RENDER eRenderOrder = { RENDER::EFFECT }; + SHADER_PASS_POSTEX eShaderPass = { SHADER_PASS_POSTEX::TRAIL }; + + _float3 vPadding0 = {}; + _float3 vPadding1 = {}; + _float3 vPadding2 = {}; + + _float fPadding0 = {}; + _float fPadding1 = {}; + _float fPadding2 = {}; + + _bool isPadding0 = {}; + _bool isPadding1 = {}; + _bool isPadding2 = {}; }TRAIL_INFO; private: diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli index 9a1e75e37..8dc9b0ed8 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli @@ -320,13 +320,13 @@ float2 SelectLerpUV(float2 fAmount, float _fRatio, int iSelectOption) fRatio = fRatio * fRatio; // EaseInQuad 후반에 속도 증가 break; case 2: - fRatio = 1 - (1 - fRatio * fRatio); // EaseOutQuad 초반에 속도 증가 + fRatio = 1 - pow(1 - fRatio, 2); // EaseOutQuad 초반에 속도 증가 break; case 3: fRatio = fRatio * fRatio * fRatio; // EaseInCubic 더 강하게 후반 속도 증가 break; case 4: - fRatio = 1 - (1 - fRatio * fRatio * fRatio); // EaseOutCubic 더 강하게 초반 속도 증가 + fRatio = 1 - pow(1 - fRatio, 3); // EaseOutCubic 더 강하게 초반 속도 증가 break; case 5: fRatio = 0.5f * (1 - cos(PI * fRatio)); // EaseInOutSin 사인 곡선 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 952369d09..be4a346f6 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl @@ -24,8 +24,9 @@ struct ParticleValue float2 vDiffuseUVMoveTime; float2 vDistortionUVMoveTime; float2 vNoiseUVMoveTime; - float2 vAniTime; float2 vDissolveUVMoveTime; + float2 vAniTime; + float2 vAniIndex; float fGravity; @@ -70,8 +71,8 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐 bool isPadding2; float fTimeDelta; - float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다. - float fPadding2; + float fSizeLerpOption; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다. + float fMoveLerpOption; float fPadding3; } @@ -165,11 +166,11 @@ void CS_MAIN( float3 vDir = normalize(particleValue.vPivot - particleValue.vOriginTranslation.xyz); - float fRatio = (1 - fTime * fTime); + float fDrag = particleValue.fDrag; - float fDrag = particleValue.fDrag * fRatio; + if (fSizeLerpOption != 0.f) + fDrag = SelectLerpUV(float2(particleValue.fSizeDrag, 0.f), fTime, fMoveLerpOption).x; - if (particleValue.fDrag < FLT_EPSILON5) fDrag = 1; @@ -244,14 +245,14 @@ void CS_MAIN( float fTime = (particle.vLifeTime.x / particle.vLifeTime.y); - float fRatio = 1 - (1 - fTime * fTime); - float fDrag = particleValue.fSizeDrag; + if (fSizeLerpOption != 0.f) + fDrag = SelectLerpUV(float2(particleValue.fSizeDrag, 0.f), fTime, fSizeLerpOption).x; + if (particleValue.fSizeDrag < FLT_EPSILON5) fDrag = 1; - - //fDrag *= fRatio; + CurLength += particleValue.vDeltaSize * fTimeDelta * fDrag; diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp index 98914b57f..657cc8839 100644 --- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp +++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp @@ -300,6 +300,8 @@ HRESULT CCharacter_Controller::Initialize_Prototype() HRESULT CCharacter_Controller::Initialize(void* pArg) { + m_bGravity = false; + Character_Controller_DESC* pDesc = static_cast(pArg); { // Character_Controller_DESC m_eBodyType = pDesc->eBodyType; diff --git a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp index 5a27d50ce..17b8165fe 100644 --- a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp @@ -547,7 +547,8 @@ void CInstance_Model::Drop(_float fTimeDelta) pDesc->isSizeLerp = m_InstanceDesc.isSizeLerp; pDesc->isNoWorld = m_InstanceDesc.isNoWorld; pDesc->WorldMatrix = *m_pOwner->Get_Component()->Get_WorldMatrixPtr(); - + pDesc->fSizeLerpOption = m_InstanceDesc.fSizeLerpOption; + pDesc->fMoveLerpOption = m_InstanceDesc.fMoveLerpOption; m_pContext->Unmap(m_pConstantBuffer, 0); } @@ -793,6 +794,8 @@ void CInstance_Model::Describe_Entity() { if (ImGui::TreeNode("Model Option")) { + const char* pLerp[] = { "Linear" , "EaseInQuad", "EaseOutQuad", "EaseInCubic" , "EaseOutCubic" , "EaseInOutSin" , "EaseInBack" , "Expo" , "Circle" }; + ImGui::Separator(); ImGui::Spacing(); ImGui::PushItemWidth(120); @@ -923,6 +926,7 @@ void CInstance_Model::Describe_Entity() { Instane_Buffer_ReStruct(); } + if (ImGui::DragFloat2("AniIndex", reinterpret_cast<_float*>(&m_InstanceDesc.vAniIndex))) { Instane_Buffer_ReStruct(); @@ -964,6 +968,14 @@ void CInstance_Model::Describe_Entity() Instane_Buffer_ReStruct(); } + _int iMoveLerpOption = (_int)m_InstanceDesc.fMoveLerpOption; + + if (ImGui::Combo("Move Lerp Option", &iMoveLerpOption, pLerp, 9)) + { + Instane_Buffer_ReStruct(); + + m_InstanceDesc.fMoveLerpOption = (_float)iMoveLerpOption; + } if (ImGui::DragFloat3("PivotMin", reinterpret_cast<_float*>(&m_InstanceDesc.vPivotMin))) { @@ -980,6 +992,16 @@ void CInstance_Model::Describe_Entity() Instane_Buffer_ReStruct(); } + + _int iSizeLerpOption = (_int)m_InstanceDesc.fSizeLerpOption; + + if (ImGui::Combo("Size Lerp Option", &iSizeLerpOption, pLerp, 9)) + { + Instane_Buffer_ReStruct(); + + m_InstanceDesc.fSizeLerpOption = (_float)iSizeLerpOption; + } + if (ImGui::DragFloat3("LerpSizeAmount", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaSize))) { Instane_Buffer_ReStruct(); diff --git a/Jusin154_Team3D/Engine/Private/Trail.cpp b/Jusin154_Team3D/Engine/Private/Trail.cpp index bd2276f63..0563c246c 100644 --- a/Jusin154_Team3D/Engine/Private/Trail.cpp +++ b/Jusin154_Team3D/Engine/Private/Trail.cpp @@ -172,11 +172,11 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix) if (m_isFixedTrail == true) { //만약 고정된 트레일을 켰다면 가장 마지막 부분을 항상 내 위치로 고정함 - _vector vFixedLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), m_FixedMat); - _vector vFixedHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), m_FixedMat); + //_vector vFixedLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), m_FixedMat); + //_vector vFixedHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), m_FixedMat); - XMStoreFloat3(&m_pVertices[0].vPosition, vFixedLow); - XMStoreFloat3(&m_pVertices[1].vPosition, vFixedHigh); + //XMStoreFloat3(&m_pVertices[0].vPosition, vFixedLow); + //XMStoreFloat3(&m_pVertices[1].vPosition, vFixedHigh); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Engine/Public/Instance_Model.h b/Jusin154_Team3D/Engine/Public/Instance_Model.h index d504920f3..8ccc86015 100644 --- a/Jusin154_Team3D/Engine/Public/Instance_Model.h +++ b/Jusin154_Team3D/Engine/Public/Instance_Model.h @@ -62,8 +62,8 @@ class ENGINE_DLL CInstance_Model final : public CComponent _float3 vPadding0 = {}; _float3 vPadding1 = {}; - _float fPadding0 = {}; - _float fPadding1 = {}; + _float fSizeLerpOption = {}; + _float fMoveLerpOption = {}; _bool isPadding0 = {}; _bool isPadding1 = {}; @@ -143,8 +143,8 @@ class ENGINE_DLL CInstance_Model final : public CComponent _int isPadding2 = {}; _float fTimeDelta = {}; - _float fPadding2 = {}; - _float fPadding3 = {}; + _float fSizeLerpOption = {}; + _float fMoveLerpOption = {}; _float fPadding4 = {};