diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index e214336b9..85c503536 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -492,6 +492,7 @@ call Update_Resources.bat
+
@@ -716,7 +717,6 @@ call Update_Resources.bat
-
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index ef8ab0db4..f497ffc21 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -987,7 +987,7 @@
02.GameObjects\Effect\CutSceneEffect\CutScene_Shout
-
+
04.Mechanic\20.TriggerBox
@@ -1181,9 +1181,6 @@
{7db61780-d774-4a91-a429-2fb7634e43b3}
-
- {bdd4863e-8ab9-4ce8-a88d-9a0c558a67fb}
-
{4ef15d06-4520-4d55-ab49-1ae7179f145b}
@@ -2054,6 +2051,9 @@
{e1af9a18-369a-4168-8d6e-c98c951ecb39}
+
+ {bdd4863e-8ab9-4ce8-a88d-9a0c558a67fb}
+
@@ -2218,9 +2218,6 @@
02.GameObjects\UI\GamePlay_Canvas\Loding_Panel\LoadingWidget_Flame
-
- 02.GameObjects\Effect\EffectPool
-
02.GameObjects\Effect\Effects\Decendo
@@ -2975,6 +2972,9 @@
02.GameObjects\Effect\MonsterEffect\Troll_Throw
+
+ 02.GameObjects\Effect\EffectPool
+
diff --git a/Jusin154_Team3D/Client/Private/Blink.cpp b/Jusin154_Team3D/Client/Private/Blink.cpp
index f8bdcea5e..d4c740f28 100644
--- a/Jusin154_Team3D/Client/Private/Blink.cpp
+++ b/Jusin154_Team3D/Client/Private/Blink.cpp
@@ -93,9 +93,10 @@ HRESULT CBlink::Initialize(void* pArg)
m_fSpeed = 1.6f;
- m_fDuration = 1.45f;
-
+ m_fDuration = 2.f;
+ EventName.push_back("Start Trail Dissolve");
+ EventName.push_back("Start Swirl Disappear");
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 8e8da76e9..10dc625cb 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -168,22 +168,105 @@ void CEffectPool::Priority_Update(_float fTimeDelta)
}
-#ifdef _DEBUG
-#if 진우
- //(*m_EffectList[ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA_SIDE)].begin())->Describe_Entity();
+ if (m_pGameInstance->Key_Pressing(DIK_F3))
+ {
+ if (m_pGameInstance->Key_Down(DIK_0))
+ {
+ m_isActiveEffectTime = !m_isActiveEffectTime;
+ }
- //Describe_Entity();
+ if (m_pGameInstance->Key_Down(DIK_1))
+ {
+ m_isActiveEffectList = !m_isActiveEffectList;
+ }
-#endif
-#endif
+ }
+ if (m_isActiveEffectTime == true)
+ {
+ GUI::Begin("Effect Event");
+
+ for (auto pEffect : m_EffectList[ENUM_CLASS(SKILL_TYPE::BLINK)])
+ {
+ if (pEffect->Get_Visible())
+ {
+ pEffect->Show_EventTime();
+ }
+ }
+
+ GUI::End();
+ }
+
+ if (m_isActiveEffectList)
+ {
+ GUI::Begin("Active Pool");
+
+ ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(50, 80, 200, 80));
+ GUI::BeginChild("ActiveList", ImVec2(0, 240), true);
+
+ _uint iIndex = {};
+
+ for (auto iter = m_ActiveEffectList.begin(); iter != m_ActiveEffectList.end(); )
+ {
+
+
+ if (false == (*iter)->Get_Visible())
+ {
+ ++iter;
+ }
+ else
+ {
+ if ((*iter)->Get_SkillType() == ENUM_CLASS(SKILL_TYPE::JAP_SIDE))
+ {
+ ++iter;
+ continue;
+ }
+
+ (*iter)->Show_Name(iIndex++);
+ ++iter;
+
+ }
+ }
+
+ ImGui::PopStyleColor();
+ GUI::EndChild();
+
+ GUI::End();
+
+ iIndex = 0;
+
+ GUI::Begin("Effect Pool");
+ ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(50, 80, 200, 80));
+ GUI::BeginChild("EventBox", ImVec2(0, 360), true);
+
+ for (auto iter = m_EffectList[ENUM_CLASS(SKILL_TYPE::JAP)].begin(); iter != m_EffectList[ENUM_CLASS(SKILL_TYPE::JAP)].end(); )
+ {
+ if (false == (*iter)->Get_Visible())
+ {
+ (*iter)->Show_Name(iIndex++);
+
+ ++iter;
+ }
+ else
+ {
+
+ ++iter;
+ }
+ }
+ ImGui::PopStyleColor();
+ GUI::EndChild();
+
+ GUI::End();
+ }
}
void CEffectPool::Update(_float fTimeDelta)
{
+
+
for (auto iter = m_ActiveEffectList.begin() ; iter != m_ActiveEffectList.end(); )
{
if (false == (*iter)->Get_Visible())
diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
index 286b0e1e1..612e3a5c3 100644
--- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
@@ -78,6 +78,46 @@ void CEffect_Container::Reset_Light()
}
+void CEffect_Container::Show_EventTime()
+{
+ _uint iIndex = {};
+
+ GUI::SetWindowFontScale(1.5f);
+
+ for (auto& Event : m_Events)
+ {
+ char buf[32];
+ sprintf_s(buf, "%.2f", Event.first);
+
+ string strEvent = string(buf) + " | " + EventName[iIndex++];
+
+ GUI::Selectable(strEvent.c_str(), Event.first >= m_fAccTime);
+
+ GUI::Spacing(); GUI::Separator(); GUI::Spacing();
+ }
+ string strDuration = "Current Duration : " ;
+ strDuration += to_string(m_fAccTime);
+
+ GUI::Text(strDuration.c_str());
+
+ string strDuration2 = "Duration : ";
+ strDuration2 += to_string(m_fDuration);
+
+ GUI::Text(strDuration2.c_str());
+
+ GUI::SetWindowFontScale(1.f);
+}
+
+void CEffect_Container::Show_Name(_uint iNumber)
+{
+ GUI::SetWindowFontScale(1.3f);
+ string strName = to_string(iNumber) + ". " + CMyTools::ToString(m_wstrEffectName);
+
+ GUI::Text(strName.c_str());
+
+ GUI::SetWindowFontScale(1.f);
+}
+
HRESULT CEffect_Container::Load_Package(const _char* pPath)
{
diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp
index ff6ae3ce4..56c1241ea 100644
--- a/Jusin154_Team3D/Client/Private/NomalJap.cpp
+++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp
@@ -45,7 +45,7 @@ HRESULT CNomalJap::Initialize(void* pArg)
m_iSkillType = ENUM_CLASS(SKILL_TYPE::JAP);
- m_wstrEffectName = L"Nomal_Jap";
+ m_wstrEffectName = L"Nomal Jap";
diff --git a/Jusin154_Team3D/Client/Private/NomalJapSide.cpp b/Jusin154_Team3D/Client/Private/NomalJapSide.cpp
index f88375f27..f1269e0e5 100644
--- a/Jusin154_Team3D/Client/Private/NomalJapSide.cpp
+++ b/Jusin154_Team3D/Client/Private/NomalJapSide.cpp
@@ -38,8 +38,9 @@ HRESULT CNomalJapSide::Initialize(void* pArg)
if (FAILED(Create_Effect()))
return E_FAIL;
- m_wstrEffectName = L"JapSideEffect";
+ m_wstrEffectName = L"NomalJap Side";
+ m_iSkillType = ENUM_CLASS(SKILL_TYPE::JAP_SIDE);
m_pWandParticle = Get_PartObject("WandParticle1");
m_pWandLight = Get_PartObject("Wand_Red_Long");
diff --git a/Jusin154_Team3D/Client/Public/EffectPool.h b/Jusin154_Team3D/Client/Public/EffectPool.h
index 063ee1f1f..6f86f9533 100644
--- a/Jusin154_Team3D/Client/Public/EffectPool.h
+++ b/Jusin154_Team3D/Client/Public/EffectPool.h
@@ -25,7 +25,7 @@ class CEffectPool final : public CGameObject
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
public:
- HRESULT Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPrototypeLevel, _uint iCloneLevel , function AddPrototypeEvent);
+ HRESULT Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPrototypeLevel, _uint iCloneLevel, function AddPrototypeEvent);
HRESULT Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg = nullptr, CEffect_Container** ppOut = nullptr);
#ifdef _DEBUG
HRESULT Reset_Pool();
@@ -41,6 +41,9 @@ class CEffectPool final : public CGameObject
private:
_bool m_isActiveEffectCreate = { true };
_bool m_isActiveMonsterEffectCreate = { true };
+
+ _bool m_isActiveEffectTime = { false };
+ _bool m_isActiveEffectList = { false };
public:
static CEffectPool* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
diff --git a/Jusin154_Team3D/Client/Public/Effect_Container.h b/Jusin154_Team3D/Client/Public/Effect_Container.h
index 05c8a70c5..31d461e5b 100644
--- a/Jusin154_Team3D/Client/Public/Effect_Container.h
+++ b/Jusin154_Team3D/Client/Public/Effect_Container.h
@@ -67,6 +67,13 @@ class CEffect_Container abstract : public CContainerObject
_uint Get_SkillType() const { return m_iSkillType; }
void Reset_Light();
+#pragma region 영상용
+ void Show_EventTime();
+ void Show_Name(_uint iNumber);
+protected:
+ vector<_string> EventName = {};
+#pragma endregion
+
protected:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
diff --git a/Jusin154_Team3D/Client/Public/NomalJap.h b/Jusin154_Team3D/Client/Public/NomalJap.h
index b14c0adda..87759b860 100644
--- a/Jusin154_Team3D/Client/Public/NomalJap.h
+++ b/Jusin154_Team3D/Client/Public/NomalJap.h
@@ -32,7 +32,6 @@ class CNomalJap final : public CEffect_Container
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
private:
class CInfoInstance* m_pInfoInstance = { nullptr };
- _wstring m_wstrEffectName = {};
_float4 m_vJapData[4] = { _float4(105.f , 330.f , 35.f , 20.f)
, _float4(95.f , 100.f , 55.f , 200.f)
diff --git a/Jusin154_Team3D/Client/Public/NomalJapSide.h b/Jusin154_Team3D/Client/Public/NomalJapSide.h
index c4b1b4593..f33280831 100644
--- a/Jusin154_Team3D/Client/Public/NomalJapSide.h
+++ b/Jusin154_Team3D/Client/Public/NomalJapSide.h
@@ -31,7 +31,6 @@ class CNomalJapSide final : public CEffect_Container
HRESULT Bind_ShaderResources() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
private:
- _wstring m_wstrEffectName = {};
_bool m_isParticleEnd = {};
_bool m_isTrailEnd = {};
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Smoke_Black.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Smoke_Black.bin
index 37f92401a..49d3b4e6a 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Smoke_Black.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Smoke_Black.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3a4db3b242921266c7f8d6a9aeb065d3b9b93257cabddb25384d10f7073ab107
-size 1194
+oid sha256:c9f24130fb70a0886875ab3a08ae80a0e6bed006a10b13dd09f919033671068f
+size 1198
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/Wand_Light_G.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/Wand_Light_G.bin
index 5cd44a6e5..88ad32373 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/Wand_Light_G.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/Wand_Light_G.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3a765bbe3f9b6bb984f1d85db222b1ea963cb8ec5acd9472b17fe723525416be
-size 1153
+oid sha256:031431663f24e74d4676764bb9117c4edef43b2a6834aa283c28351123c79651
+size 1157
diff --git a/Jusin154_Team3D/Engine/Private/Light.cpp b/Jusin154_Team3D/Engine/Private/Light.cpp
index a7991c7b8..d4a9152b8 100644
--- a/Jusin154_Team3D/Engine/Private/Light.cpp
+++ b/Jusin154_Team3D/Engine/Private/Light.cpp
@@ -142,6 +142,7 @@ HRESULT CLight::Render(CShader* pShader, CVIBuffer* pVIBuffer) const
if (FAILED(pShader->Bind_RawValue("g_fLightIntensity", &fLightIntensity, sizeof(_float)))) {
return E_FAIL;
}
+
if (FAILED(pShader->Begin(iPassIndex))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Engine/Private/Light_Manager.cpp b/Jusin154_Team3D/Engine/Private/Light_Manager.cpp
index 73bfb8e12..d37ed7b8f 100644
--- a/Jusin154_Team3D/Engine/Private/Light_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/Light_Manager.cpp
@@ -1,9 +1,12 @@
#include "pch.h"
#include "Light_Manager.h"
#include "Light.h"
+#include "GameInstance.h"
-CLight_Manager::CLight_Manager()
+CLight_Manager::CLight_Manager() :
+ m_pGameInstance{ CGameInstance::GetInstance() }
{
+ SAFE_ADDREF(m_pGameInstance);
}
@@ -95,6 +98,61 @@ _uint CLight_Manager::Get_NumLight(_uint _iCurrentLevel)
HRESULT CLight_Manager::Render_Lights(_uint iCurrentLevel, CShader* pShader, CVIBuffer* pVIBuffer)
{
+#pragma region 포폴 영상용
+
+ if (m_pGameInstance->Key_Pressing(DIK_F3))
+ {
+ if (m_pGameInstance->Key_Down(DIK_2))
+ {
+ m_isGUITool = !m_isGUITool;
+ }
+ }
+
+ if (m_isGUITool)
+ {
+ GUI::Begin("Persistent Light");
+
+ ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(50, 80, 200, 80));
+ GUI::BeginChild("Persistent Lights", ImVec2(0, 240), true);
+
+ _uint iIndex = {};
+
+ for (auto& pLight : m_Lights[iCurrentLevel])
+ {
+ GUI::Text("%d. Main Light", iIndex++);
+ }
+
+
+ GUI::EndChild();
+ ImGui::PopStyleColor();
+
+ GUI::End();
+
+ iIndex = 0;
+ ////////////////////////////////////////
+
+ GUI::Begin("Transient Light");
+
+ ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(50, 80, 200, 80));
+ GUI::BeginChild("Transient Lights", ImVec2(0, 240), true);
+
+ for (auto& pLight : m_FrameLights[iCurrentLevel])
+ {
+ if (pLight->GetEndLight() == true)
+ continue;
+
+ GUI::Text("%d. Transient Light", iIndex++);
+ }
+
+
+ GUI::EndChild();
+ ImGui::PopStyleColor();
+
+ GUI::End();
+ }
+
+#pragma endregion
+
for (auto& pLight : m_Lights[iCurrentLevel])
{
pLight->Render(pShader, pVIBuffer);
@@ -111,6 +169,7 @@ HRESULT CLight_Manager::Render_Lights(_uint iCurrentLevel, CShader* pShader, CVI
m_FrameLights[iCurrentLevel].clear();
+
return S_OK;
}
@@ -157,4 +216,6 @@ void CLight_Manager::Free()
Safe_Delete_Array(m_FrameLights);
+ SAFE_RELEASE(m_pGameInstance);
+
}
diff --git a/Jusin154_Team3D/Engine/Public/Light.h b/Jusin154_Team3D/Engine/Public/Light.h
index e10ce328a..a15c50fb8 100644
--- a/Jusin154_Team3D/Engine/Public/Light.h
+++ b/Jusin154_Team3D/Engine/Public/Light.h
@@ -27,6 +27,10 @@ class ENGINE_DLL CLight final : public CComponent
void Set_LightIntensity(_float fValue) { m_fLightIntensity = fValue; }
_float Get_LightIntensity() { return m_fLightIntensity; }
+ _bool GetEndLight() {
+ return m_fIntensityRatio <= 0.f;
+ }
+
public:
const LIGHT_DESC* Get_LightDesc() { return &m_LightDesc; }
void Set_Color(_float4& vDiffuse, _float4& vAmbient, _float4& vSpecular);
diff --git a/Jusin154_Team3D/Engine/Public/Light_Manager.h b/Jusin154_Team3D/Engine/Public/Light_Manager.h
index c9636a915..61c26f3cc 100644
--- a/Jusin154_Team3D/Engine/Public/Light_Manager.h
+++ b/Jusin154_Team3D/Engine/Public/Light_Manager.h
@@ -27,6 +27,9 @@ class CLight_Manager final : public CBase
_uint m_iLevelNumber = {};
list* m_Lights = { nullptr };
list* m_FrameLights = { nullptr };
+
+ _bool m_isGUITool = { false };
+ class CGameInstance* m_pGameInstance = { nullptr };
public:
static CLight_Manager* Create(_uint iNumLevel);
virtual void Free() override;