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 41802a246..ec7bc6ace 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -974,6 +974,9 @@
02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop\Ranrok_PropHit
+
@@ -2001,6 +2004,9 @@
{b3924c52-0c0d-4cd1-94f4-1eb61d2c6c99}
+
+ {06672a35-4ed9-4c17-aa7f-bb249190a1ee}
+
{2561df42-3dfa-4045-a30c-85f44cd65e09}
@@ -2895,6 +2901,9 @@
02.GameObjects\Effect\BroomRace\Bubble
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop\Ranrok_PropHit
+
04.Mechanic\20.TriggerBox
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 5f0324ce0..05d759474 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
@@ -178,6 +178,7 @@ HRESULT CGoblin_Assassin::Render()
{
RENDER ePass = m_pGameInstance->Get_CurrentRenderPass();
+
if (m_bMotionTrail)
{
if (ePass == RENDER::BLEND)
diff --git a/Jusin154_Team3D/Client/Private/InstancedProp.cpp b/Jusin154_Team3D/Client/Private/InstancedProp.cpp
index f180069b0..b67ca2ff5 100644
--- a/Jusin154_Team3D/Client/Private/InstancedProp.cpp
+++ b/Jusin154_Team3D/Client/Private/InstancedProp.cpp
@@ -102,6 +102,9 @@ HRESULT CInstancedProp::Ready_Components(void* pArg)
INSTANCE_PROP_DESC* pDesc = static_cast(pArg);
+ m_isShake = pDesc->isShake;
+ m_isTree = pDesc->isTree;
+
/* Com_VIBuffer_Instance_Model */
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, pDesc->strPrototypeTag,
reinterpret_cast(&m_pVIBufferInstanceCom))))
@@ -119,7 +122,6 @@ HRESULT CInstancedProp::Ready_Components(void* pArg)
if(FAILED(Load_InstancedProp(pDesc->strInstanceDataPath.c_str(), pDesc)))
return E_FAIL;
- m_isShake = pDesc->isShake;
if (m_isShake)
m_pVIBufferInstanceCom->Set_Shake_Value(pDesc->vRadius, pDesc->vSpeed);
@@ -204,6 +206,8 @@ HRESULT CInstancedProp::Load_InstancedProp(const _char* pFilePath, INSTANCE_PROP
{
for (_uint i = 0; i < m_iNumMesh; ++i)
{
+ if (true == m_isTree && 0 == i)
+ continue;
CRigidBody_Static* pRigidBody = { nullptr };
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
Desc.pMeshName = RigidBodyTags[i].c_str();
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/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index b4df62bab..26ee4ee7a 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -611,6 +611,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
/* InstanceProp Oak_Tree*/
Desc.isShake = true;
+ Desc.isTree = true;
Desc.eShaderPass = SHADER_PASS_WORLDMODLE_INSTANCE::DEFAULT;
Desc.bEnableRigidbody = true;
Desc.vRadius = _float2(0.015f, 0.02f);
@@ -629,6 +630,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
/* BearBerry */
Desc.isShake = true;
+ Desc.isTree = false;
Desc.bEnableRigidbody = false;
Desc.vRadius = _float2(0.015f, 0.02f);
Desc.vSpeed = _float2(0.6f, 1.f);
@@ -640,6 +642,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
/* SM_HM_OwlPost_Window_A */
Desc.isShake = false;
+ Desc.isTree = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OwlPost_Window.bin";
@@ -648,6 +651,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
///* WA_Rectangle_Double_A */
Desc.isShake = false;
+ Desc.isTree = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Rectangle_Double_A.bin";
@@ -656,6 +660,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
///* WC_Retangle_Double_A */
Desc.isShake = false;
+ Desc.isTree = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WC_Retangle_Double_A.bin";
@@ -664,6 +669,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
///* WA_Square_Double_C */
Desc.isShake = false;
+ Desc.isTree = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WA_Square_Double_C.bin";
@@ -672,6 +678,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
/* Quid_Window_A */
Desc.isShake = false;
+ Desc.isTree = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Quid_Window_A.bin";
@@ -680,6 +687,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
/* Ollivanders_Box_Window */
Desc.isShake = false;
+ Desc.isTree = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Ollivanders_Box.bin";
@@ -688,6 +696,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
/* WC_L_DoubleS_A */
Desc.isShake = false;
+ Desc.isTree = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WC_L_DoubleS_A.bin";
@@ -696,6 +705,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
/* WC_Round_Double_A */
Desc.isShake = false;
+ Desc.isTree = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WC_Round_Double_A.bin";
@@ -704,6 +714,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
/* SM_HM_Door1a */
Desc.isShake = false;
+ Desc.isTree = false;
Desc.bEnableRigidbody = true;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Door1a.bin";
@@ -712,6 +723,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
/* SM_HM_Door2b */
Desc.isShake = false;
+ Desc.isTree = false;
Desc.bEnableRigidbody = true;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Door2b.bin";
@@ -728,6 +740,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
/* OakTree_TallA */
Desc.isShake = false;
+ Desc.isTree = true;
Desc.bEnableRigidbody = true;
Desc.vRadius = _float2(0.015f, 0.016f);
Desc.vSpeed = _float2(0.01f, 0.1f);
@@ -738,6 +751,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
/* Shrub_B */
Desc.isShake = true;
+ Desc.isTree = false;
Desc.bEnableRigidbody = false;
Desc.vRadius = _float2(0.015f, 0.04f);
Desc.vSpeed = _float2(0.3f, 1.f);
@@ -748,6 +762,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
/* BogMyrtle_A */
Desc.isShake = true;
+ Desc.isTree = false;
Desc.bEnableRigidbody = false;
Desc.vRadius = _float2(0.015f, 0.04f);
Desc.vSpeed = _float2(0.3f, 1.f);
@@ -762,6 +777,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
/* Dogwood_B */
Desc.isShake = true;
+ Desc.isTree = true;
Desc.bEnableRigidbody = true;
Desc.vRadius = _float2(0.015f, 0.02f);
Desc.vSpeed = _float2(0.3f, 1.f);
@@ -772,6 +788,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
/* ScotsPine_LargeA */
Desc.isShake = false;
+ Desc.isTree = true;
Desc.bEnableRigidbody = true;
Desc.vRadius = _float2(0.015f, 0.02f);
Desc.vSpeed = _float2(0.3f, 1.f);
@@ -795,6 +812,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
/* StratifiedCliff_A1 */
Desc.isShake = false;
+ Desc.isTree = false;
Desc.bEnableRigidbody = false;
Desc.vRadius = _float2(0.f, 0.f);
Desc.vSpeed = _float2(0.f, 0.f);
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 2b8768e0c..5a74e84ec 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/MapInfo.cpp b/Jusin154_Team3D/Client/Private/MapInfo.cpp
index 074e2c48a..c2d973f48 100644
--- a/Jusin154_Team3D/Client/Private/MapInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/MapInfo.cpp
@@ -92,6 +92,7 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName, const _wchar* pLayerTa
/* Container */
for (auto* Container = root->FirstChildElement("Container"); Container; Container = Container->NextSiblingElement("Container"))
{
+ _bool hasCollisionMesh = false;
const _char* pName = {};
_uint iMapContainerType = {};
Container->QueryUnsignedAttribute("MapContainerType", &iMapContainerType);
@@ -108,11 +109,16 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName, const _wchar* pLayerTa
{
Load_StreetContainer(Container, &pContainerObject, pLayerTag);
}
+ else if (2 == iMapContainerType)
+ {
+ hasCollisionMesh = true;
+ Load_BuildingContainer(Container, &pContainerObject, pLayerTag);
+ }
else {
return E_FAIL;
}
- if (FAILED(Load_MapRenderObjects(Container, pContainerObject, pLayerTag))){
+ if (FAILED(Load_MapRenderObjects(Container, pContainerObject, pLayerTag, hasCollisionMesh))){
return E_FAIL;
}
@@ -172,7 +178,7 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName, const _wchar* pLayerTa
return S_OK;
}
-HRESULT CMapInfo::Load_MapRenderObjects(tinyxml2::XMLElement* Container, CMapContainer* pContainerObject, const _wchar* pLayerTag)
+HRESULT CMapInfo::Load_MapRenderObjects(tinyxml2::XMLElement* Container, CMapContainer* pContainerObject, const _wchar* pLayerTag, _bool hasCollisionMesh)
{
#pragma region ADD_PARTOBJECT
for (auto* PartObject = Container->FirstChildElement("PartObject"); PartObject; PartObject = PartObject->NextSiblingElement("PartObject"))
@@ -192,7 +198,7 @@ HRESULT CMapInfo::Load_MapRenderObjects(tinyxml2::XMLElement* Container, CMapCon
Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
}
-
+ Desc.hasCollisionMesh = hasCollisionMesh;
Desc.iMaxLodLevel = iLodLevel;
Desc.pParentTransform = pContainerObject->Get_Component();
const string strKey = CMyTools::ToString(Desc.ModelPrototypeTags.front()) + to_string(iKeyIndex);
diff --git a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
index 985e44d08..603fb26af 100644
--- a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
+++ b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
@@ -30,7 +30,7 @@ HRESULT CMapObject_Render::Initialize(void* pArg)
//m_Type = static_cast(pDesc->iRenderType);
m_iMaxLodLevel = pDesc->iMaxLodLevel;
-
+ m_hasCollisionMesh = pDesc->hasCollisionMesh;
for (_uint i = 0; i < m_iMaxLodLevel + 1; i++)
{
m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]);
@@ -60,8 +60,11 @@ HRESULT CMapObject_Render::Initialize(void* pArg)
_matrix ColliderMatrix = XMMatrixTranslation(vOffset.x, vOffset.y, vOffset.z) * XMLoadFloat4x4(&m_CombinedWorldMatrix);
XMStoreFloat4(&m_vExtentPosition, ColliderMatrix.r[3]);
- ReadyForPhysX();
- ConvertToPhysX();
+ if(false == m_hasCollisionMesh)
+ {
+ ReadyForPhysX();
+ ConvertToPhysX();
+ }
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp
index 37f3eb6a8..646ba28a8 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.333f, 0.235f, 0.184f, 0.059f);
+
+
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
@@ -213,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);
+ }
}
@@ -293,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
@@ -375,6 +381,19 @@ 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)
{
if (FAILED(m_pShaderCom->Bind_Matrices("g_OffsetMatrix", m_pModelCom->Get_OffsetMatrix(i).data(),
@@ -384,9 +403,10 @@ 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);
@@ -809,13 +829,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 +869,18 @@ 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()
@@ -1118,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/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/InstancedProp.h b/Jusin154_Team3D/Client/Public/InstancedProp.h
index 460ed6b0e..f6d1a6d28 100644
--- a/Jusin154_Team3D/Client/Public/InstancedProp.h
+++ b/Jusin154_Team3D/Client/Public/InstancedProp.h
@@ -19,6 +19,7 @@ class CInstancedProp final : public CGameObject
SHADER_PASS_WORLDMODLE_INSTANCE eShaderPass;
_bool isShake;
_bool bEnableRigidbody;
+ _bool isTree;
_float2 vRadius;
_float2 vSpeed;
_wstring strPrototypeTag;
@@ -38,6 +39,7 @@ class CInstancedProp final : public CGameObject
private:
_bool m_isShake = {};
+ _bool m_isTree = {};
_uint m_iNumMesh = {};
_uint m_iNumInstacne = {};
SHADER_PASS_WORLDMODLE_INSTANCE m_eShaderPass = {};
diff --git a/Jusin154_Team3D/Client/Public/MapInfo.h b/Jusin154_Team3D/Client/Public/MapInfo.h
index a349b95f9..42ffc523b 100644
--- a/Jusin154_Team3D/Client/Public/MapInfo.h
+++ b/Jusin154_Team3D/Client/Public/MapInfo.h
@@ -20,7 +20,7 @@ class CMapInfo final : public CBase
public:
HRESULT Load_MapObjects(const _char* pFilePath, const _wchar* pLayerTag);
- HRESULT Load_MapRenderObjects(tinyxml2::XMLElement* Container, class CMapContainer* pContainerObject, const _wchar* pLayerTag);
+ HRESULT Load_MapRenderObjects(tinyxml2::XMLElement* Container, class CMapContainer* pContainerObject, const _wchar* pLayerTag, _bool hasCollisionMesh);
HRESULT Load_LightElements(const _char* pFileName, const _wchar* pLayerTag);
HRESULT Load_InteractableElements(const _char* pFileName, const _wchar* pLayerTag);
diff --git a/Jusin154_Team3D/Client/Public/MapObject_Render.h b/Jusin154_Team3D/Client/Public/MapObject_Render.h
index 35f91ed18..b02e6687b 100644
--- a/Jusin154_Team3D/Client/Public/MapObject_Render.h
+++ b/Jusin154_Team3D/Client/Public/MapObject_Render.h
@@ -32,6 +32,7 @@ class CMapObject_Render final : public CMapPartObject // Render PartObject
HRESULT Add_LodModel(const _tchar* pModelPrototypeTag);
private:
+ _bool m_hasCollisionMesh = {};
_bool m_bReadyToCreatePhysX = { false };
_bool m_bConverted = { false };
diff --git a/Jusin154_Team3D/Client/Public/MapPartObject.h b/Jusin154_Team3D/Client/Public/MapPartObject.h
index 6cd557d1e..a0398fdd3 100644
--- a/Jusin154_Team3D/Client/Public/MapPartObject.h
+++ b/Jusin154_Team3D/Client/Public/MapPartObject.h
@@ -14,6 +14,7 @@ class CMapPartObject abstract : public CPartObject
{
public:
typedef struct tagMapObject_Desc {
+ _bool hasCollisionMesh{};
_uint iRenderType{};
CTransform* pParentTransform = { nullptr };
_float3 vScale;
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..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:b25d71ce9c8b01d692a97fd1cafde0f3de39e8ec8a9c0564cbb322a7a4af94f8
+oid sha256:1d328cbbf43c89cd111f774ed4f5004c48bf84cefca40eabf53ac726b0dd52f6
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..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:d89f9e5f845f49272670495184b22728d7a66388037fc3af4dd4ba94fa067138
-size 1208
+oid sha256:18ce266881a642bcf12110d78fdf73f1168544a17779a3d1f5f89d013b223bd2
+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..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:c20dd7592855085c2cb9fc1c0833bdf01acee294f25c6af300709e050549d04b
-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/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..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:031cfc57f78099e40ea49c57d976c547d79b3b33fcf4c2e3bd42496bfb5d9af3
-size 1252
+oid sha256:c7a7d6745ded6afde37363cbe9afe45cae756b9e3e1f3c35269ceca54703abdb
+size 1263
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogsmeade_MapContainer_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogsmeade_MapContainer_Data.xml
index ab0062bf0..823eec3eb 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogsmeade_MapContainer_Data.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogsmeade_MapContainer_Data.xml
@@ -2683,7 +2683,7 @@
-
+
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 28a06cd05..87f3a181b 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,9 +223,31 @@ 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;
@@ -259,6 +261,7 @@ HRESULT CLevel_EffectViewer::Ready_Layer_BackGround(const _wstring& strLayerTag)
//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);
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index e177a2ea9..b37ad9c3f 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -2199,6 +2199,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;
+ }
if (isLoad_Map)
{
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..1b81b818b 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.333f, 0.235f, 0.184f, 0.059f);
+
+
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();