From df344ab79c6829a3b9be077a0dd680677b6b123b Mon Sep 17 00:00:00 2001 From: GiJungSUk Date: Wed, 14 Jan 2026 22:19:23 +0900 Subject: [PATCH 1/3] commit commit --- Jusin154_Team3D/Client/Default/Client.vcxproj | 2 + .../Client/Default/Client.vcxproj.filters | 13 +- Jusin154_Team3D/Client/Private/EffectPool.cpp | 12 ++ .../Client/Private/Goblin_Assassin.cpp | 25 +-- .../Client/Private/Level_Field.cpp | 11 -- Jusin154_Team3D/Client/Private/Loader.cpp | 11 ++ Jusin154_Team3D/Client/Private/MageSide.cpp | 1 - Jusin154_Team3D/Client/Private/Ranrok.cpp | 30 ++- .../Client/Private/Ranrok_Charge.cpp | 2 +- .../Client/Private/Ranrok_GroundPulse.cpp | 2 +- .../Client/Private/Ranrok_Prop.cpp | 23 +-- .../Client/Private/Ranrok_PropHit.cpp | 186 ++++++++++++++++++ .../Client/Private/Ranrok_Pulse.cpp | 2 +- .../Client/Private/Ranrok_States.cpp | 2 +- Jusin154_Team3D/Client/Public/Client_Enum.h | 2 +- Jusin154_Team3D/Client/Public/Ranrok.h | 6 +- .../Client/Public/Ranrok_PropHit.h | 58 ++++++ .../Data/Effect/MapEffect/Ranrok_Decal_15.bin | 2 +- .../Data/Effect/MapEffect/Ranrok_Decal_35.bin | 2 +- .../MonsterPackage/Ranrok/RanrokProp.bin | 4 +- .../MonsterPackage/Ranrok/RanrokPropHit.bin | 3 + .../Effect/Ranrok/RanrokBreath/BottomFire.bin | 2 +- .../Effect/Ranrok/RanrokBreath/Breath.bin | 2 +- .../Ranrok/RanrokBreath/Breath_Black.bin | 2 +- .../Effect/Ranrok/RanrokBreath/Rock_PT.bin | 2 +- .../Ranrok/RanrokBreath/SplatterBottom0.bin | 4 +- .../RanrokGroundPulse/BottomSplatter.bin | 4 +- .../Ranrok/RanrokGroundPulse/Bottom_Decal.bin | 2 +- .../{RanrokProp => RanrokPropHit}/Hit_PT.bin | 0 .../Pulse_Purple.bin | 0 .../Ranrok/RanrokPulse/BottomSplatter2.bin | 4 +- .../Ranrok/RanrokPulse/Bottom_Decal.bin | 2 +- Jusin154_Team3D/Editor/Private/EffectPool.cpp | 2 +- .../Editor/Private/Level_EffectViewer.cpp | 105 +++++----- Jusin154_Team3D/Editor/Private/Loader.cpp | 9 +- Jusin154_Team3D/Editor/Private/MainLight.cpp | 68 +++++++ Jusin154_Team3D/Editor/Private/Ranrok.cpp | 154 +++++++++++---- .../Editor/Private/Ranrok_Charge.cpp | 2 +- .../Editor/Private/Ranrok_GroundPulse.cpp | 2 +- .../Editor/Private/Ranrok_Pulse.cpp | 2 +- .../Editor/Private/Ranrok_States.cpp | 6 + Jusin154_Team3D/Editor/Public/Editor_Define.h | 2 +- Jusin154_Team3D/Editor/Public/MainLight.h | 2 + Jusin154_Team3D/Editor/Public/Monster.h | 1 + Jusin154_Team3D/Editor/Public/Ranrok.h | 9 +- 45 files changed, 623 insertions(+), 164 deletions(-) create mode 100644 Jusin154_Team3D/Client/Private/Ranrok_PropHit.cpp create mode 100644 Jusin154_Team3D/Client/Public/Ranrok_PropHit.h create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPropHit.bin rename Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/{RanrokProp => RanrokPropHit}/Hit_PT.bin (100%) rename Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/{RanrokProp => RanrokPropHit}/Pulse_Purple.bin (100%) diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index ee7eb85fd..75797926c 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -168,6 +168,7 @@ call Update_Resources.bat + @@ -485,6 +486,7 @@ call Update_Resources.bat + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 7b741c0f7..0815316fb 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -970,10 +970,13 @@ 02.GameObjects\Effect\BroomRace\Bubble - + 02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook + + 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop\Ranrok_PropHit + @@ -2009,10 +2012,13 @@ {ce57978a-c208-4fe6-bbfd-8f582c20ff07} - + {b3924c52-0c0d-4cd1-94f4-1eb61d2c6c99} + + {06672a35-4ed9-4c17-aa7f-bb249190a1ee} + @@ -2907,6 +2913,9 @@ 02.GameObjects\Effect\BroomRace\Bubble + + 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop\Ranrok_PropHit + diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index 586d17143..389552309 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -58,6 +58,7 @@ #include "PotionScreen.h" #include "HitScreen.h" #include "BroomRace_Bubble.h" +#include "Ranrok_PropHit.h" #include "Goblin_ProtegoHit.h" #include "Duelist_ProtegoHit.h" @@ -853,6 +854,17 @@ HRESULT CEffectPool::Ready_MonsterEffect() return pEffect; } ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::RANROK_PROP_HIT, 10, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CRanrok_PropHit* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp index ec67c6749..5a4bafe3b 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp @@ -178,21 +178,24 @@ HRESULT CGoblin_Assassin::Render() { RENDER ePass = m_pGameInstance->Get_CurrentRenderPass(); - if(ePass == RENDER::BLEND) - { - if (FAILED(Bind_ShaderResources())) { - return E_FAIL; + if (m_bMotionTrail) { + if (ePass == RENDER::BLEND) + { + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + + if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) { + return E_FAIL; + } + + return S_OK; } - - - if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) { - return E_FAIL; - } - - return S_OK; } + if (m_bVisible == false) return S_OK; diff --git a/Jusin154_Team3D/Client/Private/Level_Field.cpp b/Jusin154_Team3D/Client/Private/Level_Field.cpp index 8b7df7a50..1e73556f1 100644 --- a/Jusin154_Team3D/Client/Private/Level_Field.cpp +++ b/Jusin154_Team3D/Client/Private/Level_Field.cpp @@ -185,13 +185,6 @@ HRESULT CLevel_Field::Ready_Lights() _float4 vDiffuse = CMyTools::ColorRGBA_HEXtoFLOAT4(0x1E1C1B3C); _float4 vAmbient = CMyTools::ColorRGBA_HEXtoFLOAT4(0x1A191900); _float4 vSpecular = CMyTools::ColorRGBA_HEXtoFLOAT4(0x12121200); - -#if gimch || 진우 - vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f); - vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f); - vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f); -#endif // gimch - m_pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular); m_pLight->Get_Component()->RotationQ(XMVectorSet(-0.574f, -0.409f, 0.584f, -0.402f)); @@ -202,8 +195,6 @@ HRESULT CLevel_Field::Ready_Lights() HRESULT CLevel_Field::Ready_Volumetric() { m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); - - return S_OK; } @@ -273,8 +264,6 @@ HRESULT CLevel_Field::Ready_Layer_SkyBox() HRESULT CLevel_Field::Ready_Background() { - m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); - CInfoInstance::GetInstance()->Load_MapObjects("Dungeon_Map_Data", LAYER_BACKGROUND); CInfoInstance::GetInstance()->Load_WorldDecal("Duengon_Decal_Data", LAYER_BACKGROUND); CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data", LAYER_BACKGROUND); diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 84c1503c1..84c6c8241 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -244,6 +244,7 @@ #include "Ranrok_DeadSplash.h" #include "Ranrok_DeadImpact.h" #include "Ranrok_Prop.h" +#include "Ranrok_PropHit.h" #include "StunEffect.h" #include "Box_Splesh.h" @@ -2966,10 +2967,20 @@ HRESULT CLoader::Loading_For_GamePlay() return E_FAIL; } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRanrok_PropHit::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + + + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamPosition_WorldLook::Create(m_pDevice, m_pContext)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/MageSide.cpp b/Jusin154_Team3D/Client/Private/MageSide.cpp index edfbc46b7..dd60adfd1 100644 --- a/Jusin154_Team3D/Client/Private/MageSide.cpp +++ b/Jusin154_Team3D/Client/Private/MageSide.cpp @@ -50,7 +50,6 @@ HRESULT CMageSide::Initialize(void* pArg) SAFE_ADDREF(m_pMage_PT); SAFE_ADDREF(m_pMage_Fire); SAFE_ADDREF(m_pMage_Trail); - SAFE_ADDREF(m_pMage_Fire); m_fDuration = 5.f; diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp index 37f3eb6a8..ddcafbd7a 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp @@ -84,6 +84,11 @@ HRESULT CRanrok::Initialize(void* pArg) m_pTransformCom->Compress_WorldMatrix(m_vInitialTrans, m_vInitialRotQ); #endif // _DEBUG + m_fRimStrength = 2.3f; + m_fRimPower = 2.3f; + m_vRimColor = _float4(0.333, 0.235, 0.184, 0.059); + + return S_OK; } @@ -117,6 +122,7 @@ void CRanrok::Update(_float fTimeDelta) m_pFSM->Update_State(fTimeDelta); Update_CollidersPosition(); + if (m_bMotionTrail) { m_vCaptureTimer.x += fTimeDelta; if (m_vCaptureTimer.y < m_vCaptureTimer.x) { @@ -172,7 +178,7 @@ void CRanrok::Update(_float fTimeDelta) Update_Disolve(fTimeDelta, 0.8f); - + m_pMotionTrailCom->Update_Capture(fTimeDelta); #pragma region TRAIL_UPDATE @@ -375,6 +381,9 @@ void CRanrok::Trigger(CTimeSocket& Socket) HRESULT CRanrok::Render_MotionTrail(ID3D11ShaderResourceView* pSRV) { + + + for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i < ENUM_CLASS(RANROK_MESH_ORDER::END); ++i) { if (FAILED(m_pShaderCom->Bind_Matrices("g_OffsetMatrix", m_pModelCom->Get_OffsetMatrix(i).data(), @@ -388,6 +397,7 @@ HRESULT CRanrok::Render_MotionTrail(ID3D11ShaderResourceView* pSRV) return E_FAIL; } + m_pContext->VSSetShaderResources(26, 1, &pSRV); if (FAILED(m_pModelCom->Render(i))) { @@ -809,13 +819,6 @@ HRESULT CRanrok::Render_Nonblend() m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float)); } -#ifndef 진우 - if (m_bMotionTrail) { - if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) { - return E_FAIL; - } - } -#endif return S_OK; } @@ -856,6 +859,17 @@ HRESULT CRanrok::Render_Blend() return E_FAIL; } } + + if (m_bMotionTrail) { + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) { + return E_FAIL; + } + } + return S_OK; } HRESULT CRanrok::Render_OutLine() diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Charge.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Charge.cpp index eae3e2e01..cc969ef6e 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_Charge.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_Charge.cpp @@ -100,7 +100,7 @@ HRESULT CRanrok_Charge::Pre_Setting(CGameObject* pObject, void* pArg) /* 초기 객체 위치 초기화*/ - _vector vOwnerPos = m_pOwner->Get_Component()->Get_Position(); + _vector vOwnerPos = m_pOwner->Get_Component()->Get_HeadPosition(); pCharge_Goo->Get_Component()->Set_State(STATE::POSITION, vOwnerPos); diff --git a/Jusin154_Team3D/Client/Private/Ranrok_GroundPulse.cpp b/Jusin154_Team3D/Client/Private/Ranrok_GroundPulse.cpp index 9fb2039a4..d78e14719 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_GroundPulse.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_GroundPulse.cpp @@ -106,7 +106,7 @@ HRESULT CRanrok_GroundPulse::Pre_Setting(CGameObject* pObject, void* pArg) /* 초기 객체 위치 초기화*/ - _vector vOwnerPos = m_pOwner->Get_Component()->Get_Position(); + _vector vOwnerPos = m_pOwner->Get_Component()->Get_HeadPosition(); pRed_Sphere->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix()); pRed_Sphere->Get_Component()->Set_State(STATE::POSITION, vOwnerPos); diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp index 85c96f06d..db61fec5d 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp @@ -5,6 +5,8 @@ #include "EffectParts.h" #include "InfoInstance.h" #include "Player.h" +#include "EffectPool.h" +#include "Layer.h" CRanrok_Prop::CRanrok_Prop(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CEffect_Container{ pDevice, pContext } @@ -44,7 +46,6 @@ HRESULT CRanrok_Prop::Initialize(void* pArg) m_pSphere = Get_PartObject("Sphere"); m_pSphereLay = Get_PartObject("Sphere_Noise"); m_pSphereHitLay = Get_PartObject("HitLay"); - m_pRing = Get_PartObject("Ring"); SAFE_ADDREF(m_pSphere); @@ -182,6 +183,7 @@ HRESULT CRanrok_Prop::Pre_Setting(CGameObject* pObject, void* pArg) m_pSphere->Set_Visible(true); m_pSphereLay->Set_Visible(true); m_pRing->Set_Visible(true); + pAppear_PT->Set_Visible(true); pSpline->Set_Visible(true); @@ -269,23 +271,16 @@ void CRanrok_Prop::OnCollision(CGameObject* pOther, void* pDesc) if (m_fHp > 0) { - CEffectParts* pHitLay = Get_PartObject("HitLay"); - CEffectParts* pHit_PT = Get_PartObject("Hit_PT"); - CEffectParts* pPulse_Purple = Get_PartObject("Pulse_Purple"); - - pHitLay->Set_Visible(true); - pHit_PT->Set_Visible(true); - pPulse_Purple->Set_Visible(true); - - pHitLay->Get_Component()->Instane_Buffer_ReStruct(); - pHit_PT->Get_Component()->Instane_Buffer_ReStruct(); - pPulse_Purple->Get_Component()->Instane_Buffer_ReStruct(); + m_pSphereHitLay->Set_Visible(true); + m_pSphereHitLay->Get_Component()->Instane_Buffer_ReStruct(); if (CollisionDesc != nullptr) { _vector vHitPos = XMLoadFloat4(&CollisionDesc->vWorldPos); - pHit_PT->Get_Component()->Set_State(STATE::POSITION, vHitPos); + + CEffectPool* pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); + pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PROP_HIT, this, &CollisionDesc->vWorldPos); } } @@ -326,6 +321,8 @@ void CRanrok_Prop::Free() SAFE_RELEASE(m_pSphere); SAFE_RELEASE(m_pSphereLay); + + if (nullptr != m_pInfoInstance) { CInfoInstance* pInfo = m_pInfoInstance; pInfo->Deregist_ActiveEffect(this); diff --git a/Jusin154_Team3D/Client/Private/Ranrok_PropHit.cpp b/Jusin154_Team3D/Client/Private/Ranrok_PropHit.cpp new file mode 100644 index 000000000..ddd543f4f --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Ranrok_PropHit.cpp @@ -0,0 +1,186 @@ +#include "pch.h" +#include "Ranrok_PropHit.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" +#include "InfoInstance.h" + +CRanrok_PropHit::CRanrok_PropHit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CRanrok_PropHit::CRanrok_PropHit(const CRanrok_PropHit& rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ + SAFE_ADDREF(m_pInfoInstance); +} + +HRESULT CRanrok_PropHit::Initialize_Prototype() +{ + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPropHit"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CRanrok_PropHit::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + if (FAILED(Create_Effect())) + return E_FAIL; + + + m_wstrEffectName = L"RanrokPropHit"; + + + + m_fDuration = 5.f; + + + return S_OK; +} + +void CRanrok_PropHit::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CRanrok_PropHit::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + + + +} + +void CRanrok_PropHit::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CRanrok_PropHit::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + _float4 vHitPos = *static_cast<_float4*>(pArg); + + /* 초기 객체 비지블*/ + + CEffectParts* Hit_PT = Get_PartObject("Hit_PT"); + CEffectParts* pPulse_Purple = Get_PartObject("Pulse_Purple"); + + + Hit_PT->Set_Visible(true); + pPulse_Purple->Set_Visible(true); + + + /* 초기 객체 위치 초기화*/ + + _vector vHittingPos = XMLoadFloat4(&vHitPos); + _vector vOwnerPos = m_pOwner->Get_Component()->Get_State(STATE::POSITION); + + Hit_PT->Get_Component()->Set_State(STATE::POSITION, vHittingPos); + pPulse_Purple->Get_Component()->Set_State(STATE::POSITION, vOwnerPos); + + return S_OK; +} + +HRESULT CRanrok_PropHit::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CRanrok_PropHit::Ready_Child() +{ + return S_OK; +} + +CRanrok_PropHit* CRanrok_PropHit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CRanrok_PropHit* pInstance = new CRanrok_PropHit(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CRanrok_PropHit"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CRanrok_PropHit::Clone(void* pArg, CGameObject* pOwner) +{ + CRanrok_PropHit* pInstance = new CRanrok_PropHit(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CRanrok_PropHit"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CRanrok_PropHit::OnCollision(CGameObject* pOther, void* pDesc) +{ + if (m_bHit == false) + return; + + ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); + + _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + + +} + +void CRanrok_PropHit::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pInfoInstance); + + +} +#ifdef _DEBUG +void CRanrok_PropHit::Describe_Entity() +{ + +} +#endif + +HRESULT CRanrok_PropHit::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Pulse.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Pulse.cpp index fb461f08f..bfd0e04df 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_Pulse.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_Pulse.cpp @@ -106,7 +106,7 @@ HRESULT CRanrok_Pulse::Pre_Setting(CGameObject* pObject, void* pArg) /* 초기 객체 위치 초기화*/ - _vector vOwnerPos = m_pOwner->Get_Component()->Get_Position(); + _vector vOwnerPos = m_pOwner->Get_Component()->Get_HeadPosition(); pRed_Sphere->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix()); pRed_Sphere->Get_Component()->Set_State(STATE::POSITION, vOwnerPos); diff --git a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp index fcf859a54..1e87b6306 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp @@ -662,7 +662,7 @@ void CRanrok::Behavior_SwipeEnter() [this]() { m_bMotionTrail = false; }, - 0.6f); + 0.5f); m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index 55abeff00..02a886f1d 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -86,7 +86,7 @@ namespace Client /*란록*/ RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_HIT , RANROK_IMPACT, RANROK_LAND, RANROK_RUSH_BOTTOM, - RANROK_GROUNDPULSE, RANROK_SWIPE , RANROK_DEAD_SPLASH, RANROK_DEAD_IMPACT, RANROK_PROP, + RANROK_GROUNDPULSE, RANROK_SWIPE , RANROK_DEAD_SPLASH, RANROK_DEAD_IMPACT, RANROK_PROP, RANROK_PROP_HIT, /*듀얼리스트*/ DUELIST_JAP, DUELIST_JAPSIDE , DUELIST_LEVIOSO, DUELIST_PROTEGO, diff --git a/Jusin154_Team3D/Client/Public/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h index ec727583a..9ed016f3e 100644 --- a/Jusin154_Team3D/Client/Public/Ranrok.h +++ b/Jusin154_Team3D/Client/Public/Ranrok.h @@ -131,7 +131,11 @@ class CRanrok final : public CMonster _int m_iHpPhase = { 0 }; - _float2 m_vCaptureTimer = { 0.f, 0.1f }; + _float2 m_vCaptureTimer = { 0.f, 0.05f }; + + _float m_fRimStrength = { 1.f }; + _float m_fRimPower = { 0.f }; + _float4 m_vRimColor = {}; class CEffect_Container* m_pRanrok_Point = { nullptr }; vector m_pRanrok_Props; diff --git a/Jusin154_Team3D/Client/Public/Ranrok_PropHit.h b/Jusin154_Team3D/Client/Public/Ranrok_PropHit.h new file mode 100644 index 000000000..3ed7870e6 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Ranrok_PropHit.h @@ -0,0 +1,58 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CRanrok_PropHit final : public CEffect_Container +{ +private: + CRanrok_PropHit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CRanrok_PropHit(const CRanrok_PropHit& rhs); + virtual ~CRanrok_PropHit() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + + class CEffectParts* m_pGooRod_0 = { nullptr }; + class CEffectParts* m_pSmoke = { nullptr }; + class CEffectParts* m_pSpread_PT = { nullptr }; + + _float3 m_vLook = {}; + _float m_fLinearSpeed = 0.8f; + + _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; + _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; +public: + static CRanrok_PropHit* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // DEBUG + + +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_15.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_15.bin index cf29e542b..61f0d6326 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_15.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_15.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6a0100606913098e13d31222a6d6c1ebf2ef91e90cf3e79077c506fd51bb8b22 +oid sha256:5a8fe1b53adfaf9eace10bf996cc05b6616668a66773b2ced84cfc9dfa9b1dc1 size 1265 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_35.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_35.bin index 84ce7d2ff..604b52e53 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_35.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_35.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b55773c87b4110617f7f9248d4918e33293de79decea75812dc919fa9d5d78b7 +oid sha256:77bb612cb740bd5b2031a09ff1bc6957a00e8dedcc2fc7b936264165fc8aa26c size 1265 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokProp.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokProp.bin index fc74bce6a..636416345 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokProp.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokProp.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:023dbaf090b11c1e1d477d565ba97b58131ed5c2c550314fd82d7943457de9bb -size 1093 +oid sha256:0fa80fee4a857d55cacf6dc4f8039190e09cdd29f2d5fabd6f7e76c42228e147 +size 955 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPropHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPropHit.bin new file mode 100644 index 000000000..7b3e12c64 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPropHit.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:236aaf5d29ef132749448425cf3cea9f4c21d72c2689b69c6beb91e8ede0c4ee +size 148 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/BottomFire.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/BottomFire.bin index 21e2db0b7..2bfc15f27 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/BottomFire.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/BottomFire.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b25d71ce9c8b01d692a97fd1cafde0f3de39e8ec8a9c0564cbb322a7a4af94f8 +oid sha256:d761f1645bfbe8e44dc8ee416a63a1a6dae721049a52ef9cd8dbd8e439def546 size 1203 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Breath.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Breath.bin index 8481dbf48..578c1abf6 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Breath.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Breath.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:83b9dddf7b517a96f1bcc91a796f9a4c93657e54cdaa65dc4de7e8a101d5634a +oid sha256:81bec5a4f60073eb477951a6c86f9dcb7afb80f04a4fdd50bf4f4bbc841dc852 size 1207 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Breath_Black.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Breath_Black.bin index d96a96002..733d9d356 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Breath_Black.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Breath_Black.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:08e11e23999b5dcc17919b73cc01b437a19dde917aec9c2a56c8efc3d14225ea +oid sha256:9f3cbf2d0129ed1688cb86c260b43c62453da6424734c552f01d43ff4fc3f3a3 size 1200 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin index af007b08e..d2c4a8763 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:331e1f821f1a3e2e2946e4518fb522e1fbc458a63eae997aa3df038c7df2e068 +oid sha256:73ec2cfc0fd0f1cb9de0fa57a257ad2f74f7550754dcbcd123d561f3bfd80cf2 size 1186 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin index fda9da937..47f67503a 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d89f9e5f845f49272670495184b22728d7a66388037fc3af4dd4ba94fa067138 -size 1208 +oid sha256:0d9c23eeb41b081a95b80ff8794eabe2a70d638f42d3e07d00e29f7a2254c76a +size 1204 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/BottomSplatter.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/BottomSplatter.bin index f3cbf3e82..6d0dc8ea1 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/BottomSplatter.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/BottomSplatter.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b50e115762bf8029f73629f47105b33262c410ae192c8e058611521a7d1f9fe7 -size 1240 +oid sha256:33f6322c2c66f4bd98650a8e38ff17cb337410e4abc54374d177898c9ffa6839 +size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin index e4307715d..42c2e4bd1 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c20dd7592855085c2cb9fc1c0833bdf01acee294f25c6af300709e050549d04b +oid sha256:798a1a6e3b574cc3e4b5fd4b6e84676ef84f8920e5835efffa22c54ca14b6c76 size 1252 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokProp/Hit_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPropHit/Hit_PT.bin similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokProp/Hit_PT.bin rename to Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPropHit/Hit_PT.bin diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokProp/Pulse_Purple.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPropHit/Pulse_Purple.bin similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokProp/Pulse_Purple.bin rename to Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPropHit/Pulse_Purple.bin diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin index 2d4920510..14e5eac38 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fb0031bd2934a1da8ee57c3cbd92bf1b916a29884c9d2a8ac591ffadf8a801ad -size 1240 +oid sha256:ee58782fc0f2135d430f7acb8f9a7ca168df7d26791489b064decb4130ff5001 +size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin index ac5cca1bd..d91862139 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:031cfc57f78099e40ea49c57d976c547d79b3b33fcf4c2e3bd42496bfb5d9af3 +oid sha256:e2036f9e6fde8af690911f6ccda4b496b752e442e6bb931c228d542a04bb77d2 size 1252 diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp index 97d719961..cb4b76aa2 100644 --- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp @@ -75,7 +75,7 @@ HRESULT CEffectPool::Initialize(void* pArg) m_isActiveMonsterEffectCreate = false; #endif // #ifdef 진우 - m_isActiveEffectCreate = true; + m_isActiveEffectCreate = false; m_isActiveMonsterEffectCreate = true; #endif // #ifdef 기무리 diff --git a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp index 647d0560e..9717f33ed 100644 --- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp @@ -42,10 +42,7 @@ HRESULT CLevel_EffectViewer::Initialize() { return E_FAIL; } - if (FAILED(Ready_Layer_BackGround(TEXT("Layer_Background")))) - { - return E_FAIL; - } + if (FAILED(Ready_Layer_Effect(TEXT("Layer_Effect")))) { @@ -78,12 +75,12 @@ HRESULT CLevel_EffectViewer::Initialize() /* if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) return E_FAIL;*/ - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) - return E_FAIL; - - //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) // return E_FAIL; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) + return E_FAIL; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Sky")))){ return E_FAIL; } @@ -97,7 +94,11 @@ HRESULT CLevel_EffectViewer::Initialize() if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Sky") , &pDesc))) { return E_FAIL; } - + + if (FAILED(Ready_Layer_BackGround(TEXT("Layer_Background")))) + { + return E_FAIL; + } //ZeroMemory(&m_PlaneData, sizeof(m_PlaneData)); //m_PlaneData.eKind = PHYSX_KIND::BODY_STATIC; @@ -108,15 +109,16 @@ HRESULT CLevel_EffectViewer::Initialize() /* 호그 스미드 */ - m_pGameInstance->Setting_Volumetirc( - 1.251f, // 밀도 - 0.0253f, // 빛 강도 - 0.9f, // 산란 계수 - 1.78f, // 깊이 분포 계수 - 0.f); + //m_pGameInstance->Setting_Volumetirc( + // 1.251f, // 밀도 + // 0.0253f, // 빛 강도 + // 0.9f, // 산란 계수 + // 1.78f, // 깊이 분포 계수 + // 0.f); /* 란록 맵*/ - //m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); + + //pLight->Capture_PreShadow(); return S_OK; @@ -166,29 +168,7 @@ HRESULT CLevel_EffectViewer::Ready_Layer_Camera(const _wstring& strLayerTag) HRESULT CLevel_EffectViewer::Ready_Layer_Light() { - CMainLight* pLight = { nullptr }; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, nullptr, nullptr, &pLight))) { - return E_FAIL; - } - - //_float4 vDiffuse = _float4(0.607f, 0.658f, 0.698f, 0.f); - //_float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f); - //_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f); - - /* 란록맵 */ - //_float4 vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f); - //_float4 vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f); - //_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f); - - /* 호그스미드 */ - _float4 vDiffuse = _float4(0.6529f, 0.6157f, 0.7843f, 1.0f); - _float4 vAmbient = _float4(0.6275f, 0.6275f, 0.6275f, 0.0314f); - _float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.05f); - - - - pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular); return S_OK; } @@ -243,28 +223,47 @@ HRESULT CLevel_EffectViewer::Ready_Layer_PhysX(const _wstring& strLayerTag) HRESULT CLevel_EffectViewer::Ready_Layer_BackGround(const _wstring& strLayerTag) { + CMainLight* pLight = { nullptr }; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, nullptr, nullptr, &pLight))) { + return E_FAIL; + } - CTerrain::TERRAIN_DESC Desc = {}; + _float4 vDiffuse = CMyTools::ColorRGBA_HEXtoFLOAT4(0x1E1C1B3C); + _float4 vAmbient = CMyTools::ColorRGBA_HEXtoFLOAT4(0x1A191900); + _float4 vSpecular = CMyTools::ColorRGBA_HEXtoFLOAT4(0x12121200); + + pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular); + pLight->Get_Component()->RotationQ(XMVectorSet(-0.574f, -0.409f, 0.584f, -0.402f)); + pLight->Get_Component()->Translation(XMVectorSet(0.f, 0.f, 0.f, 1.f)); + + m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); + + vDiffuse = CMyTools::ColorRGBA_HEXtoFLOAT4(0x1E1C1B3C); + vAmbient = CMyTools::ColorRGBA_HEXtoFLOAT4(0x1A191900); + vSpecular = CMyTools::ColorRGBA_HEXtoFLOAT4(0x12121200); + pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular); + pLight->Get_Component()->RotationQ(XMVectorSet(-0.574f, -0.409f, 0.584f, -0.402f)); + pLight->Get_Component()->Translation(XMVectorSet(0.f, 0.f, 0.f, 1.f)); + m_pGameInstance->Set_Environment(_float3(0.585f, 0.182f, 2.83f), _float(2.f), _float2(0.075f, 0.150f), _float2(2.300f, 10.000f), _float4(0.0360f, 0.0326f, 0.0057f, 0.0018f), _float4(2.0000f, 1.f, 1.f, 1.f), _float3(0.f, 0.f, -100.f), _float3(0.f, 0.f, 100.f)); + m_pGameInstance->Setting_Volumetirc(1.743f, 0.0001f, 0.2000f, 1.050f, 0.04862f); /* Hogsmeade */ - Desc.isEdit = false; - Desc.iAlphaSizeX = 2048; - Desc.iAlphaSizeY = 2048; - Desc.vPosition = _float3(-194, 18.5f, -153.f); - Desc.strAlphaMapTag = "Hogsmeade_AlphaMap.bin"; - Desc.strHeightMapTag = "Hogsmeade_HeightMap.bin"; - Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade"); + //Desc.isEdit = false; + //Desc.iAlphaSizeX = 2048; + //Desc.iAlphaSizeY = 2048; + //Desc.vPosition = _float3(-194, 18.5f, -153.f); + //Desc.strAlphaMapTag = "Hogsmeade_AlphaMap.bin"; + //Desc.strHeightMapTag = "Hogsmeade_HeightMap.bin"; + //Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade"); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Terrain"), &Desc))) - return E_FAIL; + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Terrain"), &Desc))) + // return E_FAIL; - //_float4 vColor = _float4(0.2f, 0.2f, 0.2f, 1.f); - //m_pGameInstance->Set_FogColor(vColor); - //m_pGameInstance->Set_Fog(10.f, 5.f); - //m_pInfoInstance->Load_MapObjects("Dungeon_Map_Data"); + m_pInfoInstance->Load_MapObjects("Dungeon_Map_Data"); - //CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data"); + CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data"); return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 1990d7f4f..6afa64bb5 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -2129,7 +2129,14 @@ HRESULT CLoader::Loading_For_Effect() return E_FAIL; - + CModel* pModelOriginal = (CModel*)m_pGameInstance->Find_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model")); + CMotion_Trail::MODELCAPTURE_DESC Desc{}; + Desc.fMaxCaptureLifeTime = 0.3f; + Desc.iMaximumCapture = 16; + Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount(); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) { + return E_FAIL; + } m_strMessage = TEXT("Loading Success!"); diff --git a/Jusin154_Team3D/Editor/Private/MainLight.cpp b/Jusin154_Team3D/Editor/Private/MainLight.cpp index 1974bf8ed..2f5c0a8fd 100644 --- a/Jusin154_Team3D/Editor/Private/MainLight.cpp +++ b/Jusin154_Team3D/Editor/Private/MainLight.cpp @@ -4,6 +4,8 @@ #include "GameInstance.h" #include "Camera_Debug.h" #include "GameTime.h" +#include "Layer.h" +#include "GameInstance.h" CMainLight::CMainLight(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CGameObject(pDevice, pContext) @@ -126,7 +128,73 @@ HRESULT CMainLight::Render() return S_OK; } +HRESULT CMainLight::Capture_PreShadow() +{ + CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_BACKGROUND); + assert(nullptr != pLayer); + const list* pObjects = pLayer->Get_Objects(); + for (auto& pObject : *pObjects) { + if (FAILED(m_pGameInstance->Add_RenderGroup(RENDER::PRESHADOW, pObject))) { + assert(false); + } + } + vector<_float3> vNeededPos = {}; + vNeededPos.reserve(12); + { + // 외곽이 더 많아지면 많아질수록 더 정밀한 경계가 가능함 + // 하지만 더 실제보다 멀리 외곽을 두르면 필요한 것보다 더 많이 찍게 됨 + // 결국 딱 맞춰서 찍는게 제일 중요함 + vNeededPos.emplace_back(_float3(-112.f, 155.f, 362.f)); + vNeededPos.emplace_back(_float3(-188.f, 10.f, 476.f)); + vNeededPos.emplace_back(_float3(-571.f, 19.f, 476.f)); + vNeededPos.emplace_back(_float3(-326.f, -64.f, 480.f)); + vNeededPos.emplace_back(_float3(569.f, 77.f, 250.f)); + vNeededPos.emplace_back(_float3(320.f, -236.f, 360.f)); + vNeededPos.emplace_back(_float3(570.f, 277.f, -277.f)); + vNeededPos.emplace_back(_float3(570.f, 176.f, -527.f)); + vNeededPos.emplace_back(_float3(-108.f, -64.f, -1146.f)); + vNeededPos.emplace_back(_float3(-824.f, 128.f, -533.f)); + vNeededPos.emplace_back(_float3(-826.f, 145.f, -150.f)); + vNeededPos.emplace_back(_float3(-256.f, -92.f, -414.f)); + } + _matrix xmViewMatrix = m_pTransformCom->Get_WorldMatrixInv(); + _float4x4 ViewMatrix = {}; XMStoreFloat4x4(&ViewMatrix, xmViewMatrix); + _float4x4 ProjMatrix = {}; XMStoreFloat4x4(&ProjMatrix, Get_OffCenterProjMatrix(xmViewMatrix, vNeededPos)); + + m_pGameInstance->Render_PreShadow(ViewMatrix, ProjMatrix); + + m_pGameInstance->Update_Volumetric(); + return S_OK; +} + +_matrix CMainLight::Get_OffCenterProjMatrix(_fmatrix ViewMatrix, vector<_float3>& WorldPositions) +{ + _float fMinX = FLT_MAX; + _float fMinY = FLT_MAX; + _float fMinZ = FLT_MAX; + _float fMaxX = -FLT_MAX; + _float fMaxY = -FLT_MAX; + _float fMaxZ = -FLT_MAX; + + _uint iPosNum = (_uint)WorldPositions.size(); + for (_uint iIndexPoint = 0; iIndexPoint < iPosNum; ++iIndexPoint) + { + _vector vLightViewPos = XMVector4Transform(XMVectorSetW(XMLoadFloat3(&WorldPositions[iIndexPoint]), 1.f), ViewMatrix); + + _float x = XMVectorGetX(vLightViewPos); + _float y = XMVectorGetY(vLightViewPos); + _float z = XMVectorGetZ(vLightViewPos); + + fMinX = min(fMinX, x); fMaxX = max(fMaxX, x); + fMinY = min(fMinY, y); fMaxY = max(fMaxY, y); + fMinZ = min(fMinZ, z); fMaxZ = max(fMaxZ, z); + } + _float fShadowDepthMArgin = 10.f; // 캐릭터 이동 보정 + fMinZ -= fShadowDepthMArgin; + fMaxZ += fShadowDepthMArgin; + return XMMatrixOrthographicOffCenterLH(fMinX, fMaxX, fMinY, fMaxY, fMinZ, fMaxZ); +} HRESULT CMainLight::Ready_Components() { diff --git a/Jusin154_Team3D/Editor/Private/Ranrok.cpp b/Jusin154_Team3D/Editor/Private/Ranrok.cpp index 0ce2bdcfd..cd689ee84 100644 --- a/Jusin154_Team3D/Editor/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Editor/Private/Ranrok.cpp @@ -79,8 +79,16 @@ HRESULT CRanrok::Initialize(void* pArg) m_pCharacter_Controller->SetGravity(false); #endif + m_pModelCom->Set_DisableRootMotionScale(true); + Load_RanrokPos("../Bin/Resources/Data/RanrokPos/RanrokPos.xml"); + + m_fRimStrength = 2.3f; + m_fRimPower = 2.3f; + m_vRimColor = _float4(0.333, 0.235, 0.184, 0.059); + + return S_OK; } @@ -151,6 +159,17 @@ void CRanrok::Update(_float fTimeDelta) } + if (m_bMotionTrail) { + m_vCaptureTimer.x += fTimeDelta; + if (m_vCaptureTimer.y < m_vCaptureTimer.x) { + m_vCaptureTimer.x = 0.f; + if (FAILED(m_pModelCom->Capture_BoneBuffer(m_pMotionTrailCom, *m_pTransformCom->Get_WorldMatrixPtr()))) { + assert(false); + } + } + } + + #pragma region TRAIL_UPDATE _matrix WorldMat = m_pTransformCom->Get_XMWorldMatrix(); @@ -182,6 +201,8 @@ void CRanrok::Update(_float fTimeDelta) } #pragma endregion + + m_pMotionTrailCom->Update_Capture(fTimeDelta); } void CRanrok::Late_Update(_float fTimeDelta) @@ -223,7 +244,7 @@ HRESULT CRanrok::Render() hr = Render_Nonblend(); } else if (RENDER::BLEND == eCurrentPass) { - //hr = Render_Blend(); + hr = Render_Blend(); hr = S_OK; } return hr; @@ -529,6 +550,12 @@ HRESULT CRanrok::Ready_Parts() m_pRightEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_right"); #pragma endregion + + CMotion_Trail::MOTIONTRAIL_RENDERFUNC funcDesc{}; + funcDesc.funcRenderCall = [this](ID3D11ShaderResourceView* pSRV) { Render_MotionTrail(pSRV); }; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Ranrok_MotionTrail"), (CComponent**)&m_pMotionTrailCom, &funcDesc))) { + return E_FAIL; + } return S_OK; } @@ -673,6 +700,52 @@ HRESULT CRanrok::Render_Blend() } } + if (m_bMotionTrail) { + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) { + return E_FAIL; + } + } + + return S_OK; +} + +HRESULT CRanrok::Render_MotionTrail(ID3D11ShaderResourceView* pSRV) +{ + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fRimStrength", &m_fRimLightStrength, sizeof(_float)))) + return E_FAIL; + + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fRimPower", &m_fRimPower, sizeof(_float)))) + return E_FAIL; + + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vRimColor", &m_vRimColor, sizeof(_float4)))) + return E_FAIL; + + for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i < ENUM_CLASS(RANROK_MESH_ORDER::END); ++i) + { + if (FAILED(m_pShaderCom->Bind_Matrices("g_OffsetMatrix", m_pModelCom->Get_OffsetMatrix(i).data(), + (_int)m_pModelCom->Get_OffsetMatrix(i).size()))) { + return E_FAIL; + } + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::RIMLIGHT)))) + return E_FAIL; + + m_pContext->VSSetShaderResources(26, 1, &pSRV); + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } return S_OK; } @@ -845,6 +918,7 @@ void CRanrok::Describe_Entity() SAFE_RELEASE(m_pRightEye_Trail); SAFE_RELEASE(m_pRightPt); SAFE_RELEASE(m_pLeftPt); + SAFE_RELEASE(m_pMotionTrailCom); for (auto& pParts : m_PartObjects) { @@ -856,6 +930,14 @@ void CRanrok::Describe_Entity() Ready_Parts(); } + + GUI::DragFloat("RimStrength", &m_fRimStrength, 0.01f); + GUI::DragFloat("RimPower", &m_fRimPower, 0.01f); + GUI::ColorEdit4("RimColor", (_float*)(&m_vRimColor)); + GUI::DragFloat("MotionTrailTime", &m_vCaptureTimer.y); + + m_pMotionTrailCom->Describe_Entity(); + if (GUI::Button("Create Prop")) { m_vCreatePropTime.x = m_vCreatePropTime.y; @@ -867,52 +949,52 @@ void CRanrok::Describe_Entity() m_pCharacter_Controller->Set_Position(XMVectorSet(m_pGameInstance->Get_CamPosition()->x, m_pGameInstance->Get_CamPosition()->y, m_pGameInstance->Get_CamPosition()->z, 1.f)); } - GUI::DragFloat("Tucked Speed", &m_fTuckedSpeed); + //GUI::DragFloat("Tucked Speed", &m_fTuckedSpeed); - for (_uint i = 0; i < m_Points.size(); ++i) - { - GUI::Separator(); + //for (_uint i = 0; i < m_Points.size(); ++i) + //{ + // GUI::Separator(); - if (GUI::TreeNode(("Points " + to_string(i)).c_str())) - { - GUI::Text("Points[%d] Count : %d", i, (_int)m_Points[i].size()); + // if (GUI::TreeNode(("Points " + to_string(i)).c_str())) + // { + // GUI::Text("Points[%d] Count : %d", i, (_int)m_Points[i].size()); - for (_uint j = 0; j < m_Points[i].size(); ) - { - _float3 p = { m_Points[i][j].x,m_Points[i][j].y,m_Points[i][j].z }; + // for (_uint j = 0; j < m_Points[i].size(); ) + // { + // _float3 p = { m_Points[i][j].x,m_Points[i][j].y,m_Points[i][j].z }; - GUI::PushID((int)(i * 10000 + j)); + // GUI::PushID((int)(i * 10000 + j)); - GUI::Text("[%d] (%.2f, %.2f, %.2f)", j, p.x, p.y, p.z); - GUI::SameLine(); + // GUI::Text("[%d] (%.2f, %.2f, %.2f)", j, p.x, p.y, p.z); + // GUI::SameLine(); - if (GUI::SmallButton("Move")) - { - m_pCharacter_Controller->Set_Position( - XMVectorSet(p.x, p.y, p.z, 1.f)); - } + // if (GUI::SmallButton("Move")) + // { + // m_pCharacter_Controller->Set_Position( + // XMVectorSet(p.x, p.y, p.z, 1.f)); + // } - GUI::SameLine(); + // GUI::SameLine(); - if (GUI::SmallButton("X")) - { - m_Points[i].erase(m_Points[i].begin() + j); - GUI::PopID(); - continue; - } + // if (GUI::SmallButton("X")) + // { + // m_Points[i].erase(m_Points[i].begin() + j); + // GUI::PopID(); + // continue; + // } - GUI::PopID(); - ++j; - } + // GUI::PopID(); + // ++j; + // } - if (GUI::SmallButton(("Clear##" + to_string(i)).c_str())) - { - m_Points[i].clear(); - } - GUI::TreePop(); - } + // if (GUI::SmallButton(("Clear##" + to_string(i)).c_str())) + // { + // m_Points[i].clear(); + // } + // GUI::TreePop(); + // } - } + //} if (GUI::DragFloat3("Change CCT Pos" , (_float*)& m_vCCTPos)) { _vector vPos = XMLoadFloat3(&m_vCCTPos); diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_Charge.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_Charge.cpp index f45abcfa2..78afeba98 100644 --- a/Jusin154_Team3D/Editor/Private/Ranrok_Charge.cpp +++ b/Jusin154_Team3D/Editor/Private/Ranrok_Charge.cpp @@ -98,7 +98,7 @@ HRESULT CRanrok_Charge::Pre_Setting(CGameObject* pObject, void* pArg) /* 초기 객체 위치 초기화*/ - _vector vOwnerPos = m_pOwner->Get_Component()->Get_Position(); + _vector vOwnerPos = m_pOwner->Get_Component()->Get_HeadPosition(); pCharge_Goo->Get_Component()->Set_State(STATE::POSITION, vOwnerPos); diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_GroundPulse.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_GroundPulse.cpp index e066865f9..b6d28e11c 100644 --- a/Jusin154_Team3D/Editor/Private/Ranrok_GroundPulse.cpp +++ b/Jusin154_Team3D/Editor/Private/Ranrok_GroundPulse.cpp @@ -103,7 +103,7 @@ HRESULT CRanrok_GroundPulse::Pre_Setting(CGameObject* pObject, void* pArg) /* 초기 객체 위치 초기화*/ - _vector vOwnerPos = m_pOwner->Get_Component()->Get_Position(); + _vector vOwnerPos = m_pOwner->Get_Component()->Get_HeadPosition(); pRed_Sphere->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix()); pRed_Sphere->Get_Component()->Set_State(STATE::POSITION, vOwnerPos); diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_Pulse.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_Pulse.cpp index 5b25b22be..a4ec65dd5 100644 --- a/Jusin154_Team3D/Editor/Private/Ranrok_Pulse.cpp +++ b/Jusin154_Team3D/Editor/Private/Ranrok_Pulse.cpp @@ -105,7 +105,7 @@ HRESULT CRanrok_Pulse::Pre_Setting(CGameObject* pObject, void* pArg) /* 초기 객체 위치 초기화*/ - _vector vOwnerPos = m_pOwner->Get_Component()->Get_Position(); + _vector vOwnerPos = m_pOwner->Get_Component()->Get_HeadPosition(); pRed_Sphere->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix()); pRed_Sphere->Get_Component()->Set_State(STATE::POSITION, vOwnerPos); diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp index be4965f97..15f7b6009 100644 --- a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp +++ b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp @@ -567,9 +567,15 @@ void CRanrok::Behavior_SwipeEnter() Add_Event(pairAnimInfo.first, [this]() { + m_bMotionTrail = true; m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_SWIPE , this); }, 0.3f); + Add_Event(pairAnimInfo.first, + [this]() { + m_bMotionTrail = false; + }, + 0.5f); } HRESULT CRanrok::Behavior_SwipeExitCheck(_float fTimeDelta) diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index 24254b1df..26eba3cbd 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -26,7 +26,7 @@ namespace Editor MI_Troll_Club_DAENMROSRXO_To , OUTLINE_READ, MI_DANSROMRO_ToSRO, DragonAuraPass, DragonEtherealEyesPass, DragonEtherealWingsPass, DragonWingsPass, DragonBodyPass, DragonRedHotPass, DragonPinkHotPass, DragonYellowHotPass, - PLAYER_HAIR_DAOTHV_ToSRO, PLAYER_Suit_DSRON_ToSRO, PLAYER_EyeLash_DAOTHV_ToSRO, PLAYER_Eye_ToSRO, PLAYER_Robe_ToMRO, SHADOW, SHADOW_LEGACY + PLAYER_HAIR_DAOTHV_ToSRO, PLAYER_Suit_DSRON_ToSRO, PLAYER_EyeLash_DAOTHV_ToSRO, PLAYER_Eye_ToSRO, PLAYER_Robe_ToMRO, SHADOW, SHADOW_LEGACY , RIMLIGHT , END }; 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, WATER, LAND, NONMRO, SPECTOR_WEAPON, GLASS_CUBE, LEVIOSO, DECAL, WIREFRAME, END }; diff --git a/Jusin154_Team3D/Editor/Public/MainLight.h b/Jusin154_Team3D/Editor/Public/MainLight.h index 111f7be96..6eb100602 100644 --- a/Jusin154_Team3D/Editor/Public/MainLight.h +++ b/Jusin154_Team3D/Editor/Public/MainLight.h @@ -26,6 +26,8 @@ class CMainLight final : public CGameObject virtual void Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; + HRESULT Capture_PreShadow(); + _matrix Get_OffCenterProjMatrix(_fmatrix ViewMatrix, vector<_float3>& WorldPositions); private: CLight* m_pLightCom = { nullptr }; diff --git a/Jusin154_Team3D/Editor/Public/Monster.h b/Jusin154_Team3D/Editor/Public/Monster.h index 1bb67dca8..0457d3cef 100644 --- a/Jusin154_Team3D/Editor/Public/Monster.h +++ b/Jusin154_Team3D/Editor/Public/Monster.h @@ -25,6 +25,7 @@ class CMonster abstract : public CUnit protected: class CInfoInstance* m_pInfoInstance = { nullptr }; + CMotion_Trail* m_pMotionTrailCom = { nullptr }; CUnit* m_pTarget = { nullptr }; CStat* m_pStat = { nullptr }; _float4 m_vTargetPos = { }; diff --git a/Jusin154_Team3D/Editor/Public/Ranrok.h b/Jusin154_Team3D/Editor/Public/Ranrok.h index 755872d9a..03ec67bf8 100644 --- a/Jusin154_Team3D/Editor/Public/Ranrok.h +++ b/Jusin154_Team3D/Editor/Public/Ranrok.h @@ -50,6 +50,7 @@ class CRanrok final : public CMonster virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; virtual HRESULT Render_Shadow(SHADOW eType) override; + HRESULT Render_MotionTrail(ID3D11ShaderResourceView* pSRV); virtual _vector Get_LockOnPos() override; virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override; virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override; @@ -128,9 +129,15 @@ class CRanrok final : public CMonster _float m_fTuckedSpeed = { 75.f}; _float2 m_vCreatePropTime = {0.f , 60.f}; - + _bool m_bMotionTrail = {}; _float3 m_vCCTPos = {}; + _float2 m_vCaptureTimer = { 0.f, 0.05f }; + + _float m_fRimStrength = { 1.f }; + _float m_fRimPower = { 0.f }; + _float4 m_vRimColor = {}; + void Behavior_IdleEnter(); HRESULT Behavior_IdleExitCheck(); void Behavior_IdleExit(); From b27bb429f75523b5dc4c6da2f774b45363647218 Mon Sep 17 00:00:00 2001 From: GiJungSUk Date: Wed, 14 Jan 2026 23:21:40 +0900 Subject: [PATCH 2/3] COMMIT --- Jusin154_Team3D/Client/Private/Ranrok.cpp | 23 +++++++++++++++++-- .../Effect/Ranrok/RanrokBreath/BottomFire.bin | 2 +- .../Ranrok/RanrokBreath/SplatterBottom0.bin | 2 +- .../Ranrok/RanrokGroundPulse/Bottom_Decal.bin | 4 ++-- .../Effect/Ranrok/RanrokPoint/GooRod_0.bin | 2 +- .../Effect/Ranrok/RanrokPoint/Spread_PT.bin | 2 +- .../Ranrok/RanrokPulse/Bottom_Decal.bin | 4 ++-- Jusin154_Team3D/Editor/Private/Loader.cpp | 1 + Jusin154_Team3D/Editor/Private/Ranrok.cpp | 2 +- 9 files changed, 31 insertions(+), 11 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp index ddcafbd7a..c81c9f895 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp @@ -86,7 +86,7 @@ HRESULT CRanrok::Initialize(void* pArg) m_fRimStrength = 2.3f; m_fRimPower = 2.3f; - m_vRimColor = _float4(0.333, 0.235, 0.184, 0.059); + m_vRimColor = _float4(0.333f, 0.235f, 0.184f, 0.059f); return S_OK; @@ -299,7 +299,7 @@ HRESULT CRanrok::Render() hr = Render_Nonblend(); } else if (RENDER::BLEND == eCurrentPass) { - //hr = Render_Blend(); + hr = Render_Blend(); hr = S_OK; } #ifdef _DEBUG @@ -382,6 +382,16 @@ void CRanrok::Trigger(CTimeSocket& Socket) HRESULT CRanrok::Render_MotionTrail(ID3D11ShaderResourceView* pSRV) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_fRimStrength", &m_fRimStrength, sizeof(_float)))) + return E_FAIL; + + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fRimPower", &m_fRimPower, sizeof(_float)))) + return E_FAIL; + + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vRimColor", &m_vRimColor, sizeof(_float4)))) + return E_FAIL; for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i < ENUM_CLASS(RANROK_MESH_ORDER::END); ++i) @@ -861,6 +871,7 @@ HRESULT CRanrok::Render_Blend() } if (m_bMotionTrail) { + if (FAILED(Bind_ShaderResources())) { return E_FAIL; } @@ -1132,6 +1143,14 @@ void CRanrok::Describe_Entity() GUI::Text("Degree %.2f", m_fDegree); GUI::Text("CurrFlow %d", m_iCurrentFlow); + + GUI::DragFloat("RimStrength", &m_fRimStrength, 0.01f); + GUI::DragFloat("RimPower", &m_fRimPower, 0.01f); + GUI::ColorEdit4("RimColor", (_float*)(&m_vRimColor)); + GUI::DragFloat("MotionTrailTime", &m_vCaptureTimer.y); + + m_pMotionTrailCom->Describe_Entity(); + _float3 Pos; XMStoreFloat3(&Pos, Get_WorldPostion()); diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/BottomFire.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/BottomFire.bin index 2bfc15f27..05d3726c6 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/BottomFire.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/BottomFire.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d761f1645bfbe8e44dc8ee416a63a1a6dae721049a52ef9cd8dbd8e439def546 +oid sha256:1d328cbbf43c89cd111f774ed4f5004c48bf84cefca40eabf53ac726b0dd52f6 size 1203 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin index 47f67503a..d29f71284 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0d9c23eeb41b081a95b80ff8794eabe2a70d638f42d3e07d00e29f7a2254c76a +oid sha256:18ce266881a642bcf12110d78fdf73f1168544a17779a3d1f5f89d013b223bd2 size 1204 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin index 42c2e4bd1..7c7409fb1 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:798a1a6e3b574cc3e4b5fd4b6e84676ef84f8920e5835efffa22c54ca14b6c76 -size 1252 +oid sha256:fd02c3a857e30bb2b861fcad88c7700c196159ef9c374c22c2f7d3fcc5b89829 +size 1263 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/GooRod_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/GooRod_0.bin index 097f8eccc..20d1cd7a2 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/GooRod_0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/GooRod_0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e6db6cb06eda2623a0a189766e4fb384b05c21431ed63b046ef4edfb41e64a1c +oid sha256:069730a7e324d6517b628ec307b429183a82bc8b3451f9dfceba39a877d27d2e size 1228 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Spread_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Spread_PT.bin index fdbbf3ee3..d8b0af3a9 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Spread_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Spread_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d6fa2d60a0f35274d2564c245f8d366e6575bd1ea8c1c45c82195a3247d31c1f +oid sha256:466b9d6c7eeee81bf4318c148c082f6ea6506489274a90b3be0dc22ce98aeda1 size 1294 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin index d91862139..db8e48248 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e2036f9e6fde8af690911f6ccda4b496b752e442e6bb931c228d542a04bb77d2 -size 1252 +oid sha256:c7a7d6745ded6afde37363cbe9afe45cae756b9e3e1f3c35269ceca54703abdb +size 1263 diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index ce1f5397a..b37ad9c3f 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -2206,6 +2206,7 @@ HRESULT CLoader::Loading_For_Effect() Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount(); if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) { return E_FAIL; + } if (isLoad_Map) { diff --git a/Jusin154_Team3D/Editor/Private/Ranrok.cpp b/Jusin154_Team3D/Editor/Private/Ranrok.cpp index cd689ee84..1b81b818b 100644 --- a/Jusin154_Team3D/Editor/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Editor/Private/Ranrok.cpp @@ -86,7 +86,7 @@ HRESULT CRanrok::Initialize(void* pArg) m_fRimStrength = 2.3f; m_fRimPower = 2.3f; - m_vRimColor = _float4(0.333, 0.235, 0.184, 0.059); + m_vRimColor = _float4(0.333f, 0.235f, 0.184f, 0.059f); return S_OK; From 7494a45ddc61443217ea29568b4d1852bdb39628 Mon Sep 17 00:00:00 2001 From: GiJungSUk Date: Wed, 14 Jan 2026 23:44:09 +0900 Subject: [PATCH 3/3] commit --- Jusin154_Team3D/Client/Private/Ranrok.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp index c81c9f895..646ba28a8 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp @@ -219,12 +219,12 @@ void CRanrok::Update(_float fTimeDelta) m_iRanRok_PropIndex++; static_cast(pEffect)->Set_Index(m_iRanRok_PropIndex); m_pRanrok_Props.push_back(pEffect); - } - PROPUI Prop{}; - XMStoreFloat4(&Prop.vPosition, pEffect->Get_WorldPostion()); - Prop.iIndex = m_iRanRok_PropIndex; - m_pInfoInstance->Event_CallBack(TEXT("RANROKPROP"), &Prop); + PROPUI Prop{}; + XMStoreFloat4(&Prop.vPosition, pEffect->Get_WorldPostion()); + Prop.iIndex = m_iRanRok_PropIndex; + m_pInfoInstance->Event_CallBack(TEXT("RANROKPROP"), &Prop); + } } @@ -403,9 +403,9 @@ HRESULT CRanrok::Render_MotionTrail(ID3D11ShaderResourceView* pSRV) if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } - if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) { + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::RIMLIGHT)))) return E_FAIL; - } m_pContext->VSSetShaderResources(26, 1, &pSRV);