diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index 2915d2fa6..bc248ab64 100644
--- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -104,9 +104,74 @@ PS_OUT PS_MAIN(PS_IN In)
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
- if (Color.a <= 0.1f)
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_Logo(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha;
+ float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+
+ float4 Dissolve = g_MaskingTexture.Sample(DefaultSampler, In.vTexcoord);
+
+ if (g_fTime >= Dissolve.r)
discard;
+ if (g_fTime != 0.f)
+ {
+ Color.a *= Dissolve.a;
+ }
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_Logo_Text(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha;
+ float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+
+ Color.rgb = (Color.rgb - 0.5f) * 1.2f + 0.5f;
+
+ Color.rgb = pow(Color.rgb, 1.25f);
+
+ float luminance = dot(Color.rgb, float3(0.299f, 0.587f, 0.114f));
+ float light = smoothstep(0.7f, 0.92f, luminance);
+ Color.rgb *= (1.0f - light * 0.1f);
+
+ Color.rgb = lerp(Color.rgb, Color.rgb * Color.rgb, 0.12f);
+
+ Color.rgb *= 0.7f;
+
+ Color.rgb = saturate(Color.rgb);
+
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_Logo_Glow(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+
+ float tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord).r;
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
+ float3 Blue = float3(14.f, 180.f, 252.f) / 255.f;
+
+ Color.a *= tex1;
+ tex2.rgb *= Color.a * 5.f * Alpha;
+ Color.rgb *= Blue;
+
+ Color = lerp(Color, tex2, tex2.a);
+
Color.a *= Alpha;
Out.vColor = Color;
return Out;
@@ -134,6 +199,8 @@ PS_OUT PS_Clamp(PS_IN In)
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+ Color.rgb = saturate(Color.rgb * g_fTime);
+
Color.a *= Alpha;
Out.vColor = Color;
@@ -1232,6 +1299,37 @@ PS_OUT PS_Camera_LockOn(PS_IN In)
return Out;
}
+PS_OUT PS_Loding_Screen(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
+ Color = tex1;
+ Color = lerp(Color, tex2, tex2.a);
+
+ //float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ //float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ //float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
+ //bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
+ //if (inside1)
+ //{
+ // float2 uv = saturate(Imagelocal);
+ // float4 tex2 = g_Texture1.Sample(DefaultSampler, uv);
+
+ // Color = lerp(Color, tex2, tex2.a);
+ //}
+
+ Color.a *= Alpha;
+
+ Out.vColor = Color;
+
+ return Out;
+}
+
technique11 PosTexTechnique11
{
pass Default
@@ -1244,6 +1342,36 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_MAIN();
}
+ pass Logo
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Logo();
+ }
+
+ pass Logo_Text
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Logo_Text();
+ }
+
+ pass Logo_Glow
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Logo_Glow();
+ }
+
pass AlphaBlend
{
SetRasterizerState(RS_Default);
@@ -1482,4 +1610,14 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_Camera_LockOn();
}
+ pass Loding_Screen
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Loding_Screen();
+ }
+
}
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 089b8a6d2..c9a6c7f64 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -160,13 +160,20 @@ call Update_Resources.bat
+
+
+
+
+
+
+
@@ -176,6 +183,7 @@ call Update_Resources.bat
+
@@ -260,13 +268,18 @@ call Update_Resources.bat
+
+
+
+
+
@@ -274,6 +287,7 @@ call Update_Resources.bat
+
@@ -285,13 +299,20 @@ call Update_Resources.bat
+
+
+
+
+
+
+
@@ -301,6 +322,7 @@ call Update_Resources.bat
+
@@ -387,13 +409,18 @@ call Update_Resources.bat
+
+
+
+
+
@@ -402,6 +429,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index cf81f2bbc..ee057fee4 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -35,7 +35,7 @@
01.Levels\01.Logo
- 01.Levels\01.Logo\02.GamePlay
+ 01.Levels\02.GamePlay
03.InfoInstance
@@ -158,10 +158,10 @@
02.GameObjects\Cameras\Camera_Gaze
- 02.GameObjects\Monster\Goblin
+ 02.GameObjects\NPC\Hostile\Monster\Goblin
- 02.GameObjects\Monster
+ 02.GameObjects\NPC\Hostile\Monster
02.GameObjects\Environment\00.MapContainer
@@ -269,7 +269,7 @@
02.GameObjects\Effect\Effects\Lumos
- 02.GameObjects\Monster\Troll
+ 02.GameObjects\NPC\Hostile\Monster\Troll
02.GameObjects\Item\Troll_Weapon
@@ -346,9 +346,6 @@
04.Mechanic\State\Hit
-
- 04.Mechanic\State\Troll_Combat
-
04.Mechanic\State\State_Combat\State_Throw
@@ -367,9 +364,54 @@
02.GameObjects\Item\Goblin_Dagger
+
+ 02.GameObjects\UI\Mouse_Cursor
+
+
+ 02.GameObjects\UI\Mouse_Cursor
+
02.GameObjects\Environment\03.MapElement\Interactable
+
+ 04.Mechanic\State\State_Combat\State_Slam
+
+
+ 04.Mechanic\State\Troll_Combat\Troll_State_BackHand_Swing
+
+
+ 04.Mechanic\State\Movement\IdleBreak
+
+
+ 04.Mechanic\State\Troll_Combat\Troll_State_Rush
+
+
+ 04.Mechanic\State\State_Combat\State_LightAttack
+
+
+ 04.Mechanic\State\State_Combat\State_Spell
+
+
+ 02.GameObjects\UI\Screen\Loding
+
+
+ 02.GameObjects\UI\Screen\Logo
+
+
+ 02.GameObjects\UI\Screen\Intro
+
+
+ 02.GameObjects\UI\Screen\Intro
+
+
+ 02.GameObjects\UI\Screen\Logo\Logo_Glow
+
+
+ 02.GameObjects\UI\Screen\Logo\Logo_Text
+
+
+ 04.Mechanic\State\State_Combat\Dead
+
@@ -452,9 +494,6 @@
{603938cc-e4fe-44d8-890b-784174a86161}
-
- {b72a9bb0-1b21-416b-bd0c-ba943cd7cc9d}
-
{2814c935-13d9-4b9a-94ba-c9e470219a18}
@@ -596,12 +635,6 @@
{b719d948-fce3-4144-9d2c-edcab4cfceaf}
-
- {d371e373-e343-4e0b-9a0c-34eae167c1cd}
-
-
- {1ff3d6f1-f31d-47b7-84b7-d23efe98d7d2}
-
{e2d84a8f-46c9-4689-bd91-cc45343d2b10}
@@ -689,9 +722,6 @@
{71f6a568-488d-4ec1-be79-8fcce6677e27}
-
- {a1b1f17d-ed4f-4b20-aa8e-c52e693683d4}
-
{1d6c078d-dddd-493d-a6f0-f2cac2e4107e}
@@ -785,9 +815,63 @@
{7e641382-9dfa-4da7-a8c8-a3ee06360e7a}
+
+ {b8c7e12b-da04-4d49-bc61-104649975d0b}
+
{17eaf081-6fbf-4965-b04d-10749e6032c6}
+
+ {75479637-e795-4656-a4ef-3772d8a6d007}
+
+
+ {27d5a2b8-98db-4dbf-9916-0806cfa97c9c}
+
+
+ {a7f11f50-5740-4670-ad9e-d21640b2cca7}
+
+
+ {12ff4f09-ec6c-4b98-966a-0d84c9ad253c}
+
+
+ {7bb8a04a-00a0-4864-9781-8069d84806ca}
+
+
+ {e68261eb-a581-4bf5-b48d-b47cc81f7406}
+
+
+ {7e641382-9dfa-4da7-a8c8-a3ee06360e7a}
+
+
+ {d371e373-e343-4e0b-9a0c-34eae167c1cd}
+
+
+ {1ff3d6f1-f31d-47b7-84b7-d23efe98d7d2}
+
+
+ {a1b1f17d-ed4f-4b20-aa8e-c52e693683d4}
+
+
+ {c02bfd67-091b-4636-a45f-34a3603ffbd8}
+
+
+ {dce1a273-ec4f-43a4-9b02-b83f4d739f19}
+
+
+ {19f4cc79-0dbd-445f-a4d8-46a6dca6bd4d}
+
+
+ {37839010-4706-4629-90a2-d96bc50ea7e7}
+
+
+ {11342a1a-99f4-4df5-9202-48623c76eb4f}
+
+
+ {c584798b-d7aa-4cb0-b6e8-c2aff73757ce}
+
+
+ {81add99f-7450-4730-8d3f-bf1de06b2b8d}
+
@@ -809,7 +893,7 @@
01.Levels\01.Logo
- 01.Levels\01.Logo\02.GamePlay
+ 01.Levels\02.GamePlay
03.InfoInstance
@@ -935,13 +1019,13 @@
02.GameObjects\Cameras\Camera_Gaze
- 02.GameObjects\Monster\Goblin
+ 02.GameObjects\NPC\Hostile\Monster\Goblin
- 02.GameObjects\Monster\Goblin
+ 02.GameObjects\NPC\Hostile\Monster\Goblin
- 02.GameObjects\Monster
+ 02.GameObjects\NPC\Hostile\Monster
02.GameObjects\Environment\00.MapContainer\BuildingContainer
@@ -1052,10 +1136,10 @@
02.GameObjects\Environment\03.MapElement\Light
- 02.GameObjects\Monster\Troll
+ 02.GameObjects\NPC\Hostile\Monster\Troll
- 02.GameObjects\Monster\Troll
+ 02.GameObjects\NPC\Hostile\Monster\Troll
02.GameObjects\Item\Troll_Weapon
@@ -1126,9 +1210,6 @@
04.Mechanic\State\Hit
-
- 04.Mechanic\State\Troll_Combat
-
04.Mechanic\State\State_Combat\State_Throw
@@ -1147,11 +1228,60 @@
02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Drag
-
-
+
+ 02.GameObjects\UI\Mouse_Cursor
+
+
+ 02.GameObjects\UI\Mouse_Cursor
+
+
+ 02.GameObjects\Environment\00.MapContainer
+
02.GameObjects\Environment\03.MapElement\Interactable
+
+ 04.Mechanic\State\State_Combat\State_Slam
+
+
+ 02.GameObjects\Environment\00.MapContainer
+
+
+ 04.Mechanic\State\Troll_Combat\Troll_State_BackHand_Swing
+
+
+ 04.Mechanic\State\Movement\IdleBreak
+
+
+ 04.Mechanic\State\Troll_Combat\Troll_State_Rush
+
+
+ 04.Mechanic\State\State_Combat\State_LightAttack
+
+
+ 04.Mechanic\State\State_Combat\State_Spell
+
+
+ 02.GameObjects\UI\Screen\Loding
+
+
+ 02.GameObjects\UI\Screen\Logo
+
+
+ 02.GameObjects\UI\Screen\Intro
+
+
+ 02.GameObjects\UI\Screen\Intro
+
+
+ 02.GameObjects\UI\Screen\Logo\Logo_Glow
+
+
+ 02.GameObjects\UI\Screen\Logo\Logo_Text
+
+
+ 04.Mechanic\State\State_Combat\Dead
+
diff --git a/Jusin154_Team3D/Client/Private/BombardSide.cpp b/Jusin154_Team3D/Client/Private/BombardSide.cpp
index 874685464..93b3e0ef0 100644
--- a/Jusin154_Team3D/Client/Private/BombardSide.cpp
+++ b/Jusin154_Team3D/Client/Private/BombardSide.cpp
@@ -48,7 +48,7 @@ HRESULT CBombardSide::Initialize(void* pArg)
SAFE_ADDREF(m_pWandTrail);
SAFE_ADDREF(m_pWandParticle);
- m_fDuration = 2.5f;
+ m_fDuration = 2.f;
m_Events.emplace(0.6f, [&]() {
m_isParticleEnd = true;
diff --git a/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_Behavior.cpp b/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_Behavior.cpp
index 140eb3454..2e11f5720 100644
--- a/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_Behavior.cpp
+++ b/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_Behavior.cpp
@@ -60,7 +60,7 @@ PSX::PxControllerBehaviorFlags CCallBack_EffectHitBox_Behavior::getBehaviorFlags
PSX::PxControllerBehaviorFlags CCallBack_EffectHitBox_Behavior::getBehaviorFlags(const PSX::PxController& controller)
{
// CCT끼리 부딪힐 때를 굳이 안 쓰면 0 리턴
- return PSX::PxControllerBehaviorFlags(0);
+ return PSX::PxControllerBehaviorFlag::eCCT_SLIDE;
}
PSX::PxControllerBehaviorFlags CCallBack_EffectHitBox_Behavior::getBehaviorFlags(const PSX::PxObstacle& obstacle)
diff --git a/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_HitReport.cpp b/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_HitReport.cpp
index acbbdb0ad..cb60b353a 100644
--- a/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_HitReport.cpp
+++ b/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_HitReport.cpp
@@ -43,7 +43,7 @@ void CCallBack_EffectHitBox_HitReport::onShapeHit(const PSX::PxControllerShapeHi
case PXOBJECT::WALL:
/* OnCollision 함수에 넘길 값 */
- CollisionDesc.vWorldPos = XMVectorSet( (_float)vWorldPos.x, (_float)vWorldPos.y, (_float)vWorldPos.z, 1.f);
+ CollisionDesc.vWorldPos = { (_float)vWorldPos.x, (_float)vWorldPos.y, (_float)vWorldPos.z, 1.f };
memcpy(&CollisionDesc.vWorldNomal, &vWorldNormal, sizeof(_float3));
memcpy(&CollisionDesc.vHitDir, &vDir, sizeof(_float3));
CollisionDesc.fLength = fLength;
@@ -53,13 +53,13 @@ void CCallBack_EffectHitBox_HitReport::onShapeHit(const PSX::PxControllerShapeHi
case PXOBJECT::GOBLIN_WARRIOR:
/* OnCollision 함수에 넘길 값 */
- CollisionDesc.vWorldPos = XMVectorSet( (_float)vWorldPos.x, (_float)vWorldPos.y, (_float)vWorldPos.z, 1.f);
+ CollisionDesc.vWorldPos = { (_float)vWorldPos.x, (_float)vWorldPos.y, (_float)vWorldPos.z, 1.f };
memcpy(&CollisionDesc.vWorldNomal, &vWorldNormal, sizeof(_float3));
memcpy(&CollisionDesc.vHitDir, &vDir, sizeof(_float3));
CollisionDesc.fLength = fLength;
pOwnerActorData->pOwner->Get_Owner()->OnCollision(pTargetActorData->pOwner , &CollisionDesc);
- static_cast(pTargetActorData->pBody)->Add_Force(CollisionDesc.vHitDir * fLength * 100.f, PSX::PxForceMode::eIMPULSE);
+ static_cast(pTargetActorData->pBody)->Add_Force(XMLoadFloat4(&CollisionDesc.vHitDir) * fLength * 100.f, PSX::PxForceMode::eIMPULSE);
break;
default:
{
@@ -112,7 +112,7 @@ void CCallBack_EffectHitBox_HitReport::onControllerHit(const PSX::PxControllersH
case PXOBJECT::GOBLIN_WARRIOR:
/* OnCollision 함수에 넘길 값 */
- CollisionDesc.vWorldPos = XMVectorSet((_float)vWorldPos.x, (_float)vWorldPos.y, (_float)vWorldPos.z, 1.f);
+ CollisionDesc.vWorldPos = { (_float)vWorldPos.x, (_float)vWorldPos.y, (_float)vWorldPos.z, 1.f };
memcpy(&CollisionDesc.vWorldNomal, &vWorldNormal, sizeof(_float3));
memcpy(&CollisionDesc.vHitDir, &vDir, sizeof(_float3));
CollisionDesc.fLength = fLength;
diff --git a/Jusin154_Team3D/Client/Private/CallBack_Monster_Behavior.cpp b/Jusin154_Team3D/Client/Private/CallBack_Monster_Behavior.cpp
index 699647c82..e4b961ca8 100644
--- a/Jusin154_Team3D/Client/Private/CallBack_Monster_Behavior.cpp
+++ b/Jusin154_Team3D/Client/Private/CallBack_Monster_Behavior.cpp
@@ -60,7 +60,7 @@ PSX::PxControllerBehaviorFlags CCallBack_Monster_Behavior::getBehaviorFlags(cons
PSX::PxControllerBehaviorFlags CCallBack_Monster_Behavior::getBehaviorFlags(const PSX::PxController& controller)
{
// CCT끼리 부딪힐 때를 굳이 안 쓰면 0 리턴
- return PSX::PxControllerBehaviorFlags(0);
+ return PSX::PxControllerBehaviorFlag::eCCT_SLIDE;
}
PSX::PxControllerBehaviorFlags CCallBack_Monster_Behavior::getBehaviorFlags(const PSX::PxObstacle& obstacle)
@@ -93,5 +93,5 @@ HRESULT CCallBack_Monster_Behavior::Finalize()
CCallBack_Monster_Behavior* CCallBack_Monster_Behavior::Create()
{
- return new CCallBack_Monster_Behavior();;
+ return new CCallBack_Monster_Behavior();
}
diff --git a/Jusin154_Team3D/Client/Private/CallBack_Monster_HitReport.cpp b/Jusin154_Team3D/Client/Private/CallBack_Monster_HitReport.cpp
index 9cc701393..01f1a3bfa 100644
--- a/Jusin154_Team3D/Client/Private/CallBack_Monster_HitReport.cpp
+++ b/Jusin154_Team3D/Client/Private/CallBack_Monster_HitReport.cpp
@@ -111,10 +111,10 @@ void CCallBack_Monster_HitReport::onControllerHit(const PSX::PxControllersHit& h
void CCallBack_Monster_HitReport::onObstacleHit(const PSX::PxControllerObstacleHit& hit)
{
PSX::PxController* pController = hit.controller;
- PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점
- PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말
- PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향
- _float fLength = hit.length; // 시도한 move 길이
+ PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점
+ PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말
+ PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향
+ _float fLength = hit.length; // 시도한 move 길이
const void* pOtherController = hit.userData; // 장애물
diff --git a/Jusin154_Team3D/Client/Private/CallBack_Playable_Behavior.cpp b/Jusin154_Team3D/Client/Private/CallBack_Playable_Behavior.cpp
index b74143b2f..28678a758 100644
--- a/Jusin154_Team3D/Client/Private/CallBack_Playable_Behavior.cpp
+++ b/Jusin154_Team3D/Client/Private/CallBack_Playable_Behavior.cpp
@@ -60,7 +60,7 @@ PSX::PxControllerBehaviorFlags CCallBack_Playable_Behavior::getBehaviorFlags(con
PSX::PxControllerBehaviorFlags CCallBack_Playable_Behavior::getBehaviorFlags(const PSX::PxController& controller)
{
// CCT끼리 부딪힐 때를 굳이 안 쓰면 0 리턴
- return PSX::PxControllerBehaviorFlags(0);
+ return PSX::PxControllerBehaviorFlag::eCCT_SLIDE;
}
PSX::PxControllerBehaviorFlags CCallBack_Playable_Behavior::getBehaviorFlags(const PSX::PxObstacle& obstacle)
diff --git a/Jusin154_Team3D/Client/Private/CameraLockOn.cpp b/Jusin154_Team3D/Client/Private/CameraLockOn.cpp
new file mode 100644
index 000000000..d1425b14b
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/CameraLockOn.cpp
@@ -0,0 +1,200 @@
+#include "pch.h"
+#include "CameraLockOn.h"
+#include "GameInstance.h"
+#include "InfoInstance.h"
+
+CCameraLockOn::CCameraLockOn(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CUIObject(pDevice, pContext)
+{
+}
+
+CCameraLockOn::CCameraLockOn(const CCameraLockOn& rhs)
+ :CUIObject(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CCameraLockOn::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CCameraLockOn::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 960.f;
+ Desc.fY = 540.f;
+ Desc.fSizeX = 50.f;
+ Desc.fSizeY = 50.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_fTimeMult = 0.5f;
+ Set_Visible(false);
+ m_pInfoInstance->Add_Event(TEXT("MouseTogggle"), [this](void* p) {this->Set_Visible(*reinterpret_cast<_bool*>(p)); });
+ return S_OK;
+}
+
+void CCameraLockOn::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CCameraLockOn::Update(_float fTimeDelta)
+{
+ /*if (m_pGameInstance->Mouse_Pressing(DIM_RBUTTON))
+ {
+ m_bHover = true;
+ }
+ else
+ m_bHover = false;*/
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+}
+
+void CCameraLockOn::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+}
+
+HRESULT CCameraLockOn::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::CAMERA_LOCKON)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+_vector CCameraLockOn::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CCameraLockOn::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_bHover, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CCameraLockOn::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_CameraLockOnReticlePulse"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_AimReticleBase"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_MagicSplatter"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CCameraLockOn* CCameraLockOn::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CCameraLockOn* pInstance = new CCameraLockOn(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CCameraLockOn");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CCameraLockOn::Clone(void* pArg, CGameObject* pOwner)
+{
+ CCameraLockOn* pInstance = new CCameraLockOn(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CCameraLockOn");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CCameraLockOn::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CCameraLockOn::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Decendo.cpp b/Jusin154_Team3D/Client/Private/Decendo.cpp
index f5445947a..406a3e61f 100644
--- a/Jusin154_Team3D/Client/Private/Decendo.cpp
+++ b/Jusin154_Team3D/Client/Private/Decendo.cpp
@@ -201,7 +201,7 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg)
CUnit* pTargetUnit = m_pInfoInstance->Get_LockOnUnit();
if (nullptr != pTargetUnit) {
- XMStoreFloat4(&m_vTargetPos, pTargetUnit->Get_WorldPostion());
+ XMStoreFloat4(&m_vTargetPos, pTargetUnit->Get_LockOnPos());
XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
}
diff --git a/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp b/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp
index e65029f2e..7a34e1158 100644
--- a/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp
+++ b/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp
@@ -126,7 +126,7 @@ HRESULT CDummy_PhysXPlayable::Ready_Components(void* pArg)
Desc.iSubKind = pDesc->iSubKind;
Desc.pTransform = m_pTransformCom;
Desc.eBodyType = ACTOR::CAPSULE;
- Desc.fContactOffset = 0.1f;
+ Desc.fContactOffset = 0.001f;
Desc.fMaterial = { 0.5f, 0.5f, 0.6f };
Desc.bAutoStepping = { false };
Desc.fStepOffset = { 0.05f };
diff --git a/Jusin154_Team3D/Client/Private/EffectParts.cpp b/Jusin154_Team3D/Client/Private/EffectParts.cpp
index 543141d32..6c42097fe 100644
--- a/Jusin154_Team3D/Client/Private/EffectParts.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectParts.cpp
@@ -65,6 +65,14 @@ void CEffectParts::Late_Update(_float fTimeDelta)
m_pInstance_ModelCom->Drop(fTimeDelta);
+ if (m_EffectInfo.isLightDissolve == true)
+ {
+ if (m_pLightCom != nullptr)
+ {
+ m_pLightCom->Update_AmbientRatio(fTimeDelta, m_EffectInfo.isLightTime);
+ }
+ }
+
if (m_EffectInfo.isBillboard)
m_pGameInstance->BillBoard(m_pTransformCom);
@@ -83,6 +91,9 @@ void CEffectParts::Late_Update(_float fTimeDelta)
if (m_EffectInfo.isOnlyBlur == true)
return;
+ if (m_pLightCom != nullptr)
+ m_pGameInstance->Add_Light_Group(CURRENT_LEVEL, m_pLightCom);
+
m_pGameInstance->Add_RenderGroup(m_EffectInfo.eRenderOrder, this);
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 0006b58c4..b0de40811 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -130,7 +130,6 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect;}
))) return E_FAIL;
-#ifndef 기무리
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
@@ -168,7 +167,6 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
-
if (FAILED(Create_Effect(SKILL_TYPE::JAP_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
CNomalJapSide* pEffect = nullptr;
@@ -226,10 +224,6 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
-#endif // 기무리
-
-
-
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
index c594fe206..62f49e939 100644
--- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
@@ -58,10 +58,25 @@ void CEffect_Container::Late_Update(_float fTimeDelta)
__super::Late_Update(fTimeDelta);
}
+
void CEffect_Container::OnCollision(CGameObject* pOther, void* pDesc)
{
}
+void CEffect_Container::Reset_Light()
+{
+ for (auto& iter : m_PartObjects)
+ {
+ CLight* pLight = iter.second->Get_Component();
+
+ if (pLight == nullptr)
+ continue;
+
+ pLight->Reset_AmbientRatio();
+ }
+
+}
+
HRESULT CEffect_Container::Load_Package(const _char* pPath)
{
@@ -214,9 +229,8 @@ HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject, void* pArg)
m_pOwner = pObject;
- //Add_Chlid_Light();
-
Reset_EffectParts();
+ Reset_Light();
m_fAccTime = 0.f;
m_fPreAccTime = 0.f;
@@ -367,7 +381,6 @@ void CEffect_Container::Update_Event(_float fTimeDelta)
}
}
- //Delete_Chlid_Light();
}
diff --git a/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp b/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp
index 26378f14d..e42fc9290 100644
--- a/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp
+++ b/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp
@@ -44,7 +44,6 @@ HRESULT CGamePlay_Canvas::Initialize(void* pArg)
{
return E_FAIL;
}
- Visible(true);
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp
index 37dffda34..bb92f4009 100644
--- a/Jusin154_Team3D/Client/Private/Goblin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin.cpp
@@ -172,20 +172,26 @@ HRESULT CGoblin::Render()
return S_OK;
}
+_vector CGoblin::Get_LockOnPos()
+{
+ if (nullptr != m_pCharacter_Controller && true == m_pCharacter_Controller->IsActive()) {
+ return m_pCharacter_Controller->Get_Position();
+ }
+ else if (nullptr != m_pRigidBody) {
+ return m_pRigidBody->Get_Position();
+ }
+ return Get_WorldPostion();
+}
+
void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
{
+ if (true == m_bDead) {
+ return;
+ }
ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
- _vector vWorldPos = {}; // 접촉지점
- _vector vWorldNomal = {}; // 접촉노말
- _vector vHitDir = {}; // 시도한 move 방향
- _float fLength = {}; // 작용된 힘
- //m_pCharacter_Controller->ConvertToDO(*m_pRigidBody);
- //m_pRigidBody->Add_Force(vHitDir * fLength * 10000.f, PSX::PxForceMode::eFORCE);
-
- //m_pCharacter_Controller->ConvertToDO(*m_pRigidBody);
- //m_pRigidBody->Add_Force(vHitDir * fLength * 100.f, PSX::PxForceMode::eIMPULSE);
_uint iSkillType = dynamic_cast(pOther)->Get_SkillType();
+ m_fHitRadius = CMyTools::Get_Direction2D(m_pTransformCom->Get_State(STATE::LOOK), XMLoadFloat4(&CollisionDesc->vHitDir));
switch (iSkillType)
{
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
@@ -196,6 +202,10 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
break;
case ENUM_CLASS(SKILL_TYPE::JAP):
m_eHitSpell = STATEANIM::HIT_LEVIOSO;
+ if (true == Get_Damage(60.f)) {
+ m_pFSM->Change_State(FSMSTATE::DEAD);
+ return;
+ }
break;
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
m_eHitSpell = STATEANIM::HIT_LEVIOSO;
@@ -204,8 +214,9 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
m_eHitSpell = STATEANIM::KNOCKDOWN_FWD;
break;
}
- if (!m_pFSM->IsEnable(FSMSTATE::BLINK))
+ if (!m_pFSM->IsEnable(FSMSTATE::BLINK)){
m_pFSM->Change_State(FSMSTATE::HIT);
+ }
}
@@ -237,8 +248,8 @@ HRESULT CGoblin::Ready_Components()
Desc.iSubKind = ENUM_CLASS(PXOBJECT::GOBLIN_WARRIOR);
Desc.pTransform = m_pTransformCom;
Desc.eBodyType = ACTOR::CAPSULE;
- Desc.fContactOffset = 0.1f;
- Desc.fMaterial = { 0.5f, 0.5f, 0.6f };
+ Desc.fContactOffset = 0.001f;
+ Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
Desc.bAutoStepping = { false };
Desc.fStepOffset = { 0.05f };
Desc.fRadius = 0.6f;
@@ -261,6 +272,9 @@ HRESULT CGoblin::Ready_Components()
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
}
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_GOBLIN"), (CComponent**)&m_pStat))) {
+ return E_FAIL;
+ }
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_States.cpp
index 244ccc520..e680861ed 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_States.cpp
@@ -16,6 +16,7 @@
#include "State_Throw.h"
#include "State_Blink.h"
#include "State_Hit.h"
+#include "State_Dead.h"
#pragma endregion
@@ -55,6 +56,7 @@ HRESULT CGoblin::Behavior_MoveExitCheck()
{
pair<_uint, _bool> pairAnimInfo = {};
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+
if (iCurrAnimIndex == m_Animation[STATEANIM::JOG_FWD].first) {
if (m_fTargetDistance <= 15.f && m_fTargetDistance != 0.f)
m_pFSM->Change_State(FSMSTATE::COMBAT);
@@ -94,15 +96,12 @@ void CGoblin::Behavior_CombatEnter()
HRESULT CGoblin::Behavior_CombatExitCheck(_float fTimeDelta)
{
- pair<_uint, _bool> pairAnimInfo = {};
- _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
m_bLookAt = true;
- if (m_fTargetDistance > 25.f && m_fTargetDistance != 0.f)
- m_pFSM->Change_State(FSMSTATE::MOVE);
-
- else if (m_fTargetDistance > 30.f && m_fTargetDistance != 0.f)
+ if (m_fTargetDistance > 20.f && m_fTargetDistance != 0.f)
m_pFSM->Change_State(FSMSTATE::MOVE);
+ else if (m_fTargetDistance > 25.f && m_fTargetDistance != 0.f)
+ m_pFSM->Change_State(FSMSTATE::IDLE);
else
{
m_pFSM->Disable_State(FSMSTATE::COMBAT);
@@ -121,17 +120,25 @@ void CGoblin::Behavior_SwingEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::SWING);
+
pairAnimInfo = m_Animation[STATEANIM::SWING_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::SWING)] = m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::SWING)];
+
Add_Event(pairAnimInfo.first,
[this]() {m_bStep = false; },
0.2f);
+ Add_Event(pairAnimInfo.first,
+ [&]() {
+ pairAnimInfo = m_Animation[STATEANIM::ATTACK_END];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); },
+ 0.4f);
}
HRESULT CGoblin::Behavior_SwingExitCheck(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo = {};
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
if (m_pFSM->IsEnable(FSMSTATE::SWING) && m_bStep)
{
_float fDesiredRange = 1.f;
@@ -147,7 +154,6 @@ HRESULT CGoblin::Behavior_SwingExitCheck(_float fTimeDelta)
m_pTransformCom->AccumulateMomentum(vDistance * step *fTimeDelta*1.5f);
}
}
-
if (m_pModelCom->IsFinishedAnim())
{
m_bLookAt = true;
@@ -168,6 +174,7 @@ void CGoblin::Behavior_ThrowEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::SKILL);
+
pairAnimInfo = m_Animation[STATEANIM::SKILL];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::THROW)] = m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::THROW)];
@@ -332,6 +339,60 @@ void CGoblin::Behavior_HitExit()
m_pFSM->Disable_State(FSMSTATE::HIT);
}
+void CGoblin::Behavior_DeadEnter()
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ m_pFSM->Enable_State(FSMSTATE::DEAD);
+
+ _bool bStrongerKnockDown = { false };
+
+ switch (m_eHitSpell)
+ {
+ case STATEANIM::KNOCKDOWN_FWD:
+ bStrongerKnockDown = true;
+ break;
+ case STATEANIM::TUMBLE2:
+ bStrongerKnockDown = true;
+ break;
+ default:
+ break;
+ }
+
+ _float fabsRadius = fabsf(m_fHitRadius);
+ _uint iState = { UINT_MAX };
+
+ if (fabsRadius > 135.f) {
+ iState = STATEANIM::DEAD_BWD;
+ }
+ else if (fabsRadius < 45.f) {
+ iState = STATEANIM::DEAD_FWD;
+ }
+ else {
+ if (m_fHitRadius < 0.f) {
+ iState = STATEANIM::DEAD_R;
+ }
+ else {
+ iState = STATEANIM::DEAD_L;
+ }
+ }
+ pairAnimInfo = m_Animation[iState + bStrongerKnockDown];
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+}
+
+HRESULT CGoblin::Behavior_DeadExitCheck(_float fTimeDelta)
+{
+ if (true == m_pModelCom->IsFinishedAnim()) {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+void CGoblin::Behavior_DeadExit()
+{
+ m_bDead = true;
+}
+
void CGoblin::Add_FSM()
{
@@ -368,7 +429,6 @@ void CGoblin::Add_FSM()
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::COMBAT, CState_Combat::Create(&Desc));
}
-
{
CState_Swing::STATE_SWING_DESC Desc{};
Desc.pOwner = this;
@@ -379,7 +439,6 @@ void CGoblin::Add_FSM()
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::SWING, CState_Swing::Create(&Desc));
}
-
{
CState_Throw::STATE_THROW_DESC Desc{};
Desc.pOwner = this;
@@ -390,7 +449,6 @@ void CGoblin::Add_FSM()
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::SKILL, CState_Throw::Create(&Desc));
}
-
{
CState_Blink::STATE_BLINK_DESC Desc{};
Desc.pOwner = this;
@@ -403,7 +461,14 @@ void CGoblin::Add_FSM()
}
#pragma endregion
#pragma region Behavior_Combat_Focus
-
+ {
+ CState_Dead::STATE_DEAD_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_DeadEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_DeadExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_DeadExit(); };
+ m_States.emplace(FSMSTATE::DEAD, CState_Dead::Create(&Desc));
+ }
#pragma endregion
#pragma region Hit
@@ -446,6 +511,7 @@ void CGoblin::Set_Anim()
m_Animation[STATEANIM::SKILL] = { 85,false }; // 나이프 던지기
m_Animation[STATEANIM::BLINK] = { 426,false }; // 텔레포트
m_Animation[STATEANIM::SWING_FWD] = { 100,false }; // 도끼 스윙 444
+ m_Animation[STATEANIM::ATTACK_END] = { 76,false };
m_Animation[STATEANIM::HIT_FWD] = { 353, false };
m_Animation[STATEANIM::HIT_BWD] = { 352, false };
@@ -491,7 +557,7 @@ void CGoblin::Set_Anim()
m_Animation[STATEANIM::DEAD_R2] = { 324, false };
//Tp 426
-
+ // 76 공격끝
@@ -516,5 +582,6 @@ void CGoblin::Set_Anim()
// 레비오소 피격 381
// 착지 376
+ //
}
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index a9f9795b2..26265cc4c 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -19,6 +19,7 @@ void CInfoInstance::Update(_float fTimeDelta)
m_pMonsterInfo->Update(fTimeDelta);
m_pMapInfo->Update(fTimeDelta);
m_pSkillInfo->Update(fTimeDelta);
+
}
void CInfoInstance::Change_Level()
@@ -47,7 +48,7 @@ HRESULT CInfoInstance::Regist_PlayerAlly(CUnit* pUnit)
HRESULT CInfoInstance::Deregist_PlayerAlly(CUnit* pUnit)
{
- if (nullptr == m_pMonsterInfo) {
+ if (nullptr == s_pInstance || nullptr == m_pMonsterInfo) {
return S_OK; // 게임 종료 된 상태
}
return m_pMonsterInfo->Deregist_PlayerAlly(pUnit);
@@ -60,7 +61,7 @@ HRESULT CInfoInstance::Regist_ActiveMonster(CMonster* pUnit)
HRESULT CInfoInstance::Deregist_ActiveMonster(CMonster* pUnit)
{
- if (nullptr == m_pMonsterInfo) {
+ if (nullptr == s_pInstance || nullptr == m_pMonsterInfo) {
return S_OK; // 게임 종료 된 상태
}
return m_pMonsterInfo->Deregist_ActiveMonster(pUnit);
@@ -160,6 +161,25 @@ void CInfoInstance::Key_Input(_uint Input)
}
}
+void CInfoInstance::Mouse_Input(_uint Input)
+{
+ m_eInput = Input;
+
+ switch (m_eInput)
+ {
+ case ENUM_CLASS(KEYINPUT::INPUT_1):
+ Event_CallBack(TEXT("Spell"), &m_eInput);
+ break;
+ case ENUM_CLASS(KEYINPUT::INPUT_2):
+ Event_CallBack(TEXT("Spell"), &m_eInput);
+ break;
+ default:
+ break;
+ }
+
+
+}
+
void CInfoInstance::Set_UISTATE(UI_STATE eState)
{
m_eUI_State = eState;
diff --git a/Jusin154_Team3D/Client/Private/Intro_BG.cpp b/Jusin154_Team3D/Client/Private/Intro_BG.cpp
new file mode 100644
index 000000000..d09188264
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Intro_BG.cpp
@@ -0,0 +1,177 @@
+#include "pch.h"
+#include "Intro_BG.h"
+#include "GameInstance.h"
+
+CIntro_BG::CIntro_BG(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CUIObject(pDevice, pContext)
+{
+}
+
+CIntro_BG::CIntro_BG(const CIntro_BG& rhs)
+ :CUIObject(rhs)
+{
+}
+
+HRESULT CIntro_BG::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CIntro_BG::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 960.f;
+ Desc.fY = 540.f;
+ Desc.fSizeX = g_iWinSizeX;
+ Desc.fSizeY = g_iWinSizeY;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fSortZ = 0.01f;
+ m_fAlpha = 1.f;
+ m_fOwnerAlpha = 1.f;
+ m_fCanvasAlpha = 1.f;
+ return S_OK;
+}
+
+void CIntro_BG::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CIntro_BG::Update(_float fTimeDelta)
+{
+}
+
+void CIntro_BG::Late_Update(_float fTimeDelta)
+{
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+}
+
+HRESULT CIntro_BG::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CIntro_BG::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CIntro_BG::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CIntro_BG::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("BG"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CIntro_BG* CIntro_BG::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CIntro_BG* pInstance = new CIntro_BG(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CIntro_BG");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CIntro_BG::Clone(void* pArg, CGameObject* pOwner)
+{
+ CIntro_BG* pInstance = new CIntro_BG(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CIntro_BG");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CIntro_BG::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CIntro_BG::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Intro_Image.cpp b/Jusin154_Team3D/Client/Private/Intro_Image.cpp
new file mode 100644
index 000000000..f22020e28
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Intro_Image.cpp
@@ -0,0 +1,187 @@
+#include "pch.h"
+#include "Intro_Image.h"
+#include "GameInstance.h"
+
+CIntro_Image::CIntro_Image(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CUIObject(pDevice, pContext)
+{
+}
+
+CIntro_Image::CIntro_Image(const CIntro_Image& rhs)
+ :CUIObject(rhs)
+{
+}
+
+HRESULT CIntro_Image::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CIntro_Image::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 960.f;
+ Desc.fY = 540.f;
+ Desc.fSizeX = 1920.f;
+ Desc.fSizeY = 480;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_fDelayTime = 2.f;
+ m_fAlpha = 1.f;
+ m_fTime = 1.f;
+ return S_OK;
+}
+
+void CIntro_Image::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CIntro_Image::Update(_float fTimeDelta)
+{
+ if (m_bHover == false)
+ {
+ m_fTime -= fTimeDelta;
+ }
+ if (m_fTime <= 0.f)
+ {
+ m_fTime = 0.f;
+ }
+ if (m_bHover == true)
+ {
+ m_fTime += fTimeDelta;
+ }
+}
+
+void CIntro_Image::Late_Update(_float fTimeDelta)
+{
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+}
+
+HRESULT CIntro_Image::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::LOGO)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CIntro_Image::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CIntro_Image::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_MaskingTexture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CIntro_Image::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Logo"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Dissolve"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CIntro_Image* CIntro_Image::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CIntro_Image* pInstance = new CIntro_Image(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CIntro_Image");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CIntro_Image::Clone(void* pArg, CGameObject* pOwner)
+{
+ CIntro_Image* pInstance = new CIntro_Image(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CIntro_Image");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CIntro_Image::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CIntro_Image::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 3c1bef61e..b3d3e646d 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -162,95 +162,96 @@ HRESULT CLevel_GamePlay::Ready_Background()
/* 테스트용 맵 */
CInfoInstance::GetInstance()->Load_MapObjects("ClientTest");
- /* 전체 맵 */
- CInfoInstance::GetInstance()->Load_MapObjects("Hogsmeade_MapContainer_Data");
+ ///* 전체 맵 */
+ //{
+ // CInfoInstance::GetInstance()->Load_MapObjects("Hogsmeade_MapContainer_Data");
- /* 조명 오브젝트 */
- CInfoInstance::GetInstance()->Load_LightElements("LightElement");
+ // /* 조명 오브젝트 */
+ // CInfoInstance::GetInstance()->Load_LightElements("LightElement");
- /* 상호작용 오브젝트 */
- CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_Barrel");
- CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_PostPackage_B");
- CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_PostPackage_F");
- CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_TeaShopTable");
- CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_TeaShopChair");
+ // /* 상호작용 오브젝트 */
+ // CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_Barrel");
+ // CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_PostPackage_B");
+ // CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_PostPackage_F");
+ // CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_TeaShopTable");
+ // CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_TeaShopChair");
- CInstancedProp::INSTANCE_PROP_DESC Desc = {};
+ // CInstancedProp::INSTANCE_PROP_DESC Desc = {};
- /* InstanceProp Oak_Tree*/
- Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA";
- Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OakTree_MedA.bin";
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))){
- return E_FAIL;
- }
+ // /* InstanceProp Oak_Tree*/
+ // Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA";
+ // Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OakTree_MedA.bin";
+ // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) {
+ // return E_FAIL;
+ // }
- /* BearBerry */
- Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A";
- Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/BearBerry_A.bin";
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))){
- return E_FAIL;
- }
+ // /* BearBerry */
+ // Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A";
+ // Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/BearBerry_A.bin";
+ // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) {
+ // return E_FAIL;
+ // }
- /* SM_HM_OwlPost_Window_A */
- Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A";
- Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OwlPost_Window.bin";
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
- return E_FAIL;
+ // /* SM_HM_OwlPost_Window_A */
+ // Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A";
+ // Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OwlPost_Window.bin";
+ // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
+ // return E_FAIL;
- ///* WA_Rectangle_Double_A */
- Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A";
- Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Rectangle_Double_A.bin";
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
- return E_FAIL;
+ // ///* WA_Rectangle_Double_A */
+ // Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A";
+ // Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Rectangle_Double_A.bin";
+ // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
+ // return E_FAIL;
- ///* WC_Retangle_Double_A */
- Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A";
- Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WC_Retangle_Double_A.bin";
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
- return E_FAIL;
+ // ///* WC_Retangle_Double_A */
+ // Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A";
+ // Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WC_Retangle_Double_A.bin";
+ // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
+ // return E_FAIL;
- ///* WA_Square_Double_C */
- Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C";
- Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WA_Square_Double_C.bin";
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
- return E_FAIL;
+ // ///* WA_Square_Double_C */
+ // Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C";
+ // Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WA_Square_Double_C.bin";
+ // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
+ // return E_FAIL;
- /* Quid_Window_A */
- Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A";
- Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Quid_Window_A.bin";
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
- return E_FAIL;
+ // /* Quid_Window_A */
+ // Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A";
+ // Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Quid_Window_A.bin";
+ // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
+ // return E_FAIL;
- /* Ollivanders_Box_Window */
- Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window";
- Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Ollivanders_Box.bin";
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
- return E_FAIL;
+ // /* Ollivanders_Box_Window */
+ // Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window";
+ // Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Ollivanders_Box.bin";
+ // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
+ // return E_FAIL;
- /* WC_L_DoubleS_A */
- Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A";
- Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WC_L_DoubleS_A.bin";
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
- return E_FAIL;
+ // /* WC_L_DoubleS_A */
+ // Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A";
+ // Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WC_L_DoubleS_A.bin";
+ // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
+ // return E_FAIL;
- /* WC_Round_Double_A */
- Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A";
- Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WC_Round_Double_A.bin";
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
- return E_FAIL;
+ // /* WC_Round_Double_A */
+ // Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A";
+ // Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WC_Round_Double_A.bin";
+ // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
+ // return E_FAIL;
- /* SM_HM_Door1a */
- Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a";
- Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Door1a.bin";
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
- return E_FAIL;
-
- /* SM_HM_Door1a */
- Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b";
- Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Door2b.bin";
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
- return E_FAIL;
+ // /* SM_HM_Door1a */
+ // Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a";
+ // Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Door1a.bin";
+ // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
+ // return E_FAIL;
+ // /* SM_HM_Door1a */
+ // Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b";
+ // Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Door2b.bin";
+ // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
+ // return E_FAIL;
+ //}
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Level_Loading.cpp b/Jusin154_Team3D/Client/Private/Level_Loading.cpp
index 8c55a61aa..992ab1577 100644
--- a/Jusin154_Team3D/Client/Private/Level_Loading.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_Loading.cpp
@@ -9,10 +9,13 @@
#include "Level_Restart.h"
#include "Level_Field.h"
+#include "Intro_Image.h"
+#include "Intro_BG.h"
+#include "Loding_Panel.h"
+
CLevel_Loading::CLevel_Loading(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
{
-
}
HRESULT CLevel_Loading::Initialize(LEVEL eNextLevelID)
@@ -30,14 +33,37 @@ HRESULT CLevel_Loading::Initialize(LEVEL eNextLevelID)
if (FAILED(Ready_Layer_BackGround(LAYER_UI))) {
return E_FAIL;
}
+ m_bNextLevel = false;
+ m_fTimeDelta = 1.2f;
return S_OK;
}
void CLevel_Loading::Update(_float fTimeDelta)
{
- if (true == m_pLoader->isFinished()
- //&& m_pGameInstance->Key_Down(DIK_RETURN)
- )
+ if (true == m_pLoader->isFinished() &&
+ m_pGameInstance->Key_Down(DIK_F1))
+ {
+ if (m_eNextLevelID != LEVEL::LOGO)
+ m_bNextLevel = true;
+ else
+ {
+ static_cast(m_pIntro_Image)->Set_Hover(true);
+ m_bDelay = true;
+ }
+
+ }
+
+ if (m_bDelay == true)
+ {
+ m_fTimeDelta -= fTimeDelta;
+ if (m_fTimeDelta <= 0.f)
+ {
+ m_bNextLevel = true;
+ }
+ }
+
+
+ if (m_bNextLevel == true)
{
pair> pairLevel = { nullptr, nullptr };
@@ -118,6 +144,23 @@ void CLevel_Loading::Capture_TerrainPreShadow(SHADOW_LIGHT_DESC& ShadowDesc)
HRESULT CLevel_Loading::Ready_Layer_BackGround(const _wstring& strLayerTag)
{
+ if (m_eNextLevelID == LEVEL::LOGO)
+ {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, ENUM_CLASS(LEVEL::LOADING), strLayerTag))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, ENUM_CLASS(LEVEL::LOADING), strLayerTag, nullptr, nullptr, reinterpret_cast(&m_pIntro_Image)))) {
+ return E_FAIL;
+ }
+ }
+
+ else
+ {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, ENUM_CLASS(LEVEL::LOADING), strLayerTag))) {
+ return E_FAIL;
+ }
+ }
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Level_Logo.cpp b/Jusin154_Team3D/Client/Private/Level_Logo.cpp
index 5b56ffe97..0579d24ac 100644
--- a/Jusin154_Team3D/Client/Private/Level_Logo.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_Logo.cpp
@@ -5,6 +5,9 @@
#include "Level_Loading.h"
#include "InfoInstance.h"
+#include "Logo.h"
+#include "Logo_Text.h"
+#include "Logo_Glow.h"
CLevel_Logo::CLevel_Logo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
@@ -88,6 +91,16 @@ HRESULT CLevel_Logo::Render()
HRESULT CLevel_Logo::Ready_Layer_UI(const _wstring& strLayerTag)
{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
+ return E_FAIL;
+ }
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index e1ebc67ef..a7f02db76 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -33,6 +33,15 @@
#include "Skill_Data.h"
#include "UI_Manager.h"
+#include "Logo.h"
+#include "Logo_Text.h"
+#include "Logo_Glow.h"
+
+#include "Mouse_Cursor.h"
+#include "CameraLockOn.h"
+
+#include "Loding_Panel.h"
+
#include "GamePlay_Canvas.h"
#include "Mission_Panel.h"
@@ -206,6 +215,27 @@ HRESULT CLoader::Loading_For_Logo()
{
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Dororong"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/DororongDoro.png"), 0)))) {
+ return E_FAIL;
+ }
+
+ Asset_FileLoad("../Bin/Resources/Textures/Logo", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
+ {
+
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
m_strMessage = TEXT("사운드를(을) 로딩 중 입니다.");
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
@@ -222,6 +252,18 @@ HRESULT CLoader::Loading_For_Logo()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLogo::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLogo_Text::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLogo_Glow::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
m_strMessage = TEXT("로딩이 완료되었습니다..");
m_isFinished = true;
@@ -232,293 +274,292 @@ HRESULT CLoader::Loading_For_Logo()
HRESULT CLoader::Loading_For_GamePlay()
{
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
-
-#pragma region MAP_MODELS
- vector*>> jobMapModels;
-
- {
- { /* Terrain */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Terrain",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Terrain",
- ".bin", false
- ));
- }
-
- { /* Ollivanders*/
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Collision",
- ".bin", false
- ));
- }
-
- { /* Gatehouse*/
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Gatehouse/Meshes",
- ".bin", false
- ));
- }
-
- { /* TScrolls */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Collisions",
- ".bin", false
- ));
- }
- { /* 3BroomStick*/
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Collision",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes/3Broom_Kit",
- ".bin", false
- ));
- }
-
-
- { /* BLDG_QuidditchShop */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Collision",
- ".bin", false
- ));
- }
- { /* BLDG_HogsheadInn */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Collision",
- ".bin", false
- ));
- }
- { /* BLDG_Honeydukes */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Collision",
- ".bin", false
- ));
- }
- { /* BLDG_OwlPost */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Collision",
- ".bin", false
- ));
- }
- { /* BLDG_TeaShop */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Collision",
- ".bin", false
- ));
- }
- { /* BLDG_Zonkos */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Collision",
- ".bin", false
- ));
- }
- { /* BLDG_DB_GR */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Collision",
- ".bin", false
- ));
- }
- { /* BLDG_Potions */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Collisions",
- ".bin", false
- ));
- }
- { /* BLDG_Salon */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Collision",
- ".bin", false
- ));
- }
- { /* Hengist_Tree */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Vegetation/Hengist_Tree",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Vegetation",
- ".bin", false
- ));
- }
- { /* GEN A*/
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Collision",
- ".bin", false
- ));
- }
- { /* GEN B*/
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Collision",
- ".bin", false
- ));
- }
- { /* GEN C*/
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Collision",
- ".bin", false
- ));
- }
- { /* GEN E*/
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Collision",
- ".bin", false
- ));
- }
- { /* GEN F*/
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Collision",
- ".bin", false
- ));
- }
- { /* GEN G*/
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Collision",
- ".bin", false
- ));
- }
- { /* GEN H*/
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Collision",
- ".bin", false
- ));
- }
- { /* GEN J*/
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Meshes",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Collision",
- ".bin", false
- ));
- }
- {/* Light Objects */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/LightPosts",
- ".bin", false
- ));
- }
- {/* Doors */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Doors",
- ".bin", false
- ));
- }
- {/* Step and Stair */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/GroundSurfaces",
- ".bin", false
- ));
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/GroundSurfaces",
- ".bin", false
- ));
- }
- {/* Barrel */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Meshes",
- ".bin", false
- ));
- /* Box */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/MiscProps",
- ".bin", false
- ));
- /* TeaShop Table */
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Tables",
- ".bin", false
- ));
- /* TeaShop Chair*/
- jobMapModels.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Chairs",
- ".bin", false
- ));
- }
- }
-
-#pragma endregion
-
+//
+//#pragma region MAP_MODELS
+// vector*>> jobMapModels;
+// {
+// { /* Terrain */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Terrain",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Terrain",
+// ".bin", false
+// ));
+// }
+//
+// { /* Ollivanders*/
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Collision",
+// ".bin", false
+// ));
+// }
+//
+// { /* Gatehouse*/
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Gatehouse/Meshes",
+// ".bin", false
+// ));
+// }
+//
+// { /* TScrolls */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Collisions",
+// ".bin", false
+// ));
+// }
+// { /* 3BroomStick*/
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Collision",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes/3Broom_Kit",
+// ".bin", false
+// ));
+// }
+//
+//
+// { /* BLDG_QuidditchShop */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Collision",
+// ".bin", false
+// ));
+// }
+// { /* BLDG_HogsheadInn */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Collision",
+// ".bin", false
+// ));
+// }
+// { /* BLDG_Honeydukes */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Collision",
+// ".bin", false
+// ));
+// }
+// { /* BLDG_OwlPost */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Collision",
+// ".bin", false
+// ));
+// }
+// { /* BLDG_TeaShop */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Collision",
+// ".bin", false
+// ));
+// }
+// { /* BLDG_Zonkos */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Collision",
+// ".bin", false
+// ));
+// }
+// { /* BLDG_DB_GR */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Collision",
+// ".bin", false
+// ));
+// }
+// { /* BLDG_Potions */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Collisions",
+// ".bin", false
+// ));
+// }
+// { /* BLDG_Salon */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Collision",
+// ".bin", false
+// ));
+// }
+// { /* Hengist_Tree */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Vegetation/Hengist_Tree",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Vegetation",
+// ".bin", false
+// ));
+// }
+// { /* GEN A*/
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Collision",
+// ".bin", false
+// ));
+// }
+// { /* GEN B*/
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Collision",
+// ".bin", false
+// ));
+// }
+// { /* GEN C*/
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Collision",
+// ".bin", false
+// ));
+// }
+// { /* GEN E*/
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Collision",
+// ".bin", false
+// ));
+// }
+// { /* GEN F*/
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Collision",
+// ".bin", false
+// ));
+// }
+// { /* GEN G*/
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Collision",
+// ".bin", false
+// ));
+// }
+// { /* GEN H*/
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Collision",
+// ".bin", false
+// ));
+// }
+// { /* GEN J*/
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Meshes",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Collision",
+// ".bin", false
+// ));
+// }
+// {/* Light Objects */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/LightPosts",
+// ".bin", false
+// ));
+// }
+// {/* Doors */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Doors",
+// ".bin", false
+// ));
+// }
+// {/* Step and Stair */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/GroundSurfaces",
+// ".bin", false
+// ));
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/GroundSurfaces",
+// ".bin", false
+// ));
+// }
+// {/* Barrel */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Meshes",
+// ".bin", false
+// ));
+// /* Box */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/MiscProps",
+// ".bin", false
+// ));
+// /* TeaShop Table */
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Tables",
+// ".bin", false
+// ));
+// /* TeaShop Chair*/
+// jobMapModels.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Chairs",
+// ".bin", false
+// ));
+// }
+// }
+//
+//#pragma endregion
+//
#pragma region UI
@@ -554,11 +595,6 @@ HRESULT CLoader::Loading_For_GamePlay()
});
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Cursor"),
- CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Cursor/UI_T_CursorRings.dds"), 0)))) {
- return E_FAIL;
- }
-
Asset_FileLoad("../Bin/Resources/Textures/Mission", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
{
@@ -607,6 +643,15 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Screen_BG"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/LoadingScreen/UI_T_Loding_Screen_BG.png"), 0)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LoadingScreen"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_%d.png"), 2)))) {
+ return E_FAIL;
+ }
Asset_FileLoad("../Bin/Resources/Textures/MiniMap", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
{
@@ -719,6 +764,23 @@ HRESULT CLoader::Loading_For_GamePlay()
return S_OK;
});
+
+ Asset_FileLoad("../Bin/Resources/Textures/Cursor", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
+ {
+
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Item"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/GadgetWheel/Item%d.png"), 8)))) {
return E_FAIL;
@@ -729,7 +791,7 @@ HRESULT CLoader::Loading_For_GamePlay()
{
return E_FAIL;
}
-
+#pragma region UI_ANI
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Altering_Spell"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Altering_Spell\\Altering_Spell%d.png"), 349))))
{
@@ -1236,16 +1298,19 @@ HRESULT CLoader::Loading_For_GamePlay()
#pragma region ACTOR
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Npc_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
+ CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
return E_FAIL;
+ }
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/Goblin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
+ CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/Goblin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
return E_FAIL;
+ }
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Troll/Troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
+ CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
return E_FAIL;
+ }
#pragma endregion
@@ -1371,327 +1436,6 @@ HRESULT CLoader::Loading_For_GamePlay()
});
-//#pragma region MAP_MODELS
-// vector> jobFutures;
-//
-// _uint iLoadCount = 46;
-// vector*> Contents(iLoadCount);
-//{
-// { /* Terrain */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Terrain",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Terrain",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-//
-// { /* Ollivanders*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-//
-// { /* Gatehouse*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Gatehouse/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-//
-// { /* TScrolls */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Collisions",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* 3BroomStick*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes/3Broom_Kit",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-//
-//
-// { /* BLDG_QuidditchShop */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_HogsheadInn */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_Honeydukes */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_OwlPost */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_TeaShop */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_Zonkos */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_DB_GR */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_Potions */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Collisions",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_Salon */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* Hengist_Tree */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Vegetation/Hengist_Tree",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Vegetation",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN A*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN B*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN C*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN E*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN F*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN G*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN H*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN J*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-//}
-//
-//
-// for (auto& jobFuture : jobFutures)
-// {
-// jobFuture.get();
-// }
-//
-// for (_uint i = 0; i < Contents.size(); ++i) {
-// for (_uint j = 0; j < (Contents[i])->size(); ++j) {
-// FOLDER_LOAD* pContents = (*Contents[i])[j];
-// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pModelTag, pContents->pLoadedModel))) {
-// return E_FAIL;
-// }
-//
-// for (_uint k = 0; k < pContents->pRigidBodyTags.size(); ++k) {
-// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pRigidBodyTags[k], pContents->LoadedRigidBody[k]))) {
-// return E_FAIL;
-// }
-// }
-//
-// }
-// }
-//
-// for (_uint i = 0; i < Contents.size(); ++i) {
-// for (_uint j = 0; j < (Contents[i])->size(); ++j) {
-// Safe_Delete((*Contents[i])[j]);
-// }
-// Safe_Delete(Contents[i]);
-// }
-//#pragma endregion
-//
-
-
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
/* For.Prototype_GameObject_UI_Manager*/
@@ -1699,7 +1443,19 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
- /* For.Prototype_GameObject_UI_Manager*/
+ /* For.Prototype_GameObject_Mouse_Cursor*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMouse_Cursor::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+
+ /* For.Prototype_GameObject_CameraLockOn*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCameraLockOn::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+
+ /* For.Prototype_GameObject_Skill_Data*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSkill_Data::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
@@ -1790,70 +1546,87 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ /* For.Prototype_GameObject_Spell_Canvas*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Canvas::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Spell_Panel*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Panel::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Current_Spell_Slot*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCurrent_Spell_Slot::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Spell_List*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_List::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Eessential_Spell_Slot*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEessential_Spell_Slot::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Eessential_Spell*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEessential_Spell::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Spell_List_Image*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_List_Image::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Spell_State*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_State::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Spell_Hover*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Hover::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Spell_Hover_Effect*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Hover_Effect::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Spell_Preview*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Preview::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Spell_Header*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Header::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Spell_Header_Line*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Header_Line::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Spell_Vidio_Border*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Vidio_Border::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Spell_Anim*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Anim::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Current_Slot_Number*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCurrent_Slot_Number::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_Spell_Drag*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Drag::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
@@ -1878,8 +1651,8 @@ HRESULT CLoader::Loading_For_GamePlay()
Desc.ePxRigidBodyFlags = {};
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT;
- Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f);
- Desc.fContactOffset = 0.f;
+ Desc.fContactOffset = 0.001f;
+ Desc.vMatInfo = { 1.2f, 1.0f, 0.0f };
}
CRigidBody_Static* pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogsmeade"), pRigid))) {
@@ -2023,6 +1796,11 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll::Create(m_pDevice, m_pContext))))
return E_FAIL;
+#pragma endregion
+#pragma region STAT PROTOTYPE
+ if (FAILED(Stat_FileLoad("../Bin/Resources/Data/Stat/Stat.xml"))) {
+ return E_FAIL;
+ }
#pragma endregion
@@ -2085,28 +1863,28 @@ HRESULT CLoader::Loading_For_GamePlay()
#pragma region RECEIVE_THREAD
- { // MapModels
- _uint iIndex = 0;
- for (auto& JobMapModels : jobMapModels)
- {
- vector* pOut = JobMapModels.get();
- for (_uint i = 0; i < pOut->size(); ++i) {
- FOLDER_LOAD* pContents = (*pOut)[i];
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pModelTag, pContents->pLoadedModel))) {
- return E_FAIL;
- }
+ //{ // MapModels
+ // _uint iIndex = 0;
+ // for (auto& JobMapModels : jobMapModels)
+ // {
+ // vector* pOut = JobMapModels.get();
+ // for (_uint i = 0; i < pOut->size(); ++i) {
+ // FOLDER_LOAD* pContents = (*pOut)[i];
+ // if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pModelTag, pContents->pLoadedModel))) {
+ // return E_FAIL;
+ // }
- for (_uint j = 0; j < pContents->pRigidBodyTags.size(); ++j) {
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pRigidBodyTags[j], pContents->LoadedRigidBody[j]))) {
- return E_FAIL;
- }
- }
- Safe_Delete(pContents);
- }
- iIndex++;
- Safe_Delete(pOut);
- }
- }
+ // for (_uint j = 0; j < pContents->pRigidBodyTags.size(); ++j) {
+ // if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pRigidBodyTags[j], pContents->LoadedRigidBody[j]))) {
+ // return E_FAIL;
+ // }
+ // }
+ // Safe_Delete(pContents);
+ // }
+ // iIndex++;
+ // Safe_Delete(pOut);
+ // }
+ //}
#pragma endregion
m_strMessage = TEXT("정보를 불러오는 중입니다.");
@@ -2185,6 +1963,34 @@ HRESULT CLoader::Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreN
return S_OK;
}
+HRESULT CLoader::Stat_FileLoad(const _char* pDirectoryPath)
+{
+ filesystem::path pathStatFile = pDirectoryPath;
+
+ tinyxml2::XMLDocument doc;
+ tinyxml2::XMLError Error = doc.LoadFile(pathStatFile.string().c_str());
+ if (Error != tinyxml2::XML_SUCCESS) {
+ return E_FAIL;
+ }
+
+ tinyxml2::XMLElement* pStatInfo = doc.FirstChildElement("StatInfo");
+ if (!pStatInfo) {
+ return E_FAIL;
+ }
+
+ _uint iNumChild = pStatInfo->ChildElementCount();
+ tinyxml2::XMLNode* pChild = pStatInfo->FirstChildElement();
+ for (_uint i = 0; i < iNumChild; ++i) {
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, CMyTools::ToWstring(pChild->Value()),
+ CStat::Create(m_pDevice, m_pContext, pChild)))) {
+ return E_FAIL;
+ }
+ pChild = pChild->NextSiblingElement();
+ }
+
+ return S_OK;
+}
+
vector* APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag)
{
if (FAILED(CoInitializeEx(nullptr, 0))) {
@@ -2232,7 +2038,7 @@ vector* APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, I
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT;
Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f);
- Desc.fContactOffset = 0.f;
+ Desc.fContactOffset = 0.001f;
}
pContents->pRigidBodyTags.emplace_back(CMyTools::ToWstring(pModel->Get_MeshName(i) + to_string(i)).c_str());
diff --git a/Jusin154_Team3D/Client/Private/Loding_Panel.cpp b/Jusin154_Team3D/Client/Private/Loding_Panel.cpp
new file mode 100644
index 000000000..8424ed42e
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Loding_Panel.cpp
@@ -0,0 +1,196 @@
+#include "pch.h"
+#include "Loding_Panel.h"
+#include "GameInstance.h"
+
+CLoding_Panel::CLoding_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CUIObject(pDevice, pContext)
+{
+}
+
+CLoding_Panel::CLoding_Panel(const CLoding_Panel& rhs)
+ :CUIObject(rhs)
+{
+}
+
+HRESULT CLoding_Panel::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CLoding_Panel::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 960.f;
+ Desc.fY = 540.f;
+ Desc.fSizeX = g_iWinSizeX;
+ Desc.fSizeY = g_iWinSizeY;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fCanvasAlpha = 1.f;
+ m_fOwnerAlpha = 1.f;
+ m_fAlpha = 1.f;
+ m_fSortZ = 0.f;
+ m_iImageNum = 0;
+ //m_vImageposSi = _float4(0.f, 0.f, 1792.f, 1024.f);
+
+ return S_OK;
+}
+void CLoding_Panel::Set_Image(_int Index)
+{
+ m_iImageNum = Index;
+}
+void CLoding_Panel::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CLoding_Panel::Update(_float fTimeDelta)
+{
+}
+
+void CLoding_Panel::Late_Update(_float fTimeDelta)
+{
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+}
+
+HRESULT CLoding_Panel::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::LODING_SCREEN)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CLoding_Panel::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CLoding_Panel::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", m_iImageNum)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ //if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_vImageposSi, sizeof(_float4))))
+ //{
+ // return E_FAIL;
+ //}
+ //if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ //{
+ // return E_FAIL;
+ //}
+ return S_OK;
+}
+
+HRESULT CLoding_Panel::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Screen_BG"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("LoadingScreen"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CLoding_Panel* CLoding_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CLoding_Panel* pInstance = new CLoding_Panel(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CLoding_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CLoding_Panel::Clone(void* pArg, CGameObject* pOwner)
+{
+ CLoding_Panel* pInstance = new CLoding_Panel(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CLoding_Panel::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CLoding_Panel::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Logo.cpp b/Jusin154_Team3D/Client/Private/Logo.cpp
new file mode 100644
index 000000000..f7cccd7d7
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Logo.cpp
@@ -0,0 +1,179 @@
+#include "pch.h"
+#include "Logo.h"
+#include "GameInstance.h"
+
+CLogo::CLogo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CUIObject(pDevice, pContext)
+{
+}
+
+CLogo::CLogo(const CLogo& rhs)
+ :CUIObject(rhs)
+{
+}
+
+HRESULT CLogo::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CLogo::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 960.f;
+ Desc.fY = 540.f;
+ Desc.fSizeX = g_iWinSizeX;
+ Desc.fSizeY = g_iWinSizeY;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fOwnerAlpha = 1.f;
+ m_fCanvasAlpha = 1.f;
+ m_fAlpha = 1.f;
+ m_fSortZ = 0.01f;
+ m_fTime = 0.f;
+ return S_OK;
+}
+
+void CLogo::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CLogo::Update(_float fTimeDelta)
+{
+ if (m_fTime <= 1.f)
+ m_fTime += fTimeDelta;
+}
+
+void CLogo::Late_Update(_float fTimeDelta)
+{
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+}
+
+HRESULT CLogo::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::CLAMP)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+_vector CLogo::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CLogo::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CLogo::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Logo_Screen_BG"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CLogo* CLogo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CLogo* pInstance = new CLogo(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CLogo");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CLogo::Clone(void* pArg, CGameObject* pOwner)
+{
+ CLogo* pInstance = new CLogo(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CLogo");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CLogo::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CLogo::Describe_Entity()
+{
+}
+
diff --git a/Jusin154_Team3D/Client/Private/Logo_Glow.cpp b/Jusin154_Team3D/Client/Private/Logo_Glow.cpp
new file mode 100644
index 000000000..83d955946
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Logo_Glow.cpp
@@ -0,0 +1,201 @@
+#include "pch.h"
+#include "Logo_Glow.h"
+#include "GameInstance.h"
+
+CLogo_Glow::CLogo_Glow(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CUIObject(pDevice, pContext)
+{
+}
+
+CLogo_Glow::CLogo_Glow(const CLogo_Glow& rhs)
+ :CUIObject(rhs)
+{
+}
+
+HRESULT CLogo_Glow::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CLogo_Glow::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 470.f;
+ Desc.fY = 385.f;
+ Desc.fSizeX = 256.f;
+ Desc.fSizeY = 128.f;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fOwnerAlpha = 1.f;
+ m_fCanvasAlpha = 1.f;
+ m_fAlpha = 0.f;
+ m_bHover = false;
+ return S_OK;
+}
+
+void CLogo_Glow::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CLogo_Glow::Update(_float fTimeDelta)
+{
+ if (m_bHover == false)
+ {
+ m_fTime += fTimeDelta;
+ if (m_fTime >= 0.7f)
+ {
+ m_bHover = true;
+ }
+ }
+ else
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta;
+ }
+ }
+}
+
+void CLogo_Glow::Late_Update(_float fTimeDelta)
+{
+ if (m_bHover == true)
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+}
+
+HRESULT CLogo_Glow::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::LOGO_GLOW)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CLogo_Glow::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CLogo_Glow::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CLogo_Glow::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_NavBarHighlightGlow"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_WhiteStarBurst"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CLogo_Glow* CLogo_Glow::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CLogo_Glow* pInstance = new CLogo_Glow(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CLogo_Glow");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CLogo_Glow::Clone(void* pArg, CGameObject* pOwner)
+{
+ CLogo_Glow* pInstance = new CLogo_Glow(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CLogo_Glow");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CLogo_Glow::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CLogo_Glow::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Logo_Text.cpp b/Jusin154_Team3D/Client/Private/Logo_Text.cpp
new file mode 100644
index 000000000..55a0a6d53
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Logo_Text.cpp
@@ -0,0 +1,192 @@
+#include "pch.h"
+#include "Logo_Text.h"
+#include "GameInstance.h"
+
+CLogo_Text::CLogo_Text(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CUIObject(pDevice, pContext)
+{
+}
+
+CLogo_Text::CLogo_Text(const CLogo_Text& rhs)
+ :CUIObject(rhs)
+{
+}
+
+HRESULT CLogo_Text::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CLogo_Text::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 960.f;
+ Desc.fY = 480.f;
+ Desc.fSizeX = 1536.f;
+ Desc.fSizeY = 768.f;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fOwnerAlpha = 1.f;
+ m_fCanvasAlpha = 1.f;
+ m_fAlpha = 0.f;
+ m_bHover = false;
+ return S_OK;
+}
+
+void CLogo_Text::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CLogo_Text::Update(_float fTimeDelta)
+{
+ if (m_bHover == false)
+ {
+ m_fTime += fTimeDelta;
+ if (m_fTime >= 1.f)
+ {
+ m_bHover = true;
+ }
+ }
+ else
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta;
+ }
+ }
+}
+
+void CLogo_Text::Late_Update(_float fTimeDelta)
+{
+ if (m_bHover == true)
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+}
+
+HRESULT CLogo_Text::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::LOGO_TEXT)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CLogo_Text::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CLogo_Text::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CLogo_Text::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_HogwartsLegacyLogo_Korean"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CLogo_Text* CLogo_Text::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CLogo_Text* pInstance = new CLogo_Text(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CLogo_Text");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CLogo_Text::Clone(void* pArg, CGameObject* pOwner)
+{
+ CLogo_Text* pInstance = new CLogo_Text(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CLogo_Text");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CLogo_Text::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CLogo_Text::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/MainApp.cpp b/Jusin154_Team3D/Client/Private/MainApp.cpp
index a57e8d4ab..54b8bbf5e 100644
--- a/Jusin154_Team3D/Client/Private/MainApp.cpp
+++ b/Jusin154_Team3D/Client/Private/MainApp.cpp
@@ -4,6 +4,11 @@
#include "Level_Loading.h"
#include "InfoInstance.h"
+#include "Loding_Panel.h"
+#include "Intro_Image.h"
+#include "Intro_BG.h"
+
+
NS_BEGIN(Engine)
class CGameInstance;
NS_END
@@ -113,6 +118,50 @@ HRESULT CMainApp::Start_Level(LEVEL eLevelID)
HRESULT CMainApp::Ready_Prototypes()
{
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Logo"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Logo/UI_T_Hogwarts_Letter_Head.png"), 0)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("BG"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Logo/BG.png"), 0)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Dissolve"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Logo/Dissolve.png"), 0)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIEDITOR,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"),
+ VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Screen_BG"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/LoadingScreen/UI_T_Loding_Screen_BG.png"), 0)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LoadingScreen"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_%d.png"), 2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CIntro_Image::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CIntro_BG::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLoding_Panel::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Monster.cpp b/Jusin154_Team3D/Client/Private/Monster.cpp
index bdb9ccdd2..7b4184203 100644
--- a/Jusin154_Team3D/Client/Private/Monster.cpp
+++ b/Jusin154_Team3D/Client/Private/Monster.cpp
@@ -66,13 +66,16 @@ HRESULT CMonster::Render_OutLine()
GUI::SetNextItemWidth(80.f);
static _float3 vOutLineColor = _float3(1.f, 0.960784376f, 0.933333397f);
- static _float fOutLineThickness = { 2.f }; // 카메라로부터 거리가 멀어지면 늘어나게끔 바꾸는걸 추천함
+ static _float fOutLineThickness = { 5.f }; // 카메라로부터 거리가 멀어지면 늘어나게끔 바꾸는걸 추천함
static _float fOutLineScale = { 1.f };
static _float fOutLinePower = { 1.f };
GUI::ColorPicker3("vOutLineColor", (_float*)&vOutLineColor);
GUI::SliderFloat("Thickness", &fOutLineThickness, 0.1f, 2.f, "%.1f");
GUI::SliderFloat("Scale", &fOutLineScale, 0.1f, 2.f, "%.1f");
GUI::SliderFloat("Power", &fOutLinePower, 0.1f, 2.f, "%.1f");
+ Compute_Depth();
+ _float fRatio = (m_fCamDepth / *m_pGameInstance->Get_CurrentCameraFar());
+ fOutLineThickness = CMyTools::Lerp_f1D(2.f, 6.f, fRatio);
if (FAILED(m_pShaderCom->Bind_RawValue("g_vOutLineColor", &vOutLineColor, sizeof(_float3)))) {
return E_FAIL;
}
@@ -116,6 +119,16 @@ void CMonster::Set_DrawOutLine()
m_bDrawOutLine = true;
}
+_bool CMonster::Get_Damage(_float fDamage)
+{
+ return m_pStat->Get_Damage(fDamage);
+}
+
+_float2 CMonster::Get_Hp()
+{
+ return { m_pStat->Get_Stat(ENUM_CLASS(STAT::HP)), m_pStat->Get_Stat(ENUM_CLASS(STAT::MAXHP)) };
+}
+
HRESULT CMonster::Ready_Components(void*pArg)
{
__super::Ready_Components(pArg);
@@ -146,6 +159,7 @@ void CMonster::Free()
{
__super::Free();
+ SAFE_RELEASE(m_pStat);
SAFE_RELEASE(m_pTarget);
if (nullptr != m_pInfoInstance){
CInfoInstance* pInfo = m_pInfoInstance;
diff --git a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp
index 9b674760d..51100c7b8 100644
--- a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp
@@ -12,8 +12,8 @@ void CMonsterInfo::Update(_float fTimeDelta)
{
Refresh_PlayerAllies();
Refresh_LockOnMonsters();
+ Refresh_ActiveMonsters();
}
-
void CMonsterInfo::Change_Level()
{
SAFE_RELEASE(m_pLockOnMonster);
@@ -118,26 +118,31 @@ HRESULT CMonsterInfo::Refresh_LockOnMonsters()
_vector vMonsterPos;
_vector vToMonsterDir;
+ _float fFovy = max(m_pGameInstance->Get_CameraFov() - XMConvertToRadians(30.f), XMConvertToRadians(20.f));
{ // 뷰프러스텀 순회해서 가장 중앙에 근접한 몬스터 찾기
for (list::iterator iter = m_ActiveMonsters.begin(); iter != m_ActiveMonsters.end(); ++iter) {
// (카메라의 룩)과 (카메라 -> 몬스터 방향 벡터)를 내적해서 가장 큰 크기가 나온 몬스타가 락온 대상
- vMonsterPos = (*iter)->Get_WorldPostion();
+ CMonster* pMonster = (*iter);
+ if (pMonster->Get_Hp().x <= 0) {
+ continue;
+ }
+ vMonsterPos = pMonster->Get_WorldPostion();
vToMonsterDir = vMonsterPos - vCameraPos;
_float fDotResult = CMyTools::DirectionCompare(vCameraLook, vToMonsterDir);
- if (fDotResult <= 0.f) {
+ if (fDotResult <= cosf(fFovy)) {
continue;
}
if (nullptr == m_pLockOnMonster) {
- m_pLockOnMonster = (*iter);
+ m_pLockOnMonster = pMonster;
fMaxDot = fDotResult;
continue;
}
if (fMaxDot < fDotResult) {
- m_pLockOnMonster = (*iter);
+ m_pLockOnMonster = pMonster;
fMaxDot = fDotResult;
}
}
@@ -148,6 +153,22 @@ HRESULT CMonsterInfo::Refresh_LockOnMonsters()
return S_OK;
}
+HRESULT CMonsterInfo::Refresh_ActiveMonsters()
+{
+ list::iterator iter = m_ActiveMonsters.begin();
+ for (; iter != m_ActiveMonsters.end();) {
+ if (true == (*iter)->isDead()) {
+ SAFE_RELEASE(*iter);
+ iter = m_ActiveMonsters.erase(iter);
+ }
+ else {
+ ++iter;
+ }
+ }
+ return S_OK;
+}
+
+
HRESULT CMonsterInfo::Refresh_PlayerAllies()
{
for (list::iterator iter = m_PlayerAllies.begin(); iter != m_PlayerAllies.end();) {
diff --git a/Jusin154_Team3D/Client/Private/Mouse_Cursor.cpp b/Jusin154_Team3D/Client/Private/Mouse_Cursor.cpp
new file mode 100644
index 000000000..01676921a
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Mouse_Cursor.cpp
@@ -0,0 +1,192 @@
+#include "pch.h"
+#include "Mouse_Cursor.h"
+#include "GameInstance.h"
+#include "InfoInstance.h"
+
+CMouse_Cursor::CMouse_Cursor(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CUIObject(pDevice, pContext)
+{
+}
+
+CMouse_Cursor::CMouse_Cursor(const CMouse_Cursor& rhs)
+ :CUIObject(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CMouse_Cursor::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CMouse_Cursor::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ // 호버 시 74
+ Desc.fSizeX = 100.f;
+ Desc.fSizeY = 100.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 5.f;
+ m_bVisible = false;
+ m_fSortZ = 0.f;
+ // 메뉴가 실행이 되면 마우스가 나타나고 다른 UI위에 올라가면 살짝 작아진다.
+ return S_OK;
+}
+
+void CMouse_Cursor::Priority_Update(_float fTimeDelta)
+{
+ if (m_bVisible)
+ {
+ POINT m_pPt{};
+ GetCursorPos(&m_pPt);
+ ScreenToClient(g_hWnd, &m_pPt);
+ _vector MousePos = XMVectorSet(static_cast<_float>(m_pPt.x - m_fWinSizeX * 0.5f), static_cast<_float>(-m_pPt.y + m_fWinSizeY * 0.5f) - 10.f, 0.f, 1.f);
+ m_pTransformCom->Set_State(STATE::POSITION, MousePos);
+ }
+
+}
+
+void CMouse_Cursor::Update(_float fTimeDelta)
+{
+ if (m_bVisible)
+ {
+ m_fTime += fTimeDelta * m_fTimeMult;
+ }
+ /*ShowCursor(false);*/
+}
+
+void CMouse_Cursor::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI_OVERLAY, this);
+ }
+}
+
+HRESULT CMouse_Cursor::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::CURSOR)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CMouse_Cursor::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CMouse_Cursor::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CMouse_Cursor::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_CursorRings"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CMouse_Cursor* CMouse_Cursor::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CMouse_Cursor* pInstance = new CMouse_Cursor(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CMouse_Cursor");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CMouse_Cursor::Clone(void* pArg, CGameObject* pOwner)
+{
+ CMouse_Cursor* pInstance = new CMouse_Cursor(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CMouse_Cursor");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CMouse_Cursor::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+#ifdef _DEBUG
+void CMouse_Cursor::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp
index 5e364efd2..502976a40 100644
--- a/Jusin154_Team3D/Client/Private/NomalJap.cpp
+++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp
@@ -68,8 +68,9 @@ void CNomalJap::Priority_Update(_float fTimeDelta)
void CNomalJap::Update(_float fTimeDelta)
{
- if (m_bVisible == false)
+ if (m_bVisible == false){
return;
+ }
__super::Update(fTimeDelta);
@@ -118,26 +119,39 @@ void CNomalJap::Update(_float fTimeDelta)
void CNomalJap::Late_Update(_float fTimeDelta)
{
- if (m_bVisible == false) {
+ if (false == m_bVisible) {
return;
}
+ if (false == m_bHit) {
+ SweepTarget();
+ }
+ Get_PartObject()->Trail_Update(m_pProjectile->Get_Component()->Get_XMWorldMatrix(), fTimeDelta);
+ __super::Late_Update(fTimeDelta);
+}
+
+void CNomalJap::SweepTarget()
+{
_vector vStartPos = m_pProjectile->Get_WorldPostion();
-
_vector vEndPos = XMLoadFloat4(&m_vTargetPos);
-
_vector vDir = { vEndPos - vStartPos };
_float fDistance = XMVectorGetX(XMVector3Length(vEndPos - vStartPos));
PSX::PxSweepBuffer pxBuffer = {};
- _bool bHit = m_pGameInstance->SphereCast(0.2f, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
+ _bool bHit = m_pGameInstance->SphereCast(0.002f, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
if (bHit) {
const PSX::PxSweepHit& hit = pxBuffer.block;
PSX::PxRigidActor* pActor = hit.actor;
PSX::PxShape* pShape = hit.shape;
+ ON_COLLISION_INFO tagCollInfo = {};
+ memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
+ memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
+ XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
+ tagCollInfo.fLength = fDistance;
+
if (nullptr != pActor && nullptr != pActor->userData)
{
@@ -150,14 +164,17 @@ void CNomalJap::Late_Update(_float fTimeDelta)
switch (PXOBJECT(pUserData->iSubKind))
{
case PXOBJECT::MONSTER:
+ break;
case PXOBJECT::GOBLIN_WARRIOR:
{
- pUserData->pOwner->OnCollision(this);
+ pUserData->pOwner->OnCollision(this, &tagCollInfo);
+ m_bHit = true;
}
- break;
+ break;
case PXOBJECT::TROLL:
{
- pUserData->pOwner->OnCollision(this);
+ pUserData->pOwner->OnCollision(this, &tagCollInfo);
+ m_bHit = true;
}
break;
}
@@ -165,11 +182,6 @@ void CNomalJap::Late_Update(_float fTimeDelta)
}
}
}
-
- Get_PartObject()->Trail_Update(m_pProjectile->Get_Component()->Get_XMWorldMatrix(), fTimeDelta);
-
-
- __super::Late_Update(fTimeDelta);
}
HRESULT CNomalJap::Pre_Setting(CGameObject* pObject, void* pArg)
@@ -185,7 +197,6 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject, void* pArg)
XMStoreFloat4(&m_vStartPos, vStartPos);
/* 초기 객체 위치 초기화 */
-
m_pProjectile->Get_Component()->Set_State(STATE::POSITION, vStartPos);
m_pProjectile_Side->Get_Component()->Set_State(STATE::POSITION, vStartPos);
@@ -212,18 +223,15 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject, void* pArg)
{ /* 대상 위치 지정 */
-
+ m_bHit = false;
CUnit* pTargetUnit = m_pInfoInstance->Get_LockOnUnit();
if (nullptr != pTargetUnit) {
+ XMStoreFloat4(&m_vTargetPos, pTargetUnit->Get_LockOnPos());
- XMStoreFloat4(&m_vTargetPos, pTargetUnit->Get_WorldPostion());
-
- if(XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))) >= 35.f) //거리가 일정 이상이라면 그냥 정면으로 발사
+ if (XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))) >= 35.f) { //거리가 일정 이상이라면 그냥 정면으로 발사
XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f);
-
+ }
XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
-
-
}
else {
// 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정
@@ -314,11 +322,13 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc)
{
int iIndex = CollisionCheck();
- if (iIndex < 0)
+ if (iIndex < 0){
return;
+ }
- if (m_isCollisionEnter == true)
+ if (m_isCollisionEnter == true){
return;
+ }
m_isCollisionEnter = true;
diff --git a/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
index cc5fe0254..e2b24e27e 100644
--- a/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
+++ b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
@@ -103,8 +103,8 @@ HRESULT CPhysXEffectHitBox::Ready_Components(void* pArg)
Desc.iSubKind = pDesc->iSubKind;
Desc.pTransform = m_pTransformCom;
Desc.eBodyType = ACTOR::BOX;
- Desc.fContactOffset = 0.1f;
- Desc.fMaterial = { 0.5f, 0.5f, 0.6f };
+ Desc.fContactOffset = 0.3f;
+ Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
Desc.bAutoStepping = { false };
Desc.fStepOffset = { 0.05f };
Desc.fRadius = 0.5f;
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index 171d8c60d..ef120d229 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -104,7 +104,7 @@ HRESULT CPlayer::Initialize(void* pArg)
#endif // _DEBUG
// UI 연동 추가
- m_pInfoInstance->Add_Event(TEXT("JAP"), [this](void* p) {this->Get_Spell(*reinterpret_cast<_int*>(p)); });
+ m_pInfoInstance->Add_Event(TEXT("UseSpell"), [this](void* p) {this->Get_Spell(*reinterpret_cast<_int*>(p)); });
m_pInfoInstance->Add_Event(TEXT("Canvas_Change"), [this](void* p) {this->Get_UIState(*reinterpret_cast<_int*>(p)); });
return S_OK;
}
@@ -122,11 +122,8 @@ void CPlayer::Priority_Update(_float fTimeDelta)
void CPlayer::Update(_float fTimeDelta)
{
Update_CameraCoordinateSystem();
-
m_pFSM->Update_State(fTimeDelta);
-
-
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
@@ -149,11 +146,17 @@ void CPlayer::Late_Update(_float fTimeDelta)
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this);
__super::Late_Update(fTimeDelta);
- if (nullptr != m_pLockOnMonster && false == m_pLockOnMonster->isDead()) {
- static_cast(m_pLockOnMonster)->Set_DrawOutLine();
+ if (nullptr != m_pLockOnMonster) {
+ if (false == m_pLockOnMonster->isDead()) {
+ static_cast(m_pLockOnMonster)->Set_DrawOutLine();
+ }
+ else {
+ m_pLockOnMonster = nullptr;
+ }
}
}
@@ -194,6 +197,43 @@ HRESULT CPlayer::Render()
return S_OK;
}
+HRESULT CPlayer::Render_Shadow()
+{
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ViewMatrix", D3DTS::VIEW))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", &m_pGameInstance->Get_ShadowDesc()->fFar, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ _uint iNumMeshes = m_pModelCom->Get_NumMeshes();
+
+ for (_uint i = 0; i < iNumMeshes; i++)
+ {
+ if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+ }
+
+ return S_OK;
+}
void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
{
m_pFSM->Change_State(FSMSTATE::HIT);
@@ -286,6 +326,10 @@ HRESULT CPlayer::Ready_Components()
return E_FAIL;
}
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_PLAYER"), (CComponent**)&m_pStat))) {
+ return E_FAIL;
+ }
+
{ // CCT
CCharacter_Controller::Character_Controller_DESC Desc{};
@@ -293,8 +337,8 @@ HRESULT CPlayer::Ready_Components()
Desc.iSubKind = ENUM_CLASS(PXOBJECT::PLAYER);
Desc.pTransform = m_pTransformCom;
Desc.eBodyType = ACTOR::CAPSULE;
- Desc.fContactOffset = 0.01f;
- Desc.fMaterial = { 0.5f, 0.5f, 0.6f };
+ Desc.fContactOffset = 0.3f;
+ Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
Desc.bAutoStepping = { true };
Desc.fStepOffset = { 0.05f };
Desc.fRadius = 0.5f;
@@ -457,6 +501,7 @@ void CPlayer::Free()
SAFE_RELEASE(m_pCharacter_Controller);
SAFE_RELEASE(m_pRigidBody);
SAFE_RELEASE(m_pLightCom);
+ SAFE_RELEASE(m_pStat);
Safe_Delete(m_pCallBack_Behavior);
Safe_Delete(m_pCallBack_HitReport);
SAFE_RELEASE(m_pCamPosition_TopDown_FollowPart);
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index c7d204ad8..ea5fb25b6 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -21,6 +21,8 @@
#include "State_Land.h"
#include "State_Move.h"
#include "State_Combat.h"
+#include "State_LightAttack.h"
+#include "State_Spell.h"
#include "State_Hit.h"
#include "State_Broom_Ride.h"
#pragma endregion
@@ -68,13 +70,13 @@ HRESULT CPlayer::InputAction()
}
}
else {
- if(m_pGameInstance->Key_Down(DIK_T))
+ if (m_pGameInstance->Key_Down(DIK_T))
{
if (m_pGameInstance->Key_Down(DIK_T)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_T));
return S_OK;
}
}
-
+
return E_FAIL;
}
@@ -132,7 +134,7 @@ HRESULT CPlayer::InputSpell()
HRESULT CPlayer::InputAim()
{
- if (m_pGameInstance->Mouse_Pressing(DIM_RBUTTON)||
+ if (m_pGameInstance->Mouse_Pressing(DIM_RBUTTON) ||
m_pGameInstance->Mouse_Pressing(DIM_LBUTTON))
{
return S_OK;
@@ -156,10 +158,10 @@ void CPlayer::Behavior_IdleEnter() {
{
pairAnimInfo = m_Animation[STATEANIM::IDLE];
}
-
+
m_bSprintToggle = false;
m_bWalkToggle = false;
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,0.5f,true);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f, true);
}
// S_OK -> 현 상태 유지
@@ -259,8 +261,8 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
if (cross > 0.f) {
pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_L];
}
- else {
- pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_R];
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_R];
}
}
else
@@ -269,7 +271,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
}
m_pFSM->Enable_State(FSMSTATE::IDLE_TURN);
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,m_fAmount);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, m_fAmount);
}
return E_FAIL;
@@ -284,7 +286,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
}
}
-
+
return S_OK;
}
@@ -467,8 +469,8 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
if (iCurrentAnimIndex != m_Animation[STATEANIM::JOG_FWD].first &&
iCurrentAnimIndex != m_Animation[STATEANIM::WALK_FWD].first) {
bSkipAngleCheck = true;
-
- if (m_pModelCom->IsFinishedAnim() || m_pFSM->IsEnable(FSMSTATE::STOP)|| SUCCEEDED(InputAim())) {
+
+ if (m_pModelCom->IsFinishedAnim() || m_pFSM->IsEnable(FSMSTATE::STOP) || SUCCEEDED(InputAim())) {
m_pFSM->Disable_State(FSMSTATE::STOP);
bSkipAngleCheck = false;
}
@@ -513,7 +515,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
}
}
-
+
m_fAmount = 0.5f;
m_bRatio = true;
}
@@ -540,10 +542,10 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
else {
pairAnimInfo = m_Animation[STATEANIM::JOG_RIGHT];
}
-
+
}
}
-
+
m_fAmount = 0.5f;
m_bRatio = true;
}
@@ -563,7 +565,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
{
pairAnimInfo = m_Animation[STATEANIM::JOG_BWD];
}
-
+
}
else if (m_pFSM->IsEnable(FSMSTATE::WALK))
{
@@ -572,8 +574,8 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
m_fAmount = 0.5f;
m_bRatio = true;
}
-
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,m_fAmount, m_bRatio);
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, m_fAmount, m_bRatio);
m_fAmount = 1.f;
}
}
@@ -583,7 +585,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
return S_OK;
}
- if (m_pFSM->IsEnable(FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::SPRINT)||
+ if (m_pFSM->IsEnable(FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::SPRINT) ||
!SUCCEEDED(InputMove())) {
if (!m_pFSM->IsEnable(FSMSTATE::STOP))
{
@@ -612,7 +614,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
else {
pairAnimInfo = m_Animation[STATEANIM::JOG_STOP];
}
-
+
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
}
@@ -621,7 +623,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
m_pFSM->Change_State(FSMSTATE::IDLE);
m_pFSM->Disable_State(FSMSTATE::STOP);
}
-
+
return S_OK;
}
@@ -747,103 +749,12 @@ void CPlayer::Behavior_CombatEnter()
0.4f);
}
else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) {
- m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK);
- pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK];
-
- Add_Event(pairAnimInfo.first, [this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject(), &iIndex); }, 0.1f);
-
- Add_Event(pairAnimInfo.first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject()); }, 0.0f);
+ m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK);
+ return;
}
else if (SUCCEEDED(InputSpell())) {
- m_pFSM->Enable_State(FSMSTATE::SPELL);
- if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END))
- {
- pairAnimInfo = m_Animation[STATEANIM::SPELL];
- switch (m_eSpell)
- {
- case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
- Add_Event(pairAnimInfo.first,
- [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this); },
- 0.2f);
- Add_Event(pairAnimInfo.first,
- [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject());},
- 0.f);
- break;
- case ENUM_CLASS(SKILL_TYPE::DESCENDO):
- Add_Event(pairAnimInfo.first,
- [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO, Get_PartObject()); },
- 0.2f);
- Add_Event(pairAnimInfo.first,
- [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO_SIDE, Get_PartObject()); },
- 0.f);
- break;
- case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
- Add_Event(pairAnimInfo.first,
- [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this); },
- 0.2f);
- Add_Event(pairAnimInfo.first,
- [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject()); },
- 0.f);
- break;
- case ENUM_CLASS(SKILL_TYPE::DIFFINDO):
- pairAnimInfo = m_Animation[STATEANIM::DIFFINDO];
- break;
- case ENUM_CLASS(SKILL_TYPE::DISILLUSIONMENT):
- pairAnimInfo = m_Animation[STATEANIM::DISILLUSION_ENTER];
- break;
- case ENUM_CLASS(SKILL_TYPE::LUMOS):
- if (m_pModelCom->Get_SecondAnimIndex() != m_Animation[STATEANIM::LUMOS].first)
- {
- if (SUCCEEDED(InputMove()))
- {
- if (m_bSprintToggle) {
- pairAnimInfo = m_Animation[STATEANIM::SPRINT];
- }
- else if (m_bWalkToggle) {
- pairAnimInfo = m_Animation[STATEANIM::WALK_FWD];
- }
- else {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- }
- }
- else {
- pairAnimInfo = m_Animation[STATEANIM::IDLE];
- }
- Add_Event(pairAnimInfo.first,
- [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LUMOS, Get_PartObject()); },
- 0.f);
- m_pModelCom->Set_Second_AnimationIndex(m_Animation[STATEANIM::LUMOS].first, ENUM_CLASS(BLEND_BONE::SHOULDER_R), true);
- }
- else
- {
- if (SUCCEEDED(InputMove()))
- {
- if (m_bSprintToggle) {
- pairAnimInfo = m_Animation[STATEANIM::SPRINT];
- }
- else if (m_bWalkToggle) {
- pairAnimInfo = m_Animation[STATEANIM::WALK_FWD];
- }
- else {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- }
- }
- else {
- pairAnimInfo = m_Animation[STATEANIM::IDLE];
- }
- m_pModelCom->Set_Second_AnimationIndex(m_Animation[STATEANIM::LUMOS_STOP].first, ENUM_CLASS(BLEND_BONE::SHOULDER_R));
- m_eSpell = STATEANIM::END;
- }
- break;
- default:
- pairAnimInfo = m_Animation[STATEANIM::SPELL_FAIL];
- break;
- }
- }
- else
- {
- pairAnimInfo = m_Animation[STATEANIM::SPELL_FAIL];
- }
+ m_pFSM->Change_State(FSMSTATE::SPELL);
+ return;
}
else if (m_pGameInstance->Key_Down(DIK_V)) {
m_pFSM->Enable_State(FSMSTATE::MAPHELP);
@@ -873,7 +784,7 @@ void CPlayer::Behavior_CombatEnter()
pairAnimInfo = m_Animation[STATEANIM::IDLE];
}
- m_pModelCom->Set_Second_AnimationIndex(m_Animation[STATEANIM::POTION].first,ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L));
+ m_pModelCom->Set_Second_AnimationIndex(m_Animation[STATEANIM::POTION].first, ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L));
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
@@ -894,40 +805,6 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
pairAnimInfo = m_Animation[STATEANIM::SKILL2];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
- else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON))
- {
- m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK);
- _uint iIndex = m_pModelCom->Get_AnimIndex();
- if (m_Animation[STATEANIM::LIGHT_ATTACK].first <= iIndex && m_Animation[STATEANIM::LIGHT_ATTACK].first + 3 > iIndex) {
- _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
- if (fRatio >= 0.1f) {
- pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK];
- pairAnimInfo.first = iIndex + 1;
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
-
- Add_Event(pairAnimInfo.first,
- [this]() {
- _uint iIndex = m_pModelCom->Get_AnimIndex() - m_Animation[STATEANIM::LIGHT_ATTACK].first;
- m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject(), &iIndex); },
- 0.05f);
-
- Add_Event(pairAnimInfo.first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject()); }, 0.0f);
- }
- }
- }
- else if (SUCCEEDED(InputSpell()))
- {
- m_pFSM->Enable_State(FSMSTATE::SPELL);
- _uint iIndex = m_pModelCom->Get_AnimIndex();
- if (m_Animation[STATEANIM::SPELL].first <= iIndex && m_Animation[STATEANIM::SPELL].first + 3 > iIndex) {
- _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
- if (fRatio >= 0.15f) {
- pairAnimInfo = m_Animation[STATEANIM::SPELL];
- pairAnimInfo.first = iIndex + 1;
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
- }
- }
- }
else if (m_pGameInstance->Key_Down(DIK_V))
{
m_pFSM->Enable_State(FSMSTATE::MAPHELP);
@@ -1017,10 +894,244 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
void CPlayer::Behavior_CombatExit()
{
- m_pFSM->Disable_State(FSMSTATE::COMBAT | FSMSTATE::LIGHT_ATTACK | FSMSTATE::SPELL | FSMSTATE::SKILL |
+ m_pFSM->Disable_State(FSMSTATE::COMBAT | FSMSTATE::SKILL |
FSMSTATE::SKILL2 | FSMSTATE::MAPHELP | FSMSTATE::ANCIENT_THROW | FSMSTATE::POTION);
}
+void CPlayer::Behavior_LightAttackEnter()
+{
+ pair<_uint, _bool> pairAnimInfo;
+ m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK);
+ pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+
+ Add_Event(pairAnimInfo.first,
+ [this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject(), &iIndex); },
+ 0.1f);
+
+ Add_Event(pairAnimInfo.first,
+ [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject()); },
+ 0.0f);
+}
+
+HRESULT CPlayer::Behavior_LightAttackExitCheck()
+{
+ pair<_uint, _bool> pairAnimInfo;
+ if (m_pGameInstance->Mouse_Up(DIM_LBUTTON))
+ {
+ _uint iIndex = m_pModelCom->Get_AnimIndex();
+ if (m_Animation[STATEANIM::LIGHT_ATTACK].first <= iIndex && m_Animation[STATEANIM::LIGHT_ATTACK].first + 3 > iIndex) {
+ _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
+ if (fRatio >= 0.1f) {
+ pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK];
+ pairAnimInfo.first = iIndex + 1;
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+
+ Add_Event(pairAnimInfo.first,
+ [this]() {
+ _uint iIndex = m_pModelCom->Get_AnimIndex() - m_Animation[STATEANIM::LIGHT_ATTACK].first;
+ m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject(), &iIndex); },
+ 0.05f);
+
+ Add_Event(pairAnimInfo.first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject()); }, 0.0f);
+ }
+ }
+ }
+
+ if (SUCCEEDED(InputMove()) && IsCurrentKeyFrame("Combat")) {
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+ return E_FAIL;
+ }
+
+ if (m_pModelCom->IsFinishedAnim()) {
+ if (SUCCEEDED(InputMove()))
+ {
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+ return E_FAIL;
+ }
+ else {
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ }
+ }
+
+ return E_FAIL;
+}
+
+void CPlayer::Behavior_LightAttackExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::LIGHT_ATTACK);
+}
+
+void CPlayer::Behavior_SpellEnter()
+{
+ pair<_uint, _bool> pairAnimInfo;
+ m_pFSM->Enable_State(FSMSTATE::SPELL);
+ if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END))
+ {
+ pairAnimInfo = m_Animation[STATEANIM::SPELL];
+ switch (m_eSpell)
+ {
+ case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this); },
+ 0.2f);
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); },
+ 0.f);
+ break;
+ case ENUM_CLASS(SKILL_TYPE::DESCENDO):
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO, Get_PartObject()); },
+ 0.2f);
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO_SIDE, Get_PartObject()); },
+ 0.f);
+ break;
+ case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this); },
+ 0.2f);
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject()); },
+ 0.f);
+ break;
+ case ENUM_CLASS(SKILL_TYPE::DIFFINDO):
+ pairAnimInfo = m_Animation[STATEANIM::DIFFINDO];
+ break;
+ case ENUM_CLASS(SKILL_TYPE::DISILLUSIONMENT):
+ pairAnimInfo = m_Animation[STATEANIM::DISILLUSION_ENTER];
+ break;
+ case ENUM_CLASS(SKILL_TYPE::LUMOS):
+ if (m_pModelCom->Get_SecondAnimIndex() != m_Animation[STATEANIM::LUMOS].first)
+ {
+ if (SUCCEEDED(InputMove()))
+ {
+ if (m_bSprintToggle) {
+ pairAnimInfo = m_Animation[STATEANIM::SPRINT];
+ }
+ else if (m_bWalkToggle) {
+ pairAnimInfo = m_Animation[STATEANIM::WALK_FWD];
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ }
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::IDLE];
+ }
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LUMOS, Get_PartObject()); },
+ 0.f);
+ m_pModelCom->Set_Second_AnimationIndex(m_Animation[STATEANIM::LUMOS].first, ENUM_CLASS(BLEND_BONE::SHOULDER_R), true);
+ }
+ else
+ {
+ if (SUCCEEDED(InputMove()))
+ {
+ if (m_bSprintToggle) {
+ pairAnimInfo = m_Animation[STATEANIM::SPRINT];
+ }
+ else if (m_bWalkToggle) {
+ pairAnimInfo = m_Animation[STATEANIM::WALK_FWD];
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ }
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::IDLE];
+ }
+ m_pModelCom->Set_Second_AnimationIndex(m_Animation[STATEANIM::LUMOS_STOP].first, ENUM_CLASS(BLEND_BONE::SHOULDER_R));
+ m_eSpell = STATEANIM::END;
+ }
+ break;
+ default:
+ pairAnimInfo = m_Animation[STATEANIM::SPELL_FAIL];
+ break;
+ }
+ }
+ else
+ {
+ pairAnimInfo = m_Animation[STATEANIM::SPELL_FAIL];
+ }
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+}
+
+HRESULT CPlayer::Behavior_SpellExitCheck()
+{
+ pair<_uint, _bool> pairAnimInfo;
+ _uint iIndex = m_pModelCom->Get_AnimIndex();
+
+ if (SUCCEEDED(InputSpell()))
+ {
+ if (m_Animation[STATEANIM::SPELL].first <= iIndex && m_Animation[STATEANIM::SPELL].first + 3 > iIndex) {
+ _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
+
+ if (fRatio >= 0.15f) {
+ pairAnimInfo = m_Animation[STATEANIM::SPELL];
+ pairAnimInfo.first = iIndex + 1;
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+
+ if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END))
+ {
+ switch (m_eSpell)
+ {
+ case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this); },
+ 0.2f);
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); },
+ 0.f);
+ break;
+ case ENUM_CLASS(SKILL_TYPE::DESCENDO):
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO, Get_PartObject()); },
+ 0.2f);
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO_SIDE, Get_PartObject()); },
+ 0.f);
+ break;
+ case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this); },
+ 0.2f);
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject()); },
+ 0.f);
+ break;
+ }
+ }
+ }
+ }
+ }
+
+
+ if (SUCCEEDED(InputMove()) && IsCurrentKeyFrame("Combat")) {
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+ return E_FAIL;
+ }
+
+ if (m_pModelCom->IsFinishedAnim()) {
+ if (SUCCEEDED(InputMove()))
+ {
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+ return E_FAIL;
+ }
+ else {
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ }
+ }
+
+ return E_FAIL;
+}
+
+void CPlayer::Behavior_SpellExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::SPELL);
+}
+
void CPlayer::Behavior_HitEnter()
{
m_pFSM->Enable_State(FSMSTATE::HIT);
@@ -1040,7 +1151,7 @@ void CPlayer::Behavior_HitEnter()
default:
break;
}
-
+
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
@@ -1135,7 +1246,7 @@ HRESULT CPlayer::Behavior_Broom_RideExitCheck()
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
-
+
if (m_pGameInstance->Key_Down(DIK_N)) {
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_DISMOUNT);
@@ -1155,7 +1266,7 @@ HRESULT CPlayer::Behavior_Broom_RideExitCheck()
m_pFSM->Change_State(FSMSTATE::MOVE);
return E_FAIL;
}
-
+
}
return E_FAIL;
@@ -1169,8 +1280,8 @@ void CPlayer::Behavior_Broom_RideExit()
void CPlayer::Player_InterpTurn(_float fTimeDelta)
{
_uint iCurrIndex = m_pModelCom->Get_AnimIndex();
- if (iCurrIndex != m_Animation[STATEANIM::JOG_FWD].first&&
- iCurrIndex != m_Animation[STATEANIM::WALK_FWD].first&&
+ if (iCurrIndex != m_Animation[STATEANIM::JOG_FWD].first &&
+ iCurrIndex != m_Animation[STATEANIM::WALK_FWD].first &&
iCurrIndex != m_Animation[STATEANIM::SPRINT].first)
return;
@@ -1249,10 +1360,10 @@ void CPlayer::Add_FSM()
_float3 fMove = m_pGameInstance->Get_MouseMove();
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.x * 0.03f);
}
-
+
}
}
- };
+ };
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc));
}
@@ -1272,7 +1383,7 @@ void CPlayer::Add_FSM()
}
}
}
- };
+ };
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc));
@@ -1320,6 +1431,28 @@ void CPlayer::Add_FSM()
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::COMBAT, CState_Combat::Create(&Desc));
}
+
+ {
+ CState_LightAttack::STATE_LIGHTATTACK_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_LightAttackEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_LightAttackExitCheck(); };
+ Desc.funcExitEvent = [this]() { Behavior_LightAttackExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::LIGHT_ATTACK, CState_LightAttack::Create(&Desc));
+ }
+
+ {
+ CState_Spell::STATE_SPELL_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_SpellEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_SpellExitCheck(); };
+ Desc.funcExitEvent = [this]() { Behavior_SpellExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::SPELL, CState_Spell::Create(&Desc));
+ }
#pragma endregion
#pragma region Behavior_Combat_Focus
@@ -1367,12 +1500,12 @@ void CPlayer::Add_FSM()
_matrix BoneNoScale = XMMatrixRotationQuaternion(Rot) * XMMatrixTranslationFromVector(Trans);
m_OffsetPos = { 0.f, 1.22f, 0.f };
-
+
GUI::DragFloat3("BroomOffset", (_float*)&m_OffsetPos, 0.01f);
_matrix Offset = XMMatrixTranslation(m_OffsetPos.x,
m_OffsetPos.y, m_OffsetPos.z);
- _matrix SocketWorld = BoneNoScale * Offset* BroomWorld;
+ _matrix SocketWorld = BoneNoScale * Offset * BroomWorld;
_matrix FixRot = XMMatrixRotationY(XMConvertToRadians(180.f));
@@ -1383,8 +1516,8 @@ void CPlayer::Add_FSM()
XMMatrixDecompose(&SourS, &SourR, &SourT, FinalWorld);
XMMatrixDecompose(&DestS, &DestR, &DestT, m_pTransformCom->Get_XMWorldMatrix());
- _vector finalR = XMQuaternionSlerp(SourR,DestR, fTimeDelta * 10.f);
- _vector finalT = XMVectorLerp(SourT,DestT, fTimeDelta * 10.f);
+ _vector finalR = XMQuaternionSlerp(SourR, DestR, fTimeDelta * 10.f);
+ _vector finalT = XMVectorLerp(SourT, DestT, fTimeDelta * 10.f);
_matrix finalMat = XMMatrixAffineTransformation(DestS, XMVectorZero(), finalR, finalT);
@@ -1419,7 +1552,7 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::JOG_LEFT] = { 164,false }; // Turn
m_Animation[STATEANIM::JOG_RIGHT] = { 185,false };// Turn
m_Animation[STATEANIM::JOG_BWD] = { 154,false }; // Turn
- m_Animation[STATEANIM::JOG_STOP] = { 446,false };
+ m_Animation[STATEANIM::JOG_STOP] = { 446,false };
m_Animation[STATEANIM::JOG_AIM_LEFT] = { 171,true };
m_Animation[STATEANIM::JOG_AIM_RIGHT] = { 175,true };
@@ -1459,7 +1592,7 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::HIT_R] = { 1201,false };
m_Animation[STATEANIM::KNOCKBACK] = { 1078,false };
- m_Animation[STATEANIM::BROOM_IDLE] = { 710,true };
+ m_Animation[STATEANIM::BROOM_IDLE] = { 710,true };
m_Animation[STATEANIM::BROOM_FWD] = { 711,true };
m_Animation[STATEANIM::BROOM_LEFT] = { 713,true };
m_Animation[STATEANIM::BROOM_RIGHT] = { 714,true };
@@ -1470,7 +1603,7 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::BROOM_MOUNT_END] = { 737,false };
m_Animation[STATEANIM::BROOM_HOVER_START] = { 699,false };
m_Animation[STATEANIM::BROOM_DISMOUNT] = { 738,false };
-
+
m_Animation[STATEANIM::BROOM_HOVER_IDLE] = { 703,true };
m_Animation[STATEANIM::BROOM_HOVER_FWD] = { 700,true };
diff --git a/Jusin154_Team3D/Client/Private/Skill_Data.cpp b/Jusin154_Team3D/Client/Private/Skill_Data.cpp
index 10117deb8..29603666b 100644
--- a/Jusin154_Team3D/Client/Private/Skill_Data.cpp
+++ b/Jusin154_Team3D/Client/Private/Skill_Data.cpp
@@ -57,6 +57,14 @@ void CSkill_Data::Update(_float fTimeDelta)
}
}
+ if (m_bNoCool == true)
+ {
+ for (_int i = 0; i < 34; ++i)
+ {
+ m_iSpell_CoolTime[i] = 1.f;
+ }
+ }
+
}
void CSkill_Data::Change_Level()
diff --git a/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp b/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp
index 0abb218d8..86a0bc7aa 100644
--- a/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp
@@ -126,10 +126,18 @@ void CSpell_Overlay::Spell_Setting(_int SlotIndex, _int SpellIndex)
void CSpell_Overlay::Use_Spell()
{
- if (m_bEquipped[m_iCurrent_Slot] == true && m_bSpellUsed[m_iCurrent_Slot] == true)
+ if (m_bEquipped[m_iCurrent_Slot] == true)
{
m_pInfoInstance->Update_Spell(m_Spells[m_iCurrent_Slot]);
- m_pInfoInstance->Event_CallBack(TEXT("JAP"), &m_Spells[m_iCurrent_Slot]);
+ if (m_bSpellUsed[m_iCurrent_Slot] == true)
+ {
+ m_pInfoInstance->Event_CallBack(TEXT("UseSpell"), &m_Spells[m_iCurrent_Slot]);
+ }
+ else
+ {
+ _int Spell = -1;
+ m_pInfoInstance->Event_CallBack(TEXT("UseSpell"), &Spell);
+ }
}
}
@@ -201,6 +209,16 @@ void CSpell_Overlay::Update(_float fTimeDelta)
}
}
+ if (m_pGameInstance->Key_Down(DIK_N))
+ {
+ Nocool = true;
+ m_pInfoInstance->Event_CallBack(TEXT("NoCooL"), &Nocool);
+ }
+ if (m_pGameInstance->Key_Down(DIK_M))
+ {
+ Nocool = false;
+ m_pInfoInstance->Event_CallBack(TEXT("NoCooL"), &Nocool);
+ }
if (m_pGameInstance->Key_Down(DIK_N))
{
diff --git a/Jusin154_Team3D/Client/Private/State_Dead.cpp b/Jusin154_Team3D/Client/Private/State_Dead.cpp
new file mode 100644
index 000000000..14e11a7ec
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/State_Dead.cpp
@@ -0,0 +1,56 @@
+#include "pch.h"
+#include "State_Dead.h"
+#include "Unit.h"
+
+
+CState_Dead::CState_Dead()
+ :CState_Root()
+{
+}
+
+void CState_Dead::Enter()
+{
+ __super::Enter();
+}
+
+HRESULT CState_Dead::Update(_float fTimeDelta)
+{
+ if (E_FAIL == (__super::Update(fTimeDelta))) {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+void CState_Dead::Exit()
+{
+ __super::Exit();
+}
+
+HRESULT CState_Dead::Initialize(STATE_DEAD_DESC* pDesc)
+{
+ if (FAILED(__super::Initialize(pDesc))) {
+ return E_FAIL;
+ }
+ m_pModel = m_pOwner->Get_Component();
+ m_pFSM = m_pOwner->Get_Component();
+
+ return S_OK;
+}
+
+CState_Dead* CState_Dead::Create(STATE_DEAD_DESC* pDesc)
+{
+ CState_Dead* pInstance = new CState_Dead;
+ if (FAILED(pInstance->Initialize(pDesc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CState_Dead::Free()
+{
+ __super::Free();
+}
+
+void CState_Dead::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/State_IdleBreak.cpp b/Jusin154_Team3D/Client/Private/State_IdleBreak.cpp
new file mode 100644
index 000000000..37935574c
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/State_IdleBreak.cpp
@@ -0,0 +1,64 @@
+#include "pch.h"
+#include "State_IdleBreak.h"
+#include "GameInstance.h"
+#include "Unit.h"
+
+CState_IdleBreak::CState_IdleBreak()
+ :CState_Root()
+{
+}
+
+void CState_IdleBreak::Enter()
+{
+ __super::Enter();
+}
+
+HRESULT CState_IdleBreak::Update(_float fTimeDelta)
+{
+ if (nullptr != m_funcPriorityUpdate) {
+ m_funcPriorityUpdate(fTimeDelta);
+ }
+ if (E_FAIL == (__super::Update(fTimeDelta))) {
+ return E_FAIL;
+ }
+ if (nullptr != m_funcLateUpdate) {
+ m_funcLateUpdate(fTimeDelta);
+ }
+ return S_OK;
+}
+
+void CState_IdleBreak::Exit()
+{
+ __super::Exit();
+}
+
+HRESULT CState_IdleBreak::Initialize(STATE_IDLEBREAK_DESC* pDesc)
+{
+ if (FAILED(__super::Initialize(pDesc))) {
+ return E_FAIL;
+ }
+ m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
+ m_funcLateUpdate = pDesc->funcLateUpdate;
+ m_pModel = m_pOwner->Get_Component();
+ m_pFSM = m_pOwner->Get_Component();
+
+ return S_OK;
+}
+
+CState_IdleBreak* CState_IdleBreak::Create(STATE_IDLEBREAK_DESC* pDesc)
+{
+ CState_IdleBreak* pInstance = new CState_IdleBreak;
+ if (FAILED(pInstance->Initialize(pDesc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CState_IdleBreak::Free()
+{
+ __super::Free();
+}
+
+void CState_IdleBreak::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/State_LightAttack.cpp b/Jusin154_Team3D/Client/Private/State_LightAttack.cpp
new file mode 100644
index 000000000..74daf6bcf
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/State_LightAttack.cpp
@@ -0,0 +1,64 @@
+#include "pch.h"
+#include "State_LightAttack.h"
+#include "Unit.h"
+
+
+CState_LightAttack::CState_LightAttack()
+ :CState_Root()
+{
+}
+
+void CState_LightAttack::Enter()
+{
+ __super::Enter();
+}
+
+HRESULT CState_LightAttack::Update(_float fTimeDelta)
+{
+ if (nullptr != m_funcPriorityUpdate) {
+ m_funcPriorityUpdate(fTimeDelta);
+ }
+ if (E_FAIL == (__super::Update(fTimeDelta))) {
+ return E_FAIL;
+ }
+ if (nullptr != m_funcLateUpdate) {
+ m_funcLateUpdate(fTimeDelta);
+ }
+ return S_OK;
+}
+
+void CState_LightAttack::Exit()
+{
+ __super::Exit();
+}
+
+HRESULT CState_LightAttack::Initialize(STATE_LIGHTATTACK_DESC* pDesc)
+{
+ if (FAILED(__super::Initialize(pDesc))) {
+ return E_FAIL;
+ }
+ m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
+ m_funcLateUpdate = pDesc->funcLateUpdate;
+ m_pModel = m_pOwner->Get_Component();
+ m_pFSM = m_pOwner->Get_Component();
+
+ return S_OK;
+}
+
+CState_LightAttack* CState_LightAttack::Create(STATE_LIGHTATTACK_DESC* pDesc)
+{
+ CState_LightAttack* pInstance = new CState_LightAttack;
+ if (FAILED(pInstance->Initialize(pDesc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CState_LightAttack::Free()
+{
+ __super::Free();
+}
+
+void CState_LightAttack::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/State_Slam.cpp b/Jusin154_Team3D/Client/Private/State_Slam.cpp
new file mode 100644
index 000000000..76e36bbbf
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/State_Slam.cpp
@@ -0,0 +1,64 @@
+#include "pch.h"
+#include "State_Slam.h"
+#include "Unit.h"
+
+
+CState_Slam::CState_Slam()
+ :CState_Root()
+{
+}
+
+void CState_Slam::Enter()
+{
+ __super::Enter();
+}
+
+HRESULT CState_Slam::Update(_float fTimeDelta)
+{
+ if (nullptr != m_funcPriorityUpdate) {
+ m_funcPriorityUpdate(fTimeDelta);
+ }
+ if (E_FAIL == (__super::Update(fTimeDelta))) {
+ return E_FAIL;
+ }
+ if (nullptr != m_funcLateUpdate) {
+ m_funcLateUpdate(fTimeDelta);
+ }
+ return S_OK;
+}
+
+void CState_Slam::Exit()
+{
+ __super::Exit();
+}
+
+HRESULT CState_Slam::Initialize(STATE_SLAM_DESC* pDesc)
+{
+ if (FAILED(__super::Initialize(pDesc))) {
+ return E_FAIL;
+ }
+ m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
+ m_funcLateUpdate = pDesc->funcLateUpdate;
+ m_pModel = m_pOwner->Get_Component();
+ m_pFSM = m_pOwner->Get_Component();
+
+ return S_OK;
+}
+
+CState_Slam* CState_Slam::Create(STATE_SLAM_DESC* pDesc)
+{
+ CState_Slam* pInstance = new CState_Slam;
+ if (FAILED(pInstance->Initialize(pDesc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CState_Slam::Free()
+{
+ __super::Free();
+}
+
+void CState_Slam::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/State_Spell.cpp b/Jusin154_Team3D/Client/Private/State_Spell.cpp
new file mode 100644
index 000000000..ab2858457
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/State_Spell.cpp
@@ -0,0 +1,64 @@
+#include "pch.h"
+#include "State_Spell.h"
+#include "Unit.h"
+
+
+CState_Spell::CState_Spell()
+ :CState_Root()
+{
+}
+
+void CState_Spell::Enter()
+{
+ __super::Enter();
+}
+
+HRESULT CState_Spell::Update(_float fTimeDelta)
+{
+ if (nullptr != m_funcPriorityUpdate) {
+ m_funcPriorityUpdate(fTimeDelta);
+ }
+ if (E_FAIL == (__super::Update(fTimeDelta))) {
+ return E_FAIL;
+ }
+ if (nullptr != m_funcLateUpdate) {
+ m_funcLateUpdate(fTimeDelta);
+ }
+ return S_OK;
+}
+
+void CState_Spell::Exit()
+{
+ __super::Exit();
+}
+
+HRESULT CState_Spell::Initialize(STATE_SPELL_DESC* pDesc)
+{
+ if (FAILED(__super::Initialize(pDesc))) {
+ return E_FAIL;
+ }
+ m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
+ m_funcLateUpdate = pDesc->funcLateUpdate;
+ m_pModel = m_pOwner->Get_Component();
+ m_pFSM = m_pOwner->Get_Component();
+
+ return S_OK;
+}
+
+CState_Spell* CState_Spell::Create(STATE_SPELL_DESC* pDesc)
+{
+ CState_Spell* pInstance = new CState_Spell;
+ if (FAILED(pInstance->Initialize(pDesc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CState_Spell::Free()
+{
+ __super::Free();
+}
+
+void CState_Spell::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp
index e80fa33e2..fd6aa35af 100644
--- a/Jusin154_Team3D/Client/Private/Troll.cpp
+++ b/Jusin154_Team3D/Client/Private/Troll.cpp
@@ -119,7 +119,7 @@ void CTroll::Late_Update(_float fTimeDelta)
}
if (m_bLookAt) {
- m_pTransformCom->LookAt_Lerp(XMLoadFloat4(&m_vTargetPos),fTimeDelta, 5.f);
+ m_pTransformCom->LookAt_Lerp(XMLoadFloat4(&m_vTargetPos),fTimeDelta, 3.f);
}
@@ -188,6 +188,17 @@ HRESULT CTroll::Render()
return S_OK;
}
+_vector CTroll::Get_LockOnPos()
+{
+ if (nullptr != m_pCharacter_Controller && true == m_pCharacter_Controller->IsActive()) {
+ return m_pCharacter_Controller->Get_Position();
+ }
+ else if (nullptr != m_pRigidBody) {
+ return m_pRigidBody->Get_Position();
+ }
+ return Get_WorldPostion();
+}
+
void CTroll::OnCollision(CGameObject* pOther, void* pDesc)
{
ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
@@ -240,8 +251,8 @@ HRESULT CTroll::Ready_Components()
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TROLL);
Desc.pTransform = m_pTransformCom;
Desc.eBodyType = ACTOR::CAPSULE;
- Desc.fContactOffset = 0.1f;
- Desc.fMaterial = { 0.5f, 0.5f, 0.6f };
+ Desc.fContactOffset = 0.3f;
+ Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
Desc.bAutoStepping = { false };
Desc.fStepOffset = { 0.05f };
Desc.fRadius = 1.2f;
@@ -249,6 +260,7 @@ HRESULT CTroll::Ready_Components()
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Monster_HitReport::Create();
Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_Monster_Behavior::Create();
Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY;
+ Desc.fWalkableSlope = 45.f;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) {
return E_FAIL;
}
@@ -263,6 +275,9 @@ HRESULT CTroll::Ready_Components()
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
}
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_TROLL"), (CComponent**)&m_pStat))) {
+ return E_FAIL;
+ }
return S_OK;
}
@@ -376,6 +391,8 @@ void CTroll::Describe_Entity()
{
m_pCharacter_Controller->Set_Position(XMLoadFloat3(&Pos));
}
+ GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Degree %.2f", m_fDegree);
+ GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Distance %.2f", m_fTargetDistance);
GUI::End();
diff --git a/Jusin154_Team3D/Client/Private/Troll_State_BackHand_Swing.cpp b/Jusin154_Team3D/Client/Private/Troll_State_BackHand_Swing.cpp
new file mode 100644
index 000000000..9f9f0384c
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Troll_State_BackHand_Swing.cpp
@@ -0,0 +1,64 @@
+#include "pch.h"
+#include "Troll_State_BackHand_Swing.h"
+#include "GameInstance.h"
+#include "Unit.h"
+
+CTroll_State_BackHand_Swing::CTroll_State_BackHand_Swing()
+ :CState_Root()
+{
+}
+
+void CTroll_State_BackHand_Swing::Enter()
+{
+ __super::Enter();
+}
+
+HRESULT CTroll_State_BackHand_Swing::Update(_float fTimeDelta)
+{
+ if (nullptr != m_funcPriorityUpdate) {
+ m_funcPriorityUpdate(fTimeDelta);
+ }
+ if (E_FAIL == (__super::Update(fTimeDelta))) {
+ return E_FAIL;
+ }
+ if (nullptr != m_funcLateUpdate) {
+ m_funcLateUpdate(fTimeDelta);
+ }
+ return S_OK;
+}
+
+void CTroll_State_BackHand_Swing::Exit()
+{
+ __super::Exit();
+}
+
+HRESULT CTroll_State_BackHand_Swing::Initialize(TROLL_STATE_BACK_HAND_SWING_DESC* pDesc)
+{
+ if (FAILED(__super::Initialize(pDesc))) {
+ return E_FAIL;
+ }
+ m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
+ m_funcLateUpdate = pDesc->funcLateUpdate;
+ m_pModel = m_pOwner->Get_Component();
+ m_pFSM = m_pOwner->Get_Component();
+
+ return S_OK;
+}
+
+CTroll_State_BackHand_Swing* CTroll_State_BackHand_Swing::Create(TROLL_STATE_BACK_HAND_SWING_DESC* pDesc)
+{
+ CTroll_State_BackHand_Swing* pInstance = new CTroll_State_BackHand_Swing;
+ if (FAILED(pInstance->Initialize(pDesc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CTroll_State_BackHand_Swing::Free()
+{
+ __super::Free();
+}
+
+void CTroll_State_BackHand_Swing::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp
index b1ab0790f..bd95cf27d 100644
--- a/Jusin154_Team3D/Client/Private/Troll_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp
@@ -7,12 +7,15 @@
#pragma region STATE
#include "State_Idle.h"
+#include "State_IdleBreak.h"
#include "State_Move.h"
#include "State_Combat.h"
-#include "State_Hit.h"
#include "Troll_State_Rush.h"
+#include "Troll_State_BackHand_Swing.h"
#include "State_Throw.h"
#include "State_Swing.h"
+#include "State_Slam.h"
+#include "State_Hit.h"
#pragma endregion
@@ -26,7 +29,7 @@ void CTroll::Behavior_IdleEnter()
HRESULT CTroll::Behavior_IdleExitCheck()
{
- if (m_fTargetDistance <= 25.f && m_fTargetDistance !=0)
+ if (m_fTargetDistance <= 19.f && m_fTargetDistance !=0)
m_pFSM->Change_State(FSMSTATE::MOVE);
return E_FAIL;
@@ -37,6 +40,43 @@ void CTroll::Behavior_IdleExit()
m_pFSM->Disable_State(FSMSTATE::IDLE);
}
+void CTroll::Behavior_IdleBreakEnter()
+{
+ m_pFSM->Enable_State(FSMSTATE::IDLEBREAK);
+ pair<_uint, _bool> pairAnimInfo;
+ m_bLookAt = true;
+ _int RandIndex = m_pGameInstance->Real_Random_Int(0, 3);
+ switch (RandIndex)
+ {
+ case 0:
+ pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK1];
+ break;
+ case 1:
+ pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK2];
+ break;
+ case 2:
+ pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK3];
+ break;
+ case 3:
+ pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK4];
+ break;
+ }
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f, true);
+}
+
+HRESULT CTroll::Behavior_IdleBreakExitCheck()
+{
+ if (m_pModelCom->IsFinishedAnim())
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+
+ return E_FAIL;
+}
+
+void CTroll::Behavior_IdleBreakExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::IDLEBREAK);
+}
+
void CTroll::Behavior_MoveEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
@@ -46,15 +86,18 @@ void CTroll::Behavior_MoveEnter()
{
m_pFSM->Enable_State(FSMSTATE::JOG);
pairAnimInfo = m_Animation[STATEANIM::JOG_START];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
-
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
HRESULT CTroll::Behavior_MoveExitCheck(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo = {};
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ _bool bTurnPlaying =
+ (iCurrAnimIndex == m_Animation[STATEANIM::JOG_LEFT_TURN].first) ||
+ (iCurrAnimIndex == m_Animation[STATEANIM::JOG_RIGHT_TURN].first);
+
if (iCurrAnimIndex == m_Animation[STATEANIM::JOG_START].first)
{
if (m_pModelCom->IsFinishedAnim())
@@ -64,7 +107,62 @@ HRESULT CTroll::Behavior_MoveExitCheck(_float fTimeDelta)
}
}
- if (m_fTargetDistance <= 20.f && m_fTargetDistance !=0.f)
+ if (m_fTargetDistance <= 19.f && m_fTargetDistance >= 14.f) {
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+ return E_FAIL;
+ }
+
+
+ if (bTurnPlaying)
+ {
+ m_bLookAt = false;
+
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ m_bLookAt = true;
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ }
+
+ return S_OK;
+ }
+
+ if (m_fDegree >= 90.f)
+ {
+ m_bLookAt = true;
+
+ if (m_fCross > 0)
+ pairAnimInfo = m_Animation[STATEANIM::JOG_LEFT_TURN];
+ else
+ pairAnimInfo = m_Animation[STATEANIM::JOG_RIGHT_TURN];
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
+ return S_OK;
+ }
+
+ if (m_fTargetDistance > 8.f)
+ {
+ m_bLookAt = true;
+
+ if (iCurrAnimIndex == m_Animation[STATEANIM::JOG_START].first)
+ {
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ }
+ }
+ else if (iCurrAnimIndex != m_Animation[STATEANIM::JOG_FWD].first)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_START];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ }
+
+ return S_OK;
+ }
+
+
+ if (m_fTargetDistance <= 6.f && m_fTargetDistance != 0.f)
m_pFSM->Change_State(FSMSTATE::COMBAT);
return E_FAIL;
@@ -81,150 +179,47 @@ void CTroll::Behavior_CombatEnter()
m_pFSM->Enable_State(FSMSTATE::COMBAT);
m_bLookAt = true;
- if (m_fTargetDistance <= 12.f && m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SLAM)] <= 0.f)
+ if (m_fTargetDistance <= 6.f && m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SLAM)] <= 0.f)
{
- m_pFSM->Enable_State(FSMSTATE::SLAM);
+ m_pFSM->Change_State(FSMSTATE::SLAM);
}
- else if (m_fTargetDistance <= 12.f && m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::BACKHAND_SWING)] <= 0.f)
+ else if (m_fTargetDistance <= 6.f && m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::BACKHAND_SWING)] <= 0.f)
{
- m_pFSM->Enable_State(FSMSTATE::BACKHAND_SWING);
+ m_pFSM->Change_State(FSMSTATE::BACKHAND_SWING);
}
- else if (m_fTargetDistance <= 12.f && m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SWING)] <= 0.f)
+ else if (m_fTargetDistance <= 6.f && m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SWING)] <= 0.f)
{
m_pFSM->Change_State(FSMSTATE::SWING);
- return;
}
else if (m_fTargetDistance <= 15.f && m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::THROWROCK)] <= 0.f)
{
m_pFSM->Change_State(FSMSTATE::THROW_ROCK);
- return;
}
else if (m_fTargetDistance <= 18.f && m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::RUSH)] <= 0.f)
{
m_pFSM->Change_State(FSMSTATE::RUSH);
- return;
}
else
{
- m_bLookAt = true;
- _int RandIndex = m_pGameInstance->Real_Random_Int(0,3);
- switch (RandIndex)
- {
- case 0:
- pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK1];
- break;
- case 1:
- pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK2];
- break;
- case 2:
- pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK3];
- break;
- case 3:
- pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK4];
- break;
- }
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
+ m_pFSM->Change_State(FSMSTATE::IDLEBREAK);
}
}
HRESULT CTroll::Behavior_CombatExitCheck(_float fTimeDelta)
{
- pair<_uint, _bool> pairAnimInfo = {};
- _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
-
- if (m_pFSM->IsEnable(FSMSTATE::SLAM))
- {
- if (m_fTargetDistance > 5.f)
- {
- if (m_fDegree >= 90.f && iCurrAnimIndex != m_Animation[STATEANIM::JOG_FWD].first)
- {
- if (m_fCross > 0) {
- pairAnimInfo = m_Animation[STATEANIM::JOG_LEFT_TURN];
- }
- else {
- pairAnimInfo = m_Animation[STATEANIM::JOG_RIGHT_TURN];
- }
- }
- else {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- }
-
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
- }
- else
- {
- pairAnimInfo = m_Animation[STATEANIM::SLAM];
-
- if (iCurrAnimIndex != pairAnimInfo.first)
- {
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
- m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SLAM)] =m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SLAM)];
-
- Add_Event(pairAnimInfo.first,
- [this]() { m_bLookAt = false;},
- 0.2f);
-
- m_pFSM->Disable_State(FSMSTATE::SLAM);
- }
- }
-
- return S_OK;
- }
-
-
- if (m_pFSM->IsEnable(FSMSTATE::BACKHAND_SWING))
- {
- if (m_fTargetDistance > 5.f)
- {
- if (m_fDegree >= 90.f && iCurrAnimIndex != m_Animation[STATEANIM::JOG_FWD].first)
- {
- if (m_fCross > 0) {
- pairAnimInfo = m_Animation[STATEANIM::JOG_LEFT_TURN];
- }
- else {
- pairAnimInfo = m_Animation[STATEANIM::JOG_RIGHT_TURN];
- }
- }
- else {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- }
-
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
- }
- else
- {
- pairAnimInfo = m_Animation[STATEANIM::BACKHAND_SWING_JOG];
-
- if (iCurrAnimIndex != pairAnimInfo.first)
- {
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
- m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::BACKHAND_SWING)] = m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::BACKHAND_SWING)];
-
- Add_Event(pairAnimInfo.first,
- [this]() { m_bLookAt = false; },
- 0.2f);
-
- m_pFSM->Disable_State(FSMSTATE::BACKHAND_SWING);
- }
- }
-
- return S_OK;
- }
-
- if (m_pModelCom->IsFinishedAnim())
- {
- m_bLookAt = true;
+ m_bLookAt = true;
+ if (m_fTargetDistance > 25.f && m_fTargetDistance != 0.f)
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+ else if (m_fTargetDistance > 30.f && m_fTargetDistance != 0.f)
m_pFSM->Change_State(FSMSTATE::IDLE);
- return E_FAIL;
- }
return E_FAIL;
}
void CTroll::Behavior_CombatExit()
{
- m_pFSM->Disable_State(FSMSTATE::COMBAT | FSMSTATE::SLAM | FSMSTATE::BACKHAND_SWING);
+ m_pFSM->Disable_State(FSMSTATE::COMBAT);
}
void CTroll::Behavior_RushEnter()
@@ -248,7 +243,7 @@ HRESULT CTroll::Behavior_RushExitCheck(_float fTimeDelta)
{
m_bLookAt = false;
pairAnimInfo = m_Animation[STATEANIM::RUSH_LOOP];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,true);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::RUSH)] = m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::RUSH)];
}
}
@@ -267,15 +262,21 @@ HRESULT CTroll::Behavior_RushExitCheck(_float fTimeDelta)
}
if (iCurrAnimIndex == m_Animation[STATEANIM::RUSH_END].first)
{
- m_bLookAt = true;
- pairAnimInfo = m_Animation[STATEANIM::IDLE_COMBAT_TURN_BWD];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
+ if (m_fCross > 0)
+ pairAnimInfo = m_Animation[STATEANIM::IDLE_COMBAT_TURN_BWD_L];
+ else
+ pairAnimInfo = m_Animation[STATEANIM::IDLE_COMBAT_TURN_BWD_R];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_bLookAt = true; },
+ 0.3f);
}
if (m_pModelCom->IsFinishedAnim())
{
m_bLookAt = true;
- m_pFSM->Change_State(FSMSTATE::IDLE);
+ m_pFSM->Change_State(FSMSTATE::IDLEBREAK);
}
return E_FAIL;
}
@@ -321,7 +322,7 @@ HRESULT CTroll::Behavior_ThrowExitCheck(_float fTimeDelta)
if (m_pModelCom->IsFinishedAnim())
{
m_bLookAt = true;
- m_pFSM->Change_State(FSMSTATE::IDLE);
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
}
return E_FAIL;
}
@@ -337,9 +338,12 @@ void CTroll::Behavior_SwingEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::SWING);
+
pairAnimInfo = m_Animation[STATEANIM::SWING_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
- m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SWING)] = m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SWING)];
+ m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SWING)] =
+ m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SWING)];
+
Add_Event(pairAnimInfo.first,
[this]() {m_bLookAt = false; },
0.2f);
@@ -347,11 +351,16 @@ void CTroll::Behavior_SwingEnter()
HRESULT CTroll::Behavior_SwingExitCheck(_float fTimeDelta)
{
+ pair<_uint, _bool> pairAnimInfo = {};
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+
if (m_pModelCom->IsFinishedAnim())
{
m_bLookAt = true;
- m_pFSM->Change_State(FSMSTATE::IDLE);
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+ return E_FAIL;
}
+
return E_FAIL;
}
@@ -360,6 +369,72 @@ void CTroll::Behavior_SwingExit()
m_pFSM->Disable_State(FSMSTATE::SWING);
}
+void CTroll::Behavior_SlamEnter()
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ m_pFSM->Enable_State(FSMSTATE::SLAM);
+
+ pairAnimInfo = m_Animation[STATEANIM::SLAM];
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
+ m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SLAM)] =
+ m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SLAM)];
+
+ Add_Event(m_Animation[STATEANIM::SLAM].first,
+ [this]() { m_bLookAt = false; },
+ 0.2f);
+}
+
+HRESULT CTroll::Behavior_SlamExitCheck(_float fTimeDelta)
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ m_bLookAt = true;
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+ return E_FAIL;
+ }
+ return E_FAIL;
+}
+
+void CTroll::Behavior_SlamExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::SLAM);
+}
+
+void CTroll::Behavior_BackHandSwingEnter()
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ m_pFSM->Enable_State(FSMSTATE::BACKHAND_SWING);
+ pairAnimInfo = m_Animation[STATEANIM::BACKHAND_SWING_JOG];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
+ m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::BACKHAND_SWING)] =
+ m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::BACKHAND_SWING)];
+
+ Add_Event(m_Animation[STATEANIM::BACKHAND_SWING_JOG].first,
+ [this]() { m_bLookAt = false; },
+ 0.2f);
+}
+
+HRESULT CTroll::Behavior_BackHandSwingExitCheck(_float fTimeDelta)
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ m_bLookAt = true;
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+ return E_FAIL;
+ }
+ return E_FAIL;
+}
+
+void CTroll::Behavior_BackHandSwingExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::BACKHAND_SWING);
+}
+
void CTroll::Behavior_HitEnter()
{
m_pFSM->Enable_State(FSMSTATE::HIT);
@@ -404,7 +479,7 @@ HRESULT CTroll::Behavior_HitExitCheck()
}
if (m_pModelCom->IsFinishedAnim()) {
- m_pFSM->Change_State(FSMSTATE::IDLE);
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
return E_FAIL;
}
return E_FAIL;
@@ -429,6 +504,16 @@ void CTroll::Add_FSM()
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc));
}
+ {
+ CState_IdleBreak::STATE_IDLEBREAK_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_IdleBreakEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_IdleBreakExitCheck(); };
+ Desc.funcExitEvent = [this]() { Behavior_IdleBreakExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::IDLEBREAK, CState_IdleBreak::Create(&Desc));
+ }
{
CState_Move::STATE_MOVE_DESC Desc{};
Desc.pOwner = this;
@@ -484,6 +569,28 @@ void CTroll::Add_FSM()
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::SWING, CState_Swing::Create(&Desc));
}
+
+ {
+ CState_Slam::STATE_SLAM_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_SlamEnter(); };
+ Desc.funcExitCheck = [this](_float fTimeDelta) { return Behavior_SlamExitCheck(fTimeDelta); };
+ Desc.funcExitEvent = [this]() { Behavior_SlamExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::SLAM, CState_Slam::Create(&Desc));
+ }
+
+ {
+ CTroll_State_BackHand_Swing::TROLL_STATE_BACK_HAND_SWING_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_BackHandSwingEnter(); };
+ Desc.funcExitCheck = [this](_float fTimeDelta) { return Behavior_BackHandSwingExitCheck(fTimeDelta); };
+ Desc.funcExitEvent = [this]() { Behavior_BackHandSwingExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::BACKHAND_SWING, CTroll_State_BackHand_Swing::Create(&Desc));
+ }
#pragma endregion
#pragma region Behavior_Hit
@@ -505,7 +612,8 @@ void CTroll::Add_FSM()
void CTroll::Set_Anim()
{
m_Animation[STATEANIM::IDLE] = { 16,true };
- m_Animation[STATEANIM::IDLE_COMBAT_TURN_BWD] = { 8,false };
+ m_Animation[STATEANIM::IDLE_COMBAT_TURN_BWD_R] = { 7,false };
+ m_Animation[STATEANIM::IDLE_COMBAT_TURN_BWD_L] = { 8,false };
m_Animation[STATEANIM::IDLE_BREAK1] = { 11,false };
m_Animation[STATEANIM::IDLE_BREAK2] = { 141,false };
m_Animation[STATEANIM::IDLE_BREAK3] = { 14,false };
@@ -514,8 +622,8 @@ void CTroll::Set_Anim()
m_Animation[STATEANIM::WALK_FWD] = { 22,true };
m_Animation[STATEANIM::JOG_START] = { 104,false };
- m_Animation[STATEANIM::JOG_LEFT_TURN] = { 108,false };
- m_Animation[STATEANIM::JOG_RIGHT_TURN] = { 112,false };
+ m_Animation[STATEANIM::JOG_LEFT_TURN] = { 112,false };
+ m_Animation[STATEANIM::JOG_RIGHT_TURN] = { 108,false };
m_Animation[STATEANIM::JOG_FWD] = { 103,true };
m_Animation[STATEANIM::DODGE_LEFT] = { 125, false };
@@ -551,6 +659,7 @@ void CTroll::Set_Anim()
//왼턴 108
//오른턴 112
-
+ // 106 우회전
+ // 110 좌회전
}
diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
index 1cb619279..34c238a3d 100644
--- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp
+++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
@@ -4,6 +4,9 @@
#include "GamePlay_Canvas.h"
#include "Spell_Canvas.h"
#include "InfoInstance.h"
+#include "Mouse_Cursor.h"
+#include "CameraLockOn.h"
+#include "Skill_Data.h"
CUI_Manager::CUI_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CUIObject(pDevice, pContext)
@@ -29,6 +32,8 @@ HRESULT CUI_Manager::Initialize(void* pArg)
}
m_bCanvas_Change = false;
m_eType = UI_STATE::GAMEPLAYER;
+ m_pGameInstance->Toggle_MouseCenter();
+ //ShowCursor(false);
m_pInfoInstance->Set_UISTATE(m_eType);
m_pInfoInstance->Add_Event(TEXT("Canvas_Change"), [this](void* p) {this->Canvas_Change(*reinterpret_cast(p)); });
return S_OK;
@@ -41,11 +46,15 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
switch (eType)
{
case UI_STATE::GAMEPLAYER:
+ m_pMouse_Cursor->Set_Visible(false);
+ m_pCamera_LockOn->Set_Visible(false);
static_cast(m_pGamePlay_Canves)->Visible(true);
static_cast(m_pSpell_Canvas)->Visible(false);
break;
case UI_STATE::SPELL:
+ m_pMouse_Cursor->Set_Visible(true);
+ m_pCamera_LockOn->Set_Visible(false);
static_cast(m_pSpell_Canvas)->Visible(true);
static_cast(m_pGamePlay_Canves)->Visible(false);
break;
@@ -59,6 +68,7 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
default:
return;
}
+ m_pGameInstance->Toggle_MouseCenter();
}
void CUI_Manager::Clear_Canvas()
@@ -130,15 +140,15 @@ HRESULT CUI_Manager::Ready_Components(void* pArg)
}
Add_Canvas(TEXT("Spell_Canvas"), m_pSpell_Canvas);
- //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMouse_Cursor)))) {
- // return E_FAIL;
- //}
- //Add_Canvas(TEXT("Mouse_Cursor"), m_pMouse_Cursor);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMouse_Cursor)))) {
+ return E_FAIL;
+ }
+ Add_Canvas(TEXT("Mouse_Cursor"), m_pMouse_Cursor);
- //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pCamera_LockOn)))) {
- // return E_FAIL;
- //}
- //Add_Canvas(TEXT("Camera_LockOn"), m_pCamera_LockOn);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pCamera_LockOn)))) {
+ return E_FAIL;
+ }
+ Add_Canvas(TEXT("Camera_LockOn"), m_pCamera_LockOn);
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Public/CameraLockOn.h b/Jusin154_Team3D/Client/Public/CameraLockOn.h
new file mode 100644
index 000000000..60ddba7ea
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/CameraLockOn.h
@@ -0,0 +1,52 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+
+class CCameraLockOn final : public CUIObject
+{
+private:
+ CCameraLockOn(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CCameraLockOn(const CCameraLockOn& rhs);
+ virtual ~CCameraLockOn() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CCameraLockOn* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index 0107bfddb..7c11e701d 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -12,7 +12,7 @@ namespace Client
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END };
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, END };
- enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, SPELL_DRAG, END };
+ enum class SHADER_PASS_UIEDITOR { DEFAULT, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN, END };
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, END };
enum class UI_STATE { GAMEPLAYER, SPELL, POTION, INVENTORY, END };
@@ -41,6 +41,7 @@ namespace Client
INPUT_TAB,
END
};
+ enum class MOUSEINPUT { LBUTTON, RBUTTON };
enum class ELEMENT_INTERACTABLE_ID { BARREL, BOX, TABLE, END };
}
diff --git a/Jusin154_Team3D/Client/Public/EffectObject.h b/Jusin154_Team3D/Client/Public/EffectObject.h
index 68c9f20e7..e06833b44 100644
--- a/Jusin154_Team3D/Client/Public/EffectObject.h
+++ b/Jusin154_Team3D/Client/Public/EffectObject.h
@@ -112,9 +112,10 @@ class CEffectObject abstract : public CPartObject
_float3 vPadding1 = {};
_float fPadding0 = {};
- _float fPadding1 = {};
- _bool isPadding0 = {};
+ _float isLightTime = { 0.f };
+ _bool isLightDissolve = {};
+
_bool isPadding1 = {};
}EFFECT_INFO;
diff --git a/Jusin154_Team3D/Client/Public/Effect_Container.h b/Jusin154_Team3D/Client/Public/Effect_Container.h
index 720f12297..e8951b667 100644
--- a/Jusin154_Team3D/Client/Public/Effect_Container.h
+++ b/Jusin154_Team3D/Client/Public/Effect_Container.h
@@ -25,7 +25,7 @@ class CEffect_Container abstract : public CContainerObject
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr);
HRESULT Load_Package(const _char* pPath);
_uint Get_SkillType() const { return m_iSkillType; }
-
+ void Reset_Light();
protected:
virtual HRESULT Initialize_Prototype() override;
diff --git a/Jusin154_Team3D/Client/Public/Goblin.h b/Jusin154_Team3D/Client/Public/Goblin.h
index 61aff89a6..3e467c587 100644
--- a/Jusin154_Team3D/Client/Public/Goblin.h
+++ b/Jusin154_Team3D/Client/Public/Goblin.h
@@ -26,6 +26,7 @@ class CGoblin final : public CMonster
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
+ virtual _vector Get_LockOnPos() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
@@ -66,7 +67,6 @@ class CGoblin final : public CMonster
_float m_fTpTime = {};
_float m_fAirTime = {};
-
void Behavior_IdleEnter();
HRESULT Behavior_IdleExitCheck();
void Behavior_IdleExit();
@@ -95,6 +95,10 @@ class CGoblin final : public CMonster
void Behavior_HitEnter();
HRESULT Behavior_HitExitCheck(_float fTimeDelta);
void Behavior_HitExit();
+
+ void Behavior_DeadEnter();
+ HRESULT Behavior_DeadExitCheck(_float fTimeDelta);
+ void Behavior_DeadExit();
};
NS_END
diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h
index 9d72c0303..ec4b93474 100644
--- a/Jusin154_Team3D/Client/Public/InfoInstance.h
+++ b/Jusin154_Team3D/Client/Public/InfoInstance.h
@@ -50,6 +50,7 @@ DECLARE_SINGLETON(CInfoInstance)
_float Get_CoolTime(_int SpellID);
void Change_Canvas();
void Key_Input(_uint Input); // 플레이어 키 입력
+ void Mouse_Input(_uint Input); // 플레이어 키 입력
void Set_UISTATE(UI_STATE eState);
void Add_Event(_wstring EventName, function Event);
void Event_CallBack(_wstring EventName, void* pArg = nullptr);
diff --git a/Jusin154_Team3D/Client/Public/Intro_BG.h b/Jusin154_Team3D/Client/Public/Intro_BG.h
new file mode 100644
index 000000000..8c3235a6d
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Intro_BG.h
@@ -0,0 +1,47 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "UIObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CIntro_BG final : public CUIObject
+{
+private:
+ CIntro_BG(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CIntro_BG(const CIntro_BG& rhs);
+ virtual ~CIntro_BG() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CIntro_BG* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+
+};
+
+NS_END;
diff --git a/Jusin154_Team3D/Client/Public/Intro_Image.h b/Jusin154_Team3D/Client/Public/Intro_Image.h
new file mode 100644
index 000000000..1e2b0bf16
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Intro_Image.h
@@ -0,0 +1,48 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "UIObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CIntro_Image final : public CUIObject
+{
+private:
+ CIntro_Image(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CIntro_Image(const CIntro_Image& rhs);
+ virtual ~CIntro_Image() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CIntro_Image* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+
+};
+
+NS_END;
diff --git a/Jusin154_Team3D/Client/Public/Level_Loading.h b/Jusin154_Team3D/Client/Public/Level_Loading.h
index af2e537fe..b4016e7ac 100644
--- a/Jusin154_Team3D/Client/Public/Level_Loading.h
+++ b/Jusin154_Team3D/Client/Public/Level_Loading.h
@@ -21,6 +21,11 @@ class CLevel_Loading final : public CLevel
SHADOW_LIGHT_DESC m_ShadowDesc = {};
LEVEL m_eNextLevelID = { LEVEL::END };
class CLoader* m_pLoader = { nullptr };
+
+ _float m_fTimeDelta{};
+ _bool m_bDelay = { false };
+ _bool m_bNextLevel = { false };
+ class CGameObject* m_pIntro_Image = { nullptr };
private:
virtual HRESULT Initialize(LEVEL eNextLevelID);
HRESULT Initialize() override;
diff --git a/Jusin154_Team3D/Client/Public/Level_Logo.cpp b/Jusin154_Team3D/Client/Public/Level_Logo.cpp
new file mode 100644
index 000000000..f33fbbe37
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Level_Logo.cpp
@@ -0,0 +1,99 @@
+#include "pch.h"
+#include "Level_Logo.h"
+#include "GameInstance.h"
+#include "Level_Loading.h"
+#include "Logo.h"
+
+
+CLevel_Logo::CLevel_Logo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
+ : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
+{
+
+}
+
+HRESULT CLevel_Logo::Initialize()
+{
+ if (FAILED(Ready_Layer_UI(LAYER_BACKGROUND))) {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+void CLevel_Logo::Update(_float fTimeDelta)
+{
+ GUI::Begin("SelectEditor");
+ if (GUI::Button("Map Editor", { 100, 100 })) {
+ if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::MAP))))
+ return;
+ }
+ else if (GUI::Button("Object Editor", { 100, 100 })) {
+ if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::OBJECT))))
+ return;
+ }
+ //else if (GUI::Button("Combined Editor", { 100, 100 })) {
+ // if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::COMBINED))))
+ // return;
+ //}
+ else if (GUI::Button("Effect Editor", { 100, 100 })) {
+ if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::EFFECT))))
+ return;
+ }
+ else if (GUI::Button("PhysX Simulator", { 100, 100 })) {
+ if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::PHYSX))))
+ return;
+ }
+ else if (GUI::SameLine(), GUI::Button("Bloom Editor", { 100, 100 })) {
+ if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::BLOOM))))
+ return;
+ }
+ else if (GUI::Button("UI Editor", { 100, 100 })) {
+ if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::UI))))
+ return;
+ }
+ GUI::End();
+}
+
+HRESULT CLevel_Logo::Render()
+{
+ SetWindowText(g_hWnd, TEXT("로고레벨입니다"));
+ GUI::ShowDemoWindow();
+ return S_OK;
+}
+
+
+
+HRESULT CLevel_Logo::Ready_Layer_Camera(const _wstring& strLayerTag)
+{
+ return S_OK;
+}
+
+HRESULT CLevel_Logo::Ready_Layer_UI(const _wstring& strLayerTag)
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CLevel_Logo* CLevel_Logo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
+{
+ CLevel_Logo* pInstance = new CLevel_Logo(pDevice, pContext, eLevelID);
+
+ if (FAILED(pInstance->Initialize()))
+ {
+ MSG_BOX("Failed to Created : CLevel_Logo");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+
+void CLevel_Logo::Free()
+{
+ __super::Free();
+
+
+}
diff --git a/Jusin154_Team3D/Client/Public/Loader.h b/Jusin154_Team3D/Client/Public/Loader.h
index 86df14ee7..565eed6e8 100644
--- a/Jusin154_Team3D/Client/Public/Loader.h
+++ b/Jusin154_Team3D/Client/Public/Loader.h
@@ -40,8 +40,10 @@ class CLoader final : public CBase
private:
HRESULT Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function AddPrototypeEvent);
+ HRESULT Stat_FileLoad(const _char* pDirectoryPath);
future*> Deferred_FolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag);
future*> Deferred_ModelLoad(MODEL eType, const _char* pDirectoryPath, _fmatrix PreTransform, const _tchar* pPrototypeTag);
+
public:
static CLoader* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eNextLevelID);
virtual void Free() override;
diff --git a/Jusin154_Team3D/Client/Public/Loding_Panel.h b/Jusin154_Team3D/Client/Public/Loding_Panel.h
new file mode 100644
index 000000000..2636f47d6
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Loding_Panel.h
@@ -0,0 +1,56 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "UIObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CLoding_Panel final : public CUIObject
+{
+
+private:
+ CLoding_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CLoding_Panel(const CLoding_Panel& rhs);
+ virtual ~CLoding_Panel() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_Image(_int Index);
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ CGameObject* m_pCurrent_Spell_Slot = { nullptr };
+
+ _int m_iImageNum{};
+ _float4 m_vImageposSi{};
+public:
+ static CLoding_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Logo.h b/Jusin154_Team3D/Client/Public/Logo.h
new file mode 100644
index 000000000..57ec45751
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Logo.h
@@ -0,0 +1,47 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "UIObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CLogo final : public CUIObject
+{
+private:
+ CLogo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CLogo(const CLogo& rhs);
+ virtual ~CLogo() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CLogo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+
+};
+
+NS_END;
diff --git a/Jusin154_Team3D/Client/Public/Logo_Glow.h b/Jusin154_Team3D/Client/Public/Logo_Glow.h
new file mode 100644
index 000000000..6e2627198
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Logo_Glow.h
@@ -0,0 +1,48 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "UIObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CLogo_Glow final : public CUIObject
+{
+private:
+ CLogo_Glow(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CLogo_Glow(const CLogo_Glow& rhs);
+ virtual ~CLogo_Glow() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CLogo_Glow* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+
+};
+
+NS_END;
diff --git a/Jusin154_Team3D/Client/Public/Logo_Text.h b/Jusin154_Team3D/Client/Public/Logo_Text.h
new file mode 100644
index 000000000..42d3f69fc
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Logo_Text.h
@@ -0,0 +1,47 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "UIObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CLogo_Text final : public CUIObject
+{
+private:
+ CLogo_Text(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CLogo_Text(const CLogo_Text& rhs);
+ virtual ~CLogo_Text() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CLogo_Text* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+
+};
+
+NS_END;
diff --git a/Jusin154_Team3D/Client/Public/Monster.h b/Jusin154_Team3D/Client/Public/Monster.h
index 0a73f3783..84679bd8d 100644
--- a/Jusin154_Team3D/Client/Public/Monster.h
+++ b/Jusin154_Team3D/Client/Public/Monster.h
@@ -19,10 +19,13 @@ class CMonster abstract : public CUnit
virtual HRESULT Render_OutLine() override;
virtual void Set_DrawOutLine();
_float4 Get_TargetPos() { return m_vTargetPos; }
+ virtual _bool Get_Damage(_float fDamage);
+ virtual _float2 Get_Hp();
protected:
CInfoInstance* m_pInfoInstance = { nullptr };
CUnit* m_pTarget = { nullptr };
+ CStat* m_pStat = { nullptr };
_float4 m_vTargetPos = { };
_float3 m_vToTargetDir = { };
_float m_fTargetDistance = { FLT_MAX };
diff --git a/Jusin154_Team3D/Client/Public/MonsterInfo.h b/Jusin154_Team3D/Client/Public/MonsterInfo.h
index b45493079..f2c0672d0 100644
--- a/Jusin154_Team3D/Client/Public/MonsterInfo.h
+++ b/Jusin154_Team3D/Client/Public/MonsterInfo.h
@@ -42,6 +42,7 @@ class CMonsterInfo final : public CBase
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
HRESULT Refresh_LockOnMonsters();
HRESULT Refresh_PlayerAllies();
+ HRESULT Refresh_ActiveMonsters();
public:
diff --git a/Jusin154_Team3D/Client/Public/Mouse_Cursor.h b/Jusin154_Team3D/Client/Public/Mouse_Cursor.h
new file mode 100644
index 000000000..21622d8dc
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Mouse_Cursor.h
@@ -0,0 +1,53 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+
+class CMouse_Cursor final : public CUIObject
+{
+private:
+ CMouse_Cursor(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CMouse_Cursor(const CMouse_Cursor& rhs);
+ virtual ~CMouse_Cursor() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+
+public:
+ static CMouse_Cursor* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/NomalJap.h b/Jusin154_Team3D/Client/Public/NomalJap.h
index 10ae59cb8..0dbdfa863 100644
--- a/Jusin154_Team3D/Client/Public/NomalJap.h
+++ b/Jusin154_Team3D/Client/Public/NomalJap.h
@@ -20,7 +20,6 @@ class CNomalJap final : public CEffect_Container
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
-
public:
virtual HRESULT Pre_Setting(CGameObject* pObject , void* pArg = nullptr) override;
@@ -31,6 +30,7 @@ class CNomalJap final : public CEffect_Container
HRESULT Ready_Child();
HRESULT Bind_ShaderResources() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+ void SweepTarget();
private:
class CInfoInstance* m_pInfoInstance = { nullptr };
_wstring m_wstrEffectName = {};
@@ -57,6 +57,7 @@ class CNomalJap final : public CEffect_Container
_float m_fAngularSpeed = {};
_float m_fLinearSpeed = 35.f;
_float m_fTimeRate = {};
+ _bool m_bHit = { false };
/*좌우 무빙 관련 변수들*/
_float3 m_vRotateRight = {};
diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h
index 894fdd107..8c7e76025 100644
--- a/Jusin154_Team3D/Client/Public/Player.h
+++ b/Jusin154_Team3D/Client/Public/Player.h
@@ -17,6 +17,7 @@ class CPlayer final : public CUnit
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
+ virtual HRESULT Render_Shadow() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
@@ -51,6 +52,7 @@ class CPlayer final : public CUnit
class CModel* m_pBroomModel = { nullptr };
class CTransform* m_pBroomTransform = { nullptr };
class CBroom* m_pBroom = { nullptr };
+ CStat* m_pStat = { nullptr };
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
@@ -130,6 +132,14 @@ class CPlayer final : public CUnit
HRESULT Behavior_CombatExitCheck();
void Behavior_CombatExit();
+ void Behavior_LightAttackEnter();
+ HRESULT Behavior_LightAttackExitCheck();
+ void Behavior_LightAttackExit();
+
+ void Behavior_SpellEnter();
+ HRESULT Behavior_SpellExitCheck();
+ void Behavior_SpellExit();
+
void Behavior_HitEnter();
HRESULT Behavior_HitExitCheck();
void Behavior_HitExit();
diff --git a/Jusin154_Team3D/Client/Public/State_Dead.h b/Jusin154_Team3D/Client/Public/State_Dead.h
new file mode 100644
index 000000000..5dea32e2b
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/State_Dead.h
@@ -0,0 +1,31 @@
+#pragma once
+#include "Client_Define.h"
+#include "State_Root.h"
+
+NS_BEGIN(Client)
+
+class CState_Dead final : public CState_Root
+{
+public:
+ typedef struct tagLand : public CState_Root::STATE_ROOT_DESC {
+
+ }STATE_DEAD_DESC;
+private:
+ CState_Dead();
+ virtual ~CState_Dead() = default;
+
+public:
+ virtual void Enter();
+ virtual HRESULT Update(_float fTimeDelta);
+ virtual void Exit();
+
+private:
+ HRESULT Initialize(STATE_DEAD_DESC* pDesc);
+
+public:
+ static CState_Dead* Create(STATE_DEAD_DESC* pDesc);
+ virtual void Free() override;
+ virtual void Describe_Entity();
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/State_IdleBreak.h b/Jusin154_Team3D/Client/Public/State_IdleBreak.h
new file mode 100644
index 000000000..045791872
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/State_IdleBreak.h
@@ -0,0 +1,36 @@
+#pragma once
+#include "Client_Define.h"
+#include "State_Root.h"
+
+NS_BEGIN(Client)
+
+class CState_IdleBreak final : public CState_Root
+{
+public:
+ typedef struct tagIdleBreak : public CState_Root::STATE_ROOT_DESC {
+ function funcPriorityUpdate = { nullptr };
+ function funcLateUpdate = { nullptr };
+ }STATE_IDLEBREAK_DESC;
+public:
+ CState_IdleBreak();
+ virtual ~CState_IdleBreak() = default;
+
+public:
+ virtual void Enter();
+ virtual HRESULT Update(_float fTimeDelta);
+ virtual void Exit();
+
+private:
+ function m_funcPriorityUpdate = { nullptr };
+ function m_funcLateUpdate = { nullptr };
+
+private:
+ HRESULT Initialize(STATE_IDLEBREAK_DESC* pDesc);
+
+public:
+ static CState_IdleBreak* Create(STATE_IDLEBREAK_DESC* pDesc);
+ virtual void Free() override;
+ virtual void Describe_Entity();
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/State_LightAttack.h b/Jusin154_Team3D/Client/Public/State_LightAttack.h
new file mode 100644
index 000000000..53f61412a
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/State_LightAttack.h
@@ -0,0 +1,36 @@
+#pragma once
+#include "Client_Define.h"
+#include "State_Root.h"
+
+NS_BEGIN(Client)
+
+class CState_LightAttack final : public CState_Root
+{
+public:
+ typedef struct tagLightAttack : public CState_Root::STATE_ROOT_DESC {
+ function funcPriorityUpdate = { nullptr };
+ function funcLateUpdate = { nullptr };
+ }STATE_LIGHTATTACK_DESC;
+private:
+ CState_LightAttack();
+ virtual ~CState_LightAttack() = default;
+
+public:
+ virtual void Enter();
+ virtual HRESULT Update(_float fTimeDelta);
+ virtual void Exit();
+
+private:
+ function m_funcPriorityUpdate = { nullptr };
+ function m_funcLateUpdate = { nullptr };
+
+private:
+ HRESULT Initialize(STATE_LIGHTATTACK_DESC* pDesc);
+
+public:
+ static CState_LightAttack* Create(STATE_LIGHTATTACK_DESC* pDesc);
+ virtual void Free() override;
+ virtual void Describe_Entity();
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/State_Slam.h b/Jusin154_Team3D/Client/Public/State_Slam.h
new file mode 100644
index 000000000..da6cd046a
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/State_Slam.h
@@ -0,0 +1,36 @@
+#pragma once
+#include "Client_Define.h"
+#include "State_Root.h"
+
+NS_BEGIN(Client)
+
+class CState_Slam final : public CState_Root
+{
+public:
+ typedef struct tagSlam : public CState_Root::STATE_ROOT_DESC {
+ function funcPriorityUpdate = { nullptr };
+ function funcLateUpdate = { nullptr };
+ }STATE_SLAM_DESC;
+private:
+ CState_Slam();
+ virtual ~CState_Slam() = default;
+
+public:
+ virtual void Enter();
+ virtual HRESULT Update(_float fTimeDelta);
+ virtual void Exit();
+
+private:
+ function m_funcPriorityUpdate = { nullptr };
+ function m_funcLateUpdate = { nullptr };
+
+private:
+ HRESULT Initialize(STATE_SLAM_DESC* pDesc);
+
+public:
+ static CState_Slam* Create(STATE_SLAM_DESC* pDesc);
+ virtual void Free() override;
+ virtual void Describe_Entity();
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/State_Spell.h b/Jusin154_Team3D/Client/Public/State_Spell.h
new file mode 100644
index 000000000..34931a743
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/State_Spell.h
@@ -0,0 +1,36 @@
+#pragma once
+#include "Client_Define.h"
+#include "State_Root.h"
+
+NS_BEGIN(Client)
+
+class CState_Spell final : public CState_Root
+{
+public:
+ typedef struct tagSpell : public CState_Root::STATE_ROOT_DESC {
+ function funcPriorityUpdate = { nullptr };
+ function funcLateUpdate = { nullptr };
+ }STATE_SPELL_DESC;
+private:
+ CState_Spell();
+ virtual ~CState_Spell() = default;
+
+public:
+ virtual void Enter();
+ virtual HRESULT Update(_float fTimeDelta);
+ virtual void Exit();
+
+private:
+ function m_funcPriorityUpdate = { nullptr };
+ function m_funcLateUpdate = { nullptr };
+
+private:
+ HRESULT Initialize(STATE_SPELL_DESC* pDesc);
+
+public:
+ static CState_Spell* Create(STATE_SPELL_DESC* pDesc);
+ virtual void Free() override;
+ virtual void Describe_Entity();
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Troll.h b/Jusin154_Team3D/Client/Public/Troll.h
index c16b70ec6..a1dc4e9bf 100644
--- a/Jusin154_Team3D/Client/Public/Troll.h
+++ b/Jusin154_Team3D/Client/Public/Troll.h
@@ -29,6 +29,7 @@ class CTroll final : public CMonster
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
+ virtual _vector Get_LockOnPos() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
@@ -72,11 +73,14 @@ class CTroll final : public CMonster
_float m_fDegree = {};
_float m_fCross = {};
-
void Behavior_IdleEnter();
HRESULT Behavior_IdleExitCheck();
void Behavior_IdleExit();
+ void Behavior_IdleBreakEnter();
+ HRESULT Behavior_IdleBreakExitCheck();
+ void Behavior_IdleBreakExit();
+
void Behavior_MoveEnter();
HRESULT Behavior_MoveExitCheck(_float fTimeDelta);
void Behavior_MoveExit();
@@ -97,6 +101,14 @@ class CTroll final : public CMonster
HRESULT Behavior_SwingExitCheck(_float fTimeDelta);
void Behavior_SwingExit();
+ void Behavior_SlamEnter();
+ HRESULT Behavior_SlamExitCheck(_float fTimeDelta);
+ void Behavior_SlamExit();
+
+ void Behavior_BackHandSwingEnter();
+ HRESULT Behavior_BackHandSwingExitCheck(_float fTimeDelta);
+ void Behavior_BackHandSwingExit();
+
void Behavior_HitEnter();
HRESULT Behavior_HitExitCheck();
void Behavior_HitExit();
diff --git a/Jusin154_Team3D/Client/Public/Troll_State_BackHand_Swing.h b/Jusin154_Team3D/Client/Public/Troll_State_BackHand_Swing.h
new file mode 100644
index 000000000..1096cf03d
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Troll_State_BackHand_Swing.h
@@ -0,0 +1,36 @@
+#pragma once
+#include "Client_Define.h"
+#include "State_Root.h"
+
+NS_BEGIN(Client)
+
+class CTroll_State_BackHand_Swing final : public CState_Root
+{
+public:
+ typedef struct tagTrollBackHandSwing : public CState_Root::STATE_ROOT_DESC {
+ function funcPriorityUpdate = { nullptr };
+ function funcLateUpdate = { nullptr };
+ }TROLL_STATE_BACK_HAND_SWING_DESC;
+public:
+ CTroll_State_BackHand_Swing();
+ virtual ~CTroll_State_BackHand_Swing() = default;
+
+public:
+ virtual void Enter();
+ virtual HRESULT Update(_float fTimeDelta);
+ virtual void Exit();
+
+private:
+ function m_funcPriorityUpdate = { nullptr };
+ function m_funcLateUpdate = { nullptr };
+
+private:
+ HRESULT Initialize(TROLL_STATE_BACK_HAND_SWING_DESC* pDesc);
+
+public:
+ static CTroll_State_BackHand_Swing* Create(TROLL_STATE_BACK_HAND_SWING_DESC* pDesc);
+ virtual void Free() override;
+ virtual void Describe_Entity();
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/AnimIndex.txt b/Jusin154_Team3D/Editor/Bin/AnimIndex.txt
index 67eb89537..d4879fcb8 100644
--- a/Jusin154_Team3D/Editor/Bin/AnimIndex.txt
+++ b/Jusin154_Team3D/Editor/Bin/AnimIndex.txt
@@ -1,35 +1,214 @@
-0 Brm_STN_Sweep_Magic_BroomProp_ANM
-1 Brm_STN_Sweep_Magic_BroomProp_Enter_ANM
-2 Brm_STN_Sweep_Magic_BroomProp_Exit_ANM
-3 Broom_Bristle_Fly_Fast_anm
-4 Broom_Bristle_Fly_Slow_anm
-5 Broom_Bristle_Hover_anm
-6 Broom_Fly_2Hover_Stop_anm
-7 Broom_Fly_2Hover_Stop_Dn_anm
-8 Broom_Fly_2Hover_Stop_Lft_anm
-9 Broom_Fly_2Hover_Stop_Rht_anm
-10 Broom_Fly_2Hover_Stop_Up_anm
-11 Broom_Fly_ADD_anm
-12 Broom_Fly_Cntr_anm
-13 Broom_Fly_Dn_anm
-14 Broom_Fly_Idle_anm
-15 Broom_Fly_Lft_anm
-16 Broom_Fly_Rht_anm
-17 Broom_Fly_Up_anm
-18 Broom_Hover_2Fly_Dn_anm
-19 Broom_Hover_2Fly_Start_anm
-20 Broom_Hover_2Fly_Start_Lft_anm
-21 Broom_Hover_2Fly_Start_Rht_anm
-22 Broom_Hover_2Fly_Up_anm
-23 Broom_Hover_Idle_ADD_anm
-24 Broom_Hover_Idle_anm
-25 Broom_Hover_Idle_Dn_anm
-26 Broom_Hover_Idle_Lft_anm
-27 Broom_Hover_Idle_Rht_anm
-28 Broom_Hover_Idle_Up_anm
-29 Broom_Hover_Mount_anm
-30 Broom_Hover_Throw_anm
-31 BroomSpline_Fly_BarrelRoll_Lft_anm
-32 BroomSpline_Fly_BarrelRoll_Rht_anm
-33 BroomSpline_Fly_Lft_anm
-34 BroomSpline_Fly_Rht_anm
+0 Hu_Rct_Accio_Loop_anm
+1 Hu_Rct_Accio_Splat_anm
+2 Hu_Rct_Accio_Start_anm
+3 Hu_Rct_Bola_Frnt_anm
+4 Hu_Rct_Bump_Stand_Rct2_Jogger_FwdLft_v02_anm
+5 Hu_Rct_Bump_Stand_Rct2_Jogger_FwdRht_v01_anm
+6 Hu_Rct_Bump_Stand_Rct2_Walker_BckRht_v02_anm
+7 Hu_Rct_Dazed_Start_anm
+8 Hu_Rct_Descendo_Grnd_anm
+9 Hu_Rct_Descendo_Grnd_End_anm
+10 Hu_Rct_Descendo_Grnd_Loop_anm
+11 Hu_Rct_Descendo_Grnd_Start_anm
+12 Hu_Rct_Dodge_Bwd_Duck_anm
+13 Hu_Rct_Dodge_Fwd_Duck_anm
+14 Hu_Rct_Dodge_Lft_anm
+15 Hu_Rct_Dodge_Lft_Duck_135_anm
+16 Hu_Rct_Dodge_Lft_Duck_45_anm
+17 Hu_Rct_Dodge_Lft_Duck_anm
+18 Hu_Rct_Dodge_Rht_anm
+19 Hu_Rct_Dodge_Rht_Duck_135_anm
+20 Hu_Rct_Dodge_Rht_Duck_45_anm
+21 Hu_Rct_Dodge_Rht_Duck_anm
+22 Hu_Rct_Env_UpperBody_Bats_anm
+23 Hu_Rct_Env_UpperBody_SpdrWeb_anm
+24 Hu_Rct_Flinch_BMIdle_Fwd_anm
+25 Hu_Rct_Flinch_BMIdle_Lft_anm
+26 Hu_Rct_Flinch_BMIdle_Rht_anm
+27 Hu_Rct_Flinch_Fwd_Spine_ADD_anm
+28 Hu_Rct_Flinch_LF_BMIdle_Fwd_anm
+29 Hu_Rct_Flinch_LF_BMIdle_Lft_anm
+30 Hu_Rct_Flinch_LF_BMIdle_Rht_anm
+31 Hu_Rct_Flinch_Lft_anm
+32 Hu_Rct_Flinch_Lft_Jog_Loop_anm
+33 Hu_Rct_Flinch_Lft_Spine_ADD_anm
+34 Hu_Rct_Flinch_Lft_Walk_Loop_anm
+35 Hu_Rct_Flinch_Rht_anm
+36 Hu_Rct_Flinch_Rht_Jog_Loop_anm
+37 Hu_Rct_Flinch_Rht_Spine_ADD_anm
+38 Hu_Rct_Flinch_Rht_Walk_Loop_anm
+39 Hu_Rct_Flip_Bwd_01_anm
+40 Hu_Rct_Frozen_ShakeOff_anm
+41 Hu_Rct_Frozen_ShakeOff_v2_anm
+42 Hu_Rct_Getup_Bck_2Crouch_anm
+43 Hu_Rct_Getup_Bck_2Knee_anm
+44 Hu_Rct_Getup_Frnt_2Crouch_anm
+45 Hu_Rct_Getup_Frnt_2Knee_anm
+46 Hu_Rct_Getup_Frnt_anm
+47 Hu_Rct_Getup_Lftside_2Knee_anm
+48 Hu_Rct_Getup_Lftside_FD_2Knee_anm
+49 Hu_Rct_Getup_LftSide_FD_anm
+50 Hu_Rct_Getup_Lftside_FU_2Knee_anm
+51 Hu_Rct_Getup_LftSide_FU_anm
+52 Hu_Rct_Getup_Rhtside_2Knee_anm
+53 Hu_Rct_Getup_Rhtside_FD_2Knee_anm
+54 Hu_Rct_Getup_RhtSide_FD_anm
+55 Hu_Rct_Getup_Rhtside_FU_2Knee_anm
+56 Hu_Rct_Getup_RhtSide_FU_anm
+57 Hu_Rct_Getup_Slouch_2Knee_anm
+58 Hu_Rct_Hit_2Cmbt_Bwd_anm
+59 Hu_Rct_Hit_Bwd_anm
+60 Hu_Rct_Hit_Fwd_anm
+61 Hu_Rct_Hit_Lft_anm
+62 Hu_Rct_Hit_Rht_anm
+63 Hu_Rct_Hitch_Bwd_anm
+64 Hu_Rct_Hitch_Fwd_anm
+65 Hu_Rct_Hitch_Lft_anm
+66 Hu_Rct_Hitch_Rht_anm
+67 Hu_Rct_InAir_Hit_Frnt_anm
+68 Hu_Rct_KnckBck_Loop_anm
+69 Hu_Rct_KnckBck_Start_anm
+70 Hu_Rct_KnckDn_Hvy_01_anm
+71 Hu_Rct_KnckDn_Hvy_02_anm
+72 Hu_Rct_KnckDn_Hvy_Fwd_01_anm
+73 Hu_Rct_KnckDn_Hvy_Fwd_Splat_anm
+74 Hu_Rct_KnckDn_Hvy_Splat_01_anm
+75 Hu_Rct_KnckDn_Hvy_Splat_02_anm
+76 Hu_Rct_Knockdown_Bwd_9m_Start_anm
+77 Hu_Rct_Knockdown_Bwd_anm
+78 Hu_Rct_Knockdown_Bwd_Getup_anm
+79 Hu_Rct_Knockdown_Bwd_Land_anm
+80 Hu_Rct_Knockdown_Bwd_SplatHold_anm
+81 Hu_Rct_Knockdown_Bwd_Start_anm
+82 Hu_Rct_Knockdown_Fwd_9m_Start_anm
+83 Hu_Rct_Knockdown_Fwd_Getup_anm
+84 Hu_Rct_Knockdown_Fwd_Land_anm
+85 Hu_Rct_Knockdown_Fwd_SplatHold_anm
+86 Hu_Rct_Knockdown_Fwd_Start_anm
+87 Hu_Rct_Knockdown_Lft_9m_Start_anm
+88 Hu_Rct_Knockdown_Lft_Getup_anm
+89 Hu_Rct_Knockdown_Lft_Land_anm
+90 Hu_Rct_Knockdown_Lft_SplatHold_anm
+91 Hu_Rct_Knockdown_Lft_Start_anm
+92 Hu_Rct_Knockdown_Rht_9m_Start_anm
+93 Hu_Rct_Knockdown_Rht_Getup_anm
+94 Hu_Rct_Knockdown_Rht_Land_anm
+95 Hu_Rct_Knockdown_Rht_SplatHold_anm
+96 Hu_Rct_Knockdown_Rht_Start_anm
+97 Hu_Rct_Levioso_Loop_anm
+98 Hu_Rct_Levitate_Land_anm
+99 Hu_Rct_Levitate_Land_Fail_anm
+100 Hu_Rct_Levitate_Loop_anm
+101 Hu_Rct_Levitate_Rht_Arm_Fail_anm
+102 Hu_Rct_Levitate_Rht_Arm_Success_anm
+103 Hu_Rct_Levitate_Start_anm
+104 Hu_Rct_LF_Spell_Trip_Catch_anm
+105 Hu_Rct_LF_WallStop_anm
+106 Hu_Rct_Ragdoll_Flail_anm
+107 Hu_Rct_Ragdoll_Panic_Loop_anm
+108 Hu_Rct_Ragdoll_Wall_Anticipate_anm
+109 Hu_Rct_Ragdoll_Writhe_Loop_anm
+110 Hu_Rct_RF_WallStop_anm
+111 Hu_Rct_Send_Bwd_Getup_anm
+112 Hu_Rct_Send_Bwd_Loop_02_anm
+113 Hu_Rct_Send_Bwd_Loop_anm
+114 Hu_Rct_Send_Bwd_SplatGround_anm
+115 Hu_Rct_Send_Bwd_SplatHold_anm
+116 Hu_Rct_Send_Bwd_Tumble_Loop_02_anm
+117 Hu_Rct_Send_Bwd_Tumble_Loop_anm
+118 Hu_Rct_Send_Fwd_Loop_anm
+119 Hu_Rct_Send_Fwd_Start_anm
+120 Hu_Rct_Send_Fwd_StartLoop_anm
+121 Hu_Rct_Slam_Wall_Bck_Bounce_anm
+122 Hu_Rct_Slam_Wall_Frnt_Bounce_anm
+123 Hu_Rct_Spell_Dance_anm
+124 Hu_Rct_Spell_Dance_v01_anm
+125 Hu_Rct_Spell_Glacius_End_anm
+126 Hu_Rct_Spell_Glacius_Fail_anm
+127 Hu_Rct_Spell_Glacius_Fail_End_anm
+128 Hu_Rct_Spell_Incarcerous_End_anm
+129 Hu_Rct_Spell_Incarcerous_End_Fail_anm
+130 Hu_Rct_Spell_Incarcerous_Loop_anm
+131 Hu_Rct_Spell_Incarcerous_Start_anm
+132 Hu_Rct_Spell_Petrificus_End_anm
+133 Hu_Rct_Spell_Petrificus_End_Fail_anm
+134 Hu_Rct_Spell_Petrificus_GetUp_anm
+135 Hu_Rct_Spell_Petrificus_Loop_anm
+136 Hu_Rct_Spell_Petrificus_SplatGround_anm
+137 Hu_Rct_Spell_Petrificus_SplatGround_Hold_anm
+138 Hu_Rct_Spell_Petrificus_Start_anm
+139 Hu_Rct_Spell_Scalp_anm
+140 Hu_Rct_Spell_Sneeze_anm
+141 Hu_Rct_Spell_TimeDialation_v01_anm
+142 Hu_Rct_Spell_Trip_Catch_v01_anm
+143 Hu_Rct_Spell_Trip_Catch_v02_anm
+144 Hu_Rct_Spell_Trip_Fall_anm
+145 Hu_Rct_Spell_Trip_Fall_v01_anm
+146 Hu_Rct_Spell_Web_End_anm
+147 Hu_Rct_Spell_Web_End_Fail_anm
+148 Hu_Rct_Spell_Web_End_Fail_Break_anm
+149 Hu_Rct_Spell_Web_End_Fail_Loop_anm
+150 Hu_Rct_Spell_Web_Hit_anm
+151 Hu_Rct_Spell_Web_Loop_anm
+152 Hu_Rct_SpellFlinch_Sit_Bck_v01_anm
+153 Hu_Rct_SpellFlinch_Sit_Bck_v02_anm
+154 Hu_Rct_SpellFlinch_Sit_Bck_v03_anm
+155 Hu_Rct_SpellFlinch_Sit_Fwd_v01_anm
+156 Hu_Rct_SpellFlinch_Sit_Fwd_v02_anm
+157 Hu_Rct_SpellFlinch_Sit_Fwd_v03_anm
+158 Hu_Rct_SpellFlinch_Sit_Lft_v01_anm
+159 Hu_Rct_SpellFlinch_Sit_Lft_v02_anm
+160 Hu_Rct_SpellFlinch_Sit_Rht_v01_anm
+161 Hu_Rct_SpellFlinch_Sit_Rht_v02_anm
+162 Hu_Rct_SpellFlinch_Sit_Rht_v03_anm
+163 Hu_Rct_SpellFlinch_Stand_Bck_v01_anm
+164 Hu_Rct_SpellFlinch_Stand_Bck_v02_anm
+165 Hu_Rct_SpellFlinch_Stand_Bck_v03_anm
+166 Hu_Rct_SpellFlinch_Stand_Fwd_v01_anm
+167 Hu_Rct_SpellFlinch_Stand_Fwd_v02_anm
+168 Hu_Rct_SpellFlinch_Stand_Fwd_v03_anm
+169 Hu_Rct_SpellFlinch_Stand_Lft_v01_anm
+170 Hu_Rct_SpellFlinch_Stand_Lft_v02_anm
+171 Hu_Rct_SpellFlinch_Stand_Rht_v01_anm
+172 Hu_Rct_SpellFlinch_Stand_Rht_v02_anm
+173 Hu_Rct_SpellFlinch_Walk_Bck_v01_anm
+174 Hu_Rct_SpellFlinch_Walk_Fwd_v01_anm
+175 Hu_Rct_SpellFlinch_Walk_Lft_v01_anm
+176 Hu_Rct_SpellFlinch_Walk_Lft_v03_anm
+177 Hu_Rct_SpellFlinch_Walk_Lft_v04_anm
+178 Hu_Rct_SpellFlinch_Walk_Rht_01_anm
+179 Hu_Rct_SpellFlinch_Walk_Rht_02_anm
+180 Hu_Rct_SpellImpact_Walk_Bck_v03_anm
+181 Hu_Rct_SpellImpact_Walk_Fwd_v01_anm
+182 Hu_Rct_SpellImpact_Walk_Fwd_v02_anm
+183 Hu_Rct_SpellImpact_Walk_Lft_v02_anm
+184 Hu_Rct_SpellImpact_Walk_Rht_v01_anm
+185 Hu_Rct_SpelLook_Ground_DrunkSleep_Fwd_v01_anm
+186 Hu_Rct_SpelLook_Ground_Fwd_v01_anm
+187 Hu_Rct_SpelLook_WallLean_Fwd_v01_anm
+188 Hu_Rct_SpelLook_WallLean_Fwd_v02_anm
+189 Hu_Rct_Startled_Bwd_anm
+190 Hu_Rct_Startled_Fwd_anm
+191 Hu_Rct_Startled_Lft_anm
+192 Hu_Rct_Startled_Rht_anm
+193 Hu_Rct_Stumble2Knee_Bwd_anm
+194 Hu_Rct_Stumble2Knee_Fwd_anm
+195 Hu_Rct_Stumble_Bwd_01_Frozen_anm
+196 Hu_Rct_Stumble_Bwd_anm
+197 Hu_Rct_Stumble_Bwd_Fire_anm
+198 Hu_Rct_Stumble_Bwd_Hvy_anm
+199 Hu_Rct_Stumble_Bwd_Lft_anm
+200 Hu_Rct_Stumble_Bwd_Rht_anm
+201 Hu_Rct_Stumble_Fwd_anm
+202 Hu_Rct_Stumble_Fwd_Frozen_01_anm
+203 Hu_Rct_Stumble_Fwd_Lft_anm
+204 Hu_Rct_Stumble_Lft_180_4m_anm
+205 Hu_Rct_Stumble_Lft_anm
+206 Hu_Rct_Stumble_Lft_Frozen_01_anm
+207 Hu_Rct_Stumble_Rht_180_4m_anm
+208 Hu_Rct_Stumble_Rht_anm
+209 Hu_Rct_Stumble_Rht_Frozen_01_anm
+210 Hu_Rct_Wounded_Knee_Death_Fwrd_anm
+211 Hu_Rct_Wounded_Knee_End_anm
+212 Hu_Rct_Wounded_Knee_Enter_anm
+213 Hu_Rct_Wounded_Knee_Loop_anm
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/WandLight/Wand_Red_Long.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/2w2w/Wand_Red_Long.bin
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/WandLight/Wand_Red_Long.bin
rename to Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/2w2w/Wand_Red_Long.bin
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle0.bin
index 73194948a..821032287 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle0.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle0.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6d85d355f11843e8f56df784b15d446d8c3fdcc81d8eae88010923c00d36dbb1
+oid sha256:e23d2fbae1afc68c8f2b1b9932eab1997a420db15e478baad3739589f0424979
size 934
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin
index 652e0a337..c49549ff6 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:acb841e9844c196ff531d67cf20a124bb4ee4ef3d09900104fd90a43293cc204
+oid sha256:33166959d341985ce19c2287eca35f802644107341304cfa3230761d7bd8b2c9
size 892
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Projectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Projectile.bin
index d00a9dc24..2e03975c7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Projectile.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Projectile.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ad283296f3e81dc9b0efe420ab82bd961cb98bc918573adc0c8a4dfde45734b3
+oid sha256:9347dfd7bc45e98e449da16170de9f2585100941a91df91d054ebfaab99fa833
size 991
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BombardaSide/Wand_Light_B.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BombardaSide/Wand_Light_B.bin
index 9735dcf21..58cff23be 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BombardaSide/Wand_Light_B.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BombardaSide/Wand_Light_B.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:02b828d25533bdffec7d917013339b2c6d6425f2f773b6d1e7349652735cdfa1
+oid sha256:503d5221bfd3cadb71653ff08c9c58a947080ad2ef866928ac3f2fdd9dffe48f
size 888
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin
index 2bc24ce94..23d5a9e5d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4fc552fe04f7b734c6517961d8672e5b43b70731759390ddae3597321d42f7f0
+oid sha256:170d5ec8ed70c7db6e2b58cac0dcb739351d9cec941721d74333efc3bfdd377c
size 904
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj.bin
index 182d8ccf3..bb45391fc 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a3c08566c50cd578ebce36393e6f08850933631fad2924fa459b9e7cb5078b23
+oid sha256:12efcb8f2884fef77496816bc3bc8d1bcbf87a1e0ea51560d8386afdf6b2b7fb
size 893
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin
index 9f705e250..bb1c069ff 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:31851ea4898611b0ea339edfb18b909a134d5f97fac742729329a42dd1c7edc8
+oid sha256:8e19e2c6faa0e308d3cb34d74e1cdf859bed9d6e3782a738928b49a051d31c3e
size 987
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Light_R.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Light_R.bin
index 867d3057a..84291808b 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Light_R.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Light_R.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e7ef0b278a3c378244f79c35a5e09f392fb2f8188bafcf11afe79c8428055f0e
+oid sha256:31b6142312d4e23feb52059f63ad991dd03babf9b1465e66119f03e31d585901
size 888
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapHit0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapHit0.bin
index 1b7cf266c..9628ac5bc 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapHit0.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapHit0.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:384206693bd37c58381b45fae7c8701098d5c4807244130d48812d78c20871d3
-size 242
+oid sha256:7c09bc8d6f722548e4992dd7b3ec97ad3361bd04c61617731b1a6364501cd232
+size 927
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapHit1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapHit1.bin
index 3b6776238..22d4200d9 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapHit1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapHit1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b114001b2ebca51e33624828200a570529051abbb2319b3b996b90e2373ef417
-size 251
+oid sha256:1a7f630df6cbb75e1b9c8f6bc2574a88d769ddf70aae5196e05bf66f8216fb1e
+size 901
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin
index 33c67f314..a9bcb3be8 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0ea0dc061623ca882ae70f2d6ab16efaba6264ea3f017a649b1f34efc4ab6f89
+oid sha256:e30d27fc6a2553c66969f4530ef60c36969596b9e66a4f01832d513f3a1f38cb
size 936
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin
index 3559e4079..a4ed6e8d1 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:03bfa9ea3bb279af6a624efa2ff867fc91c260d234f3bac45e201419a253ba56
+oid sha256:b3f18fea3b470c012c6b85bed14f6902872f63defd27309498945c2d1aa1aa71
size 853
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin
index 31659a170..0137e0a86 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:29eea261a5c7f599c10aac3d609579e3253229557bc5946f97835a43253c813c
+oid sha256:a57929919341c072920b4863d43dddc8c45791b5f7806e5fe3e4d61cf472bc85
size 908
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin
index 99cff61f3..85418c281 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:62a04d7a2698b943c49747acee35b4e27069521ac898289f89f18ceed2716058
+oid sha256:dbe3538e3dd6dc2d20f6e1eea79806b155d94ae990e199e2461f3a8dc0695ad8
size 1022
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin
index eb81ce146..c92bca8de 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0f1e879fc5f8258c37282ea99e6f6c6ce5894fd13c33bfd1f24375af2525db58
-size 867
+oid sha256:cdfaffcc12699dc67f67d22869c5b28823ea99a60569c1d781d96f8607c39793
+size 853
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin
index 19c2a35d3..7ff8f8f63 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:618cdd8a6c989545c83e121ba6a90d2761492d807dbcadfe4d9721ecad716c87
+oid sha256:2b0f468c25b89711942c94f876b7c5d3b3a805e255b1b27b67c7f9b307bdaed3
size 888
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos/Lumos.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos/Lumos.bin
index 4bfc6de42..d2c2752a0 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos/Lumos.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos/Lumos.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0100ee7df0518f76fd00587c119cde704c8e9aacf04e921eba00ae575fd469a0
+oid sha256:65f80d66d63314fa4a87dfe3ff13e30a1d0ff5a978eef9fe6663feedebc41019
size 888
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml
new file mode 100644
index 000000000..7b45bee9a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc.bin
index 7a0c62327..936d8e008 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0bd9bce5d7e2a249cc92cc32dfbcd397671a249f211bb5a19977845df694f3a6
-size 2175828
+oid sha256:c8f1b3aa675b8473eef9ebadd93468d04943597403a7f01c1f692cc12ed98d6f
+size 2180945
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin.bin
index 6e34567fa..dce35ef43 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:be254ecb748748080b015fa8e293d12445b835a341075bb79113d41ef788d426
-size 1457699
+oid sha256:c15a2e341dedd612d964382a7917faf2c5907111c6420f55858b8ff7ab6aa3d5
+size 1458037
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin.fbx
index 227b0eeaa..6d114cc35 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c6590bf308dd22da41e048d111dd2de7425d111647d5d8aa24701f67ec52d912
-size 529804
+oid sha256:ae71d14a3a11c4744bca0d9abcfb19615befad7ab3570497d439f0b3dc962d9f
+size 525932
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.fbx
deleted file mode 100644
index 24f3df2f4..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:7a79d73c0eeab355f9fbbab5ba1c4c42896d33efecb885325ea3c0f036dd4507
-size 43823420
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOB_M__T4GoblinMelee_INST_A_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOB_M__T4GoblinMelee_INST_A_MRO.dds
new file mode 100644
index 000000000..cbc1dc504
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOB_M__T4GoblinMelee_INST_A_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/BaseFlattenNormalMap.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/BaseFlattenNormalMap.png
new file mode 100644
index 000000000..d8e1fd944
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/BaseFlattenNormalMap.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Cav_Spid_ThickWeb_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Cav_Spid_ThickWeb_N.dds
new file mode 100644
index 000000000..4a77ba948
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Cav_Spid_ThickWeb_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_DefaultGrey_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_DefaultGrey_D.dds
new file mode 100644
index 000000000..0221b7639
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_DefaultGrey_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Eye_IrisTint_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Eye_IrisTint_MSK.dds
new file mode 100644
index 000000000..ab2620bf1
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Eye_IrisTint_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Body_Corruption_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Body_Corruption_A.dds
new file mode 100644
index 000000000..9865fd7a8
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Body_Corruption_A.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Body_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Body_D.png
new file mode 100644
index 000000000..a6bedaa46
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Body_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Body_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Body_SRXO.dds
new file mode 100644
index 000000000..f24214e07
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Body_SRXO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Head_Corruption_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Head_Corruption_A.dds
new file mode 100644
index 000000000..327b31454
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Head_Corruption_A.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Leather_Corruption_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Leather_Corruption_A.dds
new file mode 100644
index 000000000..ea101a906
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Leather_Corruption_A.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade5.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Leather_D.dds
similarity index 54%
rename from Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade5.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Leather_D.dds
index db4ffab63..d78e55f7f 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade5.png and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Leather_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Leather_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Leather_MRO.dds
new file mode 100644
index 000000000..d4f494e3c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Leather_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Leather_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Leather_N.dds
new file mode 100644
index 000000000..51f237881
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Leather_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Metal_Corruption_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Metal_Corruption_A.dds
new file mode 100644
index 000000000..f7fac9cd4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Metal_Corruption_A.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Metal_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Metal_D.dds
new file mode 100644
index 000000000..e5284c9cb
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Metal_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Metal_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Metal_E.dds
new file mode 100644
index 000000000..f98176eed
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Metal_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Metal_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Metal_MRO.dds
new file mode 100644
index 000000000..6693df1d7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Metal_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Metal_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Metal_N.dds
new file mode 100644
index 000000000..553f93574
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_ArmoredTroll_Metal_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_CMB_Mountain1_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_CMB_Mountain1_N.dds
new file mode 100644
index 000000000..2971ab538
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_CMB_Mountain1_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Mountain01_Eye_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Mountain01_Eye_D.dds
new file mode 100644
index 000000000..54e3810dc
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Mountain01_Eye_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts3.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Mountain01_Head_D.png
similarity index 55%
rename from Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts3.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Mountain01_Head_D.png
index a836c1325..9ed84c8fd 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts3.png and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Mountain01_Head_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Mountain01_Head_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Mountain01_Head_N.dds
new file mode 100644
index 000000000..04d00d29b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Mountain01_Head_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Mountain01_Head_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Mountain01_Head_SRXO.dds
new file mode 100644
index 000000000..95e1afaea
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Mountain01_Head_SRXO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Teeth_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Teeth_D.dds
new file mode 100644
index 000000000..70f952269
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Teeth_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Teeth_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Teeth_N.dds
new file mode 100644
index 000000000..c76feb9ac
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Teeth_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Teeth_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Teeth_SRXO.dds
new file mode 100644
index 000000000..80f5da4e4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/T_Troll_Teeth_SRXO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/VFX_T_SkinBurn_Alpha_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/VFX_T_SkinBurn_Alpha_D.dds
new file mode 100644
index 000000000..9a7d13671
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/VFX_T_SkinBurn_Alpha_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/VFX_T_SkinBurn_Emiss_BPF_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/VFX_T_SkinBurn_Emiss_BPF_D.dds
new file mode 100644
index 000000000..4136a9832
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/VFX_T_SkinBurn_Emiss_BPF_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.fbx
new file mode 100644
index 000000000..4ed5bba04
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:33783d796335f0fdefff1f06f34cec423975b05d8147e4316902ac73d9dcf200
+size 135867852
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.xml
new file mode 100644
index 000000000..6d1d8c574
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.xml
@@ -0,0 +1,205 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.fbx
new file mode 100644
index 000000000..b54f244d7
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e3f2e069a3ea89e68f5658fc88633e5c9032f7c14eeb632357d83e989da32024
+size 113708
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Constants.hlsli b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Constants.hlsli
index 372ecfae5..f46cc1fc0 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Constants.hlsli
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Constants.hlsli
@@ -40,8 +40,8 @@ static const float AI_TEXTURE_TYPE_MAYA_SPECULAR = 23.f / 27.f;
static const float AI_TEXTURE_TYPE_MAYA_SPECULAR_COLOR = 24.f / 27.f;
static const float AI_TEXTURE_TYPE_MAYA_SPECULAR_ROUGHNESS = 25.f / 27.f;
static const float AI_TEXTURE_TYPE_ANISOTROPY = 26.f / 27.f;
-static const float AI_TEXTURE_TYPE_GLTF_METALLIC_ROUGHNESS = 27.f / 27.f;
-
+static const uint AI_TEXTURE_TYPE_GLTF_METALLIC_ROUGHNESS = 1;
+static const uint AI_TEXTURE_TYPE_MAX = AI_TEXTURE_TYPE_GLTF_METALLIC_ROUGHNESS;
#endif // ENGINE_SHADER_CONSTANTS_HLSLI
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
index 342f13cdc..e1180fbcb 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
@@ -151,11 +151,12 @@ float3 Fresnel_Schlick(float cosTheta, float3 F0)
PBR_LIGHT_OUT PBR_Lighting(
float3 vNormal, float3 vToView, float3 vToLight,
float3 vAlbedo, float fMetallic, float fRoughness,
- float3 vLightColor, float fAttenuation, float3 vFO
+ float3 vLightColor, float fLightIntensity, float fAttenuation, float3 vFO
) {
PBR_LIGHT_OUT Out;
Out.vShade = 0;
Out.vSpecular = 0;
+ float3 vLighting = vLightColor * fLightIntensity;
float3 vHalfVector = normalize(vToView + vToLight);
float NdotL = saturate(dot(vNormal, vToLight));
@@ -181,10 +182,11 @@ PBR_LIGHT_OUT PBR_Lighting(
float3 kS = F;
float3 kD = (1.f - kS) * (1.f -fMetallic);
- //Out.vShade = float(1.f, 1.f, 1. 1.f);
- Out.vShade = (kD / PI) * (NdotL * fAttenuation) * vLightColor;
+ float3 vDiffuseBRDF = (kD * vAlbedo) / PI;
- Out.vSpecular = specularBRDF * vLightColor * fAttenuation * NdotL;
+ Out.vShade = vDiffuseBRDF * vLighting * NdotL * fAttenuation;
+
+ Out.vSpecular = specularBRDF * vLighting * NdotL * fAttenuation;
return Out;
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
index 4596440e3..f9ef153d5 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
@@ -28,6 +28,7 @@ float g_fSSAORadius;
float2 g_vSSAOTextureSize;
float g_fLightRange;
+float g_fLightIntensity;
float g_fSpotInnerAngle;
float g_fSpotOuterAngle;
@@ -245,6 +246,15 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
fRoughness = vSRO.g;
fOcclusion = vSRO.b;
}
+ else if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_ANISOTROPY))
+ {
+ fMetallic = 0.f;
+
+ float4 vSRXO = g_SurfaceTexture.Sample(DefaultSampler, uv);
+ vF0 = vSRXO.rrr;
+ fRoughness = vSRXO.g;
+ fOcclusion = vSRXO.a;
+ }
else // basic Lighting(phong blinn) // if you were here, you miss some assets.
{
Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fAmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
@@ -262,7 +272,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
}
- PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
+ PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, g_fLightIntensity, fAttenuation, vF0);
PBR_Out.vShade *= fTotalOcclusion;
float3 vAmbient = g_vLightAmbient.rgb * fTotalOcclusion * fAttenuation;
@@ -365,7 +375,7 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
vF0 = min(vF0, 0.9f); // 메탈릭 상한선
}
- PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
+ PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, g_fLightIntensity, fAttenuation, vF0);
PBR_Out.vShade *= fTotalOcclusion;
@@ -483,7 +493,7 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
vF0 = min(vF0, 0.9f); // 메탈릭 상한선
}
- PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
+ PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, g_fLightIntensity, fAttenuation, vF0);
PBR_Out.vShade *= fTotalOcclusion;
@@ -911,7 +921,12 @@ PS_OUT_SSAO_AMBIENT_OCCLUSION PS_SSAO_AMBIENT_OCCLUSION(PS_IN In)
float4 vDepthDesc = g_DepthTexture.Sample(PointSampler, uv);
float fCenterViewSpaceZ = vDepthDesc.y * g_fFar; // n ~ f
-
+ float fRatio = lerp(0.f, 1.f, (g_fFar - fCenterViewSpaceZ) / g_fFar);
+ if (fRatio <= 0.f)
+ {
+ Out.fOcclusion = 1.f;
+ return Out;
+ }
float4 vCenterViewPosition;
{
vCenterViewPosition.x = uv.x * 2.f - 1.f;
@@ -956,8 +971,8 @@ PS_OUT_SSAO_AMBIENT_OCCLUSION PS_SSAO_AMBIENT_OCCLUSION(PS_IN In)
fIsOccluded *= fRangeCheck;
fOcclusion += fIsOccluded;
}
- fOcclusion = (1.f - (fOcclusion / g_iKernelSize));
- Out.fOcclusion = fOcclusion;
+ fOcclusion = (1.f - (fOcclusion / g_iKernelSize) * fRatio);
+ Out.fOcclusion = fOcclusion ;
return Out;
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index 2915d2fa6..bc248ab64 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -104,9 +104,74 @@ PS_OUT PS_MAIN(PS_IN In)
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
- if (Color.a <= 0.1f)
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_Logo(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha;
+ float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+
+ float4 Dissolve = g_MaskingTexture.Sample(DefaultSampler, In.vTexcoord);
+
+ if (g_fTime >= Dissolve.r)
discard;
+ if (g_fTime != 0.f)
+ {
+ Color.a *= Dissolve.a;
+ }
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_Logo_Text(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha;
+ float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+
+ Color.rgb = (Color.rgb - 0.5f) * 1.2f + 0.5f;
+
+ Color.rgb = pow(Color.rgb, 1.25f);
+
+ float luminance = dot(Color.rgb, float3(0.299f, 0.587f, 0.114f));
+ float light = smoothstep(0.7f, 0.92f, luminance);
+ Color.rgb *= (1.0f - light * 0.1f);
+
+ Color.rgb = lerp(Color.rgb, Color.rgb * Color.rgb, 0.12f);
+
+ Color.rgb *= 0.7f;
+
+ Color.rgb = saturate(Color.rgb);
+
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_Logo_Glow(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+
+ float tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord).r;
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
+ float3 Blue = float3(14.f, 180.f, 252.f) / 255.f;
+
+ Color.a *= tex1;
+ tex2.rgb *= Color.a * 5.f * Alpha;
+ Color.rgb *= Blue;
+
+ Color = lerp(Color, tex2, tex2.a);
+
Color.a *= Alpha;
Out.vColor = Color;
return Out;
@@ -134,6 +199,8 @@ PS_OUT PS_Clamp(PS_IN In)
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+ Color.rgb = saturate(Color.rgb * g_fTime);
+
Color.a *= Alpha;
Out.vColor = Color;
@@ -1232,6 +1299,37 @@ PS_OUT PS_Camera_LockOn(PS_IN In)
return Out;
}
+PS_OUT PS_Loding_Screen(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
+ Color = tex1;
+ Color = lerp(Color, tex2, tex2.a);
+
+ //float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ //float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ //float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
+ //bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
+ //if (inside1)
+ //{
+ // float2 uv = saturate(Imagelocal);
+ // float4 tex2 = g_Texture1.Sample(DefaultSampler, uv);
+
+ // Color = lerp(Color, tex2, tex2.a);
+ //}
+
+ Color.a *= Alpha;
+
+ Out.vColor = Color;
+
+ return Out;
+}
+
technique11 PosTexTechnique11
{
pass Default
@@ -1244,6 +1342,36 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_MAIN();
}
+ pass Logo
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Logo();
+ }
+
+ pass Logo_Text
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Logo_Text();
+ }
+
+ pass Logo_Glow
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Logo_Glow();
+ }
+
pass AlphaBlend
{
SetRasterizerState(RS_Default);
@@ -1482,4 +1610,14 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_Camera_LockOn();
}
+ pass Loding_Screen
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Loding_Screen();
+ }
+
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl
index b65b093b0..21c3264cc 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl
@@ -23,8 +23,12 @@ Texture2D g_NormalTexture;
Texture2D g_DAOTexture;
Texture2D g_THVTexture;
Texture2D g_SurfaceParamsTexture;
+Texture2D g_TransmissionTexture;
+Texture2D g_EmissiveTexture;
+bool g_bBinded_Texture[AI_TEXTURE_TYPE_MAX * 27];
+
float3 g_RootColor;
float3 g_TipColor;
float3 g_DyeColor;
@@ -249,12 +253,19 @@ PS_OUT PS_MAIN(PS_IN In)
{
PS_OUT Out;
- vector vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
- vector vSurface = g_SurfaceParamsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
- if (vMtrlDiffuse.a < 0.2f)
- {
- discard;
- }
+ float4 vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
+ float4 vSurface = g_SurfaceParamsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
+ //if (AlmostEqual7(g_bBinded_Texture[AI_TEXTURE_TYPE_TRANSMISSION], true))
+ //{
+ // float4 vTransmission = g_TransmissionTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
+ // vMtrlDiffuse *= vTransmission;
+ //}
+ //if (AlmostEqual7(g_bBinded_Texture[AI_TEXTURE_TYPE_EMISSIVE], true))
+ //{
+ // float4 vEmissive = g_EmissiveTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
+ // vMtrlDiffuse += vEmissive;
+ //}
+ if (vMtrlDiffuse.a < 0.2f) { discard; }
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
@@ -269,10 +280,15 @@ PS_OUT PS_MAIN(PS_IN In)
Out.vAlbedo = vMtrlDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
+ float fSurfaceParam = g_fUsingSurfaceParams;
+ if (true == AlmostEqual7(g_fUsingSurfaceParams, 0.f))
+ {
+ fSurfaceParam = 0;
+ }
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- g_fUsingSurfaceParams, // 서페이스 파라미터
- 1.f);
+ (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
+ fSurfaceParam, // 서페이스 파라미터
+ 1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = vSurface;
@@ -335,7 +351,7 @@ PS_OUT_OUTLINE PS_MAIN_OUTLINE(PS_IN_OUTLINE In)
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- 0, // 서페이스 파라미터
+ AI_TEXTURE_TYPE_METALNESS, // 서페이스 파라미터
1.f);
return Out;
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
index 1be6fa4d8..580f7887a 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
@@ -26,13 +26,19 @@ float2 g_vClipBoxSize;
float2 g_vClipBoxLTPos;
Texture2D g_DiffuseTexture;
+Texture2D g_NormalTexture;
+Texture2D g_DAOTexture;
+Texture2D g_THVTexture;
+Texture2D g_SurfaceParamsTexture;
+Texture2D g_TransmissionTexture;
+Texture2D g_EmissiveTexture;
+
+bool g_bBinded_Texture[AI_TEXTURE_TYPE_MAX * 27];
+
Texture2D g_MaskingTexture;
Texture2D g_ClippingTexture;
Texture2D g_DisolveTexture;
-Texture2D g_NormalTexture;
Texture2D g_GlowTexture;
-Texture2D g_SurfaceParamsTexture;
-Texture2D g_EmissiveTexture;
Texture2D g_GlassTexture;
float g_fBloomStrength;
@@ -226,10 +232,24 @@ PS_OUT PS_MAIN(PS_IN In)
{
PS_OUT Out;
- vector vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
- vector vSurface = g_SurfaceParamsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
- if (vMtrlDiffuse.a < 0.2f) { discard; }
-
+ float4 vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
+ float4 vSurface = g_SurfaceParamsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
+ //if (AlmostEqual7(g_bBinded_Texture[AI_TEXTURE_TYPE_TRANSMISSION], true))
+ //{
+ // float4 vTransmission = g_TransmissionTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
+ // vMtrlDiffuse *= vTransmission;
+ //}
+ //if (AlmostEqual7(g_bBinded_Texture[AI_TEXTURE_TYPE_EMISSIVE], true))
+ //{
+ // float4 vEmissive = g_EmissiveTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
+ // vMtrlDiffuse += vEmissive;
+ //}
+ if (vMtrlDiffuse.a < 0.2f)
+ {
+ discard;
+ }
+
+
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
@@ -237,10 +257,15 @@ PS_OUT PS_MAIN(PS_IN In)
Out.vAlbedo = vMtrlDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
+ float fSurfaceParam = g_fUsingSurfaceParams;
+ if (true == AlmostEqual7(g_fUsingSurfaceParams, 0.f))
+ {
+ fSurfaceParam = 0;
+ }
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- g_fUsingSurfaceParams, // 서페이스 파라미터
- 1.f);
+ (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
+ fSurfaceParam, // 서페이스 파라미터
+ 1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = vSurface;
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade3.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_0.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade3.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_0.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts5.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_1.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts5.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_1.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon1.png
deleted file mode 100644
index 600f0f7dc..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon1.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon2.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon2.png
deleted file mode 100644
index 43fb0e20e..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon2.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon3.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon3.png
deleted file mode 100644
index 338839f98..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon3.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon4.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon4.png
deleted file mode 100644
index cddd2e7ce..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon4.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon5.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon5.png
deleted file mode 100644
index 5fa9f592b..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon5.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Generic1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Generic1.png
deleted file mode 100644
index b02760373..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Generic1.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade1.png
deleted file mode 100644
index 5a35bb55e..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade1.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade2.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade2.png
deleted file mode 100644
index e2577da72..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade2.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade4.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade4.png
deleted file mode 100644
index 6b517cb51..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade4.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts1.png
deleted file mode 100644
index 9ff845e51..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts1.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts2.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts2.png
deleted file mode 100644
index 6904d09eb..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts2.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts4.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts4.png
deleted file mode 100644
index a40e52a7a..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts4.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland1.png
deleted file mode 100644
index f4a2aa4a5..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland1.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland2.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland2.png
deleted file mode 100644
index a52b20c2a..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland2.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland3.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland3.png
deleted file mode 100644
index d3bb27e91..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland3.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland4.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland4.png
deleted file mode 100644
index 1735958a6..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland4.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland5.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland5.png
deleted file mode 100644
index f94edf1b1..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland5.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary1.png
deleted file mode 100644
index 37fad41d3..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary1.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary2.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary2.png
deleted file mode 100644
index 18942ce0f..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary2.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary3.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary3.png
deleted file mode 100644
index f7af17cc5..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary3.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary4.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary4.png
deleted file mode 100644
index 387a9ba87..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary4.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary5.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary5.png
deleted file mode 100644
index 33fd6f430..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary5.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_Loding_Screen_BG.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_Loding_Screen_BG.png
new file mode 100644
index 000000000..370927a8d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_Loding_Screen_BG.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/BG.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/BG.png
new file mode 100644
index 000000000..b78e51351
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/BG.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/Dissolve.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/Dissolve.png
new file mode 100644
index 000000000..5a3f7a961
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/Dissolve.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/UI_T_Hogwarts_Letter_Head.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/UI_T_Hogwarts_Letter_Head.png
new file mode 100644
index 000000000..3bf999ffd
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/UI_T_Hogwarts_Letter_Head.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/UI_T_Logo_Screen_BG.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/UI_T_Logo_Screen_BG.png
new file mode 100644
index 000000000..5e3b0ccfe
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/UI_T_Logo_Screen_BG.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/UI_T_NavBarHighlightGlow.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/UI_T_NavBarHighlightGlow.png
new file mode 100644
index 000000000..22cea7b12
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/UI_T_NavBarHighlightGlow.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/UI_T_WhiteStarBurst.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/UI_T_WhiteStarBurst.png
new file mode 100644
index 000000000..be942742c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Logo/UI_T_WhiteStarBurst.png differ
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index 1180b5e42..133f11df7 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -135,6 +135,11 @@
5.0
+
+ cd /d "$(SolutionDir)"
+call Update_Shaders.bat
+
+
@@ -161,6 +166,11 @@
+
+ cd /d "$(SolutionDir)"
+call Update_Shaders.bat
+
+
@@ -219,7 +229,14 @@
+
+
+
+
+
+
+
@@ -388,7 +405,14 @@
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index ba233a597..db0b25f0f 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -478,6 +478,30 @@
{fe7d5909-159c-4130-ae5e-e08e648b193c}
+
+ {ebad2fd8-622f-4c17-9ba3-b0c4bd366c05}
+
+
+ {944a2f28-34bc-4559-b179-85b920086b30}
+
+
+ {abef48e8-ddeb-4498-9ad1-7ca552bd8aea}
+
+
+ {809eacd9-d230-47c9-bfb1-da988a8b8835}
+
+
+ {e18b00d7-5fe8-4309-8c47-94872d2c82e7}
+
+
+ {c77981f0-39b1-485f-b13f-aca6cc7c40e1}
+
+
+ {a4aecce8-41be-4c75-ab77-d91ce949770c}
+
+
+ {d8a5038f-4f2c-4226-85ba-9202f11f822d}
+
@@ -936,6 +960,27 @@
50.UI\Mouse_Cursor
+
+ 50.UI\Loding_Canvas
+
+
+ 50.UI\Loding_Canvas\Loding_Panel
+
+
+ 50.UI\Intro\Intro_Image
+
+
+ 50.UI\Logo
+
+
+ 50.UI\Intro\Intro_BG
+
+
+ 50.UI\Logo\Logo_Text
+
+
+ 50.UI\Logo\Logo_Glow
+
@@ -1393,6 +1438,27 @@
50.UI\Mouse_Cursor
+
+ 50.UI\Loding_Canvas
+
+
+ 50.UI\Loding_Canvas\Loding_Panel
+
+
+ 50.UI\Logo
+
+
+ 50.UI\Intro\Intro_Image
+
+
+ 50.UI\Intro\Intro_BG
+
+
+ 50.UI\Logo\Logo_Text
+
+
+ 50.UI\Logo\Logo_Glow
+
diff --git a/Jusin154_Team3D/Editor/Private/BombardSide.cpp b/Jusin154_Team3D/Editor/Private/BombardSide.cpp
index 06d6475be..caaba98c9 100644
--- a/Jusin154_Team3D/Editor/Private/BombardSide.cpp
+++ b/Jusin154_Team3D/Editor/Private/BombardSide.cpp
@@ -48,7 +48,7 @@ HRESULT CBombardSide::Initialize(void* pArg)
SAFE_ADDREF(m_pWandTrail);
SAFE_ADDREF(m_pWandParticle);
- m_fDuration = 2.5f;
+ m_fDuration = 2.f;
m_Events.emplace(0.6f, [&](){
m_isParticleEnd = true;
diff --git a/Jusin154_Team3D/Editor/Private/CallBack_EffectHitBox_HitReport.cpp b/Jusin154_Team3D/Editor/Private/CallBack_EffectHitBox_HitReport.cpp
index f4d5a5677..0a66d2d34 100644
--- a/Jusin154_Team3D/Editor/Private/CallBack_EffectHitBox_HitReport.cpp
+++ b/Jusin154_Team3D/Editor/Private/CallBack_EffectHitBox_HitReport.cpp
@@ -45,8 +45,7 @@ void CCallBack_EffectHitBox_HitReport::onShapeHit(const PSX::PxControllerShapeHi
/* OnCollision 함수에 넘길 값 */
-
- CollisionDesc.vWorldPos = XMVectorSet( (_float)vWorldPos.x, (_float)vWorldPos.y, (_float)vWorldPos.z, 1.f);
+ CollisionDesc.vWorldPos = { (_float)vWorldPos.x, (_float)vWorldPos.y, (_float)vWorldPos.z, 1.f };
memcpy(&CollisionDesc.vWorldNomal, &vWorldNormal, sizeof(_float3));
memcpy(&CollisionDesc.vHitDir, &vDir, sizeof(_float3));
CollisionDesc.fLength = fLength;
diff --git a/Jusin154_Team3D/Editor/Private/Decendo.cpp b/Jusin154_Team3D/Editor/Private/Decendo.cpp
index 2bc18e59e..f9065c4c1 100644
--- a/Jusin154_Team3D/Editor/Private/Decendo.cpp
+++ b/Jusin154_Team3D/Editor/Private/Decendo.cpp
@@ -126,7 +126,8 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg)
pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
-
+ pCircle0->Set_Visible(true);
+ pWandLight->Set_Visible(true);
/* 초기 위치 저장 */
_vector vStartPos = m_pOwner->Get_WorldPostion();
diff --git a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp
index 077702144..fe9d06fe4 100644
--- a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp
+++ b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp
@@ -51,7 +51,6 @@ HRESULT CGamePlay_Canvas::Initialize(void* pArg)
void CGamePlay_Canvas::Priority_Update(_float fTimeDelta)
{
-
__super::Priority_Update(fTimeDelta);
}
diff --git a/Jusin154_Team3D/Editor/Private/Intro_BG.cpp b/Jusin154_Team3D/Editor/Private/Intro_BG.cpp
new file mode 100644
index 000000000..d09188264
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Intro_BG.cpp
@@ -0,0 +1,177 @@
+#include "pch.h"
+#include "Intro_BG.h"
+#include "GameInstance.h"
+
+CIntro_BG::CIntro_BG(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CUIObject(pDevice, pContext)
+{
+}
+
+CIntro_BG::CIntro_BG(const CIntro_BG& rhs)
+ :CUIObject(rhs)
+{
+}
+
+HRESULT CIntro_BG::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CIntro_BG::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 960.f;
+ Desc.fY = 540.f;
+ Desc.fSizeX = g_iWinSizeX;
+ Desc.fSizeY = g_iWinSizeY;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fSortZ = 0.01f;
+ m_fAlpha = 1.f;
+ m_fOwnerAlpha = 1.f;
+ m_fCanvasAlpha = 1.f;
+ return S_OK;
+}
+
+void CIntro_BG::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CIntro_BG::Update(_float fTimeDelta)
+{
+}
+
+void CIntro_BG::Late_Update(_float fTimeDelta)
+{
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+}
+
+HRESULT CIntro_BG::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CIntro_BG::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CIntro_BG::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CIntro_BG::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("BG"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CIntro_BG* CIntro_BG::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CIntro_BG* pInstance = new CIntro_BG(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CIntro_BG");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CIntro_BG::Clone(void* pArg, CGameObject* pOwner)
+{
+ CIntro_BG* pInstance = new CIntro_BG(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CIntro_BG");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CIntro_BG::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CIntro_BG::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Intro_Image.cpp b/Jusin154_Team3D/Editor/Private/Intro_Image.cpp
new file mode 100644
index 000000000..f22020e28
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Intro_Image.cpp
@@ -0,0 +1,187 @@
+#include "pch.h"
+#include "Intro_Image.h"
+#include "GameInstance.h"
+
+CIntro_Image::CIntro_Image(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CUIObject(pDevice, pContext)
+{
+}
+
+CIntro_Image::CIntro_Image(const CIntro_Image& rhs)
+ :CUIObject(rhs)
+{
+}
+
+HRESULT CIntro_Image::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CIntro_Image::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 960.f;
+ Desc.fY = 540.f;
+ Desc.fSizeX = 1920.f;
+ Desc.fSizeY = 480;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_fDelayTime = 2.f;
+ m_fAlpha = 1.f;
+ m_fTime = 1.f;
+ return S_OK;
+}
+
+void CIntro_Image::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CIntro_Image::Update(_float fTimeDelta)
+{
+ if (m_bHover == false)
+ {
+ m_fTime -= fTimeDelta;
+ }
+ if (m_fTime <= 0.f)
+ {
+ m_fTime = 0.f;
+ }
+ if (m_bHover == true)
+ {
+ m_fTime += fTimeDelta;
+ }
+}
+
+void CIntro_Image::Late_Update(_float fTimeDelta)
+{
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+}
+
+HRESULT CIntro_Image::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::LOGO)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CIntro_Image::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CIntro_Image::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_MaskingTexture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CIntro_Image::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Logo"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Dissolve"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CIntro_Image* CIntro_Image::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CIntro_Image* pInstance = new CIntro_Image(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CIntro_Image");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CIntro_Image::Clone(void* pArg, CGameObject* pOwner)
+{
+ CIntro_Image* pInstance = new CIntro_Image(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CIntro_Image");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CIntro_Image::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CIntro_Image::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Level_Loading.cpp b/Jusin154_Team3D/Editor/Private/Level_Loading.cpp
index 9ef8407d7..90ac75136 100644
--- a/Jusin154_Team3D/Editor/Private/Level_Loading.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_Loading.cpp
@@ -11,6 +11,9 @@
#include "Level_BloomViewer.h"
#include "Level_PhysXLab.h"
+#include "Intro_Image.h"
+#include "Intro_BG.h"
+#include "Loding_Panel.h"
CLevel_Loading::CLevel_Loading(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
@@ -29,7 +32,10 @@ HRESULT CLevel_Loading::Initialize(LEVEL eNextLevelID)
if (FAILED(Ready_Layer_BackGround(LAYER_UI))) {
return E_FAIL;
+
}
+ m_bNextLevel = false;
+ m_fTimeDelta = 1.2f;
return S_OK;
}
@@ -37,6 +43,28 @@ void CLevel_Loading::Update(_float fTimeDelta)
{
if (true == m_pLoader->isFinished() &&
m_pGameInstance->Key_Down(DIK_F1))
+ {
+ if (m_eNextLevelID != LEVEL::LOGO)
+ m_bNextLevel = true;
+ else
+ {
+ static_cast(m_pIntro_Image)->Set_Hover(true);
+ m_bDelay = true;
+ }
+
+ }
+
+ if (m_bDelay == true)
+ {
+ m_fTimeDelta -= fTimeDelta;
+ if (m_fTimeDelta <= 0.f)
+ {
+ m_bNextLevel = true;
+ }
+ }
+
+
+ if (m_bNextLevel == true)
{
CLevel* pNewLevel = { nullptr };
@@ -54,9 +82,9 @@ void CLevel_Loading::Update(_float fTimeDelta)
case LEVEL::OBJECT:
pNewLevel = CLevel_ObjectViewer::Create(m_pDevice, m_pContext, m_eNextLevelID);
break;
- //case LEVEL::COMBINED:
- // pNewLevel = CLevel_LevelViewer::Create(m_pDevice, m_pContext, m_eNextLevelID);
- // break;
+ //case LEVEL::COMBINED:
+ // pNewLevel = CLevel_LevelViewer::Create(m_pDevice, m_pContext, m_eNextLevelID);
+ // break;
case LEVEL::EFFECT:
pNewLevel = CLevel_EffectViewer::Create(m_pDevice, m_pContext, m_eNextLevelID);
break;
@@ -82,6 +110,22 @@ HRESULT CLevel_Loading::Render()
HRESULT CLevel_Loading::Ready_Layer_BackGround(const _wstring& strLayerTag)
{
+ if (m_eNextLevelID == LEVEL::LOGO)
+ {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, ENUM_CLASS(LEVEL::LOADING), strLayerTag))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, ENUM_CLASS(LEVEL::LOADING), strLayerTag, nullptr, nullptr, reinterpret_cast(&m_pIntro_Image)))) {
+ return E_FAIL;
+ }
+ }
+
+ else
+ {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, ENUM_CLASS(LEVEL::LOADING), strLayerTag))) {
+ return E_FAIL;
+ }
+ }
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Level_Logo.cpp b/Jusin154_Team3D/Editor/Private/Level_Logo.cpp
index 2621663c9..f5344a2c0 100644
--- a/Jusin154_Team3D/Editor/Private/Level_Logo.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_Logo.cpp
@@ -2,7 +2,10 @@
#include "Level_Logo.h"
#include "GameInstance.h"
#include "Level_Loading.h"
-#include "DummyRect.h"
+
+#include "Logo.h"
+#include "Logo_Text.h"
+#include "Logo_Glow.h"
CLevel_Logo::CLevel_Logo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
@@ -13,7 +16,7 @@ CLevel_Logo::CLevel_Logo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, L
HRESULT CLevel_Logo::Initialize()
{
- if (FAILED(Ready_Layer_UI(LAYER_BACKGROUND))) {
+ if (FAILED(Ready_Layer_UI(LAYER_UI))) {
return E_FAIL;
}
return S_OK;
@@ -69,7 +72,13 @@ HRESULT CLevel_Logo::Ready_Layer_Camera(const _wstring& strLayerTag)
HRESULT CLevel_Logo::Ready_Layer_UI(const _wstring& strLayerTag)
{
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
return E_FAIL;
}
return S_OK;
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index 2c23583a1..b1e4d5c35 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -36,12 +36,19 @@
#pragma region UI
+#include "Logo.h"
+#include "Logo_Text.h"
+#include "Logo_Glow.h"
+
#include "Spell_Data.h"
#include "UI_Manager.h"
#include "Mouse_Cursor.h"
#include "CameraLockOn.h"
+#include "Loding_Canvas.h"
+#include "Loding_Panel.h"
+
#include "GamePlay_Canvas.h"
#include "Mission_Panel.h"
@@ -251,6 +258,22 @@ HRESULT CLoader::Loading_For_Logo()
return E_FAIL;
}
+ Asset_FileLoad("../Bin/Resources/Textures/Logo", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
+ {
+
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::LOGO), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
m_strMessage = TEXT("Model Loading..");
@@ -306,6 +329,18 @@ HRESULT CLoader::Loading_For_Logo()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLogo::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLogo_Text::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLogo_Glow::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
m_strMessage = TEXT("Loading Success!");
m_isFinished = true;
@@ -812,12 +847,6 @@ HRESULT CLoader::Loading_For_UI()
m_strMessage = TEXT("Shader Loading..");
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIEDITOR,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"),
- VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) {
- return E_FAIL;
- }
-
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIINSTANCE,
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"),
VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements)))) {
@@ -847,6 +876,11 @@ HRESULT CLoader::Loading_For_UI()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLoding_Canvas::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
@@ -1566,7 +1600,7 @@ HRESULT CLoader::Loading_For_PhysXLevel()
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT;
Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f);
- Desc.fContactOffset = 0.f;
+ Desc.fContactOffset = 0.001f;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, CMyTools::ToWstring(strDestName).c_str(), CRigidBody_Static::Create(m_pDevice, m_pContext, Desc)))) {
return E_FAIL;
@@ -1638,20 +1672,8 @@ HRESULT CLoader::Loading_For_Bloom()
#pragma region HAIR
futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Male/M_Hair1/M_Hair1.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(),
- TEXT("Prototype_Component_M_Hair1_Model")
- ));
- futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Male/M_Hair2/M_Hair2.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(),
- TEXT("Prototype_Component_M_Hair2_Model")
- ));
- futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Male/M_Hair3/M_Hair3.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(),
- TEXT("Prototype_Component_M_Hair3_Model")
- ));
- futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/FeMale/F_Hair1/F_Hair1.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(),
- TEXT("Prototype_Component_F_Hair1_Model")
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.fbx", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_SubTroll_Model")
));
#pragma endregion
@@ -1785,7 +1807,7 @@ HRESULT CLoader::MapFolderLoad(const _char* pDirectoryPath, const _char* pFileEx
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT;
Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f);
- Desc.fContactOffset = 0.f;
+ Desc.fContactOffset = 0.001f;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, CMyTools::ToWstring(strDestName).c_str(), CRigidBody_Static::Create(m_pDevice, m_pContext, Desc)))) {
return E_FAIL;
@@ -1838,7 +1860,7 @@ void APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContex
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT;
Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f);
- Desc.fContactOffset = 0.f;
+ Desc.fContactOffset = 0.001f;
}
pContents->pRigidBodyTags.emplace_back(CMyTools::ToWstring(pModel->Get_MeshName(i) + to_string(i)).c_str());
pContents->LoadedRigidBody.emplace_back(CRigidBody_Static::Create(pDevice, pContext, Desc));
@@ -1886,8 +1908,8 @@ HRESULT CLoader::Loading_For_ObjectViewer()
m_strMessage = TEXT("Model Loading..");
- /*if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_NPC"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable\\Game\\RiggedObjects\\Characters\\Human\\Body\\Generic_M\\SK_GenericDarkWizard_14.fbx", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))) {
+ /*if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_SK_GenericDarkWizard_14_Model"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\RiggedObjects\\Characters\\Human\\Body\\Generic_M\\SK_GenericDarkWizard_14.fbx", XMMatrixIdentity())))) {
return E_FAIL;
}*/
@@ -2007,6 +2029,7 @@ HRESULT CLoader::Loading_For_ObjectViewer()
MODEL::ANIM, "../Bin/Resources/Models/Monster/Troll/Troll.bin", XMMatrixIdentity(),
TEXT("Prototype_Component_Troll_Model")
));
+
futures.emplace_back(Deferred_ModelLoad(
MODEL::ANIM, "../Bin/Resources/Models/Monster/Dragon/Dragon.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(),
TEXT("Prototype_Component_Dragon_Model")
@@ -2844,7 +2867,7 @@ vector*> Contents(iLoadCount);
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT;
Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f);
- Desc.fContactOffset = 0.f;
+ Desc.fContactOffset = 0.001f;
}
CRigidBody_Static* pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogsmeade"), pRigid))) {
diff --git a/Jusin154_Team3D/Editor/Private/Loding_Canvas.cpp b/Jusin154_Team3D/Editor/Private/Loding_Canvas.cpp
new file mode 100644
index 000000000..a65a08710
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Loding_Canvas.cpp
@@ -0,0 +1,133 @@
+#include "pch.h"
+#include "Loding_Canvas.h"
+#include "GameInstance.h"
+#include "UI_Manager.h"
+
+
+CLoding_Canvas::CLoding_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CCanvasObject(pDevice, pContext)
+{
+}
+
+CLoding_Canvas::CLoding_Canvas(const CLoding_Canvas& rhs)
+ :CCanvasObject(rhs)
+{
+}
+
+HRESULT CLoding_Canvas::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CLoding_Canvas::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 1920.f;
+ Desc.fSizeY = 1080.f;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Panel(pArg)))
+ {
+ return E_FAIL;
+ }
+ Visible(true);
+ return S_OK;
+}
+
+void CLoding_Canvas::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CLoding_Canvas::Update(_float fTimeDelta)
+{
+ __super::Update(fTimeDelta);
+}
+
+void CLoding_Canvas::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible) {
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CLoding_Canvas::Render()
+{
+ return S_OK;
+}
+
+_vector CLoding_Canvas::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CLoding_Canvas::Bind_ShaderResources()
+{
+
+ return S_OK;
+}
+
+HRESULT CLoding_Canvas::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CLoding_Canvas::Ready_Panel(void* pArg)
+{
+ return S_OK;
+}
+
+void CLoding_Canvas::Clear_Penel()
+{
+}
+
+CLoding_Canvas* CLoding_Canvas::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CLoding_Canvas* pInstance = new CLoding_Canvas(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CLoding_Canvas");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CLoding_Canvas::Clone(void* pArg, CGameObject* pOwner)
+{
+ CLoding_Canvas* pInstance = new CLoding_Canvas(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CLoding_Canvas");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CLoding_Canvas::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CLoding_Canvas::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Loding_Panel.cpp b/Jusin154_Team3D/Editor/Private/Loding_Panel.cpp
new file mode 100644
index 000000000..c05009ea6
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Loding_Panel.cpp
@@ -0,0 +1,204 @@
+#include "pch.h"
+#include "Loding_Panel.h"
+#include "GameInstance.h"
+
+CLoding_Panel::CLoding_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CPanelObject(pDevice, pContext)
+{
+}
+
+CLoding_Panel::CLoding_Panel(const CLoding_Panel& rhs)
+ :CPanelObject(rhs)
+{
+}
+
+HRESULT CLoding_Panel::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CLoding_Panel::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 960.f;
+ Desc.fY = 540.f;
+ Desc.fSizeX = g_iWinSizeX;
+ Desc.fSizeY = g_iWinSizeY;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Element(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_fCanvasAlpha = 1.f;
+ m_fOwnerAlpha = 1.f;
+ m_fAlpha = 1.f;
+ m_fSortZ = 0.f;
+ m_iImageNum = 0;
+ //m_vImageposSi = _float4(0.f, 0.f, 1792.f, 1024.f);
+
+ return S_OK;
+}
+void CLoding_Panel::Set_Image(_int Index)
+{
+ m_iImageNum = Index;
+}
+void CLoding_Panel::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CLoding_Panel::Update(_float fTimeDelta)
+{
+}
+
+void CLoding_Panel::Late_Update(_float fTimeDelta)
+{
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+}
+
+HRESULT CLoding_Panel::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::LODING_SCREEN)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CLoding_Panel::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CLoding_Panel::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", m_iImageNum)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ //if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_vImageposSi, sizeof(_float4))))
+ //{
+ // return E_FAIL;
+ //}
+ //if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ //{
+ // return E_FAIL;
+ //}
+ return S_OK;
+}
+
+HRESULT CLoding_Panel::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Screen_BG"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("LoadingScreen"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CLoding_Panel::Ready_Element(void* pArg)
+{
+ return S_OK;
+}
+
+CLoding_Panel* CLoding_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CLoding_Panel* pInstance = new CLoding_Panel(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CLoding_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CLoding_Panel::Clone(void* pArg, CGameObject* pOwner)
+{
+ CLoding_Panel* pInstance = new CLoding_Panel(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CLoding_Panel::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CLoding_Panel::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Logo.cpp b/Jusin154_Team3D/Editor/Private/Logo.cpp
new file mode 100644
index 000000000..a781aa041
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Logo.cpp
@@ -0,0 +1,179 @@
+#include "pch.h"
+#include "Logo.h"
+#include "GameInstance.h"
+
+CLogo::CLogo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CUIObject(pDevice, pContext)
+{
+}
+
+CLogo::CLogo(const CLogo& rhs)
+ :CUIObject(rhs)
+{
+}
+
+HRESULT CLogo::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CLogo::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 960.f;
+ Desc.fY = 540.f;
+ Desc.fSizeX = g_iWinSizeX;
+ Desc.fSizeY = g_iWinSizeY;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fOwnerAlpha = 1.f;
+ m_fCanvasAlpha = 1.f;
+ m_fAlpha = 1.f;
+ m_fSortZ = 0.01f;
+ m_fTime = 0.f;
+ return S_OK;
+}
+
+void CLogo::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CLogo::Update(_float fTimeDelta)
+{
+ if (m_fTime <= 1.f)
+ m_fTime += fTimeDelta;
+}
+
+void CLogo::Late_Update(_float fTimeDelta)
+{
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+}
+
+HRESULT CLogo::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::CLAMP)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+_vector CLogo::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CLogo::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CLogo::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::LOGO), TEXT("Prototype_Texture_UI_T_Logo_Screen_BG"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CLogo* CLogo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CLogo* pInstance = new CLogo(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CLogo");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CLogo::Clone(void* pArg, CGameObject* pOwner)
+{
+ CLogo* pInstance = new CLogo(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CLogo");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CLogo::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CLogo::Describe_Entity()
+{
+}
+
diff --git a/Jusin154_Team3D/Editor/Private/Logo_Glow.cpp b/Jusin154_Team3D/Editor/Private/Logo_Glow.cpp
new file mode 100644
index 000000000..7a4a748ea
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Logo_Glow.cpp
@@ -0,0 +1,201 @@
+#include "pch.h"
+#include "Logo_Glow.h"
+#include "GameInstance.h"
+
+CLogo_Glow::CLogo_Glow(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CUIObject(pDevice, pContext)
+{
+}
+
+CLogo_Glow::CLogo_Glow(const CLogo_Glow& rhs)
+ :CUIObject(rhs)
+{
+}
+
+HRESULT CLogo_Glow::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CLogo_Glow::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 470.f;
+ Desc.fY = 385.f;
+ Desc.fSizeX = 256.f;
+ Desc.fSizeY = 128.f;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fOwnerAlpha = 1.f;
+ m_fCanvasAlpha = 1.f;
+ m_fAlpha = 0.f;
+ m_bHover = false;
+ return S_OK;
+}
+
+void CLogo_Glow::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CLogo_Glow::Update(_float fTimeDelta)
+{
+ if (m_bHover == false)
+ {
+ m_fTime += fTimeDelta;
+ if (m_fTime >= 0.7f)
+ {
+ m_bHover = true;
+ }
+ }
+ else
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta;
+ }
+ }
+}
+
+void CLogo_Glow::Late_Update(_float fTimeDelta)
+{
+ if (m_bHover == true)
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+}
+
+HRESULT CLogo_Glow::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::LOGO_GLOW)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CLogo_Glow::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CLogo_Glow::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CLogo_Glow::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::LOGO), TEXT("Prototype_Texture_UI_T_NavBarHighlightGlow"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::LOGO), TEXT("Prototype_Texture_UI_T_WhiteStarBurst"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CLogo_Glow* CLogo_Glow::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CLogo_Glow* pInstance = new CLogo_Glow(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CLogo_Glow");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CLogo_Glow::Clone(void* pArg, CGameObject* pOwner)
+{
+ CLogo_Glow* pInstance = new CLogo_Glow(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CLogo_Glow");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CLogo_Glow::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CLogo_Glow::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Logo_Text.cpp b/Jusin154_Team3D/Editor/Private/Logo_Text.cpp
new file mode 100644
index 000000000..55260087a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Logo_Text.cpp
@@ -0,0 +1,192 @@
+#include "pch.h"
+#include "Logo_Text.h"
+#include "GameInstance.h"
+
+CLogo_Text::CLogo_Text(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CUIObject(pDevice, pContext)
+{
+}
+
+CLogo_Text::CLogo_Text(const CLogo_Text& rhs)
+ :CUIObject(rhs)
+{
+}
+
+HRESULT CLogo_Text::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CLogo_Text::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 960.f;
+ Desc.fY = 480.f;
+ Desc.fSizeX = 1536.f;
+ Desc.fSizeY = 768.f;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fOwnerAlpha = 1.f;
+ m_fCanvasAlpha = 1.f;
+ m_fAlpha = 0.f;
+ m_bHover = false;
+ return S_OK;
+}
+
+void CLogo_Text::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CLogo_Text::Update(_float fTimeDelta)
+{
+ if (m_bHover == false)
+ {
+ m_fTime += fTimeDelta;
+ if (m_fTime >= 1.f)
+ {
+ m_bHover = true;
+ }
+ }
+ else
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta;
+ }
+ }
+}
+
+void CLogo_Text::Late_Update(_float fTimeDelta)
+{
+ if (m_bHover == true)
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+}
+
+HRESULT CLogo_Text::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::LOGO_TEXT)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CLogo_Text::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CLogo_Text::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CLogo_Text::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::LOGO), TEXT("Prototype_Texture_UI_T_HogwartsLegacyLogo_Korean"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CLogo_Text* CLogo_Text::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CLogo_Text* pInstance = new CLogo_Text(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CLogo_Text");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CLogo_Text::Clone(void* pArg, CGameObject* pOwner)
+{
+ CLogo_Text* pInstance = new CLogo_Text(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CLogo_Text");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CLogo_Text::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CLogo_Text::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/MainApp.cpp b/Jusin154_Team3D/Editor/Private/MainApp.cpp
index 6c5a471de..d44d6ef57 100644
--- a/Jusin154_Team3D/Editor/Private/MainApp.cpp
+++ b/Jusin154_Team3D/Editor/Private/MainApp.cpp
@@ -6,6 +6,10 @@
#include "Level_Loading.h"
#include "InfoInstance.h"
+#include "Loding_Panel.h"
+#include "Intro_Image.h"
+#include "Intro_BG.h"
+
_float g_fTimeMult = 1.f;
CMainApp::CMainApp()
: m_pGameInstance{ CGameInstance::GetInstance() }
@@ -59,7 +63,7 @@ void CMainApp::Update(_float fTimeDelta)
HRESULT CMainApp::Render()
{
- _float4 vClearColor = _float4(0.f, 0.f, 1.f, 1.f);
+ _float4 vClearColor = _float4(0.f, 0.f, 0.f, 1.f);
m_pGameInstance->Render_Begin(&vClearColor);
@@ -103,6 +107,51 @@ HRESULT CMainApp::Start_Level(LEVEL eLevelID)
HRESULT CMainApp::Ready_Prototypes()
{
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Logo"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Logo/UI_T_Hogwarts_Letter_Head.png"), 0)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("BG"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Logo/BG.png"), 0)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Dissolve"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Logo/Dissolve.png"), 0)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIEDITOR,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"),
+ VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Screen_BG"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/LoadingScreen/UI_T_Loding_Screen_BG.png"), 0)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LoadingScreen"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_%d.png"), 2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CIntro_Image::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CIntro_BG::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLoding_Panel::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Player.cpp b/Jusin154_Team3D/Editor/Private/Player.cpp
index 14bfd45f6..e446ce8c8 100644
--- a/Jusin154_Team3D/Editor/Private/Player.cpp
+++ b/Jusin154_Team3D/Editor/Private/Player.cpp
@@ -373,6 +373,7 @@ void CPlayer::SetGravity()
}
void CPlayer::Update_CameraCoordinateSystem()
+
{
_vector xmvCameraLook = XMVector3Normalize(XMVectorSetY(m_pGameInstance->Get_CameraLook(), 0.f));
_vector xmvUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
@@ -381,6 +382,7 @@ void CPlayer::Update_CameraCoordinateSystem()
m_pInfoInstance->Update_CameraCoordinateSystem(m_vCameraLookDir, m_vRimLightColor);
}
+
_matrix CPlayer::Get_WandPos()
{
CWand* pWand = Get_PartObject();
diff --git a/Jusin154_Team3D/Editor/Private/UI_Manager.cpp b/Jusin154_Team3D/Editor/Private/UI_Manager.cpp
index 678d6dca5..6b72822f7 100644
--- a/Jusin154_Team3D/Editor/Private/UI_Manager.cpp
+++ b/Jusin154_Team3D/Editor/Private/UI_Manager.cpp
@@ -1,11 +1,11 @@
-#include "UI_Manager.h"
-#include "pch.h"
+#include "pch.h"
#include "UI_Manager.h"
#include "GameInstance.h"
#include "GamePlay_Canvas.h"
#include "Spell_Canvas.h"
#include "Mouse_Cursor.h"
#include "CameraLockOn.h"
+#include "Loding_Canvas.h"
CUI_Manager::CUI_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CUIObject(pDevice, pContext)
@@ -120,15 +120,15 @@ _vector CUI_Manager::Get_WorldPostion()
HRESULT CUI_Manager::Bind_ShaderResources()
{
- if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
- return E_FAIL;
- }
-
return S_OK;
}
HRESULT CUI_Manager::Ready_Components(void* pArg)
{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pGamePlay_Canves)))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index f40f0e05e..31567545a 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -26,7 +26,7 @@ namespace Editor
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END };
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, END };
- enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, END };
+ enum class SHADER_PASS_UIEDITOR { DEFAULT, LOGO, LOGO_TEXT, LOGO_GLOW,ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN, END };
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, END };
diff --git a/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h b/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h
index f879ea4e7..33353a99e 100644
--- a/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h
+++ b/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h
@@ -44,9 +44,7 @@ class CGamePlay_Canvas final : public CCanvasObject
static CGamePlay_Canvas* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
-#ifdef _DEBUG
void Describe_Entity() override;
-#endif // _DEBUG
};
NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Intro_BG.h b/Jusin154_Team3D/Editor/Public/Intro_BG.h
new file mode 100644
index 000000000..34dcc9831
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Intro_BG.h
@@ -0,0 +1,45 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "UIObject.h"
+
+NS_BEGIN(Engine)
+
+NS_END
+
+NS_BEGIN(Editor)
+
+class CIntro_BG final : public CUIObject
+{
+private:
+ CIntro_BG(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CIntro_BG(const CIntro_BG& rhs);
+ virtual ~CIntro_BG() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CIntro_BG* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+
+};
+
+NS_END;
diff --git a/Jusin154_Team3D/Editor/Public/Intro_Image.h b/Jusin154_Team3D/Editor/Public/Intro_Image.h
new file mode 100644
index 000000000..83ad810b7
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Intro_Image.h
@@ -0,0 +1,46 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "UIObject.h"
+
+NS_BEGIN(Engine)
+
+NS_END
+
+NS_BEGIN(Editor)
+
+class CIntro_Image final : public CUIObject
+{
+private:
+ CIntro_Image(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CIntro_Image(const CIntro_Image& rhs);
+ virtual ~CIntro_Image() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CIntro_Image* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+
+};
+
+NS_END;
diff --git a/Jusin154_Team3D/Editor/Public/Level_Loading.h b/Jusin154_Team3D/Editor/Public/Level_Loading.h
index 22297c591..f378bc23e 100644
--- a/Jusin154_Team3D/Editor/Public/Level_Loading.h
+++ b/Jusin154_Team3D/Editor/Public/Level_Loading.h
@@ -21,15 +21,16 @@ class CLevel_Loading final : public CLevel
private:
LEVEL m_eNextLevelID = { LEVEL::END };
- class CLoader* m_pLoader = { nullptr };
+ class CLoader* m_pLoader = { nullptr };
+ _float m_fTimeDelta{};
+ _bool m_bDelay = { false };
+ _bool m_bNextLevel = { false };
+ class CGameObject* m_pIntro_Image = { nullptr };
private:
virtual HRESULT Initialize(LEVEL eNextLevelID);
HRESULT Initialize() override;
HRESULT Ready_Layer_BackGround(const _wstring& strLayerTag);
-
-
-
public:
static CLevel_Loading* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, LEVEL eNextLevelID);
virtual void Free() override;
diff --git a/Jusin154_Team3D/Editor/Public/Loding_Canvas.h b/Jusin154_Team3D/Editor/Public/Loding_Canvas.h
new file mode 100644
index 000000000..cf94ecbf7
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Loding_Canvas.h
@@ -0,0 +1,48 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "CanvasObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Editor)
+
+class CLoding_Canvas final : public CCanvasObject
+{
+private:
+ CLoding_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CLoding_Canvas(const CLoding_Canvas& rhs);
+ virtual ~CLoding_Canvas() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Ready_Panel(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Clear_Penel();
+
+private:
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ CGameObject* m_pLoding_Panel= { nullptr };
+
+
+public:
+ static CLoding_Canvas* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Loding_Panel.h b/Jusin154_Team3D/Editor/Public/Loding_Panel.h
new file mode 100644
index 000000000..74fba34c0
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Loding_Panel.h
@@ -0,0 +1,55 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "PanelObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Editor)
+
+class CLoding_Panel final : public CPanelObject
+{
+
+private:
+ CLoding_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CLoding_Panel(const CLoding_Panel& rhs);
+ virtual ~CLoding_Panel() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Ready_Element(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_Image(_int Index);
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ CGameObject* m_pCurrent_Spell_Slot = { nullptr };
+
+ _int m_iImageNum{};
+ _float4 m_vImageposSi{};
+public:
+ static CLoding_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Logo.h b/Jusin154_Team3D/Editor/Public/Logo.h
new file mode 100644
index 000000000..a2324ec35
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Logo.h
@@ -0,0 +1,45 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "UIObject.h"
+
+NS_BEGIN(Engine)
+
+NS_END
+
+NS_BEGIN(Editor)
+
+class CLogo final : public CUIObject
+{
+private:
+ CLogo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CLogo(const CLogo& rhs);
+ virtual ~CLogo() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CLogo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+
+};
+
+NS_END;
diff --git a/Jusin154_Team3D/Editor/Public/Logo_Glow.h b/Jusin154_Team3D/Editor/Public/Logo_Glow.h
new file mode 100644
index 000000000..f1f9be88a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Logo_Glow.h
@@ -0,0 +1,46 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "UIObject.h"
+
+NS_BEGIN(Engine)
+
+NS_END
+
+NS_BEGIN(Editor)
+
+class CLogo_Glow final : public CUIObject
+{
+private:
+ CLogo_Glow(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CLogo_Glow(const CLogo_Glow& rhs);
+ virtual ~CLogo_Glow() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CLogo_Glow* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+
+};
+
+NS_END;
diff --git a/Jusin154_Team3D/Editor/Public/Logo_Text.h b/Jusin154_Team3D/Editor/Public/Logo_Text.h
new file mode 100644
index 000000000..a0eeae27c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Logo_Text.h
@@ -0,0 +1,45 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "UIObject.h"
+
+NS_BEGIN(Engine)
+
+NS_END
+
+NS_BEGIN(Editor)
+
+class CLogo_Text final : public CUIObject
+{
+private:
+ CLogo_Text(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CLogo_Text(const CLogo_Text& rhs);
+ virtual ~CLogo_Text() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CLogo_Text* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+
+};
+
+NS_END;
diff --git a/Jusin154_Team3D/Editor/Public/MainApp.h b/Jusin154_Team3D/Editor/Public/MainApp.h
index 1d8bc315b..53ed1cbb4 100644
--- a/Jusin154_Team3D/Editor/Public/MainApp.h
+++ b/Jusin154_Team3D/Editor/Public/MainApp.h
@@ -28,6 +28,7 @@ class CMainApp final : public CBase
ID3D11Device* m_pDevice = { nullptr };
ID3D11DeviceContext* m_pContext = { nullptr };
+
private:
HRESULT Ready_Default_Setting();
HRESULT Start_Level(LEVEL eLevelID);
diff --git a/Jusin154_Team3D/Editor/Public/Player.h b/Jusin154_Team3D/Editor/Public/Player.h
index d3aa41575..4e2592dbf 100644
--- a/Jusin154_Team3D/Editor/Public/Player.h
+++ b/Jusin154_Team3D/Editor/Public/Player.h
@@ -7,6 +7,15 @@ NS_BEGIN(Editor)
class CPlayer final : public CUnit
{
+public:
+ struct PendingEvent
+ {
+ _float fRatio = 0.f;
+ _uint AnimIndex = 0;
+ function Callback;
+ _bool bLoop = false;
+ };
+
private:
CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CPlayer(const CPlayer& Prototype);
diff --git a/Jusin154_Team3D/Editor/Public/UI_Manager.h b/Jusin154_Team3D/Editor/Public/UI_Manager.h
index dee3be174..2b8f5dba2 100644
--- a/Jusin154_Team3D/Editor/Public/UI_Manager.h
+++ b/Jusin154_Team3D/Editor/Public/UI_Manager.h
@@ -29,7 +29,6 @@ class CUI_Manager final : public CUIObject
private:
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
- //virtual HRESULT Ready_Panel(void* pArg) override;
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
@@ -51,6 +50,7 @@ class CUI_Manager final : public CUIObject
CGameObject* m_pGamePlay_Canves = { nullptr };
CGameObject* m_pSpell_Canvas = { nullptr };
+ CGameObject* m_pLoding_Canvas= { nullptr };
CGameObject* m_pMouse_Cursor = { nullptr };
CGameObject* m_pCamera_LockOn = { nullptr };
_bool m_bCanvas_Change = { false };
diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Constants.hlsli b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Constants.hlsli
index 372ecfae5..f46cc1fc0 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Constants.hlsli
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Constants.hlsli
@@ -40,8 +40,8 @@ static const float AI_TEXTURE_TYPE_MAYA_SPECULAR = 23.f / 27.f;
static const float AI_TEXTURE_TYPE_MAYA_SPECULAR_COLOR = 24.f / 27.f;
static const float AI_TEXTURE_TYPE_MAYA_SPECULAR_ROUGHNESS = 25.f / 27.f;
static const float AI_TEXTURE_TYPE_ANISOTROPY = 26.f / 27.f;
-static const float AI_TEXTURE_TYPE_GLTF_METALLIC_ROUGHNESS = 27.f / 27.f;
-
+static const uint AI_TEXTURE_TYPE_GLTF_METALLIC_ROUGHNESS = 1;
+static const uint AI_TEXTURE_TYPE_MAX = AI_TEXTURE_TYPE_GLTF_METALLIC_ROUGHNESS;
#endif // ENGINE_SHADER_CONSTANTS_HLSLI
diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
index 342f13cdc..e1180fbcb 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
@@ -151,11 +151,12 @@ float3 Fresnel_Schlick(float cosTheta, float3 F0)
PBR_LIGHT_OUT PBR_Lighting(
float3 vNormal, float3 vToView, float3 vToLight,
float3 vAlbedo, float fMetallic, float fRoughness,
- float3 vLightColor, float fAttenuation, float3 vFO
+ float3 vLightColor, float fLightIntensity, float fAttenuation, float3 vFO
) {
PBR_LIGHT_OUT Out;
Out.vShade = 0;
Out.vSpecular = 0;
+ float3 vLighting = vLightColor * fLightIntensity;
float3 vHalfVector = normalize(vToView + vToLight);
float NdotL = saturate(dot(vNormal, vToLight));
@@ -181,10 +182,11 @@ PBR_LIGHT_OUT PBR_Lighting(
float3 kS = F;
float3 kD = (1.f - kS) * (1.f -fMetallic);
- //Out.vShade = float(1.f, 1.f, 1. 1.f);
- Out.vShade = (kD / PI) * (NdotL * fAttenuation) * vLightColor;
+ float3 vDiffuseBRDF = (kD * vAlbedo) / PI;
- Out.vSpecular = specularBRDF * vLightColor * fAttenuation * NdotL;
+ Out.vShade = vDiffuseBRDF * vLighting * NdotL * fAttenuation;
+
+ Out.vSpecular = specularBRDF * vLighting * NdotL * fAttenuation;
return Out;
}
diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
index 4596440e3..f9ef153d5 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
@@ -28,6 +28,7 @@ float g_fSSAORadius;
float2 g_vSSAOTextureSize;
float g_fLightRange;
+float g_fLightIntensity;
float g_fSpotInnerAngle;
float g_fSpotOuterAngle;
@@ -245,6 +246,15 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
fRoughness = vSRO.g;
fOcclusion = vSRO.b;
}
+ else if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_ANISOTROPY))
+ {
+ fMetallic = 0.f;
+
+ float4 vSRXO = g_SurfaceTexture.Sample(DefaultSampler, uv);
+ vF0 = vSRXO.rrr;
+ fRoughness = vSRXO.g;
+ fOcclusion = vSRXO.a;
+ }
else // basic Lighting(phong blinn) // if you were here, you miss some assets.
{
Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fAmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
@@ -262,7 +272,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
}
- PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
+ PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, g_fLightIntensity, fAttenuation, vF0);
PBR_Out.vShade *= fTotalOcclusion;
float3 vAmbient = g_vLightAmbient.rgb * fTotalOcclusion * fAttenuation;
@@ -365,7 +375,7 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
vF0 = min(vF0, 0.9f); // 메탈릭 상한선
}
- PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
+ PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, g_fLightIntensity, fAttenuation, vF0);
PBR_Out.vShade *= fTotalOcclusion;
@@ -483,7 +493,7 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
vF0 = min(vF0, 0.9f); // 메탈릭 상한선
}
- PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
+ PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, g_fLightIntensity, fAttenuation, vF0);
PBR_Out.vShade *= fTotalOcclusion;
@@ -911,7 +921,12 @@ PS_OUT_SSAO_AMBIENT_OCCLUSION PS_SSAO_AMBIENT_OCCLUSION(PS_IN In)
float4 vDepthDesc = g_DepthTexture.Sample(PointSampler, uv);
float fCenterViewSpaceZ = vDepthDesc.y * g_fFar; // n ~ f
-
+ float fRatio = lerp(0.f, 1.f, (g_fFar - fCenterViewSpaceZ) / g_fFar);
+ if (fRatio <= 0.f)
+ {
+ Out.fOcclusion = 1.f;
+ return Out;
+ }
float4 vCenterViewPosition;
{
vCenterViewPosition.x = uv.x * 2.f - 1.f;
@@ -956,8 +971,8 @@ PS_OUT_SSAO_AMBIENT_OCCLUSION PS_SSAO_AMBIENT_OCCLUSION(PS_IN In)
fIsOccluded *= fRangeCheck;
fOcclusion += fIsOccluded;
}
- fOcclusion = (1.f - (fOcclusion / g_iKernelSize));
- Out.fOcclusion = fOcclusion;
+ fOcclusion = (1.f - (fOcclusion / g_iKernelSize) * fRatio);
+ Out.fOcclusion = fOcclusion ;
return Out;
}
diff --git a/Jusin154_Team3D/Engine/Default/Engine.vcxproj b/Jusin154_Team3D/Engine/Default/Engine.vcxproj
index b87aad2df..a17f9ac2f 100644
--- a/Jusin154_Team3D/Engine/Default/Engine.vcxproj
+++ b/Jusin154_Team3D/Engine/Default/Engine.vcxproj
@@ -300,7 +300,9 @@ call Update_Lib.bat
+
+
@@ -550,7 +552,9 @@ call Update_Lib.bat
+
+
diff --git a/Jusin154_Team3D/Engine/Default/Engine.vcxproj.filters b/Jusin154_Team3D/Engine/Default/Engine.vcxproj.filters
index 0f0ec0991..f48a68822 100644
--- a/Jusin154_Team3D/Engine/Default/Engine.vcxproj.filters
+++ b/Jusin154_Team3D/Engine/Default/Engine.vcxproj.filters
@@ -217,9 +217,6 @@
{fda41884-634b-4dd4-8bd2-f6f7ad68ab1f}
-
- {7c82051e-19af-4284-8156-16f504db30b6}
-
{8727e975-e9e2-4b59-9a52-27ad3ad79f2f}
@@ -295,6 +292,15 @@
{685d2cc6-b29a-4018-b72f-d66a2807463d}
+
+ {7c82051e-19af-4284-8156-16f504db30b6}
+
+
+ {ea9648d8-6a9a-41d2-8b8f-ea6937017372}
+
+
+ {b31a93a4-8bba-4e94-8008-bbb9b458a55e}
+
@@ -564,6 +570,12 @@
03.Management\02.Resource_Manager
+
+ 02.Element\02.Component\12.Stat
+
+
+ 02.Element\02.Component\12.Stat\Event
+
@@ -1199,6 +1211,12 @@
03.Management\02.Resource_Manager
+
+ 02.Element\02.Component\12.Stat
+
+
+ 02.Element\02.Component\12.Stat\Event
+
diff --git a/Jusin154_Team3D/Engine/Private/Camera.cpp b/Jusin154_Team3D/Engine/Private/Camera.cpp
index e18b56af4..919e52fdd 100644
--- a/Jusin154_Team3D/Engine/Private/Camera.cpp
+++ b/Jusin154_Team3D/Engine/Private/Camera.cpp
@@ -210,6 +210,11 @@ void CCamera::Set_Fov(_float fFovy, _float fTimeDelta,_bool& bZoomIn)
}
}
+_float CCamera::Get_Fov()
+{
+ return m_fFovy;
+}
+
void CCamera::Free()
{
__super::Free();
diff --git a/Jusin154_Team3D/Engine/Private/Camera_Manager.cpp b/Jusin154_Team3D/Engine/Private/Camera_Manager.cpp
index 37bec7d49..77fd7a9e3 100644
--- a/Jusin154_Team3D/Engine/Private/Camera_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/Camera_Manager.cpp
@@ -71,6 +71,11 @@ _vector CCamera_Manager::Get_CameraLook()
return m_pCurrentMainCamera->Get_Component()->Get_State(STATE::LOOK);
}
+_float CCamera_Manager::Get_CameraFov()
+{
+ return m_pCurrentMainCamera->Get_Fov();
+}
+
void CCamera_Manager::Force_CamPosition(_fvector vPos)
{
if (nullptr == m_pCurrentMainCamera)
diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
index ca42b0b3f..88f0c4a39 100644
--- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
+++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
@@ -141,7 +141,7 @@ _float3 CCharacter_Controller::Get_Volume()
}
HRESULT CCharacter_Controller::ConvertToDO(CRigidBody_Dynamic& BodyOriginal)
-{
+{
PSX::PxRigidDynamic* pDOActor = BodyOriginal.Get_Actor();
PSX::PxRigidDynamic* pCCTActor = m_pController->getActor();
@@ -150,7 +150,7 @@ HRESULT CCharacter_Controller::ConvertToDO(CRigidBody_Dynamic& BodyOriginal)
m_pGameInstance->Attach_Actor(*pDOActor); // DO 액터 활성화
- PSX::PxTransform pxTransform = pCCTActor->getGlobalPose();
+ PSX::PxTransform pxTransform = pCCTActor->getGlobalPose();
pDOActor->setGlobalPose(pxTransform);
return S_OK;
@@ -177,76 +177,72 @@ void CCharacter_Controller::Rewind_Grounded()
m_iIsOnGround = 0;
}
}
-
_bool CCharacter_Controller::UpdateGroundByCast(_float fTimeDelta)
{
- _vector vFoot = Get_FootPosition();
- _float3 fFoot;
- XMStoreFloat3(&fFoot, vFoot);
- fFoot.y += 0.0625f;
+ _vector vCharacterPos = Get_Position();
- PSX::PxSweepBuffer pxBuffer = {};
+ PSX::PxSweepBuffer sweepHitBuffer = {};
+ _float3 vVolume = Get_Volume();
- m_pController->getFootPosition();
- _bool bHit = { false };
+ _float fVolumeRadius = vVolume.x;
+ _float fCastingDistance = vVolume.y * 2.f;
- bHit = m_pGameInstance->SphereCast(0.0625f, fFoot, { 0.f, -1.f, 0.f }, 0.0625f, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, pxBuffer);
+ _vector vDownVector = { 0.f, -1.f, 0.f, 0.f };
+ _vector vUpVector = { 0.f, 1.f, 0.f, 0.f };
- if (true == bHit) { // 쿼리해서 스태틱 중에 터레인 액터들이 맞으면 다시 갱신
- const PSX::PxSweepHit& hit = pxBuffer.block;
-
- PSX::PxRigidActor* pActor = hit.actor;
- PSX::PxShape* pShape = hit.shape;
+ _bool bHit =
+ m_pGameInstance->SphereCast( fVolumeRadius, vCharacterPos, vDownVector, fCastingDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, sweepHitBuffer );
- if (nullptr != pActor && nullptr != pActor->userData)
- {
- PhsXUserData* pUserData = static_cast(pActor->userData);
+ if (bHit == false) {
+ return false;
+ }
- switch (pUserData->eKind)
- {
- case PHYSX_KIND::BODY_STATIC:
- {
- switch (PXOBJECT(pUserData->iSubKind))
- {
- case PXOBJECT::TERRAIN:
- case PXOBJECT::FLOOR:
- case PXOBJECT::ROAD:
- { // 임계값 이상이면 지면에 서서히 붙임
- m_iIsOnGround = iCoyote_Counter;
+ _float fMaximumSlopeRadan = XMConvertToRadians(m_fWalkableSlopeDegree);
+ _float fMinCosSlope = cosf(fMaximumSlopeRadan);
+ _vector vFootPos = Get_FootPosition();
- //_float fYHitPos = hit.position.y;
- //_float fYFoot = (_float)m_pController->getFootPosition().y;
- //_float fDiff = (fYHitPos - fYFoot);
- //if (fDiff > m_vAccHeight.w) {
- // _vector vMomentum = m_pTransform->Get_CurrentMomentum();
- // _float fYCurrentMomentum = XMVectorGetY(vMomentum);
- // fYCurrentMomentum = fDiff * 0.3f;
- // m_pTransform->Set_CurrentMomentum(XMVectorSetY(vMomentum, fYCurrentMomentum));
- //}
- //else {
- // m_iIsOnGround = iCoyote_Counter;
- //}
- }
- break;
- default:
- break;
- }
- } break;
- case PHYSX_KIND::BODY_DYNAMIC:
- break;
- case PHYSX_KIND::CCTActor:
- case PHYSX_KIND::OBSTACLEActor:
- break;
- default:
- break;
- }
+ auto& sweepHit = sweepHitBuffer.block;
+
+ PSX::PxRigidActor* hitActor = sweepHit.actor;
+
+ PhsXUserData* hitUserData = static_cast(hitActor->userData);
+
+ switch (PXOBJECT(hitUserData->iSubKind))
+ {
+ case PXOBJECT::TERRAIN:
+ case PXOBJECT::FLOOR:
+ case PXOBJECT::ROAD:
+ {
+ _vector vSurfaceNormal = XMVector3Normalize({ sweepHit.normal.x, sweepHit.normal.y, sweepHit.normal.z, 0.f });
+
+ _float fDotUp = XMVectorGetX(XMVector3Dot(vSurfaceNormal, vUpVector));
+
+ if (fDotUp < fMinCosSlope) {
+ break;
}
+
+ _vector vHitPos = { sweepHit.position.x, sweepHit.position.y, sweepHit.position.z, 0.f };
+ _vector vFootToHitPos = vFootPos - vHitPos;
+
+ _float fDistanceFromGround = XMVectorGetX(XMVector3Dot(vFootToHitPos, vSurfaceNormal));
+ _float fDotUpNormal = (fabsf(fDotUp) < FLT_EPSILON) ? FLT_EPSILON: fDotUp;
+ _float fCurrentMomentumY = (-fDistanceFromGround / fDotUpNormal) * 0.3f;
+ _vector vCurrentMomentum = m_pTransform->Get_CurrentMomentum();
+
+ m_pTransform->Set_CurrentMomentum( XMVectorSetY(vCurrentMomentum, fCurrentMomentumY) );
+ m_iIsOnGround = iCoyote_Counter;
+ }
+ break;
+ default:
+ break;
}
return bHit;
}
+
+
void CCharacter_Controller::Move(_float fTimeDelta)
{
PSX::PxVec3 pxVecMomentum = {}; // 순간 이동량
@@ -261,14 +257,13 @@ void CCharacter_Controller::Move(_float fTimeDelta)
UpdateGroundByCast(fTimeDelta); // 바닥에 플레이어 붙이게 함
}
else if (m_fCurrentSlopeDegree > m_fWalkableSlopeDegree) { // 너무 가파른 경사: 중력
- //m_pTransform->AccumulateMomentum(XMVectorSet(0.f, -GRAVITY * fTimeDelta, 0.f, 0.f));
+ m_pTransform->AccumulateMomentum(XMVectorSet(0.f, -GRAVITY * fTimeDelta, 0.f, 0.f));
}
else {
// 아니면 안함
}
}
XMStoreFloat3((_float3*)&pxVecMomentum, m_pTransform->Get_CurrentMomentum());
-
m_eBeforeCollisionFlags = m_pController->move(pxVecMomentum, fMinimumDistant, fTimeDelta, pxFilter, pPxObstacles);
}
@@ -443,7 +438,7 @@ void CCharacter_Controller::Describe_Entity()
_float3 vVolume = Get_Volume();
_float fStepOffset = m_pController->getStepOffset();
- GUI::Text("eBodyType $d", (_uint)m_eBodyType); GUIHelpMarker("Body: only box and capsule available");
+ GUI::Text("eBodyType $d", (_uint)m_eBodyType); GUIHelpMarker("Body: only box and capsule available");
if (GUI::SliderFloat3("UpDirection", (_float*)&vUpDirection, -1.f, 1.f)) {
m_pController->setUpDirection(vUpDirection.getNormalized());
diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp
index 656f9d896..7be6cc17a 100644
--- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp
+++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp
@@ -128,6 +128,7 @@ void CGameInstance::Update_Engine(_float fTimeDelta)
m_pMouse_Manager->Update();
//m_pSound_Manager->Update();
#ifdef _DEBUG
+ m_pResource_Manager->Describe_Entity();
m_pFog->Update_Fog();
#endif // _DEBUG
m_pPicking->Update();
@@ -640,6 +641,10 @@ _vector CGameInstance::Get_CameraLook()
{
return m_pCamera_Manager->Get_CameraLook();
}
+_float CGameInstance::Get_CameraFov()
+{
+ return m_pCamera_Manager->Get_CameraFov();
+}
const _float* CGameInstance::Get_CurrentCameraFar()
{
return m_pCamera_Manager->Get_CurrentCameraFar();
@@ -736,6 +741,14 @@ _bool CGameInstance::SphereCast(_float fRadius, _fvector vStartPos, _fvector vDi
{
return m_pPhysX_Manager->SphereCast(fRadius, vStartPos, vDir, fDistance, flagHitsData, flagQuery, hitBuffer);
}
+_bool CGameInstance::RayCast(_float3 _vStartPos, _float3 _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount)
+{
+ return m_pPhysX_Manager->RayCast(_vStartPos, _vDir, fDistance, pRayHitArray, iMaxHitCapacity, iOutHitCount);
+}
+_bool CGameInstance::RayCast(_fvector _vStartPos, _fvector _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount)
+{
+ return m_pPhysX_Manager->RayCast(_vStartPos, _vDir, fDistance, pRayHitArray, iMaxHitCapacity, iOutHitCount);
+}
PSX::PxController* CGameInstance::Add_CapsuleController(PSX::PxCapsuleControllerDesc& Desc)
{
return m_pPhysX_Manager->Add_CapsuleController(Desc);
diff --git a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
index 17b8165fe..bfd7916d1 100644
--- a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
@@ -123,7 +123,7 @@ HRESULT CInstance_Model::Assimp_Model_Load(const _char* pModelFilePath, MODEL eT
_uint iFlag = {};
iFlag = aiProcess_ConvertToLeftHanded | aiProcessPreset_TargetRealtime_Fast;
- if (MODEL::NONANIM == eType || MODEL::ENVIROMENT == eType) {
+ if (MODEL::NONANIM == eType || MODEL::PBR_NONANIM == eType || MODEL::ENVIROMENT == eType) {
iFlag |= aiProcess_PreTransformVertices;
}
m_iRootBoneIndex = iRootBoneIndex;
diff --git a/Jusin154_Team3D/Engine/Private/Light.cpp b/Jusin154_Team3D/Engine/Private/Light.cpp
index 0cbff2a61..5b61aa769 100644
--- a/Jusin154_Team3D/Engine/Private/Light.cpp
+++ b/Jusin154_Team3D/Engine/Private/Light.cpp
@@ -138,6 +138,9 @@ HRESULT CLight::Render(CShader* pShader, CVIBuffer* pVIBuffer) const
return E_FAIL;
}
+ if (FAILED(pShader->Bind_RawValue("g_fLightIntensity", &m_fLightIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
if (FAILED(pShader->Begin(iPassIndex))) {
return E_FAIL;
}
@@ -198,7 +201,7 @@ void CLight::Describe_Entity()
- GUI::DragFloat4("Diffuse", reinterpret_cast(&m_LightDesc.vDiffuse) , 0.01f , 0.f ,1.f);
+ GUI::ColorEdit4("Diffuse", (_float*)&m_LightDesc.vDiffuse);
GUI::DragFloat4("Ambient", reinterpret_cast(&m_LightDesc.vAmbient), 0.01f, 0.f, 1.f);
GUI::DragFloat4("Specular", reinterpret_cast(&m_LightDesc.vSpecular), 0.01f, 0.f, 1.f);
GUI::DragFloat("Range", &m_LightDesc.fRange, 1.f, 0.f);
diff --git a/Jusin154_Team3D/Engine/Private/Material.cpp b/Jusin154_Team3D/Engine/Private/Material.cpp
index a07fd6f60..22a4b781e 100644
--- a/Jusin154_Team3D/Engine/Private/Material.cpp
+++ b/Jusin154_Team3D/Engine/Private/Material.cpp
@@ -90,6 +90,65 @@ HRESULT CMaterial::Initialize(const _char* pModelFilePath, const aiMaterial* pAI
return S_OK;
}
+HRESULT CMaterial::Initialize(const _char* pModelFilePath, MODEL eType, const aiMaterial* pAIMaterial)
+{
+ ID3D11ShaderResourceView* pSRV = { nullptr };
+
+ filesystem::path xmlFilePath = pModelFilePath;
+ xmlFilePath.replace_extension(".xml");
+
+ tinyxml2::XMLDocument xmldoc;
+ if ((tinyxml2::XML_SUCCESS != xmldoc.LoadFile(xmlFilePath.string().c_str()))) {
+ return E_FAIL;
+ }
+
+ tinyxml2::XMLElement* pRoot = xmldoc.FirstChildElement("Material");
+ if (pRoot == nullptr){
+ return E_FAIL;
+ }
+
+ aiString aistrName = pAIMaterial->GetName();
+ string xmlMaterialName = aistrName.C_Str();
+
+ tinyxml2::XMLElement* pElement = pRoot->FirstChildElement(xmlMaterialName.c_str());
+
+ if (pElement == nullptr){
+ return E_FAIL;
+ }
+
+ filesystem::path pathFolder = xmlFilePath.parent_path();
+
+ for (tinyxml2::XMLElement* typeElement = pElement->FirstChildElement();
+ typeElement != nullptr;
+ typeElement = typeElement->NextSiblingElement())
+ {
+ _int typeIndex = typeElement->IntAttribute("Index", -1);
+ if (typeIndex < 0){
+ continue;
+ }
+
+ const _char* pFileNameAtt = typeElement->Attribute("Filename");
+ const _char* pExtensionAtt = typeElement->Attribute("Extension");
+
+ if (pFileNameAtt == nullptr || pFileNameAtt[0] == '\0'
+ || pExtensionAtt == nullptr || pExtensionAtt[0] == '\0') {
+ continue;
+ }
+
+ filesystem::path pathResourceFile = pathFolder / pFileNameAtt;
+ pathResourceFile.replace_extension(pExtensionAtt);
+
+ pSRV = m_pGameInstance->Add_Resource(pathResourceFile.string().c_str());
+ if (nullptr == pSRV){
+ return E_FAIL;
+ }
+
+ m_SRVs[typeIndex].push_back(pSRV);
+ m_SaveMaterial.Path[typeIndex].push_back(pathResourceFile.string());
+ }
+
+ return S_OK;
+}
HRESULT CMaterial::Initialize(const _char* pMaterialFilePath, const _char* pTextureFilePath)
{
_char szTextureFilePath[MAX_PATH] = {};
@@ -310,6 +369,9 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
else if (!strcmp(FileType.c_str(), "SRXO")) {
eTexture = aiTextureType::aiTextureType_SPECULAR;
}
+ else if (!strcmp(FileType.c_str(), "A")) {
+ eTexture = aiTextureType::aiTextureType_AMBIENT;
+ }
else
{
#ifndef 기무리
@@ -371,6 +433,19 @@ CMaterial* CMaterial::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex
return pInstance;
}
+CMaterial* CMaterial::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, const _char* pModelFilePath, const aiMaterial* pAIMaterial)
+{
+ CMaterial* pInstance = new CMaterial(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize(pModelFilePath, eType, pAIMaterial)))
+ {
+ MSG_BOX("Failed to Created : CMaterial");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
CMaterial* CMaterial::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pMaterialFilePath, const _char* pTextureFilePath)
{
CMaterial* pInstance = new CMaterial(pDevice, pContext);
@@ -392,7 +467,6 @@ HRESULT CMaterial::Bind_SRV(CShader* pShader)
// return S_OK;
//}
- const _char* pConstantName = "";
_float fZero = 0.f;
if (FAILED(pShader->Bind_RawValue("g_fUsingSurfaceParams", &fZero, sizeof(_float)))) {
return E_FAIL;
@@ -400,89 +474,108 @@ HRESULT CMaterial::Bind_SRV(CShader* pShader)
if (FAILED(pShader->Bind_SRV("g_SurfaceParamsTexture", nullptr))) {
return E_FAIL;
}
-
+ _bool bBinded[AI_TEXTURE_TYPE_MAX] = {};
for (_uint iTextureType = 0; iTextureType < AI_TEXTURE_TYPE_MAX; ++iTextureType) {
+ const _char* pConstantName = "";
+ bBinded[iTextureType] = true;
if (m_SRVs[iTextureType].empty()) {
- continue;
+ bBinded[iTextureType] = false;
}
- switch (aiTextureType(iTextureType))
- {
- case aiTextureType_NONE:
- break;
- case aiTextureType_DIFFUSE:
- pConstantName = "g_DiffuseTexture";
- break;
- case aiTextureType_SPECULAR:
- {
- _float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX);
- pConstantName = "g_SurfaceParamsTexture";
- pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float));
+ else {
+ switch (aiTextureType(iTextureType))
+ {
+ case aiTextureType_NONE:
+ break;
+ case aiTextureType_DIFFUSE:
+ pConstantName = "g_DiffuseTexture";
+ break;
+ case aiTextureType_SPECULAR:
+ {
+ _float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX);
+ pConstantName = "g_SurfaceParamsTexture";
+ if (!m_SRVs[iTextureType].empty()) {
+ pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float));
+ }
+ } break;
+ case aiTextureType_AMBIENT:
+ break;
+ case aiTextureType_EMISSIVE:
+ pConstantName = "g_EmissiveTexture";
+ break;
+ case aiTextureType_HEIGHT:
+ break;
+ case aiTextureType_NORMALS:
+ pConstantName = "g_NormalTexture";
+ break;
+ case aiTextureType_SHININESS:
+ break;
+ case aiTextureType_OPACITY:
+ break;
+ case aiTextureType_DISPLACEMENT:
+ break;
+ case aiTextureType_LIGHTMAP:
+ break;
+ case aiTextureType_REFLECTION:
+ break;
+ case aiTextureType_BASE_COLOR:
+ break;
+ case aiTextureType_NORMAL_CAMERA:
+ break;
+ case aiTextureType_EMISSION_COLOR:
+ break;
+ case aiTextureType_METALNESS:
+ {
+ _float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX);
+ pConstantName = "g_SurfaceParamsTexture";
+ if (!m_SRVs[iTextureType].empty()) {
+ pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float));
+ }
+ } break;
+ case aiTextureType_DIFFUSE_ROUGHNESS:
+ break;
+ case aiTextureType_AMBIENT_OCCLUSION:
+ break;
+ case aiTextureType_UNKNOWN:
+ break;
+ case aiTextureType_SHEEN:
+ break;
+ case aiTextureType_CLEARCOAT:
+ break;
+ case aiTextureType_TRANSMISSION:
+ pConstantName = "g_TransmissionTexture";
+ break;
+ case aiTextureType_MAYA_BASE:
+ break;
+ case aiTextureType_MAYA_SPECULAR:
+ break;
+ case aiTextureType_MAYA_SPECULAR_COLOR:
+ break;
+ case aiTextureType_MAYA_SPECULAR_ROUGHNESS:
+ break;
+ case aiTextureType_ANISOTROPY:
+ {
+ _float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX);
+ pConstantName = "g_SurfaceParamsTexture";
+ if (!m_SRVs[iTextureType].empty()) {
+ pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float));
+ }
+ } break;
+ case _aiTextureType_Force32Bit:
+ break;
+ default:
+ break;
+ }
}
- break;
- case aiTextureType_AMBIENT:
- break;
- case aiTextureType_EMISSIVE:
- break;
- case aiTextureType_HEIGHT:
- break;
- case aiTextureType_NORMALS:
- pConstantName = "g_NormalTexture";
- break;
- case aiTextureType_SHININESS:
- break;
- case aiTextureType_OPACITY:
- break;
- case aiTextureType_DISPLACEMENT:
- break;
- case aiTextureType_LIGHTMAP:
- break;
- case aiTextureType_REFLECTION:
- break;
- case aiTextureType_BASE_COLOR:
- break;
- case aiTextureType_NORMAL_CAMERA:
- break;
- case aiTextureType_EMISSION_COLOR:
- break;
- case aiTextureType_METALNESS:
- {
- _float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX);
- pConstantName = "g_SurfaceParamsTexture";
- pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float));
+ if (true == bBinded[iTextureType]) {
+ if (FAILED(pShader->Bind_SRV(pConstantName, m_SRVs[iTextureType][0]))) {
+ return S_OK;
+ }
}
- break;
- case aiTextureType_DIFFUSE_ROUGHNESS:
- break;
- case aiTextureType_AMBIENT_OCCLUSION:
- break;
- case aiTextureType_UNKNOWN:
- break;
- case aiTextureType_SHEEN:
- break;
- case aiTextureType_CLEARCOAT:
- break;
- case aiTextureType_TRANSMISSION:
- break;
- case aiTextureType_MAYA_BASE:
- break;
- case aiTextureType_MAYA_SPECULAR:
- break;
- case aiTextureType_MAYA_SPECULAR_COLOR:
- break;
- case aiTextureType_MAYA_SPECULAR_ROUGHNESS:
- break;
- case aiTextureType_ANISOTROPY:
- break;
- case aiTextureType_GLTF_METALLIC_ROUGHNESS:
- break;
- case _aiTextureType_Force32Bit:
- break;
- default:
- break;
- }
-
- pShader->Bind_SRV(pConstantName, m_SRVs[iTextureType][0]);
}
+ if (FAILED(pShader->Bind_RawValue("g_bBinded_Texture", &bBinded, sizeof(bBinded)))) {
+ return E_FAIL;
+ }
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Engine/Private/Mesh.cpp b/Jusin154_Team3D/Engine/Private/Mesh.cpp
index 3b4264904..03fa9df24 100644
--- a/Jusin154_Team3D/Engine/Private/Mesh.cpp
+++ b/Jusin154_Team3D/Engine/Private/Mesh.cpp
@@ -72,10 +72,25 @@ HRESULT CMesh::Initialize_Prototype(MODEL eType, vector& Bones, co
#pragma region VERTEX_BUFFER
- HRESULT hr = (eType == MODEL::NONANIM) ?
- Ready_VertexBuffer_For_NonAnim(pAIMesh, PreTransformMatrix) :
- Ready_VertexBuffer_For_Anim(Bones, pAIMesh);
-
+ HRESULT hr = {};
+ switch (eType)
+ {
+ case Engine::MODEL::NONANIM:
+ case Engine::MODEL::PBR_NONANIM:
+ hr = Ready_VertexBuffer_For_NonAnim(pAIMesh, PreTransformMatrix);
+ break;
+ case Engine::MODEL::ANIM:
+ case Engine::MODEL::PBR_ANIM:
+ hr = Ready_VertexBuffer_For_Anim(Bones, pAIMesh);
+ break;
+ case Engine::MODEL::ENVIROMENT:
+ break;
+ default:
+ break;
+ }
+ if (FAILED(hr)) {
+ return E_FAIL;
+ }
#pragma endregion
#pragma region INDEX_BUFFER
@@ -170,7 +185,7 @@ HRESULT CMesh::Initialize_Prototype(MODEL eType, const CModel* pModel, SaveMesh*
m_Vertices.clear();
m_Vertices.reserve(_SaveMesh->Vertices.size());
- XMMATRIX matPre = PreTransformMatrix;
+ _matrix matPre = PreTransformMatrix;
for (size_t i = 0; i < _SaveMesh->Vertices.size(); ++i)
{
@@ -183,13 +198,30 @@ HRESULT CMesh::Initialize_Prototype(MODEL eType, const CModel* pModel, SaveMesh*
}
#pragma region VERTEX_BUFFER
-
- HRESULT hr = MODEL::NONANIM == eType ?
- Ready_VertexBuffer_For_NonAnim(_SaveMesh, PreTransformMatrix) :
- Ready_VertexBuffer_For_Anim(pModel, _SaveMesh);
-
- if (FAILED(hr))
+ HRESULT hr = {};
+ switch (eType)
+ {
+ case Engine::MODEL::NONANIM:
+ case Engine::MODEL::PBR_NONANIM:
+ hr = Ready_VertexBuffer_For_NonAnim(_SaveMesh, PreTransformMatrix);
+ break;
+ case Engine::MODEL::ANIM:
+ case Engine::MODEL::PBR_ANIM:
+ hr = Ready_VertexBuffer_For_Anim(pModel, _SaveMesh);
+ break;
+ case Engine::MODEL::ENVIROMENT:
+ m_pVertexPositions = new _float3[m_iNumVertices];
+ for (size_t i = 0; i < m_iNumVertices; ++i)
+ {
+ memcpy_s(m_pVertexPositions, sizeof(_float3) * m_iNumVertices, m_Vertices.data(), sizeof(_float3) * m_iNumVertices);
+ }
+ break;
+ default:
+ break;
+ }
+ if (FAILED(hr)){
return E_FAIL;
+ }
#pragma endregion
@@ -239,6 +271,7 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr
for (_uint i = 0; i < m_iNumVertices; ++i)
{
memcpy(&pVertices[i].vPosition, &SaveMesh->Vertices[i].Pos, sizeof(_float3));
+ memcpy(&m_pVertexPositions[i], &SaveMesh->Vertices[i].Pos, sizeof(_float3));
XMStoreFloat3(&pVertices[i].vPosition,
XMVector3TransformCoord(XMLoadFloat3(&pVertices[i].vPosition), PreTransformMatrix));
@@ -399,9 +432,9 @@ PSX::PxTriangleMesh* CMesh::ConvertToPxMesh(const PSX::PxCookingParams* pParam,
tMeshDesc.points.stride = sizeof(PSX::PxVec3);
Vertices.resize(m_iNumVertices);
XMVector3TransformCoordStream(
- reinterpret_cast(Vertices.data()), // dest
+ reinterpret_cast<_float3*>(Vertices.data()), // dest
sizeof(PSX::PxVec3),
- reinterpret_cast(m_pVertexPositions), // src
+ reinterpret_cast(m_pVertexPositions), // src
sizeof(PSX::PxVec3),
m_iNumVertices,
WorldMatrix
diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp
index ff7c621c6..401288758 100644
--- a/Jusin154_Team3D/Engine/Private/Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Model.cpp
@@ -105,11 +105,13 @@ HRESULT CModel::Bind_BoneMatrices(_uint iMeshIndex, CShader* pShader, const _cha
_bool CModel::Play_Animation(_float fTimeDelta, CTransform* pTransform)
{
- if (!m_bPlayAnim)
+ if (!m_bPlayAnim){
return false;
+ }
- if (m_iCurrentAnimIndex < 0 || m_iCurrentAnimIndex >= (_int)m_iNumAnimations)
+ if (m_iCurrentAnimIndex < 0 || m_iCurrentAnimIndex >= (_int)m_iNumAnimations){
return false;
+ }
if (m_iCurrSecondAnimIndex >= 0) {
Play_Dual_Anim(fTimeDelta, pTransform);
@@ -267,6 +269,18 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform)
}
}
+ if (m_bIsFinishedAnim)
+ {
+ if (m_bIsLoop)
+ {
+ m_bLoopRestarted = true;
+ m_vPrevRootPos = { 0,0,0 };
+ }
+ else {
+ XMStoreFloat3(&m_vPrevRootPos, m_vector[2]);
+ }
+ }
+
if (m_bRatio) {
Update_RootBone(m_fAmount * m_fRatio);
}
@@ -277,14 +291,6 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform)
if (m_bIsFinishedAnim)
{
- if (m_bIsLoop)
- {
- m_bLoopRestarted = true;
- }
- else{
- //XMStoreFloat3(&m_vPrevRootPos, m_vector[2]);
- }
-
m_vPrevRootRot = { 0.f,0.f,0.f,0.f };
m_bInitialRootRotSaved = false;
}
@@ -733,6 +739,90 @@ HRESULT CModel::Ready_Materials_FromFile(const aiScene* pAIScene, const _char* p
return S_OK;
}
+HRESULT CModel::Ready_Materials_FromFile_Anim(const aiScene* pAIScene, const _char* pModelFilePath)
+{
+ m_iNumMaterials = pAIScene->mNumMaterials;
+ m_Materials.reserve(m_iNumMaterials);
+
+ _char szDrive[MAX_PATH] = {};
+ _char szDir[MAX_PATH] = {};
+ _char szFileName[MAX_PATH] = {};
+ _char szMeshFilePath[MAX_PATH] = {};
+ vector<_string> MaterialFilePathes;
+ string strFolderPath = pModelFilePath;
+
+ size_t iFolderPos = strFolderPath.find("MeshTable");
+
+ strFolderPath = strFolderPath.substr(0, iFolderPos) + "MeshTable/";
+
+ _splitpath_s(pModelFilePath, szDrive, MAX_PATH, szDir, MAX_PATH, szFileName, MAX_PATH, nullptr, 0);
+
+ strcpy_s(szMeshFilePath, szDrive);
+ strcat_s(szMeshFilePath, szDir);
+ strcat_s(szMeshFilePath, szFileName);
+ strcat_s(szMeshFilePath, ".props.txt");
+
+ ifstream file(szMeshFilePath);
+
+ if (!file.is_open())
+ {
+ return S_OK;
+ }
+
+ string strText = {};
+ _uint iNumParameter = {};
+
+ getline(file, strText);
+ getline(file, strText);
+
+ for (_uint i = 0; i < m_iNumMaterials; ++i)
+ {
+ getline(file, strText);
+
+ _int iBeginIndex = (_int)strText.find_first_of("/");
+ _int iEndIndex = (_int)strText.find('.');
+ if (-1 == iBeginIndex || -1 == iEndIndex) {
+
+ MSG_BOX("Fail Path _ NotExist");
+ return E_FAIL;
+ }
+ if ((_int)strText.size() < iEndIndex - iBeginIndex)
+ {
+ MSG_BOX("Fail Path");
+ return E_FAIL;
+ }
+
+ string strPath = strFolderPath + strText.substr(iBeginIndex + 1, iEndIndex - iBeginIndex - 1);
+ MaterialFilePathes.push_back(strPath);
+ }
+
+ for (size_t i = 0; i < m_iNumMaterials; ++i) {
+ CMaterial* pMaterial = CMaterial::Create(m_pDevice, m_pContext, MaterialFilePathes[i].c_str(), strFolderPath.c_str());
+ if (nullptr == pMaterial) {
+ return E_FAIL;
+ }
+ m_Materials.push_back(pMaterial);
+ }
+ m_Materials.shrink_to_fit();
+
+ return S_OK;
+}
+
+HRESULT CModel::Ready_Materials_Independent(MODEL eType, const aiScene* pAIScene, const _char* pModelFilePath)
+{
+ m_iNumMaterials = pAIScene->mNumMaterials;
+ m_Materials.reserve(m_iNumMaterials);
+ for (size_t i = 0; i < m_iNumMaterials; ++i) {
+ CMaterial* pMaterial = CMaterial::Create(m_pDevice, m_pContext, eType, pModelFilePath, pAIScene->mMaterials[i]);
+ if (nullptr == pMaterial) {
+ return E_FAIL;
+ }
+ m_Materials.push_back(pMaterial);
+ }
+ m_Materials.shrink_to_fit();
+ return S_OK;
+}
+
HRESULT CModel::Ready_Animations(const aiScene* pAIScene)
{
m_iNumAnimations = pAIScene->mNumAnimations;
@@ -1080,14 +1170,15 @@ HRESULT CModel::Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fma
_uint iFlag = {};
iFlag = aiProcess_ConvertToLeftHanded | aiProcessPreset_TargetRealtime_Fast;
- if (MODEL::NONANIM == eType || MODEL::ENVIROMENT == eType) {
+ if (MODEL::NONANIM == eType || MODEL::PBR_NONANIM == eType || MODEL::ENVIROMENT == eType) {
iFlag |= aiProcess_PreTransformVertices;
}
m_iRootBoneIndex = iRootBoneIndex;
m_pAIScene = m_Importer.ReadFile(pModelFilePath, iFlag);
- if (nullptr == m_pAIScene)
+ if (nullptr == m_pAIScene){
return E_FAIL;
+ }
#pragma region Bone
@@ -1107,8 +1198,17 @@ HRESULT CModel::Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fma
return E_FAIL;
}
}
- else
+ else if (MODEL::ANIM_LOCAL == eType)
{
+ if (FAILED(Ready_Materials_FromFile_Anim(m_pAIScene, pModelFilePath))) {
+ return E_FAIL;
+ }
+ }
+ else if (MODEL::PBR_NONANIM == eType || MODEL::PBR_ANIM == eType) {
+ if (FAILED(Ready_Materials_Independent(eType, m_pAIScene, pModelFilePath))) {
+ return E_FAIL;
+ }
+ } else {
if (FAILED(Ready_Materials(m_pAIScene, pModelFilePath))) {
return E_FAIL;
}
@@ -1713,7 +1813,7 @@ HRESULT CModel::Initialize(void* pArg)
SAFE_ADDREF(m_pTransform);
- if (m_eType == MODEL::ANIM)
+ if (m_eType == MODEL::ANIM || m_eType == MODEL::PBR_ANIM || m_eType == MODEL::ANIM_LOCAL)
{
Initialize_RootBone();
InItialize_BoneIndex();
diff --git a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
index 51fb0212e..51e382f81 100644
--- a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
@@ -192,6 +192,48 @@ _bool CPhysX_Manager::SphereCast(_float fRadius, _fvector _vStartPos, _fvector _
return bHit;
}
+_bool CPhysX_Manager::RayCast(_float3 _vStartPos, _float3 _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount)
+{
+ return RayCast(XMLoadFloat3(&_vStartPos), XMLoadFloat3(&_vDir), fDistance, pRayHitArray, iMaxHitCapacity, iOutHitCount);
+}
+
+bool CPhysX_Manager::RayCast(_fvector _vStartPos, _fvector _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount )
+{
+ iOutHitCount = 0;
+
+ if (pRayHitArray == nullptr || iMaxHitCapacity == 0) {
+ return false;
+ }
+
+ _float3 vDir = {};
+ _float3 vStartPos = {};
+
+ XMStoreFloat3(&vDir, _vDir);
+ XMStoreFloat3(&vStartPos, _vStartPos);
+
+ PSX::PxVec3 startPos(vStartPos.x, vStartPos.y, vStartPos.z);
+ PSX::PxVec3 sweepDir(vDir.x, vDir.y, vDir.z);
+
+ sweepDir.normalize();
+
+ PSX::PxRaycastBuffer raycastBuffer(pRayHitArray, iMaxHitCapacity);
+
+ const PSX::PxHitFlags hitFlags = PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL;
+
+ PSX::PxQueryFilterData queryFilterData;
+ queryFilterData.flags = PSX::PxQueryFlag::eSTATIC | PSX::PxQueryFlag::eDYNAMIC;
+
+ const _bool bHit = m_pScene->raycast(startPos, sweepDir, fDistance, raycastBuffer, hitFlags, queryFilterData );
+
+ if (bHit == false) {
+ return false;
+ }
+
+ iOutHitCount = raycastBuffer.getNbAnyHits(); // block + touches 합
+ return bHit;
+}
+
+
void CPhysX_Manager::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh)
{
m_TriangleMeshes.emplace(CMyTools::ToWstring(pName), pPxTriMesh);
diff --git a/Jusin154_Team3D/Engine/Private/Prototype_Manager.cpp b/Jusin154_Team3D/Engine/Private/Prototype_Manager.cpp
index 9e5192594..107a7be76 100644
--- a/Jusin154_Team3D/Engine/Private/Prototype_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/Prototype_Manager.cpp
@@ -98,7 +98,6 @@ HRESULT CPrototype_Manager::Ready_StaticComponents()
if (FAILED(Add_Prototype(g_iStaticLevel, CLight::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
-
return S_OK;
}
diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp
index 02b27864f..0252491b9 100644
--- a/Jusin154_Team3D/Engine/Private/Renderer.cpp
+++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp
@@ -33,6 +33,7 @@ void CRenderer::Render()
Render_LastColor();
Render_Tone_Mapping();
Render_UI();
+ Render_UI_Overley();
#ifdef _DEBUG
Describe_Entitiy();
@@ -743,6 +744,22 @@ void CRenderer::Render_UI()
m_RenderObjects[ENUM_CLASS(RENDER::UI)].clear();
}
+void CRenderer::Render_UI_Overley()
+{
+ for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::UI_OVERLAY)])
+ {
+ if (nullptr != pRenderObject) {
+ if (FAILED(pRenderObject->Render())) {
+ assert(false);
+ }
+ }
+ SAFE_RELEASE(pRenderObject);
+ }
+
+ m_RenderObjects[ENUM_CLASS(RENDER::UI_OVERLAY)].clear();
+
+}
+
void CRenderer::Render_LastColor()
{
// Bind_Resorces
diff --git a/Jusin154_Team3D/Engine/Private/Resource_Manager.cpp b/Jusin154_Team3D/Engine/Private/Resource_Manager.cpp
index 29a6760f8..96f860c8f 100644
--- a/Jusin154_Team3D/Engine/Private/Resource_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/Resource_Manager.cpp
@@ -4,27 +4,65 @@
CResource_Manager::CResource_Manager(ID3D11Device* pDevice)
:m_pDevice{ pDevice }
{
- SAFE_ADDREF(pDevice);
+ SAFE_ADDREF(m_pDevice);
}
ID3D11ShaderResourceView* CResource_Manager::Add_Texture(const _char* pFilePath)
{
- lock_guard lock(m_mtxTexture);
+ if (pFilePath == nullptr || pFilePath[0] == '\0'){
+ return nullptr;
+ }
+ filesystem::path pathFile = pFilePath;
+ const _wstring wstrKeyOriginal = pathFile.filename().wstring();
+
+ { // 브레이스 해제 금지
+ shared_lock sharedLock(m_smtxTexture);
- ID3D11ShaderResourceView* pSRV = Find_SRV(pFilePath);
-
- if (nullptr == pSRV)
- {
- pSRV = Load_SRV(pFilePath);
-
- if (nullptr == pSRV)
+ auto iter = m_Resources.find(wstrKeyOriginal);
+ if (iter != m_Resources.end())
{
- return nullptr;
+#ifdef _DEBUG
+ lock_guard statisticsLock(m_mtxStatistics);
+ m_mapCacheHit[wstrKeyOriginal]++;
+#endif // _DEBUG
+ SAFE_ADDREF(iter->second);
+ return iter->second;
}
+ else {
+#ifdef _DEBUG
+ lock_guard statisticsLock(m_mtxStatistics);
+ m_mapCacheMiss[wstrKeyOriginal]++;
+#endif // _DEBUG
+ }
+ // sharedLock 소멸
+ } // 브레이스 해제 금지
+
+ ID3D11ShaderResourceView* pSRV = Load_SRV(pathFile);
+
+ if (pSRV == nullptr){
+ return nullptr;
}
- SAFE_ADDREF(pSRV);
+ { // 브레이스 해제 금지
+ unique_lock uniqueLock(m_smtxTexture);
+ auto iter = m_Resources.find(wstrKeyOriginal);
+ if (iter != m_Resources.end())
+ {
+ SAFE_RELEASE(pSRV); // 여기까지 왔는데 end가 아니다? -> 다른 스레드가 넣음 -> 이 srv는 이미 로드됨. -> 삭제해야 됨
+
+ SAFE_ADDREF(iter->second);
+ return iter->second; // sharedLock 소멸
+ }
+
+ m_Resources.emplace(wstrKeyOriginal, pSRV);
+ // sharedLock 소멸
+ } // 브레이스 해제 금지
+
+#ifdef _DEBUG
+ ++m_iCount;
+#endif // _DEBUG
+ SAFE_ADDREF(pSRV);
return pSRV;
}
@@ -35,62 +73,37 @@ HRESULT CResource_Manager::Initialize(_uint iResourceCount)
return S_OK;
}
-ID3D11ShaderResourceView* CResource_Manager::Find_SRV(const _char* pFilePath)
-{
- _char szFileName[MAX_PATH] = {};
- _splitpath_s(pFilePath, nullptr, 0, nullptr, 0, szFileName, MAX_PATH, nullptr, 0);
-
- auto iter = m_Resources.find(CMyTools::ToWstring(szFileName));
-
- if (iter == m_Resources.end())
- return nullptr;
-
- return iter->second;
-}
-
-ID3D11ShaderResourceView* CResource_Manager::Load_SRV(const _char* pFilePath)
+ID3D11ShaderResourceView* CResource_Manager::Load_SRV(const filesystem::path& pathFile)
{
ID3D11ShaderResourceView* pSRV = nullptr;
- _char szTextureFileName[MAX_PATH] = {};
- _char szTextureFilePath[MAX_PATH] = {};
- _char szDrive[MAX_PATH] = {};
- _char szDir[MAX_PATH] = {};
- _char szFileName[MAX_PATH] = {};
- _char szEXT[MAX_PATH] = {};
- _splitpath_s(pFilePath, szDrive, MAX_PATH, szDir, MAX_PATH, szFileName, MAX_PATH, szEXT, MAX_PATH);
- strcpy_s(szTextureFileName, szDrive);
- strcat_s(szTextureFileName, szDir);
- strcat_s(szTextureFileName, szFileName);
+ const filesystem::path pathExtensionOriginal = pathFile.extension();
- strcat_s(szTextureFilePath, szTextureFileName);
- strcat_s(szTextureFilePath, ".dds");
+ filesystem::path pathDDSFile = pathFile;
+ pathDDSFile.replace_extension(L".dds");
- HRESULT hr = {};
+ HRESULT hr = CreateDDSTextureFromFile(
+ m_pDevice,
+ pathDDSFile.wstring().c_str(),
+ nullptr,
+ &pSRV
+ );
- hr = CreateDDSTextureFromFile(m_pDevice, CMyTools::ToWstring(szTextureFilePath).c_str(), nullptr, &pSRV); // 일단 dds로 시도하고
if (FAILED(hr)) {
- memset(szTextureFilePath, 0, sizeof(_char) * MAX_PATH); // 실패하면 원래 확장자로 다시 시도
- strcat_s(szTextureFilePath, szTextureFileName);
- strcat_s(szTextureFilePath, szEXT);
+ filesystem::path pathFileOriginal = pathFile;
+ pathFileOriginal.replace_extension(pathExtensionOriginal);
- if (false == strcmp(".tga", szEXT)) {
- assert(false); // trying to Load TGA
- hr = S_OK;
- }
- else {
- hr = CreateWICTextureFromFile(m_pDevice, CMyTools::ToWstring(szTextureFilePath).c_str(), nullptr, &pSRV);
+ hr = CreateWICTextureFromFile(
+ m_pDevice,
+ pathFileOriginal.wstring().c_str(),
+ nullptr,
+ &pSRV
+ );
+
+ if (FAILED(hr)){
+ return nullptr;
}
}
-
- if (E_FAIL == hr)
- return nullptr;
-
- m_Resources.emplace(CMyTools::ToWstring(szFileName), pSRV);
-#ifdef _DEBUG
- ++m_iCount;
-#endif // _DEBUG
-
return pSRV;
}
@@ -122,3 +135,80 @@ void CResource_Manager::Free()
}
m_Resources.clear();
}
+
+
+#ifdef _DEBUG
+
+void CResource_Manager::Describe_Entity()
+{
+ static vector> vecHit = {};
+ static vector> vecMiss = {};
+ GUI::Begin("ResourceManager");
+ if (GUI::Button("Refresh")) {
+ vecHit.clear();
+ vecMiss.clear();
+ for (auto& element : m_mapCacheHit){
+ vecHit.emplace_back(element);
+ }
+ for (auto& element : m_mapCacheMiss){
+ vecMiss.emplace_back(element);
+ }
+ sort(vecHit.begin(), vecHit.end(),
+ [](const pair<_wstring, _uint>& leftPair,
+ const pair<_wstring, _uint>& rightPair)
+ {
+ return leftPair.second > rightPair.second;
+ });
+
+ sort(vecMiss.begin(), vecMiss.end(),
+ [](const pair<_wstring, _uint>& leftPair,
+ const pair<_wstring, _uint>& rightPair)
+ {
+ return leftPair.second > rightPair.second;
+ });
+ }
+ if (GUI::CollapsingHeader("Statistics")) {
+ _uint iTotalHitCount = 0;
+ _uint iTotalMissCount = 0;
+
+ for (const auto& element : m_mapCacheHit) {
+ iTotalHitCount += element.second;
+ }
+ for (const auto& element : m_mapCacheMiss) {
+ iTotalMissCount += element.second;
+ }
+ _uint iTotalRequestCount = iTotalHitCount + iTotalMissCount;
+
+ _float fHitRatePercent = 0.0f;
+ if (iTotalRequestCount > 0) {
+ fHitRatePercent = (_float)iTotalHitCount * 100.0f / (_float)iTotalRequestCount;
+ }
+
+ GUI::Text("Total Requests: %u", iTotalRequestCount);
+ GUI::Text("Hit: %u Miss: %u HitRate: %.2f%%", iTotalHitCount, iTotalMissCount, fHitRatePercent);
+
+ }
+ if (GUI::CollapsingHeader("CacheHit")) {
+ GUI::Text("%d", vecHit.size());
+ GUI::BeginChild("CacheHit", { 300, 300 });
+ GUI::GetScrollY();
+ for (auto& element : vecHit) {
+ GUI::Text("%d", element.second); GUI::SameLine();
+ GUI::Text(CMyTools::ToString(element.first).c_str());
+ }
+ GUI::EndChild();
+ }
+ if (GUI::CollapsingHeader("CacheMiss")) {
+ GUI::Text("%d", vecMiss.size());
+ GUI::BeginChild("CacheMiss", { 300, 300 });
+ GUI::GetScrollY();
+ for (auto& element : vecMiss) {
+ GUI::Text("%d", element.second); GUI::SameLine();
+ GUI::Text(CMyTools::ToString(element.first).c_str());
+ }
+ GUI::EndChild();
+ }
+ GUI::End();
+}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
index 6402d980a..d06d34691 100644
--- a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
+++ b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
@@ -144,6 +144,13 @@ HRESULT CRigidBody_Dynamic::ConvertToCCT(CCharacter_Controller& CCTOriginal)
return E_FAIL;
}
+_vector CRigidBody_Dynamic::Get_Position()
+{
+ PSX::PxVec3 pxPos = m_pRigidBody->getGlobalPose().p;
+ _vector vPos = { pxPos.x, pxPos.y, pxPos.z };
+ return vPos;
+}
+
_float3 CRigidBody_Dynamic::Get_FootPosition()
{
PSX::PxTransform pxTransform = m_pRigidBody->getGlobalPose();
diff --git a/Jusin154_Team3D/Engine/Private/Stat.cpp b/Jusin154_Team3D/Engine/Private/Stat.cpp
new file mode 100644
index 000000000..e4ec49302
--- /dev/null
+++ b/Jusin154_Team3D/Engine/Private/Stat.cpp
@@ -0,0 +1,128 @@
+#include "pch.h"
+#include "Stat.h"
+#include "StatEvent.h"
+
+CStat::CStat(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CComponent{ pDevice, pContext }
+{
+ ZeroMemory(m_StatArr, sizeof(m_StatArr));
+}
+
+CStat::CStat(const CStat& rhs)
+ : CComponent(rhs)
+{
+ ZeroMemory(m_StatArr, sizeof(m_StatArr));
+
+ memcpy_s(m_StatArr, sizeof(m_StatArr), rhs.m_StatArr, sizeof(m_StatArr));
+ memcpy_s(m_ConditionArr, sizeof(m_ConditionArr), rhs.m_ConditionArr, sizeof(m_ConditionArr));
+}
+
+HRESULT CStat::Initialize_Prototype(tinyxml2::XMLNode* pChild)
+{
+ auto pElement = pChild->ToElement();
+ pElement->QueryFloatAttribute("HP", &m_StatArr[ENUM_CLASS(STAT::HP)]);
+ pElement->QueryFloatAttribute("MAXHP", &m_StatArr[ENUM_CLASS(STAT::MAXHP)]);
+ pElement->QueryFloatAttribute("MELEE", &m_StatArr[ENUM_CLASS(STAT::MELEE)]);
+ pElement->QueryFloatAttribute("MAGIC", &m_StatArr[ENUM_CLASS(STAT::MAGIC)]);
+ pElement->QueryFloatAttribute("DEFENSE", &m_StatArr[ENUM_CLASS(STAT::DEFENSE)]);
+ pElement->QueryFloatAttribute("SPEED", &m_StatArr[ENUM_CLASS(STAT::SPEED)]);
+ pElement->QueryFloatAttribute("AGILITY", &m_StatArr[ENUM_CLASS(STAT::AGILITY)]);
+ pElement->QueryFloatAttribute("LEVEL", &m_StatArr[ENUM_CLASS(STAT::LEVEL)]);
+ pElement->QueryFloatAttribute("EXPERIENCE", &m_StatArr[ENUM_CLASS(STAT::EXPERIENCE)]);
+ pElement->QueryFloatAttribute("MAX_EXPERIENCE", &m_StatArr[ENUM_CLASS(STAT::MAX_EXPERIENCE)]);
+ pElement->QueryFloatAttribute("GOLD", &m_StatArr[ENUM_CLASS(STAT::GOLD)]);
+ memset(m_ConditionArr, 0, sizeof(m_ConditionArr));
+
+ return S_OK;
+}
+
+HRESULT CStat::Initialize(void* pArg)
+{
+ return S_OK;
+}
+
+CStat* CStat::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, tinyxml2::XMLNode* pChild)
+{
+ CStat* pInstance = new CStat(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype(pChild)))
+ {
+ MSG_BOX("Failed to Created : CStat");
+ Safe_Release(pInstance);
+ }
+
+ return pInstance;
+}
+
+CComponent* CStat::Clone(void* pArg, class CGameObject* pOwner)
+{
+ CStat* pInstance = new CStat(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CStat");
+ Safe_Release(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CStat::Free()
+{
+ __super::Free();
+}
+#ifdef _DEBUG
+
+void CStat::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+_float CStat::Get_Stat(_int _iStatIndex)
+{
+ return m_StatArr[_iStatIndex];
+}
+
+void CStat::Set_Stat(_int _iStatIndex, _float _iAmount)
+{
+ m_StatArr[_iStatIndex] = _iAmount;
+}
+
+void CStat::Add_Stat(_int _iStatIndex, _float _iAmount)
+{
+ m_StatArr[_iStatIndex] += _iAmount;
+}
+
+_bool CStat::Get_Condition(_uint _iConditionIndex) const
+{
+ return m_ConditionArr[_iConditionIndex];
+}
+
+void CStat::Set_Condition(_uint _iConditionIndex, _bool _Condition)
+{
+ m_ConditionArr[_iConditionIndex] = _Condition;
+}
+
+void CStat::Add_Hp(_float iAmount)
+{
+ _float fMaxHp = Get_Stat(ENUM_CLASS(STAT::MAXHP));
+ _float fCurHp = Get_Stat(ENUM_CLASS(STAT::HP));
+ if (fCurHp < fMaxHp) {
+ _float iNewHP = fCurHp + iAmount;
+ if (iNewHP > fMaxHp) {
+ iAmount = fMaxHp - fCurHp;
+ }
+ Add_Stat(ENUM_CLASS(STAT::HP), iAmount);
+ }
+}
+
+_bool CStat::Get_Damage(_float fDamage)
+{
+ _bool bResultDead = { false };
+ _float fCurHp = Get_Stat(ENUM_CLASS(STAT::HP)) - fDamage;
+ if (fCurHp < 0) { fCurHp = 0; bResultDead = true; }
+ Set_Stat(ENUM_CLASS(STAT::HP), fCurHp);
+ return bResultDead;
+}
diff --git a/Jusin154_Team3D/Engine/Private/StatEvent.cpp b/Jusin154_Team3D/Engine/Private/StatEvent.cpp
new file mode 100644
index 000000000..fbf66eca5
--- /dev/null
+++ b/Jusin154_Team3D/Engine/Private/StatEvent.cpp
@@ -0,0 +1,130 @@
+#include "pch.h"
+#include "StatEvent.h"
+
+CStatEvent::CStatEvent(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CComponent{ pDevice, pContext }
+{
+}
+
+CStatEvent::CStatEvent(const CStatEvent& Prototype)
+ : CComponent(Prototype)
+{
+}
+
+void CStatEvent::AddEvent(const function _Equipfunc, const function _UnEquipfunc)
+{
+ if (m_EquipEventVector.size() > 6)
+ return;
+
+ m_EquipEventVector.push_back(_Equipfunc);
+ m_UnEquipEventVector.push_back(_UnEquipfunc);
+
+}
+
+// 팝된 속성이 어떤 속성인지 리턴함
+_uint CStatEvent::PopEvent(_uint iIndex)
+{
+ vector> EquipEventVector = {};
+ vector> UnEquipEventVector = {};
+ vector<_uint> ActiveAbillityIDVec = {};
+
+ _uint iReturnStat(0);
+
+ EquipEventVector = move(m_EquipEventVector);
+ UnEquipEventVector = move(m_UnEquipEventVector);
+ ActiveAbillityIDVec = move(m_ActiveAbillityIDVec);
+
+ for (size_t i = 0; i < EquipEventVector.size(); i++)
+ {
+ if (i == iIndex)
+ {
+ iReturnStat = ActiveAbillityIDVec[i];
+ continue;
+ }
+
+
+ m_EquipEventVector.push_back(EquipEventVector[i]);
+ m_UnEquipEventVector.push_back(UnEquipEventVector[i]);
+ m_ActiveAbillityIDVec.push_back(ActiveAbillityIDVec[i]);
+ }
+
+ return iReturnStat;
+}
+
+HRESULT CStatEvent::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CStatEvent::Initialize(void* pArg)
+{
+
+ return S_OK;
+}
+
+CStatEvent* CStatEvent::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CStatEvent* pInstance = new CStatEvent(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CStatEvent");
+ Safe_Release(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CStatEvent::Equip()
+{
+ for (auto& func : m_EquipEventVector)
+ {
+ func();
+ }
+}
+
+void CStatEvent::UnEquip()
+{
+ for (auto& func : m_UnEquipEventVector)
+ {
+ func();
+ }
+}
+
+void CStatEvent::Clear()
+{
+ m_EquipEventVector.clear();
+ m_UnEquipEventVector.clear();
+ m_ActiveAbillityIDVec.clear();
+}
+
+void CStatEvent::Push_Order(_uint _iId)
+{
+ m_ActiveAbillityIDVec.push_back(_iId);
+}
+
+CComponent* CStatEvent::Clone(void* pArg, class CGameObject* pOwner)
+{
+ CStatEvent* pInstance = new CStatEvent(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CStatEvent");
+ Safe_Release(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CStatEvent::Free()
+{
+ __super::Free();
+}
+#ifdef _DEBUG
+
+void CStatEvent::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/Texture.cpp b/Jusin154_Team3D/Engine/Private/Texture.cpp
index 611e7278c..d30efd096 100644
--- a/Jusin154_Team3D/Engine/Private/Texture.cpp
+++ b/Jusin154_Team3D/Engine/Private/Texture.cpp
@@ -97,8 +97,9 @@ HRESULT CTexture::Load_SRV(const _char* szPath, ID3D11ShaderResourceView** ppSRV
{
ID3D11ShaderResourceView* pSRV = m_pGameInstance->Add_Resource(szPath);
- if (nullptr == pSRV)
+ if (nullptr == pSRV){
return E_FAIL;
+ }
*ppSRV = pSRV;
diff --git a/Jusin154_Team3D/Engine/Private/Timer_Manager.cpp b/Jusin154_Team3D/Engine/Private/Timer_Manager.cpp
index 967a1e65b..bf37e5007 100644
--- a/Jusin154_Team3D/Engine/Private/Timer_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/Timer_Manager.cpp
@@ -1,4 +1,4 @@
-#include "pch.h"
+#include "pch.h"
#include "Timer_Manager.h"
#include "Timer.h"
@@ -51,7 +51,7 @@ CTimer* CTimer_Manager::Find_Timer(const _wstring& strTimerTag)
if (iter == m_Timers.end())
return nullptr;
-
+
return iter->second;
}
diff --git a/Jusin154_Team3D/Engine/Private/UIObject.cpp b/Jusin154_Team3D/Engine/Private/UIObject.cpp
index 2d578317d..554b34b9d 100644
--- a/Jusin154_Team3D/Engine/Private/UIObject.cpp
+++ b/Jusin154_Team3D/Engine/Private/UIObject.cpp
@@ -487,6 +487,11 @@ void CUIObject::Function_Callback(wstring Name, void* pArg)
{
}
+void CUIObject::Set_Hover(_bool Hover)
+{
+ m_bHover = Hover;
+}
+
_bool CUIObject::Get_Hover()
{
return m_bHover;
diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp
index 2a456ad04..91a63294d 100644
--- a/Jusin154_Team3D/Engine/Private/Unit.cpp
+++ b/Jusin154_Team3D/Engine/Private/Unit.cpp
@@ -118,7 +118,7 @@ HRESULT CUnit::Ready_Components(void *pArg)
if (FAILED(Add_Component(g_iStaticLevel, &m_pFSM))){
return E_FAIL;
}
-
+
return S_OK;
}
@@ -129,24 +129,36 @@ void CUnit::Play_Event()
_float ratio = m_pModelCom->Get_CurrentTrackProgressRatio();
_uint curAnim = m_pModelCom->Get_AnimIndex();
- if (curAnim == iter->AnimIndex && ratio >= iter->fRatio)
+ if (curAnim == iter->AnimIndex)
{
- iter->Callback();
- iter = m_PendingEvents.erase(iter);
+ if (!iter->bExecuted && ratio >= iter->fRatio)
+ {
+ iter->Callback();
+ iter->bExecuted = true;
+
+ if (!iter->bKeep)
+ {
+ iter = m_PendingEvents.erase(iter);
+ continue;
+ }
+ }
}
else
{
- ++iter;
+ iter->bExecuted = false;
}
+
+ ++iter;
}
}
-void CUnit::Add_Event(_uint AnimIndex, function Callback, _float fRatio)
+void CUnit::Add_Event(_uint AnimIndex, function Callback, _float fRatio,_bool bKeep)
{
PendingEvent Desc;
Desc.AnimIndex = AnimIndex;
Desc.fRatio = fRatio;
Desc.Callback = Callback;
+ Desc.bKeep = bKeep;
m_PendingEvents.push_back(Desc);
}
diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Model_Instance.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Model_Instance.cpp
index d267d8180..21575c4a5 100644
--- a/Jusin154_Team3D/Engine/Private/VIBuffer_Model_Instance.cpp
+++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Model_Instance.cpp
@@ -272,8 +272,9 @@ HRESULT CVIBuffer_Model_Instance::Ready_Materials()
pSRV = m_pGameInstance->Add_Resource(m_MeshMaterialPathes[i][j].c_str());
- if (nullptr == pSRV)
+ if (nullptr == pSRV){
return E_FAIL;
+ }
SRVs.push_back(pSRV);
}
diff --git a/Jusin154_Team3D/Engine/Public/Camera.h b/Jusin154_Team3D/Engine/Public/Camera.h
index 32325c5d7..b6ebbde6e 100644
--- a/Jusin154_Team3D/Engine/Public/Camera.h
+++ b/Jusin154_Team3D/Engine/Public/Camera.h
@@ -46,6 +46,7 @@ class ENGINE_DLL CCamera abstract : public CGameObject
HRESULT Ready_Shadow();
void ZoomIn(_float fTimeDelta);
void Set_Fov(_float fFovy,_float fTimeDelta, _bool& bZoomIn);
+ _float Get_Fov();
protected:
_float m_fFovy = {};
diff --git a/Jusin154_Team3D/Engine/Public/Camera_Manager.h b/Jusin154_Team3D/Engine/Public/Camera_Manager.h
index 718bf6b55..c992083e1 100644
--- a/Jusin154_Team3D/Engine/Public/Camera_Manager.h
+++ b/Jusin154_Team3D/Engine/Public/Camera_Manager.h
@@ -17,6 +17,7 @@ class CCamera_Manager final : public CBase
HRESULT Bind_Camera(_uint iLevel, const _wstring& wstrCameraKey, _bool bIgnorePriority);
HRESULT IsBinded_Camera(const _wstring& wstrCameraKey);
_vector Get_CameraLook();
+ _float Get_CameraFov();
void Force_CamPosition(_fvector vPos);
diff --git a/Jusin154_Team3D/Engine/Public/Character_Controller.h b/Jusin154_Team3D/Engine/Public/Character_Controller.h
index 57c445758..88043b225 100644
--- a/Jusin154_Team3D/Engine/Public/Character_Controller.h
+++ b/Jusin154_Team3D/Engine/Public/Character_Controller.h
@@ -80,7 +80,7 @@ class ENGINE_DLL CCharacter_Controller final :
CTransform* m_pTransform = { nullptr };
_bool m_bAutoStepping = { false };
_float m_fGravity = { 0.450f };
- _float m_fWalkableSlopeDegree = { 22.f }; // cosf각도, 오르막 경사각 제한. ( 추가설정 필요함 )
+ _float m_fWalkableSlopeDegree = { 45.f }; // cosf각도, 오르막 경사각 제한. ( 추가설정 필요함 )
_float m_fCurrentSlopeDegree = { 0.f };
_int m_iIsOnGround = { 0 };
_float4 m_vAccHeight = { 0.f, 0.16f, 0.f, 0.01f };
diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
index 13eabbb94..705856a69 100644
--- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h
+++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
@@ -5,10 +5,12 @@ NS_BEGIN(Engine)
enum class STATE { RIGHT, UP, LOOK, POSITION, END };
enum class LIGHT { DIRECTIONAL, POINT, SPOT, END };
enum class COLLIDER { AABB, OBB, SPHERE, END };
-enum class RENDER {PRIORITY, SHADOW, NONBLEND, DECAL, BLUR, NONLIGHT, EFFECT ,BLEND, BLOOM, UI, OCCLUSION, PRESHADOW, END };
+enum class RENDER {PRIORITY, SHADOW, NONBLEND, DECAL, BLUR, NONLIGHT, EFFECT ,BLEND, BLOOM, UI, OCCLUSION, PRESHADOW, UI_OVERLAY, END };
enum class RAY { LOCAL, WORLD, END };
enum class ACTOR { BOX, CAPSULE, SPHERE, PLANE, TRIANGLEMESH, HEIGHTFIELD, END };
enum class BLEND_BONE{SPINE,SHOULDER_L,SHOULDER_R,NECK,SHOULDER_NECK_L, SHOULDER_NECK_R,END};
+enum class STAT { HP, MAXHP, MELEE, MAGIC, DEFENSE, SPEED, AGILITY, LEVEL, EXPERIENCE, MAX_EXPERIENCE, GOLD, END };
+enum class CONDITION { POISON, HPREGENERATION, PANIC, GRAP, END };
enum class TEXTURE_LOAD_TYPE {
@@ -29,7 +31,7 @@ enum class PXBODYSTATE {
enum class MOUSEKEYSTATE { LBUTTON, RBUTTON, WBUTTON, XBUTTON };
enum class MOUSEMOVESTATE { X, Y, W };
enum class D3DTS { VIEW, PROJ, VIEW_INV, PROJ_INV, END };
-enum class MODEL { ANIM, NONANIM, ENVIROMENT };
+enum class MODEL { ANIM, NONANIM, PBR_NONANIM, PBR_ANIM, ENVIROMENT, ANIM_LOCAL};
enum class NAVI_POINT { A, B, C, END };
enum class NAVI_LINE { AB, BC, CA, END };
diff --git a/Jusin154_Team3D/Engine/Public/Engine_Struct.h b/Jusin154_Team3D/Engine/Public/Engine_Struct.h
index fc083eb5b..9d6a54f57 100644
--- a/Jusin154_Team3D/Engine/Public/Engine_Struct.h
+++ b/Jusin154_Team3D/Engine/Public/Engine_Struct.h
@@ -24,9 +24,9 @@ typedef struct tagModelDesc {
typedef struct tagKeyFrame
{
- XMFLOAT3 vScale = {};
- XMFLOAT4 vRotation = {};
- XMFLOAT3 vTranslation = {};
+ _float3 vScale = {};
+ _float4 vRotation = {};
+ _float3 vTranslation = {};
_float fTrackPosition = {};
}KEYFRAME;
@@ -43,8 +43,8 @@ typedef struct tagLightDesc
_float4 vAmbient = {};
_float4 vSpecular = {};
- const XMFLOAT4* pDirection = nullptr;
- const XMFLOAT4* pPosition = nullptr;
+ const _float4* pDirection = nullptr;
+ const _float4* pPosition = nullptr;
_float4 vPosOffset = {};
@@ -62,18 +62,18 @@ typedef struct tagShadowLight
struct SaveVertex
{
- XMFLOAT3 Pos;
- XMFLOAT3 Normal;
- XMFLOAT3 Tan;
- XMFLOAT3 BiNoraml;
- XMFLOAT2 UV;
+ _float3 Pos;
+ _float3 Normal;
+ _float3 Tan;
+ _float3 BiNoraml;
+ _float2 UV;
bool bHasNormal;
bool bHasTan;
bool bHasUV;
XMUINT4 BlendIndex;
- XMFLOAT4 BlendWeight;
+ _float4 BlendWeight;
};
struct SaveBoneWeight
@@ -129,13 +129,13 @@ struct SaveMaterial
struct SaveKeyFrameVec
{
float Time;
- XMFLOAT3 Value;
+ _float3 Value;
};
struct SaveKeyFrameRotation
{
float Time;
- XMFLOAT4 Value;
+ _float4 Value;
};
struct SaveChannel
@@ -396,9 +396,9 @@ typedef struct tagPhsXUserData {
typedef struct tagOnCollsionInfo
{
- _vector vWorldPos = {}; // 접촉지점
- _vector vWorldNomal = {}; // 접촉노말
- _vector vHitDir = {}; // 시도한 move 방향
+ _float4 vWorldPos = {}; // 접촉지점
+ _float4 vWorldNomal = {}; // 접촉노말
+ _float4 vHitDir = {}; // 시도한 move 방향
_float fLength = {}; // 작용된 힘
}ON_COLLISION_INFO;
diff --git a/Jusin154_Team3D/Engine/Public/FSM.h b/Jusin154_Team3D/Engine/Public/FSM.h
index 9b8b2c9f7..48cec542c 100644
--- a/Jusin154_Team3D/Engine/Public/FSM.h
+++ b/Jusin154_Team3D/Engine/Public/FSM.h
@@ -5,33 +5,35 @@ enum ESTATE : _u64Flag
{
NOT_DEFINE = 0,
IDLE = 1ULL << 0,
- IDLE_TURN = 1ULL << 1,
- MOVE = 1ULL << 2,
- WALK = 1ULL << 3,
- JOG = 1ULL << 4,
- SPRINT = 1ULL << 5,
- JUMP = 1ULL << 6,
- LAND = 1ULL << 7,
- DODGE = 1ULL << 8,
- COMBAT = 1ULL << 9,
- LIGHT_ATTACK = 1ULL << 10,
- SPELL = 1ULL << 11,
- SKILL = 1ULL << 12,
- SKILL2 = 1ULL << 13,
- ANCIENT_THROW = 1ULL << 14,
- MAPHELP = 1ULL << 15,
- POTION = 1ULL << 16,
- STOP = 1ULL << 17,
- HIT = 1ULL << 18,
- BROOM_RIDE = 1ULL << 19,
- MOUNT_B = 1ULL << 20,
- DISMOUNT = 1ULL << 21,
- RUSH = 1ULL << 22,
- THROW_ROCK = 1ULL << 23,
- BACKHAND_SWING = 1ULL << 24,
- SWING = 1ULL << 25,
- SLAM = 1ULL << 26,
- BLINK = 1ULL << 27,
+ IDLEBREAK = 1ULL << 1,
+ IDLE_TURN = 1ULL << 2,
+ MOVE = 1ULL << 3,
+ WALK = 1ULL << 4,
+ JOG = 1ULL << 5,
+ SPRINT = 1ULL << 6,
+ JUMP = 1ULL << 7,
+ LAND = 1ULL << 8,
+ DODGE = 1ULL << 9,
+ COMBAT = 1ULL << 10,
+ LIGHT_ATTACK = 1ULL << 11,
+ SPELL = 1ULL << 12,
+ SKILL = 1ULL << 13,
+ SKILL2 = 1ULL << 14,
+ ANCIENT_THROW = 1ULL << 15,
+ MAPHELP = 1ULL << 16,
+ POTION = 1ULL << 17,
+ STOP = 1ULL << 18,
+ HIT = 1ULL << 19,
+ BROOM_RIDE = 1ULL << 20,
+ MOUNT_B = 1ULL << 21,
+ DISMOUNT = 1ULL << 22,
+ RUSH = 1ULL << 23,
+ THROW_ROCK = 1ULL << 24,
+ BACKHAND_SWING = 1ULL << 25,
+ SWING = 1ULL << 26,
+ SLAM = 1ULL << 27,
+ BLINK = 1ULL << 28,
+ DEAD = 1ULL << 29,
END
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h
index f3b595502..dbdc974f9 100644
--- a/Jusin154_Team3D/Engine/Public/GameInstance.h
+++ b/Jusin154_Team3D/Engine/Public/GameInstance.h
@@ -179,6 +179,7 @@ class ENGINE_DLL CGameInstance final : public CBase
HRESULT Bind_Camera(_uint iLevel, const _wstring& strCameraKey, _bool bIgnorePriority);
HRESULT IsBinded_Camera(const _wstring& strCameraKey);
_vector Get_CameraLook();
+ _float Get_CameraFov();
const _float* Get_CurrentCameraFar();
void Force_CamPosition(_fvector vPos);
#pragma endregion
@@ -205,6 +206,8 @@ class ENGINE_DLL CGameInstance final : public CBase
_bool SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
_bool SphereCast(_float fRadius, _fvector vStartPos, _fvector vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
+ _bool RayCast(_float3 _vStartPos, _float3 _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount);
+ _bool RayCast(_fvector _vStartPos, _fvector _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount);
PSX::PxController* Add_CapsuleController(PSX::PxCapsuleControllerDesc& Desc);
PSX::PxController* Add_BoxController(PSX::PxBoxControllerDesc& Desc);
diff --git a/Jusin154_Team3D/Engine/Public/Light.h b/Jusin154_Team3D/Engine/Public/Light.h
index 8cf8d82df..02c059792 100644
--- a/Jusin154_Team3D/Engine/Public/Light.h
+++ b/Jusin154_Team3D/Engine/Public/Light.h
@@ -24,6 +24,8 @@ class ENGINE_DLL CLight final : public CComponent
void Set_PowerLightAtt(_bool bValue) { m_bUsePowerAttenuation = bValue; }
_float Get_AttPower() { return m_fLightAttenuationPower; }
void Set_AttPower(_float fValue) { m_fLightAttenuationPower = fValue; }
+ void Set_LightIntensity(_float fValue) { m_fLightIntensity = fValue; }
+ _float Get_LightIntensity() { return m_fLightIntensity; }
public:
const LIGHT_DESC* Get_LightDesc() { return &m_LightDesc; }
@@ -42,10 +44,10 @@ class ENGINE_DLL CLight final : public CComponent
m_fAccLightTime += fTimeDelta;
- if (m_fAccLightTime >= fTime)
- return;
-
m_fAmbientRatio = 1 - (m_fAccLightTime / fTime);
+
+ if (m_fAmbientRatio <= 0)
+ m_fAmbientRatio = 0;
}
public:
@@ -58,6 +60,7 @@ class ENGINE_DLL CLight final : public CComponent
_float m_fAmbientRatio = { 1.f };
_float m_fAccLightTime = { 0.f };
+ _float m_fLightIntensity = { 4.f };
// 1 -> Linear,
// ( 1 > fPower )-> 뾰족하게 감쇄
diff --git a/Jusin154_Team3D/Engine/Public/Material.h b/Jusin154_Team3D/Engine/Public/Material.h
index 34b76519b..aa6f00fd7 100644
--- a/Jusin154_Team3D/Engine/Public/Material.h
+++ b/Jusin154_Team3D/Engine/Public/Material.h
@@ -26,11 +26,13 @@ class ENGINE_DLL CMaterial final : public CBase
SaveMaterial Get_SaveMaterial() { return m_SaveMaterial; }
static CMaterial* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pModelFilePath, const aiMaterial* pAIMaterial);
+ static CMaterial* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, const _char* pModelFilePath, const aiMaterial* pAIMaterial);
static CMaterial* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pMaterialFilePath, const _char* pTextureFilePath);
private:
SaveMaterial m_SaveMaterial;
HRESULT Initialize(const _char* pModelFilePath, const aiMaterial* pAIMaterial);
+ HRESULT Initialize(const _char* pModelFilePath, MODEL eType, const aiMaterial* pAIMaterial);
HRESULT Initialize(const _char* pMaterialFilePath, const _char* pTextureFilePath);
HRESULT Read_MaterialFile(const _char* pMaterialFilePath, const _char* pTextureFolderPath);
HRESULT Add_Texture(const _char* pTextureFolderPath, string& FileType);
diff --git a/Jusin154_Team3D/Engine/Public/Mesh.h b/Jusin154_Team3D/Engine/Public/Mesh.h
index 8db9cc479..58521725d 100644
--- a/Jusin154_Team3D/Engine/Public/Mesh.h
+++ b/Jusin154_Team3D/Engine/Public/Mesh.h
@@ -15,6 +15,7 @@ class ENGINE_DLL CMesh final : public CVIBuffer
_uint Get_MaterialIndex() const {
return m_iMaterialIndex;
}
+ void SeT_MaterialIndex(_uint iMaterialIndex) { m_iMaterialIndex = iMaterialIndex; }
const _char* Get_Name() const { return m_strName.c_str(); }
HRESULT Bind_BoneMatrices(const vector& Bones, class CShader* pShader, const _char* pConstantName);
diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h
index 999de339a..11958b317 100644
--- a/Jusin154_Team3D/Engine/Public/Model.h
+++ b/Jusin154_Team3D/Engine/Public/Model.h
@@ -93,6 +93,8 @@ class ENGINE_DLL CModel final : public CComponent
HRESULT Save_PhysXTriMeshes(const _char* pModelFilePath);
HRESULT Ready_Materials(const aiScene* pAIScene, const _char* pModelFilePath);
HRESULT Ready_Materials_FromFile(const aiScene* pAIScene, const _char* pModelFilePath);
+ HRESULT Ready_Materials_Independent(MODEL eType, const aiScene* pAIScene, const _char* pModelFilePath);
+ HRESULT Ready_Materials_FromFile_Anim(const aiScene* pAIScene, const _char* pModelFilePath);
HRESULT Ready_Animations(const aiScene* pAIScene);
HRESULT Ready_Bones(const aiNode* pAINode, _int iParentIndex);
// 바이너리
diff --git a/Jusin154_Team3D/Engine/Public/MyTools.h b/Jusin154_Team3D/Engine/Public/MyTools.h
index a5e8e0cfc..16166d7f0 100644
--- a/Jusin154_Team3D/Engine/Public/MyTools.h
+++ b/Jusin154_Team3D/Engine/Public/MyTools.h
@@ -202,7 +202,8 @@ class CMyTools {
// 2D 평면에 사상된 방향을 교정해서 리턴
// float -> Radian값
- // -, +
+ // - 시계방향
+ // + 반시계방향
inline static _float Get_Direction2D(_float2 vOrigianlDir, _float2 vInputDir) {
_vector vOriginal = XMVector2Normalize(XMLoadFloat2(&vOrigianlDir));
_vector vInput = XMVector2Normalize(XMLoadFloat2(&vInputDir));
@@ -212,6 +213,15 @@ class CMyTools {
return fDiffAngle * (fCross < 0 ? -1.f : 1.f);
}
+ inline static _float Get_Direction2D(_vector vOriginalDir, _vector vInputDir) {
+ _vector vOriginal = XMVector2Normalize(XMVectorSet(XMVectorGetX(vOriginalDir), XMVectorGetZ(vOriginalDir), 0.f, 0.f));
+ _vector vInput = XMVector2Normalize(XMVectorSet(XMVectorGetX(vInputDir), XMVectorGetZ(vInputDir), 0.f, 0.f));
+
+ _float fDiffAngle = XMVectorGetX(XMVector2AngleBetweenNormals(vOriginal, vInput));
+ _float fCross = XMVectorGetZ(XMVector2Cross(vOriginal, vInput));
+
+ return fDiffAngle * (fCross < 0 ? -1.f : 1.f);
+ }
// yaw 360도 자동 커트
// pitch 80도 클램프
inline static void AdjustAccumulateDegreePitchYawDegree(_float2& vAccumulateDegreePitchYaw, float fPitchLimitDegree = 80.f)
diff --git a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
index a3cecffa9..e5090585f 100644
--- a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
+++ b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
@@ -31,6 +31,8 @@ class CPhysX_Manager final : public CBase
_bool SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
_bool SphereCast(_float fRadius, _fvector vStartPos, _fvector vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
+ _bool RayCast(_float3 _vStartPos, _float3 _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount);
+ _bool RayCast(_fvector _vStartPos, _fvector _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount);
HRESULT ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix);
diff --git a/Jusin154_Team3D/Engine/Public/Prototype_Manager.h b/Jusin154_Team3D/Engine/Public/Prototype_Manager.h
index 975c0a842..2b631aef4 100644
--- a/Jusin154_Team3D/Engine/Public/Prototype_Manager.h
+++ b/Jusin154_Team3D/Engine/Public/Prototype_Manager.h
@@ -11,6 +11,8 @@
#include "Cell.h"
#include "Model.h"
#include "Instance_Model.h"
+#include "Stat.h"
+#include "StatEvent.h"
#include "Character_Controller.h"
#include "Light.h"
#include "FSM.h"
diff --git a/Jusin154_Team3D/Engine/Public/Renderer.h b/Jusin154_Team3D/Engine/Public/Renderer.h
index 8d31dd266..55fd9390e 100644
--- a/Jusin154_Team3D/Engine/Public/Renderer.h
+++ b/Jusin154_Team3D/Engine/Public/Renderer.h
@@ -87,6 +87,7 @@ class CRenderer final : public CBase
void Render_LastColor();
void Render_Tone_Mapping();
void Render_UI();
+ void Render_UI_Overley();
#ifdef _DEBUG
diff --git a/Jusin154_Team3D/Engine/Public/Resource_Manager.h b/Jusin154_Team3D/Engine/Public/Resource_Manager.h
index 3b27f4892..6dd4ff6b6 100644
--- a/Jusin154_Team3D/Engine/Public/Resource_Manager.h
+++ b/Jusin154_Team3D/Engine/Public/Resource_Manager.h
@@ -9,15 +9,18 @@ class CResource_Manager final : public CBase
private:
CResource_Manager(ID3D11Device* pDevice);
virtual ~CResource_Manager() = default;
- mutex m_mtxTexture = {};
+ shared_mutex m_smtxTexture = {};
+#ifdef _DEBUG
+ mutex m_mtxStatistics = {};
+#endif // _DEBUG
+
public:
ID3D11ShaderResourceView* Add_Texture(const _char* pFilePath);
private:
HRESULT Initialize(_uint iResourceCount);
- ID3D11ShaderResourceView* Find_SRV(const _char* pFilePath);
- ID3D11ShaderResourceView* Load_SRV(const _char* pFilePath);
+ ID3D11ShaderResourceView* Load_SRV(const filesystem::path& pathFile);
private:
#ifdef _DEBUG
@@ -27,10 +30,18 @@ class CResource_Manager final : public CBase
ID3D11Device* m_pDevice = { nullptr };
unordered_map<_wstring, ID3D11ShaderResourceView*> m_Resources;
+#ifdef _DEBUG
+ unordered_map<_wstring, atomic_int> m_mapCacheHit;
+ unordered_map<_wstring, atomic_int> m_mapCacheMiss;
+#endif // _DEBUG
public:
static CResource_Manager* Create(ID3D11Device* pDevice, _uint iResourceCount);
virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity();
+#endif // _DEBUG
+
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
index 9d8736c75..0f554f941 100644
--- a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
+++ b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
@@ -47,6 +47,7 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody
_bool IsActive() const { return m_bActive; }
void SetActive(_bool bCondition) { m_bActive = bCondition; }
+ _vector Get_Position();
_float3 Get_FootPosition();
PSX::PxTransform Get_FootPositionPxTransform();
private:
diff --git a/Jusin154_Team3D/Engine/Public/Stat.h b/Jusin154_Team3D/Engine/Public/Stat.h
new file mode 100644
index 000000000..51dd4934e
--- /dev/null
+++ b/Jusin154_Team3D/Engine/Public/Stat.h
@@ -0,0 +1,41 @@
+#pragma once
+
+#include "Component.h"
+
+NS_BEGIN(Engine)
+
+class ENGINE_DLL CStat final : public CComponent
+{
+private:
+ CStat(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CStat(const CStat& rhs);
+ virtual ~CStat() = default;
+
+private:
+ virtual HRESULT Initialize_Prototype(tinyxml2::XMLNode* pChild);
+ virtual HRESULT Initialize(void* pArg);
+
+public:
+ static CStat* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, tinyxml2::XMLNode* pChild);
+ virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+
+public:
+ _float Get_Stat(_int _iStatIndex);
+ void Set_Stat(_int _iStatIndex, _float _iAmount);
+ void Add_Stat(_int _iStatIndex, _float _iAmount);
+ _bool Get_Condition(_uint _iConditionIndex) const;
+ void Set_Condition(_uint _iConditionIndex, _bool _Condition);
+
+ void Add_Hp(_float iAmount);
+ _bool Get_Damage(_float fDamage);
+
+private:
+ _float m_StatArr[ENUM_CLASS(STAT::END)];
+ _bool m_ConditionArr[ENUM_CLASS(CONDITION::END)] = { false };
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Engine/Public/StatEvent.h b/Jusin154_Team3D/Engine/Public/StatEvent.h
new file mode 100644
index 000000000..dfd13b576
--- /dev/null
+++ b/Jusin154_Team3D/Engine/Public/StatEvent.h
@@ -0,0 +1,45 @@
+#pragma once
+
+#include "Component.h"
+
+NS_BEGIN(Engine)
+
+class ENGINE_DLL CStatEvent final : public CComponent
+{
+private:
+ CStatEvent(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CStatEvent(const CStatEvent& Prototype);
+ virtual ~CStatEvent() = default;
+private:
+ virtual HRESULT Initialize_Prototype();
+ virtual HRESULT Initialize(void* pArg);
+
+public:
+ void AddEvent(const function _Equipfunc, const function _UnEquipfunc);
+ _uint PopEvent(_uint iIndex);
+
+
+ void Equip();
+ void UnEquip();
+ void Clear();
+
+ void Push_Order(_uint _iId);
+
+public:
+ static CStatEvent* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+
+
+
+private:
+ vector> m_EquipEventVector = {};
+ vector> m_UnEquipEventVector = {};
+ vector<_uint> m_ActiveAbillityIDVec = {};
+
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h
index 82307f3cd..86e60e4e0 100644
--- a/Jusin154_Team3D/Engine/Public/State.h
+++ b/Jusin154_Team3D/Engine/Public/State.h
@@ -4,7 +4,7 @@
NS_BEGIN(STATEANIM)
enum ESTATE
{
- IDLE,IDLE_AIM, IDLE_TURN_L, IDLE_TURN_R, IDLE_TURN_BWD, IDLE_COMBAT_TURN_BWD,IDLE_BREAK1,IDLE_BREAK2,IDLE_BREAK3,IDLE_BREAK4,
+ IDLE,IDLE_AIM, IDLE_TURN_L, IDLE_TURN_R, IDLE_TURN_BWD, IDLE_COMBAT_TURN_BWD_L, IDLE_COMBAT_TURN_BWD_R,IDLE_BREAK1,IDLE_BREAK2,IDLE_BREAK3,IDLE_BREAK4,
MOVE,
WALK, WALK_FWD,WALK_RIGHT,WALK_LEFT, WALK_BWD,WALK_START,WALK_STOP,
JOG,JOG_START, JOG_FWD, JOG_RIGHT, JOG_LEFT, JOG_BWD, JOG_STOP, JOG_AIM_LEFT, JOG_AIM_RIGHT, JOG_AIM_BWD, JOG_AIM_STOP_L, JOG_AIM_STOP_R, JOG_AIM_STOP_BWD,JOG_LEFT_TURN,JOG_RIGHT_TURN,
@@ -13,6 +13,7 @@ enum ESTATE
LAND,
DODGE,DODGE_BLINK, DODGE_LEFT, DODGE_RIGHT,
COMBAT, LIGHT_ATTACK, SPELL, SKILL, SKILL2,
+ ATTACK_END,
MAPHELP,POTION,
ACCIO,DESCENDO,DIFFINDO,DEPULSO,LUMOS,LUMOS_STOP,DISILLUSION_ENTER,DISILLUSION_EXIT, ANCIENT_THROW,
SPELL_FAIL,
diff --git a/Jusin154_Team3D/Engine/Public/UIObject.h b/Jusin154_Team3D/Engine/Public/UIObject.h
index 76b3ac1dc..7953560e8 100644
--- a/Jusin154_Team3D/Engine/Public/UIObject.h
+++ b/Jusin154_Team3D/Engine/Public/UIObject.h
@@ -131,6 +131,7 @@ typedef struct SlotHover
virtual void Add_Function(wstring Name, function Evnet);
virtual void Function_Callback(wstring Name, void* pArg = nullptr);
+ virtual void Set_Hover(_bool Hover);
virtual _bool Get_Hover();
virtual const SPELLINFO Get_Info(_int Index);
diff --git a/Jusin154_Team3D/Engine/Public/Unit.h b/Jusin154_Team3D/Engine/Public/Unit.h
index 4f3b7afd0..fd9a2fad5 100644
--- a/Jusin154_Team3D/Engine/Public/Unit.h
+++ b/Jusin154_Team3D/Engine/Public/Unit.h
@@ -18,6 +18,8 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
_float fRatio = 0.f;
_uint AnimIndex = 0;
function Callback;
+ _bool bKeep = { false };
+ _bool bExecuted = { false };
};
protected:
CUnit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -31,6 +33,7 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
_wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; }
+
#ifdef _DEBUG
void Load_KeyFrame();
#endif // _DEBUG
@@ -46,6 +49,8 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
void Set_LightCombo(_uint LightCombo) { m_iLightCombo = LightCombo; }
_float Get_KeyFrame(_string FrameName);
_bool IsCurrentKeyFrame(_string FrameName);
+ virtual _vector Get_LockOnPos() { return Get_WorldPostion(); }
+ virtual _bool Get_Damage(_float fDamage) { return false; }
virtual void Reset_Sprint() {};
virtual void Reset_Walk() {};
@@ -71,6 +76,7 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
_int m_eSpell = { };
_int m_eHitSpell = {};
+ _float m_fHitRadius = {};
vector m_PendingEvents;
@@ -84,7 +90,7 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
protected:
HRESULT Ready_Components(void*pArg);
void Play_Event();
- void Add_Event(_uint AnimIndex, function Callback, _float fRatio = 0.f);
+ void Add_Event(_uint AnimIndex, function Callback, _float fRatio = 0.f, _bool bKeep = false);
public:
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)PURE;
virtual void Free() override;
diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer.h b/Jusin154_Team3D/Engine/Public/VIBuffer.h
index bef2f6308..dd273ce00 100644
--- a/Jusin154_Team3D/Engine/Public/VIBuffer.h
+++ b/Jusin154_Team3D/Engine/Public/VIBuffer.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "Component.h"
NS_BEGIN(Engine)
@@ -33,4 +33,4 @@ public CComponent
virtual void Free();
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Engine/Public/pch.h b/Jusin154_Team3D/Engine/Public/pch.h
index c27ab5229..c226fdfe9 100644
--- a/Jusin154_Team3D/Engine/Public/pch.h
+++ b/Jusin154_Team3D/Engine/Public/pch.h
@@ -58,6 +58,7 @@ using namespace DirectX;
#include
#include
#include
+#include
using namespace std;