diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index fd32c126f..067d90c1d 100644
--- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -30,10 +30,17 @@ float2 g_fCurrent_Size;
float2 g_fHpBG;
float4 g_fNine_Slice;
+float4 g_fImageUV;
+float4 g_fImageUV1;
+
+float2 g_fPosition[4];
+float4 g_fImagesUV[4];
Texture2D g_Texture;
Texture2D g_Texture1;
Texture2D g_Texture2;
+Texture2D g_Texture3;
+Texture2D g_Texture4;
Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
@@ -97,6 +104,8 @@ PS_OUT PS_AlphaBlend(PS_IN In)
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+ Color.rgb *= 1.5f;
+
Color.a *= Alpha;
Out.vColor = Color;
@@ -525,7 +534,6 @@ PS_OUT PS_HpBar(PS_IN In)
float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv);
Color = tex1;
-
float2 reversuv = In.vTexcoord;
reversuv.x = 1.0f - Finaluv;
@@ -537,7 +545,9 @@ PS_OUT PS_HpBar(PS_IN In)
tex2.rgb = float3(0.f, 0.f, 0.f);
}
- tex2.rgb *= float3(112.f, 241.f, 31.f) / 255.f;
+ float3 Green = float3(112.f, 241.f, 31.f) / 255.f;
+ Green *= 1.2f;
+ tex2.rgb *= Green;
if (all(Color.rgb >= float3(70.f / 255.f, 70.f / 255.f, 70.f / 255.f)))
Color = tex2;
@@ -547,6 +557,125 @@ PS_OUT PS_HpBar(PS_IN In)
return Out;
}
+PS_OUT PS_Magic_Meter(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float3 Blue = float3(41.f, 165.f, 255.f) / 255.f;
+
+ float4 color = float4(1.f, 1.f, 1.f, 1.f);
+ float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord);
+ float4 tex2 = g_Texture1.Sample(ClampSampler, In.vTexcoord);
+
+ float2 reverseuv = 1.f - In.vTexcoord;
+
+ color = tex1;
+ tex2.rgb *= Blue * 1.5f;
+
+ if (reverseuv.x >= g_fHp)
+ {
+ tex2.rgb = float3(0.f, 0.f, 0.f);
+ }
+
+ if (all(color.rgb >= float3(65.f / 255.f, 65.f / 255.f, 65.f / 255.f)))
+ color = tex2;
+
+ color.a *= Alpha;
+
+ Out.vColor = color;
+
+ return Out;
+}
+
+
+PS_OUT PS_Magic_Icon(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);
+ float2 uv = In.vTexcoord;
+ float2 center = float2(0.5, 0.5);
+ float scale = 1.2;
+
+ uv = (uv - center) * scale + center;
+ float4 tex2 = g_Texture1.Sample(ClampSampler, uv);
+
+ Color = tex1;
+
+ Color = tex1 * (1 - tex2.a) + tex2;
+
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_RemapUV(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);
+
+
+ float2 startUV = g_fImageUV.xy;
+ float2 endUV = g_fImageUV.zw;
+
+ float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, atlasUV);
+
+ Color = tex1;
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_Revelio(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);
+ float2 UV = In.vTexcoord;
+
+ float2 Position[4];
+ float2 startUV[4];
+ float2 endUV[4];
+
+ float2 Atlases[4];
+
+ for (int i = 0; i < 4; ++i)
+ {
+ Position[i] = g_fPosition[i];
+ startUV[i] = g_fImagesUV[i].xy;
+ endUV[i] = g_fImagesUV[i].zw;
+
+ Atlases[i] = startUV[i] + UV * (endUV[i] - startUV[i]);
+ }
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, UV);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, Atlases[0]);
+ float4 tex3 = g_Texture1.Sample(DefaultSampler, Atlases[1]);
+ float4 tex4 = g_Texture2.Sample(DefaultSampler, Atlases[2]);
+ float4 tex5 = g_Texture2.Sample(DefaultSampler, Atlases[3]);
+
+
+
+ //float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
technique11 PosTexTechnique11
{
pass Default
@@ -687,4 +816,44 @@ technique11 PosTexTechnique11
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_HpBar();
}
+ pass Magic_Meter
+ {
+ 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_Magic_Meter();
+ }
+
+ pass Magic_Icon
+ {
+ 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_Magic_Icon();
+ }
+
+ pass RemapUV
+ {
+ 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_RemapUV();
+ }
+
+ pass Revelio
+ {
+ 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_Revelio();
+ }
+
}
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 741b81ca2..d58737076 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -123,7 +123,7 @@
Windows
true
../../EngineSDK/Lib/$(ConfigurationName);%(AdditionalLibraryDirectories)
- Engine.lib;fmod_vc.lib;%(AdditionalDependencies)
+ Engine.lib;fmod_vc.lib;DirectXTKd.lib;%(AdditionalDependencies)
@@ -175,6 +175,8 @@
+
+
@@ -223,6 +225,9 @@
+
+
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index a0f5abf34..7c95db6e1 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -157,6 +157,12 @@
02.GameObjects\Cameras\Camera_Gaze
+
+ 02.GameObjects\Monster\Goblin
+
+
+ 02.GameObjects\Monster
+
@@ -245,9 +251,6 @@
{603938cc-e4fe-44d8-890b-784174a86161}
-
- {11250d84-e19c-4999-a5d6-d9f89123e7ae}
-
{b72a9bb0-1b21-416b-bd0c-ba943cd7cc9d}
@@ -305,15 +308,6 @@
{e83f88ec-c414-43b4-b437-52288cee431a}
-
- {9cc88058-bda3-4ed0-9ec9-1968963fdda4}
-
-
- {aac01a47-304a-4319-8bd8-fdd9020ddf18}
-
-
- {b719d948-fce3-4144-9d2c-edcab4cfceaf}
-
{ddf8c8e6-ca51-42e0-b08f-13ae0fd9d842}
@@ -389,6 +383,24 @@
{470c4db5-b306-4fb8-8338-0a99ac77ac89}
+
+ {3572e19c-c7cc-4c7a-add0-2012b81b3935}
+
+
+ {9cc88058-bda3-4ed0-9ec9-1968963fdda4}
+
+
+ {aac01a47-304a-4319-8bd8-fdd9020ddf18}
+
+
+ {b719d948-fce3-4144-9d2c-edcab4cfceaf}
+
+
+ {d371e373-e343-4e0b-9a0c-34eae167c1cd}
+
+
+ {1ff3d6f1-f31d-47b7-84b7-d23efe98d7d2}
+
@@ -535,6 +547,15 @@
02.GameObjects\Cameras\Camera_Gaze
+
+ 02.GameObjects\Monster\Goblin
+
+
+ 02.GameObjects\Monster\Goblin
+
+
+ 02.GameObjects\Monster
+
diff --git a/Jusin154_Team3D/Client/Private/Bombard.cpp b/Jusin154_Team3D/Client/Private/Bombard.cpp
index cf24bbdc2..b4d8f3223 100644
--- a/Jusin154_Team3D/Client/Private/Bombard.cpp
+++ b/Jusin154_Team3D/Client/Private/Bombard.cpp
@@ -179,11 +179,13 @@ void CBombard::Free()
SAFE_RELEASE(m_pLight_Projectile);
}
+#ifdef _DEBUG
void CBombard::Describe_Entity()
{
}
+#endif // _DEBUG
HRESULT CBombard::Bind_ShaderResources()
{
diff --git a/Jusin154_Team3D/Client/Private/Broom.cpp b/Jusin154_Team3D/Client/Private/Broom.cpp
index 705d3dbde..0c2abc4e2 100644
--- a/Jusin154_Team3D/Client/Private/Broom.cpp
+++ b/Jusin154_Team3D/Client/Private/Broom.cpp
@@ -157,7 +157,10 @@ void CBroom::Free()
}
+#ifdef _DEBUG
void CBroom::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/CamPosition.cpp b/Jusin154_Team3D/Client/Private/CamPosition.cpp
index 7b2fce6ba..9fa462cb3 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition.cpp
@@ -43,7 +43,10 @@ CGameObject* CCamPosition::Clone(void* pArg, CGameObject* pOwner)
{
return nullptr;
}
+#ifdef _DEBUG
void CCamPosition::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Arm.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Arm.cpp
index 2f00ec9dc..91d591849 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Arm.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Arm.cpp
@@ -99,6 +99,10 @@ void CCamPosition_Arm::Free()
{
__super::Free();
}
+#ifdef _DEBUG
+
void CCamPosition_Arm::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
index 839277a46..001602dad 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
@@ -66,6 +66,7 @@ void CCamPosition_Shoulder::Priority_Update(_float fTimeDelta)
if (true == m_bMovable) {
m_vAccDegreeXY.y += m_pGameInstance->Get_MouseMove().x * m_fMouseSensor;
m_vAccDegreeXY.x += m_pGameInstance->Get_MouseMove().y * m_fMouseSensor;
+ CMyTools::AdjustAccumulateDegreePitchYawDegree(m_vAccDegreeXY);
}
_vector vLook = XMVector3Normalize(XMLoadFloat3(&m_vShoulderPosRatio));
@@ -93,7 +94,10 @@ void CCamPosition_Shoulder::Update(_float fTimeDelta)
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_SHOULDER))) {
return;
}
+#ifdef _DEBUG
Describe_Entity();
+#endif // _DEBUG
+
if (m_pGameInstance->Key_Up(DIK_GRAVE)) {
m_bMovable = !m_bMovable;
}
@@ -212,14 +216,19 @@ void CCamPosition_Shoulder::Free()
SAFE_RELEASE(m_pTarget_LookPart);
SAFE_RELEASE(m_pTarget_FollowPart);
}
+#ifdef _DEBUG
+
void CCamPosition_Shoulder::Describe_Entity()
{
GUI::Begin("Cam_Shoulder");
m_pTransformCom->Describe_Entity();
- GUI::Text("fMouseSensor : %.1f", &m_fMouseSensor);
+
+ GUI::Text("fMouseSensor : %.1f", m_fMouseSensor);
GUI::SliderFloat("ShoulderDistance", &m_fShoulderDistance, 0.f, 10.f, "%.1f");
GUI::SliderFloat("BackFrontRatio", &m_fBackFrontRatio, 0.01f, 0.99f, "%.2f");
- GUI::Text("Pitch Yaw : %f %f", &m_vAccDegreeXY.x, &m_vAccDegreeXY.y);
+ GUI::Text("Pitch Yaw : %f %f", m_vAccDegreeXY.x, m_vAccDegreeXY.y);
GUI::SliderFloat3("ShoulderPosRatio", (_float*)&m_vShoulderPosRatio, -2.f, 2.f, "%.1f");
GUI::End();
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Socket.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Socket.cpp
index a0e990a1f..14f9d07b9 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Socket.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Socket.cpp
@@ -99,7 +99,10 @@ void CCamPosition_Socket::Free()
{
__super::Free();
}
+#ifdef _DEBUG
void CCamPosition_Socket::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp
index c3b561717..66fae4a22 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp
@@ -89,6 +89,10 @@ void CCamPosition_Target::Free()
{
__super::Free();
}
+#ifdef _DEBUG
+
void CCamPosition_Target::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
index d37e0cb12..23496f7f4 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
@@ -155,7 +155,10 @@ void CCamera_Debug::Free()
{
__super::Free();
}
+#ifdef _DEBUG
void CCamera_Debug::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
index 81b6771d0..03e703357 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
@@ -41,14 +41,16 @@ void CCamera_Gaze::Priority_Update(_float fTimeDelta)
void CCamera_Gaze::Update(_float fTimeDelta)
{
- GUI::Text("%d", m_iPriority);
+ GUI::Text("CAM_GAZE_PRIORITY : %d", m_iPriority);
if (false == m_bActive) {
return;
}
Transition(fTimeDelta);
Update_LerpTimer(fTimeDelta);
-
+#ifdef _DEBUG
Describe_Entity();
+#endif // _DEBUG
+
}
void CCamera_Gaze::Update_LerpTimer(Engine::_float fTimeDelta)
@@ -60,7 +62,6 @@ void CCamera_Gaze::Update_LerpTimer(Engine::_float fTimeDelta)
m_vLookLerpTime.x += fTimeDelta;
if (m_vLookLerpTime.y <= m_vLookLerpTime.x) {
m_vLookLerpTime.x = 0.f;
- m_bEnable_LookLerp = false;
XMStoreFloat3(&m_vLookPos_Src, XMLoadFloat3(&m_vLookPos_Dest));
XMStoreFloat3(&m_vLookPos_Dest, m_pLookTarget->Get_WorldPostion());
}
@@ -70,7 +71,6 @@ void CCamera_Gaze::Update_LerpTimer(Engine::_float fTimeDelta)
m_vFollowLerpTime.x += fTimeDelta;
if (m_vFollowLerpTime.y <= m_vFollowLerpTime.x) {
m_vFollowLerpTime.x = 0.f;
- m_bEnable_FollowLerp = false;
XMStoreFloat3(&m_vFollowPos_Src, m_pTransformCom->Get_State(STATE::POSITION));
XMStoreFloat3(&m_vFollowPos_Dest, m_pFollowTarget->Get_WorldPostion());
}
@@ -168,6 +168,9 @@ void CCamera_Gaze::Free()
{
__super::Free();
}
+
+#ifdef _DEBUG
+
void CCamera_Gaze::Describe_Entity()
{
GUI::Begin("Camera_Gaze_Describe");
@@ -196,3 +199,5 @@ void CCamera_Gaze::Describe_Entity()
GUI::End();
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp b/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp
index 8c1ad4266..c64ab4492 100644
--- a/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp
+++ b/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp
@@ -48,13 +48,15 @@ void CDummy_PhysXPlayable::Update(_float fTimeDelta)
m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor());
}
}
- m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -GRAVITY * fTimeDelta, 0.f, 0.f));
m_pCharacter_Controller->Move(fTimeDelta);
}
void CDummy_PhysXPlayable::Late_Update(_float fTimeDelta)
{
+#ifdef _DEBUG
Describe_Entity();
+#endif // _DEBUG
+
if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
}
@@ -219,8 +221,11 @@ void CDummy_PhysXPlayable::Free()
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pModelCom);
}
+#ifdef _DEBUG
void CDummy_PhysXPlayable::Describe_Entity()
{
m_pCharacter_Controller->Describe_Entity();
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Dummy_PhysXWall.cpp b/Jusin154_Team3D/Client/Private/Dummy_PhysXWall.cpp
index e48126ef6..bd71eb1c7 100644
--- a/Jusin154_Team3D/Client/Private/Dummy_PhysXWall.cpp
+++ b/Jusin154_Team3D/Client/Private/Dummy_PhysXWall.cpp
@@ -161,7 +161,10 @@ void CDummy_PhysXWall::Free()
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pModelCom);
}
+#ifdef _DEBUG
void CDummy_PhysXWall::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/EffectParts.cpp b/Jusin154_Team3D/Client/Private/EffectParts.cpp
index 3000b31ab..9b990b848 100644
--- a/Jusin154_Team3D/Client/Private/EffectParts.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectParts.cpp
@@ -86,8 +86,6 @@ HRESULT CEffectParts::Ready_Components(void* pArg)
{
return E_FAIL;
}
-
-
return S_OK;
}
@@ -123,8 +121,11 @@ void CEffectParts::Free()
__super::Free();
}
+#ifdef _DEBUG
void CEffectParts::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp
new file mode 100644
index 000000000..f7cbf1e00
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Goblin.cpp
@@ -0,0 +1,229 @@
+#include "pch.h"
+#include "Goblin.h"
+
+#include "GameInstance.h"
+
+#pragma region STATE
+#include "State_Idle.h"
+#include "State_Dodge.h"
+#include "State_Jump.h"
+#include "State_Land.h"
+#include "State_Move.h"
+#include "State_Combat.h"
+#pragma endregion
+
+CGoblin::CGoblin(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CMonster(pDevice, pContext)
+{
+}
+
+CGoblin::CGoblin(const CGoblin& Prototype)
+ : CMonster(Prototype)
+{
+}
+
+HRESULT CGoblin::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CGoblin::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components()))
+ return E_FAIL;
+
+ Add_FSM();
+
+ Set_Anim();
+
+ {
+ CFSM::FSM_DESC FSMDesc{};
+ FSMDesc.pStates = &m_States;
+ FSMDesc.pStateMask = &m_iStateMask;
+
+ m_pFSM->Bind_States(FSMDesc);
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ }
+
+ m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
+ m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
+
+ m_pCharacter_Controller->Set_Position(XMVectorSet(-10.f, 0.f, -10.f, 1.f));
+
+ return S_OK;
+}
+
+void CGoblin::Priority_Update(_float fTimeDelta)
+{
+ m_pTransformCom->RewindMomentum();
+}
+
+void CGoblin::Update(_float fTimeDelta)
+{
+ m_pFSM->Update_State(fTimeDelta);
+
+ m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
+
+ m_pCharacter_Controller->Move(fTimeDelta);
+
+}
+
+void CGoblin::Late_Update(_float fTimeDelta)
+{
+ __super::Late_Update(fTimeDelta);
+ m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position());
+
+ m_pTransformCom->LookAt(m_pPlayerTransform->Get_State(STATE::POSITION));
+
+ m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
+}
+
+HRESULT CGoblin::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ 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;
+ }
+ }
+
+#ifdef _DEBUG
+ m_pCharacter_Controller->Render();
+ //m_pRigidBody->Render();
+#endif
+
+ return S_OK;
+}
+
+HRESULT CGoblin::Ready_Components()
+{
+ CTransform::TRANSFORM_DESC Desc = {};
+
+ Desc.fSpeedPerSec = 10.f;
+ Desc.fRotationPerSec = XMConvertToRadians(180.0f);
+ Desc.fRadius = 10.f;
+
+ __super::Ready_Components(&Desc);
+
+ m_strModelPrototypeTag = TEXT("Prototype_Component_Goblin_Model");
+
+ /* Com_Model */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag,
+ reinterpret_cast(&m_pModelCom))))
+ return E_FAIL;
+
+ { // CCT
+ CCharacter_Controller::Character_Controller_DESC Desc{};
+
+ Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::MONSTER);
+ Desc.pTransform = m_pTransformCom;
+ Desc.eBodyType = ACTOR::CAPSULE;
+ Desc.fContactOffset = 0.1f;
+ Desc.fMaterial = { 0.5f, 0.5f, 0.6f };
+ Desc.bAutoStepping = { false };
+ Desc.fStepOffset = { 0.05f };
+ Desc.fRadius = 0.5f;
+ Desc.fHeight = 1.0f;
+ 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;
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) {
+ return E_FAIL;
+ }
+ }
+ m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION));
+ { // DO
+ CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
+ Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::MONSTER);
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
+ return E_FAIL;
+ }
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
+ }
+
+ return S_OK;
+}
+
+HRESULT CGoblin::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CGoblin* CGoblin::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CGoblin* pInstance = new CGoblin(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CGoblin");
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+CGameObject* CGoblin::Clone(void* pArg, CGameObject* pOwner)
+{
+ CGoblin* pInstance = new CGoblin(*this);
+
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CGoblin");
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CGoblin::Free()
+{
+ __super::Free();
+
+ if (nullptr != m_pCallBack_Behavior) {
+ m_pCallBack_Behavior->Finalize();
+ }
+ if (nullptr != m_pCallBack_HitReport) {
+ m_pCallBack_HitReport->Finalize();
+ }
+
+ SAFE_RELEASE(m_pCharacter_Controller);
+ SAFE_RELEASE(m_pRigidBody);
+ Safe_Delete(m_pCallBack_Behavior);
+ Safe_Delete(m_pCallBack_HitReport);
+}
+
+void CGoblin::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Goblin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_States.cpp
new file mode 100644
index 000000000..ff4a55c37
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Goblin_States.cpp
@@ -0,0 +1,150 @@
+#include "pch.h"
+#include "Goblin.h"
+
+#include "GameInstance.h"
+#include "Player.h"
+
+#pragma region STATE
+#include "State_Idle.h"
+#include "State_Dodge.h"
+#include "State_Jump.h"
+#include "State_Land.h"
+#include "State_Move.h"
+#include "State_Combat.h"
+#pragma endregion
+
+
+void CGoblin::Behavior_IdleEnter()
+{
+ m_pFSM->Enable_State(FSMSTATE::IDLE);
+ pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::IDLE];
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+}
+
+HRESULT CGoblin::Behavior_IdleExitCheck()
+{
+ if (m_fTargetDistance <= 15.f)
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+
+ return E_FAIL;
+}
+
+void CGoblin::Behavior_IdleExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::IDLE);
+}
+
+void CGoblin::Behavior_MoveEnter()
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+
+ m_pFSM->Enable_State(FSMSTATE::MOVE);
+ m_pFSM->Enable_State(FSMSTATE::JOG);
+
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+}
+
+HRESULT CGoblin::Behavior_MoveExitCheck()
+{
+ if (m_fTargetDistance <= 3.f)
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+
+ return E_FAIL;
+}
+
+void CGoblin::Behavior_MoveExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK);
+}
+
+void CGoblin::Behavior_CombatEnter()
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+
+ m_pFSM->Enable_State(FSMSTATE::COMBAT);
+
+ m_pFSM->Enable_State(FSMSTATE::SKILL);
+
+ pairAnimInfo = m_Animation[STATEANIM::SKILL];
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+}
+
+HRESULT CGoblin::Behavior_CombatExitCheck()
+{
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ }
+ return E_FAIL;
+}
+
+void CGoblin::Behavior_CombatExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::COMBAT | FSMSTATE::SKILL | FSMSTATE::SKILL2);
+}
+
+
+void CGoblin::Add_FSM()
+{
+#pragma region Behavior_Movement_NotFocus
+ {
+ CState_Idle::STATE_IDLE_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_IdleEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_IdleExitCheck(); };
+ Desc.funcExitEvent = [this]() { Behavior_IdleExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc));
+ }
+ {
+ CState_Move::STATE_MOVE_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_MoveEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(); };
+ Desc.funcExitEvent = [this]() { Behavior_MoveExit(); };
+ Desc.funcPriorityUpdate = [this](_float fTimeDelta) {
+ if (m_pGameInstance->Key_Pressing(DIK_A)) { m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta); }
+ if (m_pGameInstance->Key_Pressing(DIK_D)) { m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta); };
+ };
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc));
+ }
+#pragma endregion
+
+#pragma region Behavior_Combat_NotFocus
+ {
+ CState_Combat::STATE_COMBAT_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_CombatEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_CombatExitCheck(); };
+ Desc.funcExitEvent = [this]() { Behavior_CombatExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::COMBAT, CState_Combat::Create(&Desc));
+ }
+#pragma endregion
+#pragma region Behavior_Combat_Focus
+
+#pragma endregion
+
+}
+
+void CGoblin::Set_Anim()
+{
+
+ m_Animation[STATEANIM::IDLE] = { 22,true };
+
+ m_Animation[STATEANIM::WALK_FWD] = { 50,true };
+ m_Animation[STATEANIM::WALK_STOP] = { 58,false };
+
+ m_Animation[STATEANIM::JOG_FWD] = { 46,true };
+ m_Animation[STATEANIM::JOG_BWD] = { 154,false };
+
+ m_Animation[STATEANIM::SKILL] = { 70,false }; // 도끼 스윙
+ m_Animation[STATEANIM::SKILL2] = { 85,false }; // 나이프 던지기
+}
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index e6da7f86c..dce3b9971 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -12,6 +12,7 @@
#include "Broom.h"
#include "Dummy_PhysXWall.h"
#include "Dummy_PhysXPlayable.h"
+#include "Goblin.h"
CLevel_GamePlay::CLevel_GamePlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
@@ -37,6 +38,9 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
if (FAILED(Ready_Layer_SkyBox(TEXT("Layer_SkyBox")))) {
return E_FAIL;
}
+ if (FAILED(Ready_Layer_Monster())) {
+ return E_FAIL;
+ }
return S_OK;
}
@@ -49,7 +53,7 @@ HRESULT CLevel_GamePlay::Initialize()
void CLevel_GamePlay::Update(_float fTimeDelta)
{
- if (m_pGameInstance->Key_Up(DIK_F1))
+ if (m_pGameInstance->Key_Up(DIK_ADD))
{
m_pGameInstance->Set_LevelToChange();
}
@@ -130,7 +134,7 @@ HRESULT CLevel_GamePlay::Ready_Markers()
HRESULT CLevel_GamePlay::Ready_Layer_Player(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,nullptr,nullptr,&m_pPlayerTemp)))
return E_FAIL;
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
@@ -157,6 +161,14 @@ HRESULT CLevel_GamePlay::Ready_Layer_SkyBox(const _wstring& strLayerTag)
return S_OK;
}
+HRESULT CLevel_GamePlay::Ready_Layer_Monster()
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, m_pPlayerTemp)))
+ return E_FAIL;
+
+ return S_OK;
+}
+
pair> CLevel_GamePlay::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg)
{
CLevel_GamePlay* pInstance = new CLevel_GamePlay(pDevice, pContext, eLevelID);
diff --git a/Jusin154_Team3D/Client/Private/Light_Main.cpp b/Jusin154_Team3D/Client/Private/Light_Main.cpp
index 7c279f486..58d59055e 100644
--- a/Jusin154_Team3D/Client/Private/Light_Main.cpp
+++ b/Jusin154_Team3D/Client/Private/Light_Main.cpp
@@ -110,7 +110,10 @@ void CLight_Main::Free()
Safe_Release(m_pLightCom);
}
+#ifdef _DEBUG
void CLight_Main::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 6e6ee579a..0aeea01f3 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -17,6 +17,7 @@
#include "Wand.h"
#include "SkyBox.h"
#include "Broom.h"
+#include "Goblin.h"
#pragma region PHYSX
@@ -32,6 +33,7 @@
#include "Bombard.h"
#include "TrailObject.h"
#include "Instance_Model.h"
+#include "Trail.h"
#pragma endregion
@@ -217,6 +219,12 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_POSTEX,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"),
+ VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) {
+ return E_FAIL;
+ }
+
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
@@ -268,17 +276,21 @@ HRESULT CLoader::Loading_For_GamePlay()
}
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", 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_Wand_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity()))))
+ CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixIdentity()))))
return E_FAIL;
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Broom_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", 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()))))
+ return E_FAIL;
+
/* For.Prototype_Component_SkyboxModel */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SkyboxModel"),
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.bin", XMMatrixIdentity()))))
@@ -287,6 +299,9 @@ HRESULT CLoader::Loading_For_GamePlay()
m_strMessage = TEXT("이펙트를(을) 로딩 중 입니다.");
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTrail::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEffectParts::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
@@ -390,6 +405,10 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom::Create(m_pDevice, m_pContext))))
return E_FAIL;
+ /* For.Prototype_GameObject_Goblin */
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin::Create(m_pDevice, m_pContext))))
+ return E_FAIL;
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXWall::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/Monster.cpp b/Jusin154_Team3D/Client/Private/Monster.cpp
new file mode 100644
index 000000000..704992d98
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Monster.cpp
@@ -0,0 +1,79 @@
+#include "pch.h"
+#include "Monster.h"
+
+#include "GameInstance.h"
+#include "Player.h"
+
+CMonster::CMonster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CUnit(pDevice, pContext)
+{
+}
+
+CMonster::CMonster(const CMonster& Prototype)
+ : CUnit(Prototype)
+{
+}
+
+HRESULT CMonster::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CMonster::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ m_pPlayerTransform = static_cast(pArg)->Get_Component();
+ SAFE_ADDREF(m_pPlayerTransform);
+
+ return S_OK;
+}
+
+void CMonster::Priority_Update(_float fTimeDelta)
+{
+
+}
+
+void CMonster::Update(_float fTimeDelta)
+{
+
+}
+
+void CMonster::Late_Update(_float fTimeDelta)
+{
+ m_fTargetDistance = m_pTransformCom->TargetDis(m_pPlayerTransform->Get_State(STATE::POSITION));
+}
+
+HRESULT CMonster::Render()
+{
+ return S_OK;
+}
+
+HRESULT CMonster::Ready_Components(void*pArg)
+{
+ __super::Ready_Components(pArg);
+
+ /* Com_Shader */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH,
+ reinterpret_cast(&m_pShaderCom))))
+ return E_FAIL;
+
+ return S_OK;
+}
+
+HRESULT CMonster::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+void CMonster::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pPlayerTransform);
+}
+
+void CMonster::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp
index b1cc4b88a..530634db5 100644
--- a/Jusin154_Team3D/Client/Private/NomalJap.cpp
+++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp
@@ -150,12 +150,15 @@ void CNomalJap::Free()
// SAFE_RELEASE(m_pPhysHitBox);
}
+#ifdef _DEBUG
void CNomalJap::Describe_Entity()
{
}
+#endif // _DEBUG
+
HRESULT CNomalJap::Bind_ShaderResources()
{
return S_OK;
diff --git a/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
index 1904b1ea0..a92f97d44 100644
--- a/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
+++ b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
@@ -193,7 +193,10 @@ void CPhysXEffectHitBox::Free()
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pModelCom);
}
+#ifdef _DEBUG
void CPhysXEffectHitBox::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index cde4cb9bf..840e4b424 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -50,8 +50,10 @@ HRESULT CPlayer::Initialize(void* pArg)
if (FAILED(Ready_Parts())) {
return E_FAIL;
}
-
+#ifdef _DEBUG
Load_KeyFrame();
+#endif // _DEBUG
+
Add_FSM();
@@ -70,6 +72,16 @@ HRESULT CPlayer::Initialize(void* pArg)
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
+
+#ifdef _DEBUG
+ m_BasicEffect = make_unique(m_pDevice);
+ m_BasicEffect->SetVertexColorEnabled(true);
+ m_BasicEffect->SetView(m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW));
+ m_BasicEffect->SetProjection(m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ));
+
+ m_Batch = make_unique>(m_pContext);
+#endif // _DEBUG
+
return S_OK;
}
@@ -82,15 +94,21 @@ void CPlayer::Priority_Update(_float fTimeDelta)
void CPlayer::Update(_float fTimeDelta)
{
+#ifdef _DEBUG
+ Update_CameraCoordinateSystem();
+#endif // _DEBUG
+
m_pFSM->Update_State(fTimeDelta);
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
-
__super::Update(fTimeDelta);
+#ifdef _DEBUG
Describe_Entity();
+#endif // _DEBUG
+
m_pCharacter_Controller->Move(fTimeDelta);
@@ -108,8 +126,9 @@ void CPlayer::Late_Update(_float fTimeDelta)
HRESULT CPlayer::Render()
{
- if (!m_bVisible)
+ if (!m_bVisible){
return S_OK;
+ }
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
@@ -137,10 +156,55 @@ HRESULT CPlayer::Render()
#ifdef _DEBUG
m_pCharacter_Controller->Render();
//m_pRigidBody->Render();
+ Render_CameraCoordinateSystem();
#endif
return S_OK;
}
+#ifdef _DEBUG
+
+void CPlayer::Render_CameraCoordinateSystem()
+{
+
+
+ m_Batch->Begin();
+
+ const _float fArrowLength = 2.0f;
+ _vector xmvLook = XMVector4Normalize(XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f));
+ _float2 vLook = { XMVectorGetX(xmvLook), XMVectorGetZ(xmvLook) };
+
+
+ GUI::Text("W : %.2f, %.2f, %.2f", m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z);
+ GUI::Text("A : %.2f, %.2f, %.2f", -m_vCameraRightDir.x, 0.f, -m_vCameraRightDir.z);
+ GUI::Text("S : %.2f, %.2f, %.2f", -m_vCameraLookDir.x, 0.f, -m_vCameraLookDir.z);
+ GUI::Text("D : %.2f, %.2f, %.2f", m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z);
+
+ GUI::Button("##0", { 100.f, 100.f }); GUI::SameLine();
+ GUI::Button(("W : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })))).c_str(), {100.f, 100.f}); GUI::SameLine();
+ GUI::Button("##2", {100.f, 100.f});
+ GUI::Button(("A : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , -m_vCameraRightDir.z })))).c_str(), { 100.f, 100.f }); GUI::SameLine();
+ GUI::Button("##4", { 100.f, 100.f }); GUI::SameLine();
+ GUI::Button(("D : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })))).c_str(), { 100.f, 100.f });
+ GUI::Button("##6", {100.f, 100.f}); GUI::SameLine();
+ GUI::Button(("S : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , -m_vCameraLookDir.z })))).c_str(), { 100.f, 100.f }); GUI::SameLine();
+ GUI::Button("##8", {100.f, 100.f});
+
+ m_Batch->DrawLine( // W
+ VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::GhostWhite),
+ VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::Blue)
+ );
+ m_Batch->DrawLine( // D
+ VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::GhostWhite),
+ VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::Red)
+ );
+ m_Batch->DrawLine( // PlayerLook
+ VertexPositionColor(XMVectorZero(), DirectX::Colors::GhostWhite),
+ VertexPositionColor(fArrowLength * xmvLook, DirectX::Colors::HotPink)
+ );
+
+ m_Batch->End();
+}
+#endif // _DEBUG
HRESULT CPlayer::Ready_Components()
{
@@ -245,6 +309,17 @@ HRESULT CPlayer::Bind_ShaderResources()
}
return S_OK;
}
+#ifdef _DEBUG
+
+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);
+ XMStoreFloat3(&m_vCameraRightDir, XMVector3Normalize(XMVector3Cross(xmvUp, xmvCameraLook)));
+ XMStoreFloat3(&m_vCameraLookDir, xmvCameraLook);
+}
+#endif // _DEBUG
+
CPlayer* CPlayer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CPlayer* pInstance = new CPlayer(pDevice, pContext);
@@ -287,13 +362,14 @@ void CPlayer::Free()
SAFE_RELEASE(m_pCamPosition_TopDown_LookPart);
SAFE_RELEASE(m_pCamPosition_ShoulderPart);
}
+#ifdef _DEBUG
void CPlayer::Describe_Entity()
{
m_pCharacter_Controller->Describe_Entity();
_float4 vMomentum = {};
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
- GUI::Text("%.1f %.1f %.1f %.1f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
+ GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
_char label[256];
for (auto& iter : m_KeyFrames)
{
@@ -324,3 +400,7 @@ void CPlayer::Describe_Entity()
GUI::Checkbox("Render", &m_bVisible);
}
+
+#endif // _DEBUG
+
+
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index 42fa72364..4c0e485f7 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -121,6 +121,7 @@ void CPlayer::Behavior_IdleEnter() {
HRESULT CPlayer::Behavior_IdleExitCheck()
{
+ pair<_uint, _bool> pairAnimInfo;
// S_OK -> 현 상태 유지
// E_FAIL -> 현 상태 탈출
if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell())) {
@@ -145,17 +146,18 @@ HRESULT CPlayer::Behavior_IdleExitCheck()
else if (m_pGameInstance->Key_Down(DIK_V)) {
m_pFSM->Change_State(FSMSTATE::COMBAT);
}
-
return E_FAIL;
}
+
if (SUCCEEDED(InputMove())) {
+
m_pFSM->Change_State(FSMSTATE::MOVE);
return E_FAIL;
}
if (m_pModelCom->IsFinishedAnim())
{
- pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::IDLE];
+ pairAnimInfo = m_Animation[STATEANIM::IDLE];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
return S_OK;
@@ -197,7 +199,16 @@ void CPlayer::Behavior_MoveEnter()
m_pFSM->Enable_State(FSMSTATE::JOG);
m_bSprintToggle = false;
m_bWalkToggle = false;
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ if (bFoward)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ }
+ else if (bBackward)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_BWD];
+ m_fAmount = 0.2f;
+ }
+
}
}
else { // While Moving
@@ -221,11 +232,15 @@ void CPlayer::Behavior_MoveEnter()
m_pFSM->Enable_State(FSMSTATE::JOG);
m_bSprintToggle = false;
m_bWalkToggle = false;
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ if (bFoward)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ }
}
}
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, m_fAmount);
+ m_fAmount = 1.f;
}
HRESULT CPlayer::Behavior_MoveExitCheck()
@@ -259,7 +274,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck()
if (m_bSprintToggle)
{
m_pFSM->Enable_State(FSMSTATE::SPRINT);
-
+ m_pFSM->Disable_State(FSMSTATE::JOG);
pairAnimInfo = m_Animation[STATEANIM::SPRINT];
}
else
@@ -276,6 +291,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck()
if (m_bWalkToggle)
{
m_pFSM->Enable_State(FSMSTATE::WALK);
+ m_pFSM->Disable_State(FSMSTATE::JOG);
pairAnimInfo = m_Animation[STATEANIM::WALK_FWD];
}
else
@@ -289,6 +305,11 @@ HRESULT CPlayer::Behavior_MoveExitCheck()
return E_FAIL;
}
if (SUCCEEDED(InputMove())) {
+ if (m_pModelCom->IsFinishedAnim() && m_pFSM->IsEnable(FSMSTATE::JOG))
+ {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ }
return S_OK;
}
@@ -380,6 +401,11 @@ HRESULT CPlayer::Behavior_DodgeExitCheck()
m_pFSM->Change_State(FSMSTATE::IDLE);
return E_FAIL;
}
+
+ if (SUCCEEDED(InputMove()) && IsCurrentKeyFrame("Dodge")) {
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+ return E_FAIL;
+ }
return S_OK;
}
@@ -619,6 +645,7 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::WALK_STOP] = { 344,false };
m_Animation[STATEANIM::JOG_FWD] = { 167,true };
+ m_Animation[STATEANIM::JOG_BWD] = { 154,false };
m_Animation[STATEANIM::JOG_STOP] = { 289,false };
m_Animation[STATEANIM::JUMP] = { 205,false };
@@ -630,6 +657,7 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::LAND] = { 259,false };
m_Animation[STATEANIM::DODGE] = { 802,false };
+ m_Animation[STATEANIM::DODGE_BLINK] = { 799,true };
m_Animation[STATEANIM::SKILL] = { 593,false };
m_Animation[STATEANIM::SKILL2] = { 915,false };
diff --git a/Jusin154_Team3D/Client/Private/SkyBox.cpp b/Jusin154_Team3D/Client/Private/SkyBox.cpp
index e59e8b727..222ba7107 100644
--- a/Jusin154_Team3D/Client/Private/SkyBox.cpp
+++ b/Jusin154_Team3D/Client/Private/SkyBox.cpp
@@ -146,7 +146,10 @@ void CSkyBox::Free()
SAFE_RELEASE(m_pModelCom);
SAFE_RELEASE(m_pShaderCom);
}
+#ifdef _DEBUG
void CSkyBox::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/TrailObject.cpp b/Jusin154_Team3D/Client/Private/TrailObject.cpp
index 5565c2e68..158597cb0 100644
--- a/Jusin154_Team3D/Client/Private/TrailObject.cpp
+++ b/Jusin154_Team3D/Client/Private/TrailObject.cpp
@@ -38,26 +38,82 @@ void CTrailObject::Priority_Update(_float fTimeDelta)
void CTrailObject::Update(_float fTimeDelta)
{
- m_pTrailCom->Trail_Update(fTimeDelta, m_pParentTransformCom->Get_XMWorldMatrix());
+
+ if (m_bVisible == false)
+ return;
+
+
+ m_CombinedMat = m_pParentTransformCom->Get_XMWorldMatrix();
+
+ m_CombinedMat.r[3] += m_vOffset;
+
+ m_pTrailCom->Trail_Update(fTimeDelta, m_CombinedMat);
+
+
+ if (m_TrailInfo.vDistortionTime.y == 0)
+ return;
+
+ m_TrailInfo.vDistortionTime.x += fTimeDelta;
+
+ if (m_TrailInfo.vDistortionTime.x > m_TrailInfo.vDistortionTime.y)
+ {
+ m_TrailInfo.vDistortionTime.x = 0.f;
+ }
}
void CTrailObject::Late_Update(_float fTimeDelta)
{
+ if (m_bVisible == false)
+ return;
+
+ if (m_TrailInfo.isBlur == true)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this);
+ }
+
+ if (m_TrailInfo.isOnlyBlur == true)
+ return;
+
if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this);
}
}
+HRESULT CTrailObject::Ready_Components(void* pArg)
+{
+
+ if (FAILED(__super::Ready_Components(nullptr))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_POSTEX, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ CTrail::TRAIL_DESC pTrailDesc;
+
+ pTrailDesc.vHigh = _float3(0.f, 1.f, 0.f);
+ pTrailDesc.vLow = _float3(0.f, -1.f, 0.f);
+
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pTrailCom, &pTrailDesc))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
{
SAFE_RELEASE(m_pDiffuse_TextureCom);
SAFE_RELEASE(m_pMasking_TextureCom);
SAFE_RELEASE(m_pNoise_TextureCom);
+ SAFE_RELEASE(m_pDistortion_TextureCom);
_string strPerfectFilePath = pPath;
- strPerfectFilePath += ".bin";
+ strPerfectFilePath += ".trail";
DWORD dwByte(0);
@@ -78,11 +134,6 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
return E_FAIL;
}
-
- if (!ReadFile(hFile, &m_eEffectType, sizeof(EFFECT_TYPE), &dwByte, nullptr)) {
- return E_FAIL;
- }
-
size_t iComponentLength = {};
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
@@ -99,13 +150,9 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
m_strTrailDiffuseName = szName;
- m_isDiffuse = true;
-
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailDiffuseName),
reinterpret_cast(&m_pDiffuse_TextureCom))))
return E_FAIL;
-
-
}
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
@@ -122,8 +169,6 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
m_strTrailNoiseName = szName;
- m_isNoise = true;
-
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailNoiseName),
reinterpret_cast(&m_pNoise_TextureCom))))
return E_FAIL;
@@ -141,47 +186,45 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
return E_FAIL;
}
-
- m_strTrailMaskingName = szName;
- m_isMask = true;
+ m_strTrailMaskingName = szName;
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailMaskingName),
reinterpret_cast(&m_pMasking_TextureCom))))
return E_FAIL;
}
+
+ if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ if (iComponentLength != 0)
+ {
+ _char szName[MAX_PATH] = {};
+
+ if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ m_strTrailDistortionName = szName;
+
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailDistortionName),
+ reinterpret_cast(&m_pDistortion_TextureCom))))
+ return E_FAIL;
+
+ }
+
+
m_pTrailCom->Load_Trail(hFile);
+
+ if (!ReadFile(hFile, &m_TrailInfo, sizeof(TRAIL_INFO), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
CloseHandle(hFile);
-
- MessageBox(NULL, L"트레일 로드 성공", L"System Message", MB_OK);
-
- return S_OK;
-}
-
-HRESULT CTrailObject::Ready_Components(void* pArg)
-{
-
- if (FAILED(__super::Ready_Components(nullptr))) {
- return E_FAIL;
- }
-
- if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_POSTEX, (CComponent**)&m_pShaderCom, nullptr)))
- {
- return E_FAIL;
- }
-
- CTrail::TRAIL_DESC pTrailDesc;
-
- pTrailDesc.vHigh = _float3(0.f, 1.f, 0.f);
- pTrailDesc.vLow = _float3(0.f, -1.f, 0.f);
-
- if (FAILED(Add_Component(ENUM_CLASS(LEVEL::STATIC), &m_pTrailCom, &pTrailDesc))) {
- return E_FAIL;
- }
-
return S_OK;
}
@@ -199,6 +242,27 @@ HRESULT CTrailObject::Render()
return S_OK;
}
+HRESULT CTrailObject::Render_Blur()
+{
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL_BLUR))))
+ return E_FAIL;
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fBlurIntensity", &m_TrailInfo.fBlurIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iBlurWeight", &m_TrailInfo.iBlurWeight, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Bind_ShaderResources()))
+ return E_FAIL;
+
+ if (FAILED(m_pTrailCom->Render()))
+ return E_FAIL;
+
+ return S_OK;
+}
@@ -238,40 +302,138 @@ void CTrailObject::Free()
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pTrailCom);
}
+#ifdef _DEBUG
void CTrailObject::Describe_Entity()
{
+ GUI::Begin("VALUE");
+
+ _float4 vValue = {};
+
+ XMStoreFloat4(&vValue, m_vOffset);
+
+ if (GUI::InputFloat4("OFFSET", (_float*)&vValue))
+ {
+ m_vOffset = XMLoadFloat4(&vValue);
+ }
+
+ GUI::End();
}
+#endif // _DEBUG
+
HRESULT CTrailObject::Bind_ShaderResources()
{
+
if (FAILED(m_pTrailCom->Bind_Resources()))
return E_FAIL;
- if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
return E_FAIL;
}
+
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuse", &m_isDiffuse, sizeof(_bool)))) {
+ /* 디퓨즈 */
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuse", &m_TrailInfo.isDiffuse, sizeof(_bool)))) {
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_isMask", &m_isMask, sizeof(_bool)))) {
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fDiffuseAlpha", &m_TrailInfo.fDiffuseAlpha, sizeof(_float)))) {
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoise", &m_isNoise, sizeof(_bool)))) {
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vColor", &m_TrailInfo.vColor, sizeof(_float4)))) {
return E_FAIL;
}
+ /* 마스크 */
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isMask", &m_TrailInfo.isMask, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftMask", &m_TrailInfo.fSoftMask, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftMaskEdge", &m_TrailInfo.fSoftMaskEdge, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ /* 노이즈 */
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoise", &m_TrailInfo.isNoise, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseColor", &m_TrailInfo.isNoiseColor, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseAlpha", &m_TrailInfo.isNoiseAlpha, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNoiseStrength", &m_TrailInfo.fNoiseStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ /* 디스토션 */
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isDistortion", &m_TrailInfo.isDistortion, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vDistortionTime", &m_TrailInfo.vDistortionTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseDistortionUVGainAmount", &m_TrailInfo.vDiffuseDistortioUVAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fDistortionIntensity", &m_TrailInfo.fDistortionIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskDistortionUVGainAmount", &m_TrailInfo.vMaskDistortionUVAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+
+ /* 이미시브 */
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vEmissive", &m_TrailInfo.vEmissive, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fEmissiveStrength", &m_TrailInfo.fEmissiveStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftenExp", &m_TrailInfo.fSoftenExp, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftStrength", &m_TrailInfo.fSoftStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoreBoost", &m_TrailInfo.fCoreBoost, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fRadius", &m_TrailInfo.fRadius, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+
if (m_pDiffuse_TextureCom != nullptr)
{
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DiffuseTexture", 0))) {
@@ -293,5 +455,12 @@ HRESULT CTrailObject::Bind_ShaderResources()
}
}
+ if (m_pDistortion_TextureCom != nullptr)
+ {
+ if (FAILED(m_pMasking_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DistortionTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Wand.cpp b/Jusin154_Team3D/Client/Private/Wand.cpp
index 5412960a8..7fecc35df 100644
--- a/Jusin154_Team3D/Client/Private/Wand.cpp
+++ b/Jusin154_Team3D/Client/Private/Wand.cpp
@@ -2,6 +2,7 @@
#include "Wand.h"
#include "GameInstance.h"
+#include "TrailObject.h"
CWand::CWand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CPartObject(pDevice, pContext)
@@ -30,6 +31,21 @@ HRESULT CWand::Initialize(void* pArg)
if (FAILED(Ready_Components()))
return E_FAIL;
+
+ CPartObject::PARTOBJECT_DESC PartsDesc{};
+
+ PartsDesc.pParentTransform = m_pTransformCom;
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Trail"), &PartsDesc, this , &pTrail))) {
+ assert(false);
+ return E_FAIL;
+ }
+
+ if (FAILED(pTrail->Load_Trail("../Bin/Resources/Data/Effect/Decendo/Proj_Trail" , static_cast(NEXT_LEVEL))))
+ return E_FAIL;
+
+ pTrail->Set_Target(m_pModelCom->Get_BoneMatrixPtr("root" ), XMVectorSet(0.f, 1.f, 0.f , 0.f));
+
return S_OK;
}
@@ -160,7 +176,10 @@ void CWand::Free()
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pModelCom);
}
+#ifdef _DEBUG
void CWand::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Public/Bombard.h b/Jusin154_Team3D/Client/Public/Bombard.h
index c53c892e3..a7d0b9488 100644
--- a/Jusin154_Team3D/Client/Public/Bombard.h
+++ b/Jusin154_Team3D/Client/Public/Bombard.h
@@ -36,7 +36,9 @@ class CBombard final : public CEffect_Container
static CBombard* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
void Describe_Entity() override;
+#endif // _DEBUG
};
NS_END
diff --git a/Jusin154_Team3D/Client/Public/Broom.h b/Jusin154_Team3D/Client/Public/Broom.h
index f9173cf0a..afddef72a 100644
--- a/Jusin154_Team3D/Client/Public/Broom.h
+++ b/Jusin154_Team3D/Client/Public/Broom.h
@@ -37,7 +37,10 @@ class CBroom final : public CGameObject
static CBroom* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
virtual void Free() override;
+#ifdef _DEBUG
virtual void Describe_Entity() override;
+#endif // _DEBUG
+
};
NS_END
diff --git a/Jusin154_Team3D/Client/Public/CamPosition.h b/Jusin154_Team3D/Client/Public/CamPosition.h
index 6ebb2c5d4..f6cd71211 100644
--- a/Jusin154_Team3D/Client/Public/CamPosition.h
+++ b/Jusin154_Team3D/Client/Public/CamPosition.h
@@ -29,8 +29,9 @@ class CCamPosition abstract : public CPartObject
CGameObject* Clone(void* pArg, CGameObject* pOwner)PURE;
virtual void Free() override;
-
+#ifdef _DEBUG
void Describe_Entity() override;
+#endif // _DEBUG
};
diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Arm.h b/Jusin154_Team3D/Client/Public/CamPosition_Arm.h
index 03d40cea9..fa5bb8674 100644
--- a/Jusin154_Team3D/Client/Public/CamPosition_Arm.h
+++ b/Jusin154_Team3D/Client/Public/CamPosition_Arm.h
@@ -38,7 +38,10 @@ class CCamPosition_Arm final : public CCamPosition
static CCamPosition_Arm* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CCamPosition_Arm* 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/CamPosition_Shoulder.h b/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h
index 26b2a247d..00cb7f7c5 100644
--- a/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h
+++ b/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h
@@ -58,7 +58,11 @@ class CCamPosition_Shoulder final : public CCamPosition
static CCamPosition_Shoulder* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CCamPosition_Shoulder* 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/CamPosition_Socket.h b/Jusin154_Team3D/Client/Public/CamPosition_Socket.h
index aaac3e749..c877cbd4f 100644
--- a/Jusin154_Team3D/Client/Public/CamPosition_Socket.h
+++ b/Jusin154_Team3D/Client/Public/CamPosition_Socket.h
@@ -33,7 +33,10 @@ class CCamPosition_Socket final : public CCamPosition
static CCamPosition_Socket* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CCamPosition_Socket* 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/CamPosition_Target.h b/Jusin154_Team3D/Client/Public/CamPosition_Target.h
index ff9bd01bf..2f939317d 100644
--- a/Jusin154_Team3D/Client/Public/CamPosition_Target.h
+++ b/Jusin154_Team3D/Client/Public/CamPosition_Target.h
@@ -31,7 +31,11 @@ class CCamPosition_Target final : public CCamPosition
static CCamPosition_Target* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CCamPosition_Target* 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/Camera_Debug.h b/Jusin154_Team3D/Client/Public/Camera_Debug.h
index ca7cb5070..d1cb8c255 100644
--- a/Jusin154_Team3D/Client/Public/Camera_Debug.h
+++ b/Jusin154_Team3D/Client/Public/Camera_Debug.h
@@ -40,7 +40,9 @@ class CCamera_Debug final : public CCamera
static CCamera_Debug* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
virtual void Free() override;
+#ifdef _DEBUG
void Describe_Entity() override;
+#endif // _DEBUG
};
diff --git a/Jusin154_Team3D/Client/Public/Camera_Gaze.h b/Jusin154_Team3D/Client/Public/Camera_Gaze.h
index 7b7d26a2f..d78c1563a 100644
--- a/Jusin154_Team3D/Client/Public/Camera_Gaze.h
+++ b/Jusin154_Team3D/Client/Public/Camera_Gaze.h
@@ -36,8 +36,11 @@ class CCamera_Gaze final : public CCamera
static CCamera_Gaze* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, 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 1096d0d07..6b13a379d 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -11,7 +11,7 @@ namespace Client
enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, END };
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, END };
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
- enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, END };
+ enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR, END };
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, END };
enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, END };
diff --git a/Jusin154_Team3D/Client/Public/Dummy_PhysXPlayable.h b/Jusin154_Team3D/Client/Public/Dummy_PhysXPlayable.h
index 949275a8c..6c2583d33 100644
--- a/Jusin154_Team3D/Client/Public/Dummy_PhysXPlayable.h
+++ b/Jusin154_Team3D/Client/Public/Dummy_PhysXPlayable.h
@@ -46,7 +46,9 @@ class CDummy_PhysXPlayable final : public CGameObject
static CDummy_PhysXPlayable* 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/Dummy_PhysXWall.h b/Jusin154_Team3D/Client/Public/Dummy_PhysXWall.h
index 3a5e189f9..a51fb0305 100644
--- a/Jusin154_Team3D/Client/Public/Dummy_PhysXWall.h
+++ b/Jusin154_Team3D/Client/Public/Dummy_PhysXWall.h
@@ -42,7 +42,10 @@ class CDummy_PhysXWall final : public CGameObject
static CDummy_PhysXWall* 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/EffectObject.h b/Jusin154_Team3D/Client/Public/EffectObject.h
index 1ff1ea0c2..fcae5d32c 100644
--- a/Jusin154_Team3D/Client/Public/EffectObject.h
+++ b/Jusin154_Team3D/Client/Public/EffectObject.h
@@ -73,14 +73,16 @@ class CEffectObject abstract : public CPartObject
_bool isNoiseAlpha = { false };
_bool isNomalDissolve = {};
- _float fSoftenExp = { 1.31429f };
- _float fSoftStrength = {};
- _float fCoreBoost = {};
- _float fRadius = {};
+ _float fSoftenExp = { 1.31429f };
+ _float fSoftStrength = {};
+ _float fCoreBoost = {};
+ _float fRadius = {};
- _float fSoftMaskEdge = {};
- _float fSoftMask = {};
+ _float fSoftMaskEdge = {};
+ _float fSoftMask = {};
+ _bool isEmissiveDissolveReverse = { false };
+ _bool isOnlyBlur = { false };
}EFFECT_INFO;
diff --git a/Jusin154_Team3D/Client/Public/EffectParts.h b/Jusin154_Team3D/Client/Public/EffectParts.h
index 6517ab292..b9e615b1c 100644
--- a/Jusin154_Team3D/Client/Public/EffectParts.h
+++ b/Jusin154_Team3D/Client/Public/EffectParts.h
@@ -31,7 +31,10 @@ class CEffectParts final : public CEffectObject
static CEffectParts* 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/GamePlay_Canvas.h b/Jusin154_Team3D/Client/Public/GamePlay_Canvas.h
index 5a0fc94e8..941a2de85 100644
--- a/Jusin154_Team3D/Client/Public/GamePlay_Canvas.h
+++ b/Jusin154_Team3D/Client/Public/GamePlay_Canvas.h
@@ -44,7 +44,11 @@ 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/Client/Public/Goblin.h b/Jusin154_Team3D/Client/Public/Goblin.h
new file mode 100644
index 000000000..355b1c540
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Goblin.h
@@ -0,0 +1,61 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Monster.h"
+#include "CallBack_Monster_Behavior.h"
+#include "CallBack_Monster_HitReport.h"
+
+NS_BEGIN(Client)
+
+class CGoblin final : public CMonster
+{
+private:
+ CGoblin(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CGoblin(const CGoblin& Prototype);
+ virtual ~CGoblin() = default;
+
+public:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+ virtual HRESULT Render() override;
+
+private:
+ CCallBack_Monster_Behavior* m_pCallBack_Behavior = { nullptr };
+ CCallBack_Monster_HitReport* m_pCallBack_HitReport = { nullptr };
+
+ CCharacter_Controller* m_pCharacter_Controller = { nullptr };
+ CRigidBody_Dynamic* m_pRigidBody = { nullptr };
+
+private:
+ HRESULT Ready_Components();
+ HRESULT Bind_ShaderResources();
+
+public:
+ static CGoblin* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
+ virtual void Free() override;
+ virtual void Describe_Entity() override;
+
+private:
+ virtual void Add_FSM();
+ virtual void Set_Anim();
+
+
+ void Behavior_IdleEnter();
+ HRESULT Behavior_IdleExitCheck();
+ void Behavior_IdleExit();
+
+ void Behavior_MoveEnter();
+ HRESULT Behavior_MoveExitCheck();
+ void Behavior_MoveExit();
+
+ void Behavior_CombatEnter();
+ HRESULT Behavior_CombatExitCheck();
+ void Behavior_CombatExit();
+
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Level_GamePlay.h b/Jusin154_Team3D/Client/Public/Level_GamePlay.h
index fd70267a6..794ad9ea9 100644
--- a/Jusin154_Team3D/Client/Public/Level_GamePlay.h
+++ b/Jusin154_Team3D/Client/Public/Level_GamePlay.h
@@ -18,7 +18,7 @@ class CLevel_GamePlay final : public CLevel
private:
class CInfoInstance* m_pInfoInstance = { nullptr };
-
+ class CPlayer* m_pPlayerTemp = { nullptr };
private:
virtual HRESULT Initialize() override;
HRESULT Initialize(void* pArg);
@@ -29,6 +29,7 @@ class CLevel_GamePlay final : public CLevel
HRESULT Ready_Layer_Sound();
HRESULT Ready_Layer_Player(const _wstring& strLayerTag);
HRESULT Ready_Layer_SkyBox(const _wstring& strLayerTag);
+ HRESULT Ready_Layer_Monster();
public:
static pair> Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg);
diff --git a/Jusin154_Team3D/Client/Public/Light_Main.h b/Jusin154_Team3D/Client/Public/Light_Main.h
index b7dc0129e..71ffeed40 100644
--- a/Jusin154_Team3D/Client/Public/Light_Main.h
+++ b/Jusin154_Team3D/Client/Public/Light_Main.h
@@ -31,7 +31,11 @@ class CLight_Main final : public CGameObject
static CLight_Main* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
virtual void Free() override;
+#ifdef _DEBUG
virtual void Describe_Entity() override;
+
+#endif // _DEBUG
+
};
NS_END
diff --git a/Jusin154_Team3D/Client/Public/Monster.h b/Jusin154_Team3D/Client/Public/Monster.h
new file mode 100644
index 000000000..3545423b4
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Monster.h
@@ -0,0 +1,37 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Unit.h"
+
+NS_BEGIN(Client)
+
+class CMonster abstract : public CUnit
+{
+protected:
+ CMonster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CMonster(const CMonster& Prototype);
+ virtual ~CMonster() = default;
+
+public:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+ virtual HRESULT Render() override;
+
+protected:
+ CTransform* m_pPlayerTransform = { nullptr };
+ _float m_fTargetDistance = {};
+
+protected:
+ HRESULT Ready_Components(void* pArg);
+ HRESULT Bind_ShaderResources();
+
+public:
+ virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)PURE;
+ virtual void Free() override;
+ virtual void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/NomalJap.h b/Jusin154_Team3D/Client/Public/NomalJap.h
index 3c99a2848..1ee112ae2 100644
--- a/Jusin154_Team3D/Client/Public/NomalJap.h
+++ b/Jusin154_Team3D/Client/Public/NomalJap.h
@@ -35,7 +35,11 @@ class CNomalJap final : public CEffect_Container
static CNomalJap* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
void Describe_Entity() override;
+
+#endif // _DEBUG
+
};
NS_END
diff --git a/Jusin154_Team3D/Client/Public/PhysXEffectHitBox.h b/Jusin154_Team3D/Client/Public/PhysXEffectHitBox.h
index 5c5f0d4de..780fe4fe7 100644
--- a/Jusin154_Team3D/Client/Public/PhysXEffectHitBox.h
+++ b/Jusin154_Team3D/Client/Public/PhysXEffectHitBox.h
@@ -55,7 +55,11 @@ class CPhysXEffectHitBox final : public CGameObject
static CPhysXEffectHitBox* 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/Player.h b/Jusin154_Team3D/Client/Public/Player.h
index b39d1ed33..39f0b6ba7 100644
--- a/Jusin154_Team3D/Client/Public/Player.h
+++ b/Jusin154_Team3D/Client/Public/Player.h
@@ -17,16 +17,20 @@ class CPlayer final : public CUnit
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
+#ifdef _DEBUG
+ void Render_CameraCoordinateSystem();
+#endif // _DEBUG
_bool Set_Sprint(_bool bSprint) { m_bSprintToggle = bSprint; }
private:
- unordered_map m_States = { };
- size_t m_iStateMask = { 0 };
_float m_fDirectionRadian = 0.f;
_bool m_bSprintToggle = { false };
_bool m_bWalkToggle = { false };
+ _float3 m_vCameraLookDir = { 0.f, 0.f, 1.f, };
+ _float3 m_vCameraRightDir = { 1.f, 0.f, 0.f };
+
class CCamPosition_Socket* m_pCamPosition_TopDown_LookPart = { nullptr };
class CCamPosition_Arm* m_pCamPosition_TopDown_FollowPart = { nullptr };
@@ -43,12 +47,22 @@ class CPlayer final : public CUnit
HRESULT Ready_Parts();
HRESULT Bind_ShaderResources();
+#ifdef _DEBUG
+ void Update_CameraCoordinateSystem();
+ unique_ptr m_BasicEffect;
+ unique_ptr> m_Batch;
+#endif // _DEBUG
+
+
public:
static CPlayer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
virtual void Free() override;
+#ifdef _DEBUG
virtual void Describe_Entity() override;
+#endif // _DEBUG
+
#pragma region STATE
public:
@@ -60,12 +74,12 @@ class CPlayer final : public CUnit
virtual void Add_FSM();
virtual void Set_Anim();
+ _float m_fAmount = { 1.f };
+
HRESULT InputAction();
HRESULT InputMove();
HRESULT InputSpell();
- STATEANIM::ESTATE m_eSpell = { STATEANIM::END };
-
void Behavior_IdleEnter();
HRESULT Behavior_IdleExitCheck();
void Behavior_IdleExit();
diff --git a/Jusin154_Team3D/Client/Public/SkyBox.h b/Jusin154_Team3D/Client/Public/SkyBox.h
index 6d4838289..d545028f5 100644
--- a/Jusin154_Team3D/Client/Public/SkyBox.h
+++ b/Jusin154_Team3D/Client/Public/SkyBox.h
@@ -33,7 +33,10 @@ class CSkyBox final : public CGameObject
static CSkyBox* 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/TrailObject.h b/Jusin154_Team3D/Client/Public/TrailObject.h
index 988ef6ea8..8989e37da 100644
--- a/Jusin154_Team3D/Client/Public/TrailObject.h
+++ b/Jusin154_Team3D/Client/Public/TrailObject.h
@@ -13,6 +13,50 @@ NS_BEGIN(Client)
class CTrailObject final : public CPartObject
{
+public:
+ typedef struct tagTrailInfo
+ {
+ EFFECT_TYPE eEffectType = { EFFECT_TYPE::TRAIL };
+ /* 디퓨즈 */
+ _bool isDiffuse = {};
+ _float fDiffuseAlpha = { 1.f };
+ _float4 vColor = { 0.f ,0.f ,0.f ,1.f };
+
+ /* 마스크 */
+ _bool isMask = {};
+ _float fSoftMaskEdge = {};
+ _float fSoftMask = {};
+
+ /* 노이즈 */
+ _bool isNoise = {};
+ _bool isNoiseColor = { false };
+ _bool isNoiseAlpha = { false };
+ _float fNoiseStrength = {};
+
+ /* 디스 토션 */
+ _bool isDistortion = {};
+ _float2 vDistortionTime = {};
+ _float2 vDiffuseDistortioUVAmount = {};
+ _float2 vMaskDistortionUVAmount = {};
+ _float fDistortionIntensity = {};
+
+ /* 이미시브 */
+ _float4 vEmissive = { 0.f ,0.f ,0.f ,0.f };
+
+ _float fEmissiveStrength = { 0.f };
+ _float fSoftenExp = { 1.31429f };
+ _float fSoftStrength = {};
+ _float fCoreBoost = {};
+ _float fRadius = {};
+
+
+ /* 블러 */
+ _bool isBlur = {};
+ _bool isOnlyBlur = { false };
+ _float fBlurIntensity = {};
+ _int iBlurWeight = {};
+
+ }TRAIL_INFO;
private:
CTrailObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CTrailObject(const CTrailObject& rhs);
@@ -25,23 +69,38 @@ class CTrailObject final : public CPartObject
public:
HRESULT Load_Trail(const _char* pPath, LEVEL eLevel);
+ void Set_Target(const _float4x4* pMatrix , _fvector v0ffset) {
+
+ if (pMatrix != nullptr)
+ {
+ m_pParantsMatrix = pMatrix;
+ m_vOffset = v0ffset;
+ }
+ }
+
private:
HRESULT Bind_ShaderResources() override;
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
virtual HRESULT Ready_Components(void* pArg) override;
virtual HRESULT Render() override;
+ virtual HRESULT Render_Blur() override;
+
public:
static CTrailObject* 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
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pNoise_TextureCom = { nullptr };
CTexture* m_pMasking_TextureCom = { nullptr };
+ CTexture* m_pDistortion_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CTrail* m_pTrailCom = { nullptr };
@@ -49,15 +108,16 @@ class CTrailObject final : public CPartObject
_string m_strTrailDiffuseName = {};
_string m_strTrailNoiseName = {};
_string m_strTrailMaskingName = {};
+ _string m_strTrailDistortionName = {};
_string m_strPath = {};
_string m_strName = {};
- _bool m_isDiffuse = {};
- _bool m_isNoise = {};
- _bool m_isMask = {};
+ TRAIL_INFO m_TrailInfo = {};
- EFFECT_TYPE m_eEffectType = { EFFECT_TYPE::TRAIL };
+ const _float4x4* m_pParantsMatrix = {};
+ _vector m_vOffset = {};
+ _matrix m_CombinedMat = {};
};
NS_END
diff --git a/Jusin154_Team3D/Client/Public/Wand.h b/Jusin154_Team3D/Client/Public/Wand.h
index 55a5a22a3..58f95cfaa 100644
--- a/Jusin154_Team3D/Client/Public/Wand.h
+++ b/Jusin154_Team3D/Client/Public/Wand.h
@@ -26,11 +26,11 @@ class CWand final : public CPartObject
virtual HRESULT Render() override;
private:
- const _float4x4* m_pSocketMatrices = { };
- CShader* m_pShaderCom = { nullptr };
- CModel* m_pModelCom = { nullptr };
-
+ const _float4x4* m_pSocketMatrices = { };
+ CShader* m_pShaderCom = { nullptr };
+ CModel* m_pModelCom = { nullptr };
+ class CTrailObject* pTrail = { nullptr };
private:
HRESULT Ready_Components();
HRESULT Bind_ShaderResources();
@@ -39,7 +39,10 @@ class CWand final : public CPartObject
static CWand* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override;
virtual void Free() override;
- virtual void Describe_Entity() override;
+
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
};
NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Cricle_S.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Cricle_S.bin
new file mode 100644
index 000000000..45d42658b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Cricle_S.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bdcd7b54807efb619f53efe93dc16c06955e4938824452562ad110311e152227
+size 769
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
new file mode 100644
index 000000000..af7f2d045
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:405eeab51c1792e4622b9349c3ff5b41a3d2a9aa73321e5b201bede7783b75c4
+size 776
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin
new file mode 100644
index 000000000..b5c2ab6f8
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:62d28963141e7bae96db3ffdd78b8c233e24c901280af6a012f8469c66e17e37
+size 762
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
new file mode 100644
index 000000000..54c3ad0f4
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8ff214960fa252e4a440043a0b94948b079bb1ad38e1c33fd75d18aebce5a7d3
+size 812
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj_Blur.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj_Blur.bin
new file mode 100644
index 000000000..28c3ba63d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj_Blur.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5acf1652d702b3e800ab34216c56db5e75925c83385e9007db2efd9a23cebe3b
+size 707
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Ring.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Ring.bin
new file mode 100644
index 000000000..b340c7d1e
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Ring.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:447181a366ec650dd5d0c4e20c86ac48ede12eabefebb4e79916bb5711c23ddd
+size 716
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin
new file mode 100644
index 000000000..1df62eb31
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9acb0e4d096048c7c334923a12002be2fabf16ab46af3a4ec6168c6f5eba3a86
+size 715
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail
new file mode 100644
index 000000000..794673e24
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/Test.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/Test.trail
new file mode 100644
index 000000000..7901c628e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/Test.trail differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/TestTrail.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/TestTrail.bin
deleted file mode 100644
index 6414c221c..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/TestTrail.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:18d4d2843900a6643f7d2a1170271828e7153c309687b64054ef363a7aaa5107
-size 138
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.bin
index 696dda5f1..0677063a7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b06d2487f0ccbed4c205d620a1fd703575de95a2f44a79dd02a86384f1532477
-size 2760173
+oid sha256:c3c63077144d6eaaf7689bfe372f1533c51f3fa70f34deff1f356827172f4269
+size 19831079
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
index b670355d7..320b93641 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:60e65ce871b01b870ccb2e58b865160599ca201bb01561abd8cd9dfcd15775f6
-size 2965692
+oid sha256:3a6b3c84007827d3b00905b78ca4de6a4a88a05d2996410b3677ad65530ef6ce
+size 43823820
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.bin
index 1152ce122..84c1732c2 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:dae722244305fb3823d451fed4da562203acc0ab8fb0c8b7453e86957cd34091
-size 68813
+oid sha256:30c393a0dcbcf5b6d34f3e8643bb0d8859e56f93ed9252d6071c6cf83edabbc8
+size 68978
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx
index 26368a479..d56d7e953 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e697d4c19ca0e1ca9218635ee93a5dd9b758003778ab2809df5f17e5cee46076
-size 41420
+oid sha256:70aebae3fb159ea7acd1b8538427821827a7c6c011ed1921d09200707b431a1f
+size 43612
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 b1efa60ae..b02455a1e 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
@@ -264,5 +264,45 @@ float4x4 RotateAxis(float4 _vAxis , float fAngle)
}
+float2 SelectLerpUV(float2 fAmount, float _fRatio, int iSelectOption)
+{
+ if (iSelectOption < 0)
+ return float2(0, 0);
+
+ float fRatio = _fRatio;
+ switch (iSelectOption)
+ {
+ case 0:
+ fRatio = fRatio; // Linear
+ break;
+ case 1:
+ fRatio = fRatio * fRatio; // EaseInQuad 후반에 속도 증가
+ break;
+ case 2:
+ fRatio = 1 - (1 - fRatio * fRatio); // EaseOutQuad 초반에 속도 증가
+ break;
+ case 3:
+ fRatio = fRatio * fRatio * fRatio; // EaseInCubic 더 강하게 후반 속도 증가
+ break;
+ case 4:
+ fRatio = 1 - (1 - fRatio * fRatio * fRatio); // EaseOutCubic 더 강하게 초반 속도 증가
+ break;
+ case 5:
+ fRatio = 0.5f * (1 - cos(PI * fRatio)); // EaseInOutSin 사인 곡선
+ break;
+ case 6:
+ fRatio = sin(13 * PI * fRatio) * (1 - fRatio) * (1 - fRatio); // EaseInBack 뒤로갔다가 앞으로
+ break;
+ case 7:
+ fRatio = pow(2, 10 * (fRatio - 1)); // Expo 지수 함수
+ break;
+ case 8:
+ fRatio = 1 - pow(1 - fRatio * fRatio, 0.5); // 원형 궤적
+ break;
+ }
+
+ return fAmount * fRatio;
+
+}
#endif // ENGINE_SHADER_FUNCTIONS_HLSLI
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
index ba1161adb..f0e085866 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
@@ -556,4 +556,14 @@ technique11 DefaultTechnique
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN_SPOT();
}
+
+ pass RefitPass // 6
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_None, 0);
+ SetBlendState(BS_Blend, 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_MAIN_SPOT();
+ }
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index a7503bee5..067d90c1d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -30,10 +30,17 @@ float2 g_fCurrent_Size;
float2 g_fHpBG;
float4 g_fNine_Slice;
+float4 g_fImageUV;
+float4 g_fImageUV1;
+
+float2 g_fPosition[4];
+float4 g_fImagesUV[4];
Texture2D g_Texture;
Texture2D g_Texture1;
Texture2D g_Texture2;
+Texture2D g_Texture3;
+Texture2D g_Texture4;
Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
@@ -97,6 +104,8 @@ PS_OUT PS_AlphaBlend(PS_IN In)
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+ Color.rgb *= 1.5f;
+
Color.a *= Alpha;
Out.vColor = Color;
@@ -548,6 +557,125 @@ PS_OUT PS_HpBar(PS_IN In)
return Out;
}
+PS_OUT PS_Magic_Meter(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float3 Blue = float3(41.f, 165.f, 255.f) / 255.f;
+
+ float4 color = float4(1.f, 1.f, 1.f, 1.f);
+ float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord);
+ float4 tex2 = g_Texture1.Sample(ClampSampler, In.vTexcoord);
+
+ float2 reverseuv = 1.f - In.vTexcoord;
+
+ color = tex1;
+ tex2.rgb *= Blue * 1.5f;
+
+ if (reverseuv.x >= g_fHp)
+ {
+ tex2.rgb = float3(0.f, 0.f, 0.f);
+ }
+
+ if (all(color.rgb >= float3(65.f / 255.f, 65.f / 255.f, 65.f / 255.f)))
+ color = tex2;
+
+ color.a *= Alpha;
+
+ Out.vColor = color;
+
+ return Out;
+}
+
+
+PS_OUT PS_Magic_Icon(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);
+ float2 uv = In.vTexcoord;
+ float2 center = float2(0.5, 0.5);
+ float scale = 1.2;
+
+ uv = (uv - center) * scale + center;
+ float4 tex2 = g_Texture1.Sample(ClampSampler, uv);
+
+ Color = tex1;
+
+ Color = tex1 * (1 - tex2.a) + tex2;
+
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_RemapUV(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);
+
+
+ float2 startUV = g_fImageUV.xy;
+ float2 endUV = g_fImageUV.zw;
+
+ float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, atlasUV);
+
+ Color = tex1;
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_Revelio(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);
+ float2 UV = In.vTexcoord;
+
+ float2 Position[4];
+ float2 startUV[4];
+ float2 endUV[4];
+
+ float2 Atlases[4];
+
+ for (int i = 0; i < 4; ++i)
+ {
+ Position[i] = g_fPosition[i];
+ startUV[i] = g_fImagesUV[i].xy;
+ endUV[i] = g_fImagesUV[i].zw;
+
+ Atlases[i] = startUV[i] + UV * (endUV[i] - startUV[i]);
+ }
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, UV);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, Atlases[0]);
+ float4 tex3 = g_Texture1.Sample(DefaultSampler, Atlases[1]);
+ float4 tex4 = g_Texture2.Sample(DefaultSampler, Atlases[2]);
+ float4 tex5 = g_Texture2.Sample(DefaultSampler, Atlases[3]);
+
+
+
+ //float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
technique11 PosTexTechnique11
{
pass Default
@@ -688,4 +816,44 @@ technique11 PosTexTechnique11
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_HpBar();
}
+ pass Magic_Meter
+ {
+ 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_Magic_Meter();
+ }
+
+ pass Magic_Icon
+ {
+ 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_Magic_Icon();
+ }
+
+ pass RemapUV
+ {
+ 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_RemapUV();
+ }
+
+ pass Revelio
+ {
+ 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_Revelio();
+ }
+
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
index 8223c063c..3a641e18d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
@@ -1,4 +1,5 @@
#include "Engine_Shader_Defines.hlsli"
+#include "Engine_Shader_Functions.hlsli"
struct ParticleValue
{
@@ -66,6 +67,7 @@ int g_iNoiseMoveLerpOption;
float2 g_vDiffuseDistortionUVGainAmount;
float2 g_vMaskDistortionUVGainAmount;
+
int g_iMaskDistortionMoveLerpOption;
int g_iDiffuseDistortionMoveLerpOption;
//
@@ -116,46 +118,7 @@ bool g_isNomalDissolve;
float g_fFar;
-float2 SelectLerpUV(float2 fAmount, float _fRatio, int iSelectOption)
-{
- if (iSelectOption < 0)
- return float2(0 , 0);
-
- float fRatio = _fRatio;
- switch (iSelectOption)
- {
- case 0:
- fRatio = fRatio; // Linear
- break;
- case 1:
- fRatio = fRatio * fRatio; // EaseInQuad 후반에 속도 증가
- break;
- case 2:
- fRatio = 1 - (1 - fRatio * fRatio); // EaseOutQuad 초반에 속도 증가
- break;
- case 3:
- fRatio = fRatio * fRatio * fRatio; // EaseInCubic 더 강하게 후반 속도 증가
- break;
- case 4:
- fRatio = 1 - (1 - fRatio * fRatio * fRatio); // EaseOutCubic 더 강하게 초반 속도 증가
- break;
- case 5:
- fRatio = 0.5f * (1 - cos(PI * fRatio)); // EaseInOutSin 사인 곡선
- break;
- case 6:
- fRatio = sin(13 * PI * fRatio) * (1 - fRatio) * (1 - fRatio); // EaseInBack 뒤로갔다가 앞으로
- break;
- case 7:
- fRatio = pow(2, 10 * (fRatio - 1)); // Expo 지수 함수
- break;
- case 8:
- fRatio = 1 - pow(1 - fRatio * fRatio, 0.5); // 원형 궤적
- break;
- }
-
- return fAmount * fRatio;
-}
struct VS_IN
{
@@ -358,7 +321,7 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
if (g_vColor.a > 0)
- vMtrlDiffuse += g_vColor;
+ vMtrlDiffuse = saturate(g_vColor + vMtrlDiffuse);
}
else
@@ -382,7 +345,8 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlNoise.r);
if (g_isNoiseColor)
- vMtrlDiffuse *= vMtrlNoise;
+ vMtrlDiffuse.rgb *= vMtrlNoise.rgb;
+
}
/* 마스크 */
@@ -403,7 +367,6 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
//디스토션(노이즈) 텍스쳐로 uv를 왜곡함
vMaskTexcoord = vMaskTexcoord + (vMtrlDistortion - 0.5f).r * g_fNoiseDistortionIntensity;
-
}
if (g_isMaskUVMove)
@@ -415,7 +378,7 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
if (g_isMaskClampSample == true)
vMtrlMask = g_MaskingTexture.Sample(ClampSampler, vMaskTexcoord);
else
- vMtrlMask = g_MaskingTexture.Sample(PointSampler, vMaskTexcoord);
+ vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, vMaskTexcoord);
float fSoftMask;
@@ -431,13 +394,12 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
vMtrlMask.r = 1.f;
}
-
+
+ vMtrlDiffuse.a *= g_fDiffuseAlpha;
if (vMtrlDiffuse.a <= 0.f)
discard;
- vMtrlDiffuse.a *= g_fDiffuseAlpha;
-
if (g_isDissolve == true)
{
if (g_isNomalDissolve)
@@ -484,8 +446,6 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
float fDistance = saturate(length(CenteredUV) / g_fRadius); // 마스크의 크기를 어느정도할지
- float fMaskAlpha = vMtrlMask.a;
-
float fSoftEdge = pow(saturate(1.0f - fDistance), g_fSoftenExp) * g_fSoftStrength; //SoftenExp 엣지감쇠지수 , Strength
float fCore = pow(saturate(1.0 - fDistance * 2.f), max(0.001, g_fCoreBoost)) * g_fCoreBoost; // CoreBust 중심강조
@@ -506,15 +466,18 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
if (g_isEmissiveDissolve == true)
{
fEmissiveStrength *= (1.f - In.vLifeTime.x / In.vLifeTime.y);
+
+ if (fEmissiveStrength <= 0.05f)
+ fEmissiveStrength = 0;
+
}
if (g_isEmissiveDissolveReverse == true)
{
fEmissiveStrength *= (In.vLifeTime.x / In.vLifeTime.y);
+
}
-
-
Out.vColorTarget = vEmissiveMtrl * fEmissive * fEmissiveStrength; // 이미시브 스트랭스
return Out;
@@ -684,7 +647,7 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
if (g_isMaskClampSample == true)
vMtrlMask = g_MaskingTexture.Sample(ClampSampler, vMaskTexcoord);
else
- vMtrlMask = g_MaskingTexture.Sample(PointSampler, vMaskTexcoord);
+ vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, vMaskTexcoord);
float fSoftMask;
@@ -693,9 +656,7 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
fSoftMask = saturate((vMtrlMask.r - g_fSoftMaskEdge) * g_fSoftMask);
vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fSoftMask);
-
- if (vMtrlDiffuse.a <= 0.f)
- discard;
+
}
else
{
@@ -703,6 +664,9 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
}
+
+ if (vMtrlDiffuse.a <= 0.f)
+ discard;
vMtrlDiffuse.a *= g_fDiffuseAlpha;
@@ -764,6 +728,16 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
if (g_isEmissiveDissolve == true)
{
fEmissiveStrength *= (1.f - In.vLifeTime.x / In.vLifeTime.y);
+
+ if (fEmissiveStrength <= 0)
+ fEmissiveStrength = 0;
+
+ }
+
+ if (g_isEmissiveDissolveReverse == true)
+ {
+ fEmissiveStrength *= (In.vLifeTime.x / In.vLifeTime.y);
+
}
@@ -790,7 +764,7 @@ technique11 DefaultTechnique
{
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_None, 0);
- SetBlendState(BS_WB_Acc, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ SetBlendState(BS_Blend, 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_NON_NORMALMAP();
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl
index 926473fa9..237aa4c98 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl
@@ -1,5 +1,6 @@
#include "Engine_Shader_Defines.hlsli"
+#include "Engine_Shader_Functions.hlsli"
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
Texture2D g_DepthTexture;
@@ -11,14 +12,46 @@ uint g_iIndexU;
uint g_iIndexV;
Texture2D g_Texture;
-
Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
Texture2D g_NoiseTexture;
+Texture2D g_DistortionTexture;
-bool g_isDiffuse;
-bool g_isNoise;
+/* 디퓨즈 */
+bool g_isDiffuse;
+float g_fDiffuseAlpha;
+float4 g_vColor;
+
+/* 마스크 */
bool g_isMask;
+float g_fSoftMaskEdge;
+float g_fSoftMask;
+
+/* 노이즈 */
+bool g_isNoise;
+bool g_isNoiseColor;
+bool g_isNoiseAlpha;
+float g_fNoiseStrength;
+
+/* 디스토션 */
+
+bool g_isDistortion;
+float2 g_vDistortionTime;
+float2 g_vDiffuseDistortionUVGainAmount;
+float2 g_vMaskDistortionUVGainAmount;
+float g_fDistortionIntensity; // 디스토션 왜곡 세기
+
+/* 이미시브 */
+float4 g_vEmissive;
+float g_fEmissiveStrength;
+float g_fSoftenExp;
+float g_fSoftStrength;
+float g_fCoreBoost;
+float g_fRadius;
+
+/* 블러 */
+float g_fBlurIntensity;
+float g_iBlurWeight;
struct VS_IN
{
@@ -121,37 +154,263 @@ PS_TRAILOUT PS_Trail(PS_IN In)
vector vMtrlDiffuse;
vector vMtrlMask;
vector vMtrlNoise;
+ vector vMtrlDistortion;
+
+ /* 디퓨즈 */
if (g_isDiffuse == true)
- vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
+ {
+ float2 vDiffuseTexcoord = In.vTexcoord;
+
+ /* 디퓨즈 디스토션 */
+ if (g_isDistortion == true)
+ {
+ float2 vDistortion = In.vTexcoord + SelectLerpUV(g_vDiffuseDistortionUVGainAmount, (g_vDistortionTime.x / g_vDistortionTime.y), 0);
+
+ vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortion);
+
+ //0.5f를 빼는 이유는 중심을 0으로 옮겨서 양음수 방향으로 offset을 줄수 있다.
+ vMtrlDistortion.rg -= 0.5f;
+
+
+ //디스토션(노이즈) 텍스쳐로 uv를 왜곡함
+
+ vDiffuseTexcoord = vDiffuseTexcoord + (vMtrlDistortion).rg * g_fDistortionIntensity;
+
+ }
+
+ vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, vDiffuseTexcoord);
+
+ if (g_vColor.a > 0)
+ vMtrlDiffuse += g_vColor;
+ }
else
- vMtrlDiffuse = vector(0.f, 0.f, 0.f, 1.f);
+ vMtrlDiffuse = g_vColor;
- if (g_isMask == true)
- vMtrlMask = g_MaskingTexture.Sample(PointSampler, In.vTexcoord);
- else
- vMtrlMask = vector(1.f, 1.f, 1.f, 1.f);
+ /* 노이즈 */
if (g_isNoise == true)
{
vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, In.vTexcoord);
+
+ if (g_isNoiseAlpha)
+ vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlNoise.r) * g_fNoiseStrength;
- //vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlNoise.r);
+ if (g_isNoiseColor)
+ vMtrlDiffuse.rgb *= vMtrlNoise.rgb * g_fNoiseStrength;
- vMtrlDiffuse *= vMtrlNoise;
}
-
-
- vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r);
+ /* 마스크 */
+
+ if (g_isMask == true)
+ {
+ float2 vMaskTexcoord = In.vTexcoord;
+
+ // 마스크 디스토션
+ if (g_isDistortion == true)
+ {
+ float2 UV; // 이미지의 UV값
+
+ float2 vDistortionUV = In.vTexcoord + SelectLerpUV(g_vMaskDistortionUVGainAmount, (g_vDistortionTime.x / g_vDistortionTime.y), 0);
+
+ vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortionUV);
+
+ //디스토션(노이즈) 텍스쳐로 uv를 왜곡함
+ vMaskTexcoord = vMaskTexcoord + (vMtrlDistortion - 0.5f).r * g_fDistortionIntensity;
+
+ }
+
+ vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, vMaskTexcoord);
+
+ float fSoftMask;
+
+ if (g_fSoftMask > FLT_EPSILON5)
+ fSoftMask = saturate((vMtrlMask.r - g_fSoftMaskEdge) * g_fSoftMask);
+ else
+ fSoftMask = vMtrlMask.r;
+
+ vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fSoftMask);
+ }
+ else
+ vMtrlMask.r = 1.f;
+
+
+
+ vMtrlDiffuse.a *= g_fDiffuseAlpha;
+
+ /* 디퓨즈 알파 컷*/
+ if (vMtrlDiffuse.a <= 0.f)
+ discard;
+
+
+
+
+
+
+ /* 웨이트 블랜드 */
+
float fWeight = clamp(pow(In.vProjPos.w, -2.5f), 1.0f, 1000.0f);
-
- Out.vDiffuse = vector(vMtrlDiffuse.rgb * vMtrlDiffuse.a, vMtrlDiffuse.a) * fWeight;
-
+ Out.vDiffuse = vector(vMtrlDiffuse.rgb, vMtrlDiffuse.a) * fWeight;
Out.vRevealage.r = vMtrlDiffuse.a;
- Out.vColorTarget = vector(0.f, 0.f, 0.f, 0.f);
+
+
+ /* 이미시브 */
+
+ float4 vEmissiveMtrl = vector(0.f, 0.f, 0.f, 0.f);
+
+ float2 CenteredUV = In.vTexcoord - 0.5f;
+
+ float fDistance = saturate(length(CenteredUV) / g_fRadius); // 마스크의 크기를 어느정도할지
+
+ float fMaskAlpha = vMtrlMask.a;
+
+ float fSoftEdge = pow(saturate(1.0f - fDistance), g_fSoftenExp) * g_fSoftStrength; //SoftenExp 엣지감쇠지수 , Strength
+
+ float fCore = pow(saturate(1.0 - fDistance * 2.f), max(0.001, g_fCoreBoost)) * g_fCoreBoost; // CoreBust 중심강조
+
+ float fEmissive = fSoftEdge + fCore;
+
+ vEmissiveMtrl = g_vEmissive;
+
+ Out.vColorTarget = vEmissiveMtrl * fEmissive * g_fEmissiveStrength; // 이미시브 스트랭스
+
+ return Out;
+}
+
+struct PS_BLUR_IN
+{
+ float4 vPosition : SV_Position;
+ float2 vTexcoord : TEXCOORD0;
+};
+
+struct PS_BLUR_OUT
+{
+ float4 vDiffuse : SV_TARGET0;
+ float4 vBlurWeight : SV_TARGET1;
+};
+
+PS_BLUR_OUT PS_TRAIL_BLUR(PS_BLUR_IN In)
+{
+ PS_BLUR_OUT Out;
+
+ vector vMtrlDiffuse;
+ vector vMtrlMask;
+ vector vMtrlNoise;
+ vector vMtrlDistortion;
+
+ /* 디퓨즈 */
+
+ if (g_isDiffuse == true)
+ {
+ /* 디퓨즈 디스토션 */
+
+ float2 vDiffuseTexcoord = In.vTexcoord;
+
+ if (g_isDistortion == true)
+ {
+ float2 vDistortion = In.vTexcoord + SelectLerpUV(g_vDiffuseDistortionUVGainAmount, (g_vDistortionTime.x / g_vDistortionTime.y), 0);
+
+ vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortion);
+
+ //0.5f를 빼는 이유는 중심을 0으로 옮겨서 양음수 방향으로 offset을 줄수 있다.
+ vMtrlDistortion.rg -= 0.5f;
+
+
+ //디스토션(노이즈) 텍스쳐로 uv를 왜곡함
+
+ vDiffuseTexcoord = vDiffuseTexcoord + (vMtrlDistortion).rg * g_fDistortionIntensity;
+
+ }
+
+ vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, vDiffuseTexcoord);
+
+ if (g_vColor.a > 0)
+ vMtrlDiffuse += g_vColor;
+ }
+ else
+ vMtrlDiffuse = g_vColor;
+
+ /* 노이즈 */
+
+ if (g_isNoise == true)
+ {
+ vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, In.vTexcoord);
+
+ if (g_isNoiseAlpha)
+ vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlNoise.r) * g_fNoiseStrength;
+
+ if (g_isNoiseColor)
+ vMtrlDiffuse.rgb *= vMtrlNoise.rgb * g_fNoiseStrength;
+
+ }
+
+
+ /* 마스크 */
+
+ if (g_isMask == true)
+ {
+
+ float2 vMaskTexcoord = In.vTexcoord;
+
+ // 마스크 디스토션
+ if (g_isDistortion == true)
+ {
+ float2 UV; // 이미지의 UV값
+
+ float2 vDistortionUV = In.vTexcoord + SelectLerpUV(g_vMaskDistortionUVGainAmount, (g_vDistortionTime.x / g_vDistortionTime.y), 0);
+
+ vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortionUV);
+
+ //디스토션(노이즈) 텍스쳐로 uv를 왜곡함
+ vMaskTexcoord = vMaskTexcoord + (vMtrlDistortion - 0.5f).r * g_fDistortionIntensity;
+
+ }
+
+ vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, vMaskTexcoord);
+
+ float fSoftMask;
+
+ if (g_fSoftMask > FLT_EPSILON5)
+ fSoftMask = saturate((vMtrlMask.r - g_fSoftMaskEdge) * g_fSoftMask);
+
+ vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fSoftMask);
+ }
+ else
+ vMtrlMask = vector(1.f, 1.f, 1.f, 1.f);
+
+
+
+
+ /* 디퓨즈 알파 컷*/
+
+ vMtrlDiffuse.a *= g_fDiffuseAlpha;
+
+ if (vMtrlDiffuse.a <= 0.f)
+ discard;
+
+ ///* 이미시브 */
+
+ //float4 vEmissiveMtrl = vector(0.f, 0.f, 0.f, 0.f);
+
+ //float2 CenteredUV = In.vTexcoord - 0.5f;
+
+ //float fDistance = saturate(length(CenteredUV) / g_fRadius); // 마스크의 크기를 어느정도할지
+
+ //float fMaskAlpha = vMtrlMask.a;
+
+ //float fSoftEdge = pow(saturate(1.0f - fDistance), g_fSoftenExp) * g_fSoftStrength; //SoftenExp 엣지감쇠지수 , Strength
+
+ //float fCore = pow(saturate(1.0 - fDistance * 2.f), max(0.001, g_fCoreBoost)) * g_fCoreBoost; // CoreBust 중심강조
+
+ //float fEmissive = fSoftEdge + fCore;
+
+ //vEmissiveMtrl = g_vEmissive;
+
+ Out.vDiffuse = vector(vMtrlDiffuse.rgb * g_fBlurIntensity, vMtrlDiffuse.a); // 이미시브 스트랭스
+ Out.vBlurWeight = g_iBlurWeight / 128.f;
return Out;
}
@@ -203,10 +462,20 @@ technique11 PosTexTechnique11
{
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_None, 0);
- SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ SetBlendState(BS_WB_Acc, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_Trail();
}
+ pass TrailBlur
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_None, 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_TRAIL_BLUR();
+ }
+
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/FinisherMeterOutline.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/FinisherMeterOutline.png
deleted file mode 100644
index 2e6e2a594..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/FinisherMeterOutline.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter0.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter0.png
new file mode 100644
index 000000000..7840c331e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter0.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter1.png
new file mode 100644
index 000000000..57671ce0e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter1.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter2.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter2.png
new file mode 100644
index 000000000..2ef2d73c7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter2.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Revelio_SpellSelectionGridIcon.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Revelio_SpellSelectionGridIcon.png
new file mode 100644
index 000000000..f69d616ef
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Revelio_SpellSelectionGridIcon.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Revelio_SpellSelectionGridIcon1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Revelio_SpellSelectionGridIcon1.png
new file mode 100644
index 000000000..6b67605db
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Revelio_SpellSelectionGridIcon1.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Transparent.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Transparent.png
new file mode 100644
index 000000000..d895b687f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Transparent.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Left.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Left.png
deleted file mode 100644
index 7b5a3b9f2..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Left.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Middle.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Middle.png
deleted file mode 100644
index 32fc77c96..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Middle.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Right.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Right.png
deleted file mode 100644
index a48b5723f..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Right.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_AncientMagicStreak_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_AncientMagicStreak_E.png
new file mode 100644
index 000000000..b844b0e29
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_AncientMagicStreak_E.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Confringo_FlameTrail_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Confringo_FlameTrail_E.png
new file mode 100644
index 000000000..5d08cb14b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Confringo_FlameTrail_E.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrailSingle_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrailSingle_E.png
new file mode 100644
index 000000000..9bfd20f3a
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrailSingle_E.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrail_02_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrail_02_E.png
new file mode 100644
index 000000000..9845da1d3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrail_02_E.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrail_02b_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrail_02b_E.png
new file mode 100644
index 000000000..1a6a5ff60
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrail_02b_E.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Trail03_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Trail03_D.png
new file mode 100644
index 000000000..7e6cba4ad
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Trail03_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Trail04_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Trail04_D.png
new file mode 100644
index 000000000..c8ad97cf5
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Trail04_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoFlyIcon.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoFlyIcon.png
new file mode 100644
index 000000000..d42695069
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoFlyIcon.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoMountIcon.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoMountIcon.png
new file mode 100644
index 000000000..1c80a93ba
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoMountIcon.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Atlas_Keyboard.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Atlas_Keyboard.png
new file mode 100644
index 000000000..0ee96f06f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Atlas_Keyboard.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_A.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_A.png
deleted file mode 100644
index 469c9c486..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_A.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_B.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_B.png
deleted file mode 100644
index 11cff9696..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_B.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_C.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_C.png
deleted file mode 100644
index e7ddca263..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_C.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_D.png
deleted file mode 100644
index cd4f5acb3..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_E.png
deleted file mode 100644
index a8ab21dfc..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_E.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_F.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_F.png
deleted file mode 100644
index 6dd64fe76..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_F.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_G.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_G.png
deleted file mode 100644
index 75207f7d6..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_G.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_H.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_H.png
deleted file mode 100644
index a49dfe78f..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_H.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_I.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_I.png
deleted file mode 100644
index b05b733e4..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_I.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_J.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_J.png
deleted file mode 100644
index f5da4556d..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_J.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_K.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_K.png
deleted file mode 100644
index 3891e4c47..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_K.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_L.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_L.png
deleted file mode 100644
index 2fbb9b04d..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_L.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_M.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_M.png
deleted file mode 100644
index e889e6250..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_M.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_N.png
deleted file mode 100644
index dfc6db30c..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_N.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_O.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_O.png
deleted file mode 100644
index be98fca22..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_O.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_P.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_P.png
deleted file mode 100644
index eea392902..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_P.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Q.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Q.png
deleted file mode 100644
index 963813ba0..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Q.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_R.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_R.png
deleted file mode 100644
index 29b4c96e1..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_R.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_S.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_S.png
deleted file mode 100644
index 47a62daa4..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_S.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_T.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_T.png
deleted file mode 100644
index 6b34eb61b..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_T.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_U.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_U.png
deleted file mode 100644
index 4bc7ecf7a..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_U.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_V.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_V.png
deleted file mode 100644
index 1cbda7ed2..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_V.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_W.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_W.png
deleted file mode 100644
index 450c1da14..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_W.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_X.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_X.png
deleted file mode 100644
index f453b99ef..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_X.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Y.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Y.png
deleted file mode 100644
index 7f2544579..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Y.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Z.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Z.png
deleted file mode 100644
index b0a8e4bb2..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Z.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/CurveAtlas/VFX_CA_CurveAtlasMaterialAnims.png b/Jusin154_Team3D/Editor/Bin/Resources/VFX/CurveAtlas/VFX_CA_CurveAtlasMaterialAnims.png
new file mode 100644
index 000000000..463670994
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/VFX/CurveAtlas/VFX_CA_CurveAtlasMaterialAnims.png differ
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index d9818d501..e1249ce7c 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -167,6 +167,7 @@
+
@@ -210,6 +211,7 @@
+
@@ -241,10 +243,12 @@
false
false
+
+
@@ -300,6 +304,7 @@
+
@@ -340,9 +345,11 @@
+
+
@@ -374,11 +381,13 @@
false
false
+
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index 64cc7cc3c..254146203 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -343,6 +343,9 @@
{54eef1b7-a5ee-444f-9577-44ffc8c3d8bc}
+
+ {a94e6a94-cc46-4c16-8518-5032bfdbd235}
+
{b4e1da25-c952-4ff4-92fd-7f1501d8c005}
@@ -373,6 +376,15 @@
{27dd1f59-44a7-4ecf-ad44-d72b2b4f9d34}
+
+ {4967d007-a0d8-4d57-b259-7bb47b5cf9ea}
+
+
+ {d3738a31-9700-478a-9c93-3d35ae9012b5}
+
+
+ {93ae1d33-fb58-4793-9e7e-5b8d27e163d1}
+
@@ -699,6 +711,9 @@
02.GameObjects\Env\05.AlphaMap
+
+ 02.GameObjects\Layer_Effect\Effect\07.Decendo
+
02.GameObjects\Camera\Debug
@@ -726,6 +741,15 @@
02.GameObjects\Env\06.InstancedProp
+
+ 50.UI\GamePlay_Canvas\Action_Panel\Magic_Icon
+
+
+ 50.UI\GamePlay_Canvas\MiniMap_Panel\NoMountIcon
+
+
+ 50.UI\GamePlay_Canvas\Action_Panel\Spell_UI
+
@@ -1045,6 +1069,9 @@
02.GameObjects\Env\05.AlphaMap
+
+ 02.GameObjects\Layer_Effect\Effect\07.Decendo
+
50.UI\GamePlay_Canvas\Action_Panel\Spell_Slot_Preview
@@ -1075,6 +1102,18 @@
02.GameObjects\Env\06.InstancedProp
+
+ 50.UI\GamePlay_Canvas\Action_Panel\Magic_Icon
+
+
+ 50.UI\GamePlay_Canvas\MiniMap_Panel\NoMountIcon
+
+
+ 50.UI\GamePlay_Canvas\Action_Panel\Spell_UI
+
+
+ 02.GameObjects\Monster\Goblin
+
diff --git a/Jusin154_Team3D/Editor/Private/Action_Panel.cpp b/Jusin154_Team3D/Editor/Private/Action_Panel.cpp
index 3cc914936..c6a2b9ce9 100644
--- a/Jusin154_Team3D/Editor/Private/Action_Panel.cpp
+++ b/Jusin154_Team3D/Editor/Private/Action_Panel.cpp
@@ -7,6 +7,8 @@
#include "Slot_Number.h"
#include "HpBarBG.h"
#include "Magic_Meter.h"
+#include "Magic_Icon.h"
+#include "Spell_UI.h"
CAction_Panel::CAction_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CPanelObject(pDevice, pContext)
@@ -27,10 +29,11 @@ HRESULT CAction_Panel::Initialize(void* pArg)
{
CUIObject::UIOBJECT_DESC Desc{};
- Desc.fX = 1515.f;
+ Desc.fX = 1150.f;
Desc.fY = 850.f;
- Desc.fSizeX = 700.f;
- Desc.fSizeY = 400.f;
+ Desc.fSizeX = 1650.f;
+ Desc.fSizeY = 450.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)))
@@ -46,7 +49,14 @@ HRESULT CAction_Panel::Initialize(void* pArg)
return E_FAIL;
}
- m_bVisible = true;
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 3.f;
+ m_fOwnerAlpha = 1.f;
+ m_fCanvasAlpha = 1.f;
+ Magic_Meter_UV();
+ Magic_Meter_Visible(1, true);
+ Magic_Meter_Visible(5, true);
return S_OK;
}
@@ -66,6 +76,8 @@ void CAction_Panel::Update(_float fTimeDelta)
return;
}
+ Matic_Meter_Move();
+
__super::Update(fTimeDelta);
}
@@ -77,6 +89,7 @@ void CAction_Panel::Late_Update(_float fTimeDelta)
}
if (m_bVisible) {
+ //m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
}
__super::Late_Update(fTimeDelta);
@@ -88,7 +101,7 @@ HRESULT CAction_Panel::Render()
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
@@ -106,13 +119,129 @@ _vector CAction_Panel::Get_WorldPostion()
return m_pTransformCom->Get_State(STATE::POSITION);
}
+void CAction_Panel::Magic_Meter_Visible(_uint iIndex, _bool bVisible)
+{
+ switch (iIndex)
+ {
+ case 1:
+ static_cast(m_pMagic_Meter1)->Visible(bVisible);
+ break;
+ case 2:
+ static_cast(m_pMagic_Meter2)->Visible(bVisible);
+ break;
+ case 3:
+ static_cast(m_pMagic_Meter3)->Visible(bVisible);
+ break;
+ case 4:
+ static_cast(m_pMagic_Meter4)->Visible(bVisible);
+ break;
+ case 5:
+ static_cast(m_pMagic_Meter5)->Visible(bVisible);
+ break;
+
+ default:
+ return;
+ }
+ if (bVisible)
+ m_iMagic_Meter_Count++;
+ else
+ m_iMagic_Meter_Count--;
+}
+
+void CAction_Panel::Magic_Meter_UV()
+{
+ static_cast(m_pMagic_Meter1)->Meter_Index(2);
+ static_cast(m_pMagic_Meter2)->Meter_Index(1);
+ static_cast(m_pMagic_Meter3)->Meter_Index(1);
+ static_cast(m_pMagic_Meter4)->Meter_Index(1);
+ static_cast(m_pMagic_Meter5)->Meter_Index(0);
+
+ for (_uint i = 0; i < 5; ++i)
+ {
+ m_vMagic_MeterUV[i].x = 570.f - (55.f * i);
+ m_vMagic_MeterUV[i].y = 145.f;
+ }
+}
+
+void CAction_Panel::Matic_Meter_Move()
+{
+
+ static_cast(m_pMagic_Meter1)->Move(m_vMagic_MeterUV[0].x, m_vMagic_MeterUV[0].y);
+ static_cast(m_pMagic_Meter5)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y);
+
+ if (static_cast(m_pMagic_Meter2)->Get_Active() == true)
+ {
+ static_cast(m_pMagic_Meter2)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y);
+ static_cast(m_pMagic_Meter5)->Move(m_vMagic_MeterUV[2].x, m_vMagic_MeterUV[2].y);
+ }
+ if (static_cast(m_pMagic_Meter3)->Get_Active() == true)
+ {
+ static_cast(m_pMagic_Meter2)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y);
+ static_cast(m_pMagic_Meter3)->Move(m_vMagic_MeterUV[2].x, m_vMagic_MeterUV[2].y);
+ static_cast(m_pMagic_Meter5)->Move(m_vMagic_MeterUV[3].x, m_vMagic_MeterUV[3].y);
+ }
+ if (static_cast(m_pMagic_Meter4)->Get_Active() == true)
+ {
+ static_cast(m_pMagic_Meter2)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y);
+ static_cast(m_pMagic_Meter3)->Move(m_vMagic_MeterUV[2].x, m_vMagic_MeterUV[2].y);
+ static_cast(m_pMagic_Meter4)->Move(m_vMagic_MeterUV[3].x, m_vMagic_MeterUV[3].y);
+ static_cast(m_pMagic_Meter5)->Move(m_vMagic_MeterUV[4].x, m_vMagic_MeterUV[4].y);
+ }
+
+}
+
HRESULT CAction_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_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;
+ }
return S_OK;
}
HRESULT CAction_Panel::Ready_Components(void* pArg)
{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), 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;
}
@@ -145,18 +274,48 @@ HRESULT CAction_Panel::Ready_Element(void* pArg)
return E_FAIL;
}
Add_Element(TEXT("HpBarBG"), m_pHpBarBG);
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter))))
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter1))))
{
return E_FAIL;
}
- Add_Element(TEXT("Magic_Meter"), m_pMagic_Meter);
+ Add_Element(TEXT("Magic_Meter1"), m_pMagic_Meter1);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter2))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Magic_Meter2"), m_pMagic_Meter2);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter3))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Magic_Meter3"), m_pMagic_Meter3);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter4))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Magic_Meter4"), m_pMagic_Meter4);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter5))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Magic_Meter5"), m_pMagic_Meter5);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Icon))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Magic_Icon"), m_pMagic_Icon);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_UI))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_UI"), m_pSpell_UI);
return S_OK;
}
CAction_Panel* CAction_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CAction_Panel* pInstance = new CAction_Panel(pDevice, pContext);
-
+
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CAction_Panel");
diff --git a/Jusin154_Team3D/Editor/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Editor/Private/CamPosition_Shoulder.cpp
index 839277a46..4dd3224c1 100644
--- a/Jusin154_Team3D/Editor/Private/CamPosition_Shoulder.cpp
+++ b/Jusin154_Team3D/Editor/Private/CamPosition_Shoulder.cpp
@@ -66,6 +66,7 @@ void CCamPosition_Shoulder::Priority_Update(_float fTimeDelta)
if (true == m_bMovable) {
m_vAccDegreeXY.y += m_pGameInstance->Get_MouseMove().x * m_fMouseSensor;
m_vAccDegreeXY.x += m_pGameInstance->Get_MouseMove().y * m_fMouseSensor;
+ CMyTools::AdjustAccumulateDegreePitchYawDegree(m_vAccDegreeXY);
}
_vector vLook = XMVector3Normalize(XMLoadFloat3(&m_vShoulderPosRatio));
diff --git a/Jusin154_Team3D/Editor/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Editor/Private/Camera_Gaze.cpp
index 81b6771d0..826d34ca5 100644
--- a/Jusin154_Team3D/Editor/Private/Camera_Gaze.cpp
+++ b/Jusin154_Team3D/Editor/Private/Camera_Gaze.cpp
@@ -41,7 +41,7 @@ void CCamera_Gaze::Priority_Update(_float fTimeDelta)
void CCamera_Gaze::Update(_float fTimeDelta)
{
- GUI::Text("%d", m_iPriority);
+ GUI::Text("CAM_GAZE_PRIORITY : %d", m_iPriority);
if (false == m_bActive) {
return;
}
diff --git a/Jusin154_Team3D/Editor/Private/Decendo.cpp b/Jusin154_Team3D/Editor/Private/Decendo.cpp
new file mode 100644
index 000000000..d4bc1b129
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Decendo.cpp
@@ -0,0 +1,219 @@
+#include "pch.h"
+#include "Decendo.h"
+
+#include "GameInstance.h"
+#include "EditEffect.h"
+#include "Dummy_PhysXEffectHitBox.h"
+#include "TrailObject.h"
+
+
+CDecendo::CDecendo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CDecendo::CDecendo(const CDecendo& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CDecendo::Initialize_Prototype()
+{
+
+ return S_OK;
+
+}
+
+HRESULT CDecendo::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Child()))
+ return E_FAIL;
+
+ if (FAILED(Load_Directory("../Bin/Resources/Data/Effect/Decendo/")))
+ return E_FAIL;
+
+
+ m_wstrEffectName = L"Bombard";
+
+ m_pProjectile_Blur = Get_PartObject("Decendo_Proj_Blur");
+ m_pProjectile = Get_PartObject("Decendo_Proj");
+
+ CPartObject* pCircle0 = Get_PartObject("Decendo_Cricle_S");
+
+ pCircle0->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pProjectile->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pProjectile_Blur->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+
+ Get_PartObject()->Set_Target(m_pProjectile->Get_Component());
+
+ pCircle0->Set_Visible(true);
+ m_pProjectile->Set_Visible(true);
+ m_pProjectile_Blur->Set_Visible(true);
+
+ SAFE_ADDREF(m_pProjectile_Blur);
+ SAFE_ADDREF(m_pProjectile);
+
+ //나아가는 벡터와 한점을 가져와 수직인 평면상에 하나의 점으로 DIR 을 만듬
+ _vector vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK));
+ _vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
+
+
+ _vector vQuaternion = XMQuaternionRotationAxis(vOwnerLook, m_pGameInstance->Random_Float(0.f, XM_PIDIV2));
+
+ m_vRotateUp = XMVector3Rotate(vUp, vQuaternion);
+
+ m_vRotateUp = XMVector3Normalize(m_vRotateUp);
+
+ m_fDuration = 2.5f;
+
+ return S_OK;
+}
+
+void CDecendo::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CDecendo::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+ _vector vOwnerLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK);
+
+ m_pProjectile_Blur->Get_Component()->Translation(vOwnerLook * 1.f);
+ m_pProjectile->Get_Component()->Translation(vOwnerLook * 1.f);
+
+
+ if (m_fAccTime > XM_PI)
+ return;
+
+ m_fAccTime += fTimeDelta * 3.f;
+
+ m_pProjectile_Blur->Get_Component()->Translation(m_vRotateUp * 1.f * sinf(m_fAccTime));
+ m_pProjectile->Get_Component()->Translation(m_vRotateUp * 1.f * sinf(m_fAccTime));
+
+}
+
+void CDecendo::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CDecendo::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CDecendo::Ready_Child()
+{
+ CDummy_PhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
+
+ m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+
+ XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
+
+ Desc.vRotRPY = { 0.f, 0.f, 0.f };
+ Desc.iSubKind = 70;
+ Desc.vDeltaPos = { 0.f, 0.f, 1.f };
+ Desc.vLifeTime = { 0.f, 1.f };
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this , &m_pPhysHitBox))) {
+ assert(false);
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CDecendo* CDecendo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CDecendo* pInstance = new CDecendo(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CDecendo");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CDecendo::Clone(void* pArg, CGameObject* pOwner)
+{
+ CDecendo* pInstance = new CDecendo(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CDecendo");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CDecendo::OnCollision(CGameObject* pOther , void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+ for (auto& pPair : m_PartObjects)
+ {
+ pPair.second->Set_Visible(true);
+ pPair.second->Get_Component()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos);
+ }
+
+ m_pProjectile_Blur->Set_Visible(false);
+ m_pProjectile->Set_Visible(false);
+
+
+ Get_PartObject("Decendo_Cricle_S")->Set_Visible(false);
+ Get_PartObject()->Set_Visible(false);
+
+ m_pPhysHitBox->Set_Dead();
+}
+
+void CDecendo::Free()
+{
+ __super::Free();
+
+ //if(m_pPhysHitBox != nullptr)
+ // if (m_pPhysHitBox->Get_Depth() == false)
+ // SAFE_RELEASE(m_pPhysHitBox);
+
+ SAFE_RELEASE(m_pProjectile_Blur);
+ SAFE_RELEASE(m_pProjectile);
+
+}
+
+void CDecendo::Describe_Entity()
+{
+
+}
+
+HRESULT CDecendo::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp
index 5f20f0b2e..ea720422d 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp
@@ -37,7 +37,6 @@ void CDummy_PhysXMonster::Update(_float fTimeDelta)
if (m_pGameInstance->Key_Pressing(DIK_RIGHT)) {
m_pTransformCom->AccumulateMomentum(XMVectorSet(1.f, 0.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta);
}
- m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -GRAVITY * fTimeDelta, 0.f, 0.f));
m_pCharacter_Controller->Move(fTimeDelta);
m_vStunTimer.x = 0.f;
}
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp
index a7c386903..ca5023e47 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp
@@ -7,6 +7,7 @@
#include "Bombard.h"
#include "TrailObject.h"
+#include "Decendo.h"
CDummy_PhysXPlayable::CDummy_PhysXPlayable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext):
CGameObject(pDevice, pContext)
@@ -62,6 +63,15 @@ void CDummy_PhysXPlayable::Update(_float fTimeDelta)
}
}
}
+
+ if (m_pGameInstance->Key_Up(DIK_P)) {
+ {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), CURRENT_LEVEL, LAYER_HITBOX, nullptr, this))) {
+ assert(false);
+ return;
+ }
+ }
+ }
m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -GRAVITY * fTimeDelta, 0.f, 0.f));
m_pCharacter_Controller->Move(fTimeDelta);
}
diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
index 21b96d88e..1c84b7366 100644
--- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp
+++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
@@ -457,6 +457,7 @@ void CEditEffect::Describe_Entity()
GUI::Checkbox("EmissiveTex", &m_EffectInfo.isEmissive);
GUI::Checkbox("EmissiveDissolve", &m_EffectInfo.isEmissiveDissolve);
+ GUI::Checkbox("EmissiveDissolveReverse", &m_EffectInfo.isEmissiveDissolveReverse);
if (m_EffectInfo.isEmissive)
{
diff --git a/Jusin154_Team3D/Editor/Private/Effect_Container.cpp b/Jusin154_Team3D/Editor/Private/Effect_Container.cpp
index 858163a37..9517c1973 100644
--- a/Jusin154_Team3D/Editor/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Editor/Private/Effect_Container.cpp
@@ -57,188 +57,6 @@ void CEffect_Container::OnCollision(CGameObject* pOther, void* pDesc)
{
}
-#ifdef _DEBUG
-
-HRESULT CEffect_Container::Save_Package(const _char* pPath)
-{
- _string strPerfectFilePath = pPath;
- strPerfectFilePath += ".bin";
-
- HANDLE hFile = CreateFile(CMyTools::ToWstring(strPerfectFilePath).c_str(),
- GENERIC_WRITE,
- FILE_SHARE_READ | FILE_SHARE_WRITE,
- NULL, CREATE_ALWAYS,
- FILE_ATTRIBUTE_NORMAL, NULL
- );
-
-
- if (hFile == INVALID_HANDLE_VALUE) {
- MessageBox(NULL, L"패키징 저장 실패", L"System Message", MB_OK);
- return E_FAIL;
- }
-
- ;
-
- DWORD dwByte(0);
-
- _int iObjectCount = (_int)m_PartObjects.size();
-
- if (!WriteFile(hFile, &iObjectCount, sizeof(_int), &dwByte, nullptr)) {
- return E_FAIL;
- }
-
- // 자식 개수 저장
-
- for (auto& pPartObejct : m_PartObjects)
- {
- CEditEffect* pEffectObject = dynamic_cast(pPartObejct.second);
- CTrailObject* pTrailObject = {};
-
- if (pEffectObject == nullptr) // 이펙트 오브젝트가 아닐 경우
- {
- pTrailObject = dynamic_cast(pPartObejct.second);
-
- pTrailObject->Save_Path(hFile);
- }
- else
- {
- pEffectObject->Save_Path(hFile);
- }
- }
-
-
- CloseHandle(hFile);
-
-
- MessageBox(NULL, L"패키징 성공", L"System Message", MB_OK);
-
- return S_OK;
-}
-
-#endif
-
-HRESULT CEffect_Container::Load_Package(const _char* pPath)
-{
- _string strPerfectFilePath = pPath;
-
- strPerfectFilePath += ".bin";
-
- DWORD dwByte(0);
-
- HANDLE hFile = CreateFileW(
- CMyTools::ToWstring(strPerfectFilePath).c_str(), // 파일 이름
- GENERIC_READ, // 읽기 모드
- FILE_SHARE_READ, // 다른 프로세스도 읽기 가능
- NULL,
- OPEN_EXISTING, // 기존 파일 열기
- FILE_ATTRIBUTE_NORMAL,
- NULL
- );
-
- if (hFile == INVALID_HANDLE_VALUE) {
- MessageBox(NULL, L"패키징 읽기 실패", L"System Message", MB_OK);
- return E_FAIL;
- }
-
- _int iObjectCount = {};
-
- if (!ReadFile(hFile, &iObjectCount, sizeof(_int), &dwByte, nullptr)) {
- CloseHandle(hFile);
- return E_FAIL;
- }
-
- for (size_t i = 0; i < iObjectCount; i++)
- {
- EFFECT_TYPE eEffectType = {};
-
- if (!ReadFile(hFile, &eEffectType, sizeof(EFFECT_TYPE), &dwByte, nullptr)) {
- CloseHandle(hFile);
- return E_FAIL;
- }
-
- size_t iFilePathLength = {};
-
- if (!ReadFile(hFile, &iFilePathLength, sizeof(size_t), &dwByte, nullptr)) {
- CloseHandle(hFile);
- return E_FAIL;
- }
-
- _char szFilePath[MAX_PATH] = {};
-
- if (iFilePathLength != 0)
- {
- if (!ReadFile(hFile, szFilePath, sizeof(_char) * ((DWORD)iFilePathLength + 1), &dwByte, nullptr)) {
- CloseHandle(hFile);
- return E_FAIL;
- }
- }
-
- _string strPath = szFilePath;
- size_t iPos;
-
- while ((iPos = strPath.find(".bin")) != std::string::npos) {
- strPath.erase(iPos, 4);
- };
-
-
- CPartObject::PARTOBJECT_DESC PartsDesc{};
- CEditEffect* pEditEffect = {};
- CTrailObject* pTrailEffect = {};
- switch (eEffectType)
- {
- case EFFECT_TYPE::EFFECT:
-
-
- PartsDesc.pParentTransform = m_pTransformCom;
-
-
- if (FAILED(Add_PartObject("EffectObject" + i, ENUM_CLASS(LEVEL::EFFECT), &pEditEffect, &PartsDesc)))
- {
- CloseHandle(hFile);
- return E_FAIL;
- }
-
- if (FAILED(pEditEffect->Load(strPath.c_str(), LEVEL::EFFECT)))
- {
- CloseHandle(hFile);
- return E_FAIL;
- }
-
- SAFE_RELEASE(pEditEffect);
-
- break;
-
- case EFFECT_TYPE::TRAIL:
-
- PartsDesc.pParentTransform = m_pTransformCom;
-
-
- if (FAILED(Add_PartObject("TrailObject" + i, ENUM_CLASS(LEVEL::EFFECT), &pTrailEffect, &PartsDesc)))
- {
- CloseHandle(hFile);
- return E_FAIL;
- }
-
- pTrailEffect->Load_Trail(strPath.c_str(), LEVEL::EFFECT);
-
- SAFE_RELEASE(pTrailEffect);
-
- break;
- case EFFECT_TYPE::END:
- break;
- default:
- break;
- }
-
- }
-
- CloseHandle(hFile);
-
-
-
- return S_OK;
-}
-
HRESULT CEffect_Container::Load_Directory(const _char* pPath)
{
@@ -249,13 +67,52 @@ HRESULT CEffect_Container::Load_Directory(const _char* pPath)
string ext = file.path().extension().string();
- if (strcmp(ext.c_str(), ".bin"))
+ if (!(strcmp(ext.c_str(), ".bin") ^ strcmp(ext.c_str(), ".trail")))
continue;
_char szFilePath[MAX_PATH] = {};
strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str());
+ /* Trail */
+
+ if (!strcmp(ext.c_str(), ".trail"))
+ {
+ CTrailObject* pTrail = nullptr;
+
+ CPartObject::PARTOBJECT_DESC PartsDesc{};
+
+ PartsDesc.pParentTransform = m_pTransformCom;
+
+
+ _wstring wstrFileName = file.path().stem().wstring(); //이름 넣기
+
+ if (FAILED(Add_PartObject(CMyTools::ToString(wstrFileName), NEXT_LEVEL, &pTrail, &PartsDesc))) {
+ assert(false);
+ return E_FAIL;
+ }
+
+
+ /*이펙트 로드 로드*/
+ size_t iPos = {};
+ _string strFilePath = szFilePath;
+
+ while ((iPos = strFilePath.find(".trail")) != std::string::npos) {
+ strFilePath.erase(iPos, 6);
+ };
+
+
+ if (FAILED(pTrail->Load_Trail(strFilePath.c_str(), LEVEL::EFFECT)))
+ {
+ Safe_Release(pTrail);
+ continue;
+ }
+
+ Safe_Release(pTrail);
+
+ continue;
+ }
+
/////////////////////////////
diff --git a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
index c46d9ebf3..5d24c5159 100644
--- a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
+++ b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
@@ -619,22 +619,12 @@ void CEffect_Editor::Describe_Entity()
ReSaveFile(m_strSavePath.c_str());
}
-
-
- GUI::InputTextMultiline("PACKAGE FILE PATH", m_szPackageBuffer, sizeof(m_szPackageBuffer), ImVec2(250, 25));
+ GUI::InputTextMultiline("DIRECTORY PATH", m_szPackageBuffer, sizeof(m_szPackageBuffer), ImVec2(250, 25));
m_strPackageSavePath = m_szPackageBuffer;
- if (GUI::Button("PACKAING"))
- {
- Save_Package(m_strPackageSavePath.c_str());
- }
-
- GUI::SameLine();
-
if (GUI::Button("LOAD DIRECTORY"))
{
-
if (SUCCEEDED(Load_Directory(m_strPackageSavePath.c_str())))
{
MessageBox(NULL, L"파일 로드 성공", L"System Message", MB_OK);
diff --git a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp
index 0582aa2fe..95b43e007 100644
--- a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp
+++ b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp
@@ -160,6 +160,9 @@ void CGamePlay_Canvas::Free()
SAFE_RELEASE(m_pVIBufferCom);
}
+#ifdef _DEBUG
void CGamePlay_Canvas::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Editor/Private/Goblin.cpp b/Jusin154_Team3D/Editor/Private/Goblin.cpp
index b7b8bb047..f7cbf1e00 100644
--- a/Jusin154_Team3D/Editor/Private/Goblin.cpp
+++ b/Jusin154_Team3D/Editor/Private/Goblin.cpp
@@ -2,7 +2,15 @@
#include "Goblin.h"
#include "GameInstance.h"
-#include "Player.h"
+
+#pragma region STATE
+#include "State_Idle.h"
+#include "State_Dodge.h"
+#include "State_Jump.h"
+#include "State_Land.h"
+#include "State_Move.h"
+#include "State_Combat.h"
+#pragma endregion
CGoblin::CGoblin(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CMonster(pDevice, pContext)
@@ -27,23 +35,49 @@ HRESULT CGoblin::Initialize(void* pArg)
if (FAILED(Ready_Components()))
return E_FAIL;
- m_pModelCom->Set_AnimationIndex(1);
+ Add_FSM();
+
+ Set_Anim();
+
+ {
+ CFSM::FSM_DESC FSMDesc{};
+ FSMDesc.pStates = &m_States;
+ FSMDesc.pStateMask = &m_iStateMask;
+
+ m_pFSM->Bind_States(FSMDesc);
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ }
+
+ m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
+ m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
+
+ m_pCharacter_Controller->Set_Position(XMVectorSet(-10.f, 0.f, -10.f, 1.f));
return S_OK;
}
void CGoblin::Priority_Update(_float fTimeDelta)
{
-
+ m_pTransformCom->RewindMomentum();
}
void CGoblin::Update(_float fTimeDelta)
{
+ m_pFSM->Update_State(fTimeDelta);
+
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
+
+ m_pCharacter_Controller->Move(fTimeDelta);
+
}
void CGoblin::Late_Update(_float fTimeDelta)
{
+ __super::Late_Update(fTimeDelta);
+ m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position());
+
+ m_pTransformCom->LookAt(m_pPlayerTransform->Get_State(STATE::POSITION));
+
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
}
@@ -74,6 +108,11 @@ HRESULT CGoblin::Render()
}
}
+#ifdef _DEBUG
+ m_pCharacter_Controller->Render();
+ //m_pRigidBody->Render();
+#endif
+
return S_OK;
}
@@ -94,6 +133,35 @@ HRESULT CGoblin::Ready_Components()
reinterpret_cast(&m_pModelCom))))
return E_FAIL;
+ { // CCT
+ CCharacter_Controller::Character_Controller_DESC Desc{};
+
+ Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::MONSTER);
+ Desc.pTransform = m_pTransformCom;
+ Desc.eBodyType = ACTOR::CAPSULE;
+ Desc.fContactOffset = 0.1f;
+ Desc.fMaterial = { 0.5f, 0.5f, 0.6f };
+ Desc.bAutoStepping = { false };
+ Desc.fStepOffset = { 0.05f };
+ Desc.fRadius = 0.5f;
+ Desc.fHeight = 1.0f;
+ 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;
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) {
+ return E_FAIL;
+ }
+ }
+ m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION));
+ { // DO
+ CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
+ Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::MONSTER);
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
+ return E_FAIL;
+ }
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
+ }
+
return S_OK;
}
@@ -143,6 +211,17 @@ void CGoblin::Free()
{
__super::Free();
+ if (nullptr != m_pCallBack_Behavior) {
+ m_pCallBack_Behavior->Finalize();
+ }
+ if (nullptr != m_pCallBack_HitReport) {
+ m_pCallBack_HitReport->Finalize();
+ }
+
+ SAFE_RELEASE(m_pCharacter_Controller);
+ SAFE_RELEASE(m_pRigidBody);
+ Safe_Delete(m_pCallBack_Behavior);
+ Safe_Delete(m_pCallBack_HitReport);
}
void CGoblin::Describe_Entity()
diff --git a/Jusin154_Team3D/Editor/Private/Goblin_States.cpp b/Jusin154_Team3D/Editor/Private/Goblin_States.cpp
new file mode 100644
index 000000000..ff4a55c37
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Goblin_States.cpp
@@ -0,0 +1,150 @@
+#include "pch.h"
+#include "Goblin.h"
+
+#include "GameInstance.h"
+#include "Player.h"
+
+#pragma region STATE
+#include "State_Idle.h"
+#include "State_Dodge.h"
+#include "State_Jump.h"
+#include "State_Land.h"
+#include "State_Move.h"
+#include "State_Combat.h"
+#pragma endregion
+
+
+void CGoblin::Behavior_IdleEnter()
+{
+ m_pFSM->Enable_State(FSMSTATE::IDLE);
+ pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::IDLE];
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+}
+
+HRESULT CGoblin::Behavior_IdleExitCheck()
+{
+ if (m_fTargetDistance <= 15.f)
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+
+ return E_FAIL;
+}
+
+void CGoblin::Behavior_IdleExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::IDLE);
+}
+
+void CGoblin::Behavior_MoveEnter()
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+
+ m_pFSM->Enable_State(FSMSTATE::MOVE);
+ m_pFSM->Enable_State(FSMSTATE::JOG);
+
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+}
+
+HRESULT CGoblin::Behavior_MoveExitCheck()
+{
+ if (m_fTargetDistance <= 3.f)
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+
+ return E_FAIL;
+}
+
+void CGoblin::Behavior_MoveExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK);
+}
+
+void CGoblin::Behavior_CombatEnter()
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+
+ m_pFSM->Enable_State(FSMSTATE::COMBAT);
+
+ m_pFSM->Enable_State(FSMSTATE::SKILL);
+
+ pairAnimInfo = m_Animation[STATEANIM::SKILL];
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+}
+
+HRESULT CGoblin::Behavior_CombatExitCheck()
+{
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ }
+ return E_FAIL;
+}
+
+void CGoblin::Behavior_CombatExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::COMBAT | FSMSTATE::SKILL | FSMSTATE::SKILL2);
+}
+
+
+void CGoblin::Add_FSM()
+{
+#pragma region Behavior_Movement_NotFocus
+ {
+ CState_Idle::STATE_IDLE_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_IdleEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_IdleExitCheck(); };
+ Desc.funcExitEvent = [this]() { Behavior_IdleExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc));
+ }
+ {
+ CState_Move::STATE_MOVE_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_MoveEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(); };
+ Desc.funcExitEvent = [this]() { Behavior_MoveExit(); };
+ Desc.funcPriorityUpdate = [this](_float fTimeDelta) {
+ if (m_pGameInstance->Key_Pressing(DIK_A)) { m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta); }
+ if (m_pGameInstance->Key_Pressing(DIK_D)) { m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta); };
+ };
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc));
+ }
+#pragma endregion
+
+#pragma region Behavior_Combat_NotFocus
+ {
+ CState_Combat::STATE_COMBAT_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_CombatEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_CombatExitCheck(); };
+ Desc.funcExitEvent = [this]() { Behavior_CombatExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::COMBAT, CState_Combat::Create(&Desc));
+ }
+#pragma endregion
+#pragma region Behavior_Combat_Focus
+
+#pragma endregion
+
+}
+
+void CGoblin::Set_Anim()
+{
+
+ m_Animation[STATEANIM::IDLE] = { 22,true };
+
+ m_Animation[STATEANIM::WALK_FWD] = { 50,true };
+ m_Animation[STATEANIM::WALK_STOP] = { 58,false };
+
+ m_Animation[STATEANIM::JOG_FWD] = { 46,true };
+ m_Animation[STATEANIM::JOG_BWD] = { 154,false };
+
+ m_Animation[STATEANIM::SKILL] = { 70,false }; // 도끼 스윙
+ m_Animation[STATEANIM::SKILL2] = { 85,false }; // 나이프 던지기
+}
diff --git a/Jusin154_Team3D/Editor/Private/Hair.cpp b/Jusin154_Team3D/Editor/Private/Hair.cpp
index c1b41e8fb..db7b06bcd 100644
--- a/Jusin154_Team3D/Editor/Private/Hair.cpp
+++ b/Jusin154_Team3D/Editor/Private/Hair.cpp
@@ -176,7 +176,7 @@ void CHair::Describe_Entity()
if (!m_pModelCom )
return;
- /*for (_uint i = 0; i < dynamic_cast(m_pTextureCom)->Get_Size(); i++)
+ /*for (_uint i = 0; i < dynamic_cast(m_pTextureCom)->Get_TextureDesc(); i++)
{
_char label[128];
@@ -187,7 +187,7 @@ void CHair::Describe_Entity()
iTextureIndex = i;
}
- if (i % dynamic_cast(m_pTextureCom)->Get_Size() != dynamic_cast(m_pTextureCom)->Get_Size()-1)
+ if (i % dynamic_cast(m_pTextureCom)->Get_TextureDesc() != dynamic_cast(m_pTextureCom)->Get_TextureDesc()-1)
GUI::SameLine();
}*/
diff --git a/Jusin154_Team3D/Editor/Private/HpBarBG.cpp b/Jusin154_Team3D/Editor/Private/HpBarBG.cpp
index 886d6c437..469872bfb 100644
--- a/Jusin154_Team3D/Editor/Private/HpBarBG.cpp
+++ b/Jusin154_Team3D/Editor/Private/HpBarBG.cpp
@@ -21,7 +21,7 @@ HRESULT CHpBarBG::Initialize(void* pArg)
{
CUIObject::UIOBJECT_DESC Desc{};
- Desc.fX = 220.f;
+ Desc.fX = 600.f;
Desc.fY = 180.f;
Desc.fSizeX = 144.f;
Desc.fSizeY = 24.f;
@@ -89,20 +89,15 @@ void CHpBarBG::Update(_float fTimeDelta)
}
}
- if (m_pGameInstance->Key_Down(DIK_2))
- Lerp_PosX(10.f);
- if (m_pGameInstance->Key_Down(DIK_3))
- Lerp_PosX(-10.f);
-
if (m_fCurrentHp < 0.f)
m_fCurrentHp = 0.f;
if (m_fDamage <= 0.f)
m_fDamage = 0.f;
- TargetHp = m_fMaxHp - m_fDamage;
+ m_fTargetHp = m_fMaxHp - m_fDamage;
- if (TargetHp > m_fCurrentHp)
+ if (m_fTargetHp > m_fCurrentHp)
Heal(fTimeDelta);
- else if(TargetHp < m_fCurrentHp)
+ else if(m_fTargetHp < m_fCurrentHp)
Hit(fTimeDelta);
m_fHpBar = m_fCurrentHp / m_fMaxHp;
@@ -153,12 +148,12 @@ void CHpBarBG::Lerp_PosX(_float X)
void CHpBarBG::Heal(_float fTimeDelta)
{
- m_fCurrentHp = CMyTools::Lerp_f1D(TargetHp, m_fCurrentHp, fTimeDelta * m_fMoveSpeed);
+ m_fCurrentHp = CMyTools::Lerp_f1D(m_fTargetHp, m_fCurrentHp, fTimeDelta * m_fMoveSpeed);
}
void CHpBarBG::Hit(_float fTimeDelta)
{
- m_fCurrentHp = CMyTools::Lerp_f1D(m_fCurrentHp, TargetHp, fTimeDelta * m_fMoveSpeed);
+ m_fCurrentHp = CMyTools::Lerp_f1D(m_fCurrentHp, m_fTargetHp, fTimeDelta * m_fMoveSpeed);
}
void CHpBarBG::SizeUpX(_float fSizeX)
diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
index 89cbf3237..4ec466813 100644
--- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
@@ -57,12 +57,6 @@ void CLevel_ObjectViewer::Update(_float fTimeDelta)
Parts_Object_Setting();
Find_Anim();
-
- if (m_Test)
- {
- m_Test->Describe_Entity();
- }
-
}
HRESULT CLevel_ObjectViewer::Render()
@@ -714,7 +708,7 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_Dummy(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, m_Test)))
return E_FAIL;
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index e76d0e307..601467879 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -49,6 +49,7 @@
#include "Active_Icon.h"
#include "MiniMap_Panel.h"
+#include "NoMountIcon.h"
#include "Loading_Panel.h"
#include "LoadingWidget.h"
@@ -62,6 +63,8 @@
#include "HpBarBG.h"
#include "Potion.h"
#include "Magic_Meter.h"
+#include "Magic_Icon.h"
+#include "Spell_UI.h"
#include "IMGUIUI.h"
@@ -93,6 +96,7 @@
#include "TrailObject.h"
#include "NomalJap.h"
#include "Bombard.h"
+#include "Decendo.h"
#pragma endregion
@@ -346,7 +350,11 @@ HRESULT CLoader::Loading_For_UI()
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("ActiveMission_Icon"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Mission/ActiveMission_Icon_%d.png"), 2)))) {
return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Megic_Metar"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Action/Megic_Meter%d.png"), 3)))) {
+ return E_FAIL;
}
@@ -357,6 +365,21 @@ HRESULT CLoader::Loading_For_UI()
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+ Asset_FileLoad("../Bin/Resources/Textures/HUD", 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::UI), wstrFileName,
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
return E_FAIL;
@@ -541,11 +564,14 @@ HRESULT CLoader::Loading_For_UI()
{
return E_FAIL;
}
-
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMiniMap_TrimBorder::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CNoMountIcon::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CAction_Panel::Create(m_pDevice, m_pContext))))
{
@@ -580,6 +606,14 @@ HRESULT CLoader::Loading_For_UI()
{
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMagic_Icon::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_UI::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CIMGUIUI::Create(m_pDevice, m_pContext))))
{
@@ -815,7 +849,10 @@ HRESULT CLoader::Loading_For_Effect()
if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CBombard::Create(m_pDevice, m_pContext))))
return E_FAIL;
-
+
+ if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CDecendo::Create(m_pDevice, m_pContext))))
+ return E_FAIL;
+
m_strMessage = TEXT("Loading Success!");
@@ -1393,7 +1430,7 @@ HRESULT CLoader::Loading_For_ObjectViewer()
#pragma region MONSTER
futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/Goblin.bin", XMMatrixIdentity(),
+ MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/Goblin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
TEXT("Prototype_Component_Goblin_Model")
));
futures.emplace_back(Deferred_ModelLoad(
@@ -1412,11 +1449,11 @@ HRESULT CLoader::Loading_For_ObjectViewer()
#pragma endregion
futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixIdentity(),
+ MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin",XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(),
TEXT("Prototype_Component_Npc_Model")
));
futures.emplace_back(Deferred_ModelLoad(
- MODEL::NONANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity(),
+ MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.fbx",XMMatrixIdentity(),
TEXT("Prototype_Component_Wand_Model")
));
futures.emplace_back(Deferred_ModelLoad(
diff --git a/Jusin154_Team3D/Editor/Private/Magic_Icon.cpp b/Jusin154_Team3D/Editor/Private/Magic_Icon.cpp
new file mode 100644
index 000000000..93478a435
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Magic_Icon.cpp
@@ -0,0 +1,223 @@
+#include "pch.h"
+#include "Magic_Icon.h"
+#include "GameInstance.h"
+
+CMagic_Icon::CMagic_Icon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CMagic_Icon::CMagic_Icon(const CMagic_Icon& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CMagic_Icon::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CMagic_Icon::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 630.f;
+ Desc.fY = 125.f;
+ Desc.fSizeX = 65.f;
+ Desc.fSizeY = 65.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 = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 3.f;
+ return S_OK;
+}
+
+void CMagic_Icon::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CMagic_Icon::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ __super::Update(fTimeDelta);
+}
+
+void CMagic_Icon::Late_Update(_float fTimeDelta)
+{
+ if (__super::Chack_Visible())
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CMagic_Icon::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::MAGIC_ICON)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CMagic_Icon::Get_WorldPostion()
+{
+ return m_pOwner->Get_WorldPostion();
+}
+
+HRESULT CMagic_Icon::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;
+ }
+ return S_OK;
+}
+
+HRESULT CMagic_Icon::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_HealthMeter_LevelBox"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_AncientMagicFinisher"), 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;
+}
+
+CMagic_Icon* CMagic_Icon::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CMagic_Icon* pInstance = new CMagic_Icon(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CMagic_Icon");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CMagic_Icon::Clone(void* pArg, CGameObject* pOwner)
+{
+ CMagic_Icon* pInstance = new CMagic_Icon(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CMagic_Icon");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CMagic_Icon::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CMagic_Icon::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Magic_Meter.cpp b/Jusin154_Team3D/Editor/Private/Magic_Meter.cpp
index b9a3acdff..bb03f3089 100644
--- a/Jusin154_Team3D/Editor/Private/Magic_Meter.cpp
+++ b/Jusin154_Team3D/Editor/Private/Magic_Meter.cpp
@@ -22,9 +22,9 @@ HRESULT CMagic_Meter::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
- Desc.fX = 130.f;
+ Desc.fX = 190.f;
Desc.fY = 145.f;
- Desc.fSizeX = 80.f;
+ Desc.fSizeX = 70.f;
Desc.fSizeY = 20.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) };
@@ -40,14 +40,10 @@ HRESULT CMagic_Meter::Initialize(void* pArg)
m_fAlpha = 1.f;
m_fTimeMult = 3.f;
- m_fAngle = XMConvertToRadians(45);
m_fAlphaTime = 1.f;
- m_iCols = 5;
- UV();
- m_pVIBufferCom->Set_Cloned(true);
- m_pVIBufferCom->Set_Pos(0.f, 0.f, -65.f, m_fSizeY, m_iCols);
- m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
- m_pVIBufferCom->Set_ImageUV(pUVDesc);
+ m_fMaxGauge = 20.f;
+ m_fCurrentGauge = 10.f;
+ Visible(false);
return S_OK;
}
@@ -90,6 +86,14 @@ void CMagic_Meter::Update(_float fTimeDelta)
m_fAlpha = 0.f;
}
}
+ if (m_fCurrentGauge< 0.f)
+ m_fCurrentGauge = 0.f;
+ //if (m_fDamage <= 0.f)
+ // m_fDamage = 0.f;
+ //m_fTargetHp = m_fMaxHp - m_fDamage;
+
+ m_fGaugeBar = m_fCurrentGauge / m_fMaxGauge;
+
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
}
@@ -114,7 +118,7 @@ HRESULT CMagic_Meter::Render()
{
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::MAGIC_METER))))
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::MAGIC_METER))))
{
return E_FAIL;
}
@@ -136,55 +140,9 @@ _vector CMagic_Meter::Get_WorldPostion()
return m_pTransformCom->Get_State(STATE::POSITION);
}
-void CMagic_Meter::UV()
+void CMagic_Meter::Meter_Index(_uint Number)
{
- pUVDesc[0].fUVStart = Compute_UVX(1);
- pUVDesc[0].fUVEnd = Compute_UVY(1);
- pUVDesc[1].fUVStart = Compute_UVX(2);
- pUVDesc[1].fUVEnd = Compute_UVY(2);
- pUVDesc[2].fUVStart = Compute_UVX(2);
- pUVDesc[2].fUVEnd = Compute_UVY(2);
- pUVDesc[3].fUVStart = Compute_UVX(2);
- pUVDesc[3].fUVEnd = Compute_UVY(2);
- pUVDesc[4].fUVStart = Compute_UVX(0);
- pUVDesc[4].fUVEnd = Compute_UVY(0);
-}
-
-_float2 CMagic_Meter::Compute_UVX(_uint Number)
-{
- m_fIamge_Size = { 128, 96 };
-
- _uint iXCount = 1;
- _uint iYCount = 3;
-
- _float frameWidth = 128.f;
- _float frameHeight = 32.f;
-
- _uint frameX = Number % iXCount;
- _uint frameY = Number / iXCount;
-
- _float2 UVStart;
- UVStart.x = frameX * frameWidth / m_fIamge_Size.x;
- UVStart.y = frameY * frameHeight / m_fIamge_Size.y;
-
- return UVStart;
-}
-
-_float2 CMagic_Meter::Compute_UVY(_uint Number)
-{
- m_fIamge_Size = { 320.f, 128.f };
-
- _float frameWidth = 128.f;
- _float frameHeight = 32.f;
-
- // Start 구함
- _float2 UVStart = Compute_UVX(Number);
-
- _float2 UVEnd;
- UVEnd.x = UVStart.x + (frameWidth / m_fIamge_Size.x);
- UVEnd.y = UVStart.y + (frameHeight / m_fIamge_Size.y);
-
- return UVEnd;
+ m_iImageCount = Number;
}
HRESULT CMagic_Meter::Bind_ShaderResources()
@@ -201,7 +159,7 @@ HRESULT CMagic_Meter::Bind_ShaderResources()
{
return E_FAIL;
}
- if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", m_iImageCount)))
{
return E_FAIL;
}
@@ -225,17 +183,21 @@ HRESULT CMagic_Meter::Bind_ShaderResources()
{
return E_FAIL;
}
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fHp", &m_fGaugeBar, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
return S_OK;
}
HRESULT CMagic_Meter::Ready_Components(void* pArg)
{
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Magic_Meter_UI_Instance"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
{
return E_FAIL;
}
- if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_FinisherMeterOutline"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Megic_Metar"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
{
return E_FAIL;
}
@@ -243,7 +205,7 @@ HRESULT CMagic_Meter::Ready_Components(void* pArg)
{
return E_FAIL;
}
- if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
{
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Editor/Private/MiniMap_Panel.cpp b/Jusin154_Team3D/Editor/Private/MiniMap_Panel.cpp
index b08320615..4d5481ed6 100644
--- a/Jusin154_Team3D/Editor/Private/MiniMap_Panel.cpp
+++ b/Jusin154_Team3D/Editor/Private/MiniMap_Panel.cpp
@@ -2,6 +2,7 @@
#include "MiniMap_Panel.h"
#include "GameInstance.h"
#include "MiniMap_TrimBorder.h"
+#include "NoMountIcon.h"
CMiniMap_Panel::CMiniMap_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CPanelObject(pDevice, pContext)
@@ -100,6 +101,11 @@ HRESULT CMiniMap_Panel::Ready_Element(void* pArg)
return E_FAIL;
}
Add_Element(TEXT("MiniMap_TrimBorder"), m_pMiniMap_TrimBorder);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pNoMountIcon))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("NoMountIcon"), m_pNoMountIcon);
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Mission_Key.cpp b/Jusin154_Team3D/Editor/Private/Mission_Key.cpp
index 04e828639..b405c6b85 100644
--- a/Jusin154_Team3D/Editor/Private/Mission_Key.cpp
+++ b/Jusin154_Team3D/Editor/Private/Mission_Key.cpp
@@ -40,6 +40,7 @@ HRESULT CMission_Key::Initialize(void* pArg)
m_fTimeMult = 3.f;
m_fAlpha = 1.f;
m_fAlphaTime = 3.f;
+ AlphabetUV('V');
return S_OK;
}
@@ -82,7 +83,6 @@ void CMission_Key::Update(_float fTimeDelta)
m_fAlpha = 0.f;
}
}
-
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
}
@@ -104,7 +104,7 @@ HRESULT CMission_Key::Render()
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::REMOVEUV)))) {
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
@@ -122,6 +122,32 @@ _vector CMission_Key::Get_WorldPostion()
return m_pTransformCom->Get_State(STATE::POSITION);
}
+_float4 CMission_Key::AlphabetUV(_tchar Alphabet)
+{
+ _uint Number = CMyTools::AlphabetToInt(Alphabet);
+
+ _float2 fIamge_Size = { 320.f, 384.f };
+
+ _uint iXCount = 5;
+ _uint iYCount = 6;
+
+ _float frameWidth = 64.f;
+ _float frameHeight = 64.f;
+
+ _uint frameX = Number % iXCount;
+ _uint frameY = Number / iXCount;
+
+ _float2 UVStart;
+ UVStart.x = frameX * frameWidth / fIamge_Size.x;
+ UVStart.y = frameY * frameHeight / fIamge_Size.y;
+
+ _float2 UVEnd;
+ UVEnd.x = UVStart.x + (frameWidth / fIamge_Size.x);
+ UVEnd.y = UVStart.y + (frameHeight / fIamge_Size.y);
+
+ return m_vUV = _float4(UVStart.x, UVStart.y, UVEnd.x, UVEnd.y);
+}
+
HRESULT CMission_Key::Bind_ShaderResources()
{
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
@@ -160,6 +186,10 @@ HRESULT CMission_Key::Bind_ShaderResources()
{
return E_FAIL;
}
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
return S_OK;
}
@@ -169,7 +199,7 @@ HRESULT CMission_Key::Ready_Components(void* pArg)
{
return E_FAIL;
}
- if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Keyboard_V"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Atlas_Keyboard"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
{
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp b/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp
index 97c9e2331..df5af310b 100644
--- a/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp
+++ b/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp
@@ -97,27 +97,6 @@ HRESULT CMission_Panel::Bind_ShaderResources()
HRESULT CMission_Panel::Ready_Components(void* pArg)
{
- if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
- {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMission_KeyHold))))
- {
- return E_FAIL;
- }
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMission_Key))))
- {
- return E_FAIL;
- }
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pActive_Icon))))
- {
- return E_FAIL;
- }
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMissionBanner_Key))))
- {
- return E_FAIL;
- }
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Monster.cpp b/Jusin154_Team3D/Editor/Private/Monster.cpp
index 4bff56d51..704992d98 100644
--- a/Jusin154_Team3D/Editor/Private/Monster.cpp
+++ b/Jusin154_Team3D/Editor/Private/Monster.cpp
@@ -2,6 +2,7 @@
#include "Monster.h"
#include "GameInstance.h"
+#include "Player.h"
CMonster::CMonster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CUnit(pDevice, pContext)
@@ -23,6 +24,9 @@ HRESULT CMonster::Initialize(void* pArg)
if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
+ m_pPlayerTransform = static_cast(pArg)->Get_Component();
+ SAFE_ADDREF(m_pPlayerTransform);
+
return S_OK;
}
@@ -33,10 +37,12 @@ void CMonster::Priority_Update(_float fTimeDelta)
void CMonster::Update(_float fTimeDelta)
{
+
}
void CMonster::Late_Update(_float fTimeDelta)
{
+ m_fTargetDistance = m_pTransformCom->TargetDis(m_pPlayerTransform->Get_State(STATE::POSITION));
}
HRESULT CMonster::Render()
@@ -65,6 +71,7 @@ void CMonster::Free()
{
__super::Free();
+ SAFE_RELEASE(m_pPlayerTransform);
}
void CMonster::Describe_Entity()
diff --git a/Jusin154_Team3D/Editor/Private/NoMountIcon.cpp b/Jusin154_Team3D/Editor/Private/NoMountIcon.cpp
new file mode 100644
index 000000000..ca641dad1
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/NoMountIcon.cpp
@@ -0,0 +1,222 @@
+#include "pch.h"
+#include "NoMountIcon.h"
+#include "GameInstance.h"
+
+CNoMountIcon::CNoMountIcon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CNoMountIcon::CNoMountIcon(const CNoMountIcon& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CNoMountIcon::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CNoMountIcon::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 100.f;
+ Desc.fY = -55;
+ 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 = 3.f;
+ m_fAlpha = 0.7f;
+ m_fAlphaTime = 3.f;
+ return S_OK;
+}
+
+void CNoMountIcon::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CNoMountIcon::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 7.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 7.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 7.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CNoMountIcon::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CNoMountIcon::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CNoMountIcon::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CNoMountIcon::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_fTime", &m_fTime, 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;
+ }
+
+ return S_OK;
+}
+
+HRESULT CNoMountIcon::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_NoMountIcon"), 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;
+}
+
+CNoMountIcon* CNoMountIcon::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CNoMountIcon* pInstance = new CNoMountIcon(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CNoMountIcon");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CNoMountIcon::Clone(void* pArg, CGameObject* pOwner)
+{
+ CNoMountIcon* pInstance = new CNoMountIcon(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CNoMountIcon");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CNoMountIcon::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CNoMountIcon::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/NomalJap.cpp b/Jusin154_Team3D/Editor/Private/NomalJap.cpp
index 73caa4978..3f05034fa 100644
--- a/Jusin154_Team3D/Editor/Private/NomalJap.cpp
+++ b/Jusin154_Team3D/Editor/Private/NomalJap.cpp
@@ -35,8 +35,6 @@ HRESULT CNomalJap::Initialize(void* pArg)
if (FAILED(Ready_Child()))
return E_FAIL;
- Load_Package("../Bin/Resources/Data/Effect/Package/Jap3");
-
m_wstrEffectName = L"Nomal_Jap";
m_PartObjects.begin()->second->Set_Visible(true);
diff --git a/Jusin154_Team3D/Editor/Private/Player.cpp b/Jusin154_Team3D/Editor/Private/Player.cpp
index 26df46f54..05d61f5c8 100644
--- a/Jusin154_Team3D/Editor/Private/Player.cpp
+++ b/Jusin154_Team3D/Editor/Private/Player.cpp
@@ -84,11 +84,8 @@ void CPlayer::Update(_float fTimeDelta)
{
m_pFSM->Update_State(fTimeDelta);
-
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
-
-
__super::Update(fTimeDelta);
Describe_Entity();
@@ -108,8 +105,6 @@ void CPlayer::Late_Update(_float fTimeDelta)
HRESULT CPlayer::Render()
{
- if (!m_bVisible)
- return S_OK;
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
@@ -293,7 +288,14 @@ void CPlayer::Describe_Entity()
m_pCharacter_Controller->Describe_Entity();
_float4 vMomentum = {};
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
- GUI::Text("%.1f %.1f %.1f %.1f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
+ GUI::Text("%.2f %.2f %.2f %.1f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
+
+ wchar_t buf[128];
+ swprintf_s(buf, L"Momentum: %.2f %.2f %.2f %.2f\n",
+ vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
+
+ OutputDebugStringW(buf);
+
_char label[256];
for (auto& iter : m_KeyFrames)
{
@@ -321,6 +323,6 @@ void CPlayer::Describe_Entity()
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
GUI::Text(AnimList.c_str());
- GUI::Checkbox("Render", &m_bVisible);
+ //GUI::Checkbox("Render", &m_bVisible);
}
diff --git a/Jusin154_Team3D/Editor/Private/Player_States.cpp b/Jusin154_Team3D/Editor/Private/Player_States.cpp
index 42fa72364..b91b2122e 100644
--- a/Jusin154_Team3D/Editor/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Editor/Private/Player_States.cpp
@@ -121,6 +121,7 @@ void CPlayer::Behavior_IdleEnter() {
HRESULT CPlayer::Behavior_IdleExitCheck()
{
+ pair<_uint, _bool> pairAnimInfo;
// S_OK -> 현 상태 유지
// E_FAIL -> 현 상태 탈출
if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell())) {
@@ -145,17 +146,18 @@ HRESULT CPlayer::Behavior_IdleExitCheck()
else if (m_pGameInstance->Key_Down(DIK_V)) {
m_pFSM->Change_State(FSMSTATE::COMBAT);
}
-
return E_FAIL;
}
+
if (SUCCEEDED(InputMove())) {
+
m_pFSM->Change_State(FSMSTATE::MOVE);
return E_FAIL;
}
if (m_pModelCom->IsFinishedAnim())
{
- pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::IDLE];
+ pairAnimInfo = m_Animation[STATEANIM::IDLE];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
return S_OK;
@@ -197,7 +199,16 @@ void CPlayer::Behavior_MoveEnter()
m_pFSM->Enable_State(FSMSTATE::JOG);
m_bSprintToggle = false;
m_bWalkToggle = false;
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ if (bFoward)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ }
+ else if (bBackward)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_BWD];
+ m_fAmount = 0.2f;
+ }
+
}
}
else { // While Moving
@@ -221,11 +232,15 @@ void CPlayer::Behavior_MoveEnter()
m_pFSM->Enable_State(FSMSTATE::JOG);
m_bSprintToggle = false;
m_bWalkToggle = false;
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ if (bFoward)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ }
}
}
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, m_fAmount);
+ m_fAmount = 1.f;
}
HRESULT CPlayer::Behavior_MoveExitCheck()
@@ -259,7 +274,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck()
if (m_bSprintToggle)
{
m_pFSM->Enable_State(FSMSTATE::SPRINT);
-
+ m_pFSM->Disable_State(FSMSTATE::JOG);
pairAnimInfo = m_Animation[STATEANIM::SPRINT];
}
else
@@ -276,6 +291,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck()
if (m_bWalkToggle)
{
m_pFSM->Enable_State(FSMSTATE::WALK);
+ m_pFSM->Disable_State(FSMSTATE::JOG);
pairAnimInfo = m_Animation[STATEANIM::WALK_FWD];
}
else
@@ -289,6 +305,11 @@ HRESULT CPlayer::Behavior_MoveExitCheck()
return E_FAIL;
}
if (SUCCEEDED(InputMove())) {
+ if (m_pModelCom->IsFinishedAnim() && m_pFSM->IsEnable(FSMSTATE::JOG))
+ {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ }
return S_OK;
}
@@ -380,6 +401,11 @@ HRESULT CPlayer::Behavior_DodgeExitCheck()
m_pFSM->Change_State(FSMSTATE::IDLE);
return E_FAIL;
}
+
+ if (SUCCEEDED(InputMove())&&IsCurrentKeyFrame("Dodge")) {
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+ return E_FAIL;
+ }
return S_OK;
}
@@ -619,6 +645,7 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::WALK_STOP] = { 344,false };
m_Animation[STATEANIM::JOG_FWD] = { 167,true };
+ m_Animation[STATEANIM::JOG_BWD] = { 154,false};
m_Animation[STATEANIM::JOG_STOP] = { 289,false };
m_Animation[STATEANIM::JUMP] = { 205,false };
@@ -630,6 +657,7 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::LAND] = { 259,false };
m_Animation[STATEANIM::DODGE] = { 802,false };
+ m_Animation[STATEANIM::DODGE_BLINK] = { 799,true };
m_Animation[STATEANIM::SKILL] = { 593,false };
m_Animation[STATEANIM::SKILL2] = { 915,false };
diff --git a/Jusin154_Team3D/Editor/Private/Slot_Number.cpp b/Jusin154_Team3D/Editor/Private/Slot_Number.cpp
index a4197a00f..c595674a8 100644
--- a/Jusin154_Team3D/Editor/Private/Slot_Number.cpp
+++ b/Jusin154_Team3D/Editor/Private/Slot_Number.cpp
@@ -44,7 +44,7 @@ HRESULT CSlot_Number::Initialize(void* pArg)
m_iCols = 4;
UV();
m_pVIBufferCom->Set_Cloned(true);
- m_pVIBufferCom->Set_Pos(-30.f, 30.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Pos(350.f, 30.f, m_fOffSetX, m_fOffSetY, m_iCols);
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
m_pVIBufferCom->Set_ImageUV(pUVDesc);
return S_OK;
@@ -210,17 +210,17 @@ HRESULT CSlot_Number::Ready_Components(void* pArg)
void CSlot_Number::UV()
{
- pUVDesc[0].fUVStart = Compute_UVX(1);
+ pUVDesc[0].fUVStart = Meter_Index(1);
pUVDesc[0].fUVEnd = Compute_UVY(1);
- pUVDesc[1].fUVStart = Compute_UVX(2);
+ pUVDesc[1].fUVStart = Meter_Index(2);
pUVDesc[1].fUVEnd = Compute_UVY(2);
- pUVDesc[2].fUVStart = Compute_UVX(3);
+ pUVDesc[2].fUVStart = Meter_Index(3);
pUVDesc[2].fUVEnd = Compute_UVY(3);
- pUVDesc[3].fUVStart = Compute_UVX(4);
+ pUVDesc[3].fUVStart = Meter_Index(4);
pUVDesc[3].fUVEnd = Compute_UVY(4);
}
-_float2 CSlot_Number::Compute_UVX(_uint Number)
+_float2 CSlot_Number::Meter_Index(_uint Number)
{
m_fIamge_Size = { 320.f, 128.f };
@@ -248,7 +248,7 @@ _float2 CSlot_Number::Compute_UVY(_uint Number)
_float frameHeight = 64.f;
// Start 구함
- _float2 UVStart = Compute_UVX(Number);
+ _float2 UVStart = Meter_Index(Number);
_float2 UVEnd;
UVEnd.x = UVStart.x + (frameWidth / m_fIamge_Size.x);
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Image.cpp b/Jusin154_Team3D/Editor/Private/Spell_Image.cpp
index 966ecac36..9e7923d0b 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Image.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Image.cpp
@@ -21,7 +21,7 @@ HRESULT CSpell_Image::Initialize(void* pArg)
{
CUIObject::UIOBJECT_DESC Desc{};
- Desc.fX = -1.f;
+ Desc.fX = 380.f;
Desc.fY = 0.f;
Desc.fSizeX = 100.f;
Desc.fSizeY = 100.f;
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp b/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp
index e808ae05d..efb75a6a9 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp
@@ -21,7 +21,7 @@ HRESULT CSpell_Overlay::Initialize(void* pArg)
{
CUIObject::UIOBJECT_DESC Desc{};
- Desc.fX = -1.f;
+ Desc.fX = 380.f;
Desc.fY = 0.f;
Desc.fSizeX = 100.f;
Desc.fSizeY = 100.f;
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp b/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp
index 928f9ccba..ab7432f97 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp
@@ -45,7 +45,7 @@ HRESULT CSpell_Slot::Initialize(void* pArg)
m_fOffSetY = 101.f;
m_iCols = 4;
m_pVIBufferCom->Set_Cloned(true);
- m_pVIBufferCom->Set_Pos(0.f, 0.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Pos(380.f, 0.f, m_fOffSetX, m_fOffSetY, m_iCols);
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
m_pVIBufferCom->Set_ImageUV();
return S_OK;
diff --git a/Jusin154_Team3D/Editor/Private/Spell_UI.cpp b/Jusin154_Team3D/Editor/Private/Spell_UI.cpp
new file mode 100644
index 000000000..f6f8fe911
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Spell_UI.cpp
@@ -0,0 +1,307 @@
+#include "pch.h"
+#include "Spell_UI.h"
+#include "GameInstance.h"
+
+CSpell_UI::CSpell_UI(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_UI::CSpell_UI(const CSpell_UI& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_UI::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_UI::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 650.f;
+ Desc.fY = -90.f;
+ Desc.fSizeX = 180.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 = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 3.f;
+ //m_vImageUV[0] = Image_UV(0);
+ //m_vImageUV[1] = Alphabet_UV('R');
+ //m_vImageUV[2] = Image_UV(1);
+ //m_vImageUV[3] = Alphabet_UV('T');
+ Set_ImagePos();
+ return S_OK;
+}
+
+_float4 CSpell_UI::Alphabet_UV(_tchar Alphabet)
+{
+ _uint Number = CMyTools::AlphabetToInt(Alphabet);
+
+ _float2 fIamge_Size = { 320.f, 384.f };
+
+ _uint iXCount = 5;
+ _uint iYCount = 6;
+
+ _float frameWidth = 64.f;
+ _float frameHeight = 64.f;
+
+ _uint frameX = Number % iXCount;
+ _uint frameY = Number / iXCount;
+
+ _float2 UVStart;
+ UVStart.x = frameX * frameWidth / fIamge_Size.x;
+ UVStart.y = frameY * frameHeight / fIamge_Size.y;
+
+ _float2 UVEnd;
+ UVEnd.x = UVStart.x + (frameWidth / fIamge_Size.x);
+ UVEnd.y = UVStart.y + (frameHeight / fIamge_Size.y);
+
+ _float4 UV{};
+
+ return UV = _float4(UVStart.x, UVStart.y, UVEnd.x, UVEnd.y);
+}
+
+_float4 CSpell_UI::Image_UV(_uint Index)
+{
+ _float2 fIamge_Size = { 256.f, 128.f };
+
+ _uint iXCount = 2;
+ _uint iYCount = 1;
+
+ _float frameWidth = 128.f;
+ _float frameHeight = 128.f;
+
+ _uint frameX = Index % iXCount;
+ _uint frameY = Index / iXCount;
+
+ _float2 UVStart;
+ UVStart.x = frameX * frameWidth / fIamge_Size.x;
+ UVStart.y = frameY * frameHeight / fIamge_Size.y;
+
+ _float2 UVEnd;
+ UVEnd.x = UVStart.x + (frameWidth / fIamge_Size.x);
+ UVEnd.y = UVStart.y + (frameHeight / fIamge_Size.y);
+
+ _float4 UV{};
+
+ return UV = _float4(UVStart.x, UVStart.y, UVEnd.x, UVEnd.y);
+}
+
+void CSpell_UI::Set_ImagePos()
+{
+ m_vUV[0] = _float2(16,25);
+ m_vUV[1] = _float2(42,25);
+ m_vUV[2] = _float2(138,25);
+ m_vUV[3] = _float2(164,25);
+}
+
+void CSpell_UI::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_UI::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_UI::Late_Update(_float fTimeDelta)
+{
+ if (__super::Chack_Visible())
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpell_UI::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 CSpell_UI::Get_WorldPostion()
+{
+ return m_pOwner->Get_WorldPostion();
+}
+
+HRESULT CSpell_UI::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_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_fPosition", m_vUV, sizeof(m_vUV))))
+ //{
+ // return E_FAIL;
+ //}
+ //if (FAILED(m_pShaderCom->Bind_RawValue("g_fImagesUV", m_vImageUV, sizeof(m_vImageUV))))
+ //{
+ // return E_FAIL;
+ //}
+ return S_OK;
+}
+
+HRESULT CSpell_UI::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Revelio_SpellSelectionGridIcon"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Revelio_SpellSelectionGridIcon"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Atlas_Keyboard"), 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;
+}
+
+CSpell_UI* CSpell_UI::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_UI* pInstance = new CSpell_UI(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_UI");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_UI::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_UI* pInstance = new CSpell_UI(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_UI");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_UI::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);
+}
+
+void CSpell_UI::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/TrailObject.cpp b/Jusin154_Team3D/Editor/Private/TrailObject.cpp
index 3b8fe79eb..c24a38e11 100644
--- a/Jusin154_Team3D/Editor/Private/TrailObject.cpp
+++ b/Jusin154_Team3D/Editor/Private/TrailObject.cpp
@@ -28,8 +28,6 @@ HRESULT CTrailObject::Initialize(void* pArg)
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
- //Load_Trail("")
-
return S_OK;
}
@@ -41,48 +39,61 @@ void CTrailObject::Priority_Update(_float fTimeDelta)
void CTrailObject::Update(_float fTimeDelta)
{
+
+ if (m_bVisible == false)
+ return;
+
m_pTrailCom->Trail_Update(fTimeDelta, m_pParentTransformCom->Get_XMWorldMatrix());
+
+
+ if (m_TrailInfo.vDistortionTime.y == 0)
+ return;
+
+ m_TrailInfo.vDistortionTime.x += fTimeDelta;
+
+ if (m_TrailInfo.vDistortionTime.x > m_TrailInfo.vDistortionTime.y)
+ {
+ m_TrailInfo.vDistortionTime.x = 0.f;
+ }
}
void CTrailObject::Late_Update(_float fTimeDelta)
{
+ if (m_bVisible == false)
+ return;
+
+ if (m_TrailInfo.isBlur == true)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this);
+ }
+
+ if (m_TrailInfo.isOnlyBlur == true)
+ return;
+
if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this);
}
}
-#ifdef _DEBUG
-
-HRESULT CTrailObject::Save_Path(HANDLE hFile)
+void CTrailObject::Set_Target(CTransform* pTargetTransform)
{
- DWORD dwByte;
- size_t iObjectLength = m_strPath.length();
- const _char* pFilePath = m_strPath.c_str();
+ SAFE_RELEASE(m_pParentTransformCom);
- if (!WriteFile(hFile, &m_eEffectType, sizeof(EFFECT_TYPE), &dwByte, nullptr)) {
- return E_FAIL;
- }
-
- if (!WriteFile(hFile, &iObjectLength, sizeof(size_t), &dwByte, nullptr)) {
- return E_FAIL;
- }
-
- if (pFilePath != 0)
- {
- if (!WriteFile(hFile, pFilePath, sizeof(_char) * ((DWORD)iObjectLength + 1), &dwByte, nullptr)) {
- return E_FAIL;
- }
- }
-
- return S_OK;
+ if(pTargetTransform != nullptr)
+ m_pParentTransformCom = pTargetTransform;
}
+#ifdef _DEBUG
+
HRESULT CTrailObject::Save_Trail(const _char* pPath)
{
_string strPerfectFilePath = pPath;
- strPerfectFilePath += ".bin";
+
+ m_strPath = pPath;
+
+ strPerfectFilePath += ".trail";
HANDLE hFile = CreateFile(CMyTools::ToWstring(strPerfectFilePath).c_str(),
GENERIC_WRITE,
@@ -97,15 +108,7 @@ HRESULT CTrailObject::Save_Trail(const _char* pPath)
return E_FAIL;
}
- m_strPath = strPerfectFilePath;
-
- DWORD dwByte(0);
-
- if (!WriteFile(hFile, &m_eEffectType, sizeof(EFFECT_TYPE), &dwByte, nullptr)) {
- return E_FAIL;
- }
-
-
+ DWORD dwByte;
size_t iComponentLength = m_strTrailDiffuseName.length();
const _char* pFileComponentPath = m_strTrailDiffuseName.c_str();
@@ -150,8 +153,27 @@ HRESULT CTrailObject::Save_Trail(const _char* pPath)
}
}
+ iComponentLength = m_strTrailDistortionName.length();
+ pFileComponentPath = m_strTrailDistortionName.c_str();
+
+ if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ if (iComponentLength != 0)
+ {
+ if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+ }
+
m_pTrailCom->Save_Trail(hFile);
+
+ if (!WriteFile(hFile, &m_TrailInfo, sizeof(TRAIL_INFO), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
CloseHandle(hFile);
MessageBox(NULL, L"트레일 저장 성공", L"System Message", MB_OK);
@@ -165,10 +187,11 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
SAFE_RELEASE(m_pDiffuse_TextureCom);
SAFE_RELEASE(m_pMasking_TextureCom);
SAFE_RELEASE(m_pNoise_TextureCom);
+ SAFE_RELEASE(m_pDistortion_TextureCom);
_string strPerfectFilePath = pPath;
- strPerfectFilePath += ".bin";
+ strPerfectFilePath += ".trail";
DWORD dwByte(0);
@@ -189,11 +212,6 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
return E_FAIL;
}
-
- if (!ReadFile(hFile, &m_eEffectType, sizeof(EFFECT_TYPE), &dwByte, nullptr)) {
- return E_FAIL;
- }
-
size_t iComponentLength = {};
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
@@ -210,13 +228,9 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
m_strTrailDiffuseName = szName;
- m_isDiffuse = true;
-
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailDiffuseName),
reinterpret_cast(&m_pDiffuse_TextureCom))))
return E_FAIL;
-
-
}
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
@@ -233,8 +247,6 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
m_strTrailNoiseName = szName;
- m_isNoise = true;
-
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailNoiseName),
reinterpret_cast(&m_pNoise_TextureCom))))
return E_FAIL;
@@ -255,20 +267,42 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
m_strTrailMaskingName = szName;
- m_isMask = true;
-
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailMaskingName),
reinterpret_cast(&m_pMasking_TextureCom))))
return E_FAIL;
}
+
+ if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ if (iComponentLength != 0)
+ {
+ _char szName[MAX_PATH] = {};
+
+ if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ m_strTrailDistortionName = szName;
+
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailDistortionName),
+ reinterpret_cast(&m_pDistortion_TextureCom))))
+ return E_FAIL;
+
+ }
+
+
m_pTrailCom->Load_Trail(hFile);
+
+ if (!ReadFile(hFile, &m_TrailInfo, sizeof(TRAIL_INFO), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
CloseHandle(hFile);
-
- MessageBox(NULL, L"트레일 로드 성공", L"System Message", MB_OK);
-
return S_OK;
}
@@ -310,6 +344,28 @@ HRESULT CTrailObject::Render()
return S_OK;
}
+HRESULT CTrailObject::Render_Blur()
+{
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL_BLUR))))
+ return E_FAIL;
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fBlurIntensity", &m_TrailInfo.fBlurIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iBlurWeight", &m_TrailInfo.iBlurWeight, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Bind_ShaderResources()))
+ return E_FAIL;
+
+ if (FAILED(m_pTrailCom->Render()))
+ return E_FAIL;
+
+ return S_OK;
+}
+
@@ -346,6 +402,7 @@ void CTrailObject::Free()
SAFE_RELEASE(m_pDiffuse_TextureCom);
SAFE_RELEASE(m_pMasking_TextureCom);
SAFE_RELEASE(m_pNoise_TextureCom);
+ SAFE_RELEASE(m_pDistortion_TextureCom);
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pTrailCom);
}
@@ -357,15 +414,63 @@ void CTrailObject::Describe_Entity()
{
m_pTrailCom->Describe_Entity();
- GUI::Checkbox("Diffuse", &m_isDiffuse);
- GUI::Checkbox("Masking", &m_isMask);
- GUI::Checkbox("Noise", &m_isNoise);
+ m_pShaderCom->Describe_Entity();
- if (m_isDiffuse == true)
+ GUI::Checkbox("Diffuse", &m_TrailInfo.isDiffuse);
+ GUI::Checkbox("Masking", &m_TrailInfo.isMask);
+ GUI::Checkbox("Noise", &m_TrailInfo.isNoise);
+ GUI::Checkbox("Distortion", &m_TrailInfo.isDistortion);
+
+
+ GUI::ColorEdit4("MixColor", (_float*)&m_TrailInfo.vColor);
+
+ if (GUI::TreeNode("TRAIL BLUR"))
+ {
+ GUI::Checkbox("Blur", &m_TrailInfo.isBlur);
+ GUI::Checkbox("OnlyBlur", &m_TrailInfo.isOnlyBlur);
+
+ ImGui::PushItemWidth(80);
+ GUI::DragFloat("BlurIntensity", &m_TrailInfo.fBlurIntensity, 0.005f, 0.f, 1.f);
+ GUI::DragInt("BlurWeight", &m_TrailInfo.iBlurWeight, 2.f, 0, 128);
+ ImGui::PopItemWidth();
+
+ GUI::TreePop();
+ }
+
+ /* 이미시브 */
+ if (GUI::TreeNode("TRAIL EMISSIVE"))
+ {
+ GUI::ColorEdit4("MixColor", (_float*)&m_TrailInfo.vEmissive);
+
+ ImGui::PushItemWidth(80);
+
+ GUI::DragFloat("EmissiveStrength", &m_TrailInfo.fEmissiveStrength, 0.01f, 0.f);
+ GUI::DragFloat("SoftenExp", &m_TrailInfo.fSoftenExp, 0.01f, 0.f);
+ GUI::DragFloat("SoftStrength", &m_TrailInfo.fSoftStrength, 0.01f, 0.f);
+ GUI::DragFloat("CoreBoost", &m_TrailInfo.fCoreBoost, 0.01f, 0.f);
+ GUI::DragFloat("Radius", &m_TrailInfo.fRadius, 0.01f, 0.f , 1.f);
+
+ ImGui::PopItemWidth();
+
+ GUI::TreePop();
+ }
+
+ if (m_TrailInfo.isDiffuse == true)
{
if (GUI::TreeNode("TRAIL DIFFUSE"))
{
- _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DIFFUSE_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this);
+ _string strName = {};
+
+ ImGui::PushItemWidth(80);
+ GUI::DragFloat("Diffuse Alpha", &m_TrailInfo.fDiffuseAlpha, 0.01f, 0.f, 1.f);
+ ImGui::PopItemWidth();
+
+ if (GUI::TreeNode("DIFFUSE TEX"))
+ {
+ _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DIFFUSE_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this);
+
+ GUI::TreePop();
+ }
if (strName != "") {
m_strTrailDiffuseName = strName;
@@ -375,34 +480,98 @@ void CTrailObject::Describe_Entity()
}
}
- if (m_isMask == true)
+ if (m_TrailInfo.isMask == true)
{
if (GUI::TreeNode("TRAIL MASK"))
{
- _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "MASK_TEXTURE", (CComponent**)&m_pMasking_TextureCom, nullptr, this);
+ _string strName = {};
- if (strName != "") {
- m_strTrailMaskingName = strName;
+ ImGui::PushItemWidth(80);
+ GUI::DragFloat("SoftMask", &m_TrailInfo.fSoftMask, 0.01f, 0.f);
+ GUI::DragFloat("fSoftMaskEdge", &m_TrailInfo.fSoftMaskEdge, 0.01f, 0.f);
+ ImGui::PopItemWidth();
+
+ if (GUI::TreeNode("MASK TEX"))
+ {
+
+ strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "MASK_TEXTURE", (CComponent**)&m_pMasking_TextureCom, nullptr, this);
+
+ if (strName != "") {
+ m_strTrailMaskingName = strName;
+ }
+
+ GUI::TreePop();
}
GUI::TreePop();
}
}
- if (m_isNoise == true)
+ if (m_TrailInfo.isNoise == true)
{
if (GUI::TreeNode("TRAIL NOISE"))
{
- _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NOISE_TEXTURE", (CComponent**)&m_pNoise_TextureCom, nullptr, this);
+ _string strName = {};
- if (strName != "") {
- m_strTrailNoiseName = strName;
+ ImGui::PushItemWidth(80);
+ GUI::Checkbox("NoiseColor", &m_TrailInfo.isNoiseColor);
+ GUI::Checkbox("NoiseAlpha", &m_TrailInfo.isNoiseAlpha);
+ GUI::DragFloat("NoiseStrength", &m_TrailInfo.fNoiseStrength, 0.01f, 0.f);
+ ImGui::PopItemWidth();
+
+ if (GUI::TreeNode("NOISE TEX"))
+ {
+
+ strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NOISE_TEXTURE", (CComponent**)&m_pNoise_TextureCom, nullptr, this);
+
+ if (strName != "") {
+ m_strTrailNoiseName = strName;
+ }
+
+
+ GUI::TreePop();
}
GUI::TreePop();
}
}
+ if (m_TrailInfo.isDistortion == true)
+ {
+ if (GUI::TreeNode("TRAIL DISTORTION"))
+ {
+ _string strName = {};
+
+ _float2 vDiffuseDistortioUVAmount = {};
+ _float2 vMaskDistortionUVAmount = {};
+
+ ImGui::PushItemWidth(80);
+ GUI::DragFloat("DistortionIntensity", &m_TrailInfo.fDistortionIntensity, 0.005f, 0.f, 1.f);
+ GUI::InputFloat("DistortionTime", &m_TrailInfo.vDistortionTime.y, 0.1f, 0.f);
+
+ GUI::DragFloat2("DiffuseDistortionUVAmount", (_float*)&m_TrailInfo.vDiffuseDistortioUVAmount, 0.1f);
+ GUI::DragFloat2("MaskDistortionUVAmount", (_float*)&m_TrailInfo.vMaskDistortionUVAmount, 0.1f);
+
+ ImGui::PopItemWidth();
+
+ if (GUI::TreeNode("NOISE TEX"))
+ {
+
+ strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DISTORTION_TEXTURE", (CComponent**)&m_pDistortion_TextureCom, nullptr, this);
+
+ if (strName != "") {
+ m_strTrailDistortionName = strName;
+ }
+
+
+ GUI::TreePop();
+ }
+
+ GUI::TreePop();
+ }
+ }
+
+
GUI::TreePop();
}
@@ -424,22 +593,103 @@ HRESULT CTrailObject::Bind_ShaderResources()
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
return E_FAIL;
}
+
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuse", &m_isDiffuse, sizeof(_bool)))) {
+ /* 디퓨즈 */
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuse", &m_TrailInfo.isDiffuse, sizeof(_bool)))) {
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_isMask", &m_isMask, sizeof(_bool)))) {
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fDiffuseAlpha", &m_TrailInfo.fDiffuseAlpha, sizeof(_float)))) {
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoise", &m_isNoise, sizeof(_bool)))) {
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vColor", &m_TrailInfo.vColor, sizeof(_float4)))) {
return E_FAIL;
}
+ /* 마스크 */
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isMask", &m_TrailInfo.isMask, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftMask", &m_TrailInfo.fSoftMask, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftMaskEdge", &m_TrailInfo.fSoftMaskEdge, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ /* 노이즈 */
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoise", &m_TrailInfo.isNoise, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseColor", &m_TrailInfo.isNoiseColor, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseAlpha", &m_TrailInfo.isNoiseAlpha, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNoiseStrength", &m_TrailInfo.fNoiseStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ /* 디스토션 */
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isDistortion", &m_TrailInfo.isDistortion, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vDistortionTime", &m_TrailInfo.vDistortionTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseDistortionUVGainAmount", &m_TrailInfo.vDiffuseDistortioUVAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fDistortionIntensity", &m_TrailInfo.fDistortionIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskDistortionUVGainAmount", &m_TrailInfo.vMaskDistortionUVAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+
+ /* 이미시브 */
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vEmissive", &m_TrailInfo.vEmissive, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fEmissiveStrength", &m_TrailInfo.fEmissiveStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftenExp", &m_TrailInfo.fSoftenExp, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftStrength", &m_TrailInfo.fSoftStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoreBoost", &m_TrailInfo.fCoreBoost, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fRadius", &m_TrailInfo.fRadius, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+
if (m_pDiffuse_TextureCom != nullptr)
{
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DiffuseTexture", 0))) {
@@ -461,5 +711,12 @@ HRESULT CTrailObject::Bind_ShaderResources()
}
}
+ if (m_pDistortion_TextureCom != nullptr)
+ {
+ if (FAILED(m_pMasking_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DistortionTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Public/Action_Panel.h b/Jusin154_Team3D/Editor/Public/Action_Panel.h
index bce4da7ce..24b4b938a 100644
--- a/Jusin154_Team3D/Editor/Public/Action_Panel.h
+++ b/Jusin154_Team3D/Editor/Public/Action_Panel.h
@@ -19,6 +19,10 @@ class CAction_Panel final : public CPanelObject
virtual HRESULT Render() override;
virtual _vector Get_WorldPostion() override;
+private:
+ void Magic_Meter_Visible(_uint iIndex, _bool bVisible);
+ void Magic_Meter_UV();
+ void Matic_Meter_Move();
private:
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
@@ -31,13 +35,21 @@ class CAction_Panel final : public CPanelObject
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ _float2 m_vMagic_MeterUV[5] = {};
+ _uint m_iMagic_Meter_Count{};
+
CGameObject* m_pSpell_Slot = { nullptr };
CGameObject* m_pSpell_Image = { nullptr };
CGameObject* m_pSpell_Overlay = { nullptr };
CGameObject* m_pSlot_Number = { nullptr };
CGameObject* m_pHpBarBG= { nullptr };
- CGameObject* m_pMagic_Meter = { nullptr };
-
+ CGameObject* m_pMagic_Meter1 = { nullptr };
+ CGameObject* m_pMagic_Meter2 = { nullptr };
+ CGameObject* m_pMagic_Meter3 = { nullptr };
+ CGameObject* m_pMagic_Meter4 = { nullptr };
+ CGameObject* m_pMagic_Meter5 = { nullptr };
+ CGameObject* m_pMagic_Icon = { nullptr };
+ CGameObject* m_pSpell_UI = { nullptr };
public:
static CAction_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Editor/Public/Decendo.h b/Jusin154_Team3D/Editor/Public/Decendo.h
new file mode 100644
index 000000000..51d73a282
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Decendo.h
@@ -0,0 +1,48 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Editor)
+
+class CDecendo final : public CEffect_Container
+{
+private:
+ CDecendo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CDecendo(const CDecendo& rhs);
+ virtual ~CDecendo() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+ class CDummy_PhysXEffectHitBox* m_pPhysHitBox = {};
+
+ class CPartObject* m_pProjectile = {};
+ class CPartObject* m_pProjectile_Blur = {};
+
+ _vector m_vRotateUp = {};
+ _float m_fAccTime = {};
+ _float m_fLerpAmount = {};
+public:
+ static CDecendo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index 401086d15..0eff2b589 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -23,9 +23,9 @@ namespace Editor
enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, END };
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, END };
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
- enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, END };
+ enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR ,END };
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, END };
- enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, SPELLTYPE, HPBAR, END };
+ enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, SPELLTYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV,END };
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, MAGIC_METER, END };
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
diff --git a/Jusin154_Team3D/Editor/Public/Effect_Container.h b/Jusin154_Team3D/Editor/Public/Effect_Container.h
index 0fe304473..af94757a0 100644
--- a/Jusin154_Team3D/Editor/Public/Effect_Container.h
+++ b/Jusin154_Team3D/Editor/Public/Effect_Container.h
@@ -21,11 +21,7 @@ class CEffect_Container abstract : public CContainerObject
virtual void Late_Update(_float fTimeDelta) override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
public:
-#ifdef _DEBUG
- HRESULT Save_Package(const _char* pPath);
-#endif
- HRESULT Load_Package(const _char* pPath);
- HRESULT Load_Directory(const _char* pPath);
+ HRESULT Load_Directory(const _char* pPath);
protected:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
diff --git a/Jusin154_Team3D/Editor/Public/Effect_Editor.h b/Jusin154_Team3D/Editor/Public/Effect_Editor.h
index 9a99b8766..1c58e6652 100644
--- a/Jusin154_Team3D/Editor/Public/Effect_Editor.h
+++ b/Jusin154_Team3D/Editor/Public/Effect_Editor.h
@@ -47,7 +47,7 @@ class CEffect_Editor final : public CEffect_Container
_char m_szBuffer[MAX_PATH] = { "../Bin/Resources/Data/Effect/"};
_char m_szTrailBuffer[MAX_PATH] = { "../Bin/Resources/Data/Effect/Trail/" };
- _char m_szPackageBuffer[MAX_PATH] = { "../Bin/Resources/Data/Effect/Package/" };
+ _char m_szPackageBuffer[MAX_PATH] = { "../Bin/Resources/Data/Effect/" };
_string m_strSavePath = {};
_string m_strTrailSavePath = {};
diff --git a/Jusin154_Team3D/Editor/Public/Goblin.h b/Jusin154_Team3D/Editor/Public/Goblin.h
index 7e9cf43a0..db5bf848d 100644
--- a/Jusin154_Team3D/Editor/Public/Goblin.h
+++ b/Jusin154_Team3D/Editor/Public/Goblin.h
@@ -2,6 +2,8 @@
#include "Editor_Define.h"
#include "Monster.h"
+#include "CallBack_Monster_Behavior.h"
+#include "CallBack_Monster_HitReport.h"
NS_BEGIN(Editor)
@@ -20,6 +22,13 @@ class CGoblin final : public CMonster
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
+private:
+ CCallBack_Monster_Behavior* m_pCallBack_Behavior = { nullptr };
+ CCallBack_Monster_HitReport* m_pCallBack_HitReport = { nullptr };
+
+ CCharacter_Controller* m_pCharacter_Controller = { nullptr };
+ CRigidBody_Dynamic* m_pRigidBody = { nullptr };
+
private:
HRESULT Ready_Components();
HRESULT Bind_ShaderResources();
@@ -29,6 +38,24 @@ class CGoblin final : public CMonster
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
virtual void Free() override;
virtual void Describe_Entity() override;
+
+private:
+ virtual void Add_FSM();
+ virtual void Set_Anim();
+
+
+ void Behavior_IdleEnter();
+ HRESULT Behavior_IdleExitCheck();
+ void Behavior_IdleExit();
+
+ void Behavior_MoveEnter();
+ HRESULT Behavior_MoveExitCheck();
+ void Behavior_MoveExit();
+
+ void Behavior_CombatEnter();
+ HRESULT Behavior_CombatExitCheck();
+ void Behavior_CombatExit();
+
};
NS_END
diff --git a/Jusin154_Team3D/Editor/Public/HpBarBG.h b/Jusin154_Team3D/Editor/Public/HpBarBG.h
index 4fdd682c2..6c97eea15 100644
--- a/Jusin154_Team3D/Editor/Public/HpBarBG.h
+++ b/Jusin154_Team3D/Editor/Public/HpBarBG.h
@@ -40,7 +40,7 @@ class CHpBarBG final : public CElementObject
_float m_fCurrentHp{};
_float m_fHpBar{};
_float m_fDamage{};
- _float TargetHp{};
+ _float m_fTargetHp{};
_float2 m_fHpBG{};
public:
static CHpBarBG* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Editor/Public/Magic_Icon.h b/Jusin154_Team3D/Editor/Public/Magic_Icon.h
new file mode 100644
index 000000000..68ae18752
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Magic_Icon.h
@@ -0,0 +1,42 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CMagic_Icon final : public CElementObject
+{
+private:
+ CMagic_Icon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CMagic_Icon(const CMagic_Icon& rhs);
+ virtual ~CMagic_Icon() = 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 CMagic_Icon* 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/Magic_Meter.h b/Jusin154_Team3D/Editor/Public/Magic_Meter.h
index c6960a852..7373514df 100644
--- a/Jusin154_Team3D/Editor/Public/Magic_Meter.h
+++ b/Jusin154_Team3D/Editor/Public/Magic_Meter.h
@@ -19,11 +19,9 @@ class CMagic_Meter final : public CElementObject
virtual HRESULT Render() override;
virtual _vector Get_WorldPostion() override;
-private:
- void UV();
- _float2 Compute_UVX(_uint Number);
- _float2 Compute_UVY(_uint Numver);
-
+public:
+ void Meter_Index(_uint Number);
+ //void Set_
private:
virtual HRESULT Bind_ShaderResources() override;
@@ -35,12 +33,14 @@ class CMagic_Meter final : public CElementObject
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
CShader* m_pShaderCom = { nullptr };
- CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
- CVIBuffer_UI_Instance::UI_ATLAS_DESC pUVDesc[5];
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
- _uint m_iCols{};
- _float2 m_fIamge_Size{};
- //_float2 Position[5];
+ _uint m_iImageCount{};
+ _float4 m_vGaugeUV{};
+ _float m_fMaxGauge{};
+ _float m_fCurrentGauge{};
+ _float m_fGaugeBar{};
+ _float m_fTargetGauge{};
public:
static CMagic_Meter* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Editor/Public/MiniMap_Panel.h b/Jusin154_Team3D/Editor/Public/MiniMap_Panel.h
index df0515fe9..aa783559a 100644
--- a/Jusin154_Team3D/Editor/Public/MiniMap_Panel.h
+++ b/Jusin154_Team3D/Editor/Public/MiniMap_Panel.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "Editor_Define.h"
#include "PanelObject.h"
@@ -35,6 +35,7 @@ class CMiniMap_Panel final : public CPanelObject
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
CGameObject* m_pMiniMap_TrimBorder = { nullptr };
+ CGameObject* m_pNoMountIcon = { nullptr };
public:
@@ -44,4 +45,4 @@ class CMiniMap_Panel final : public CPanelObject
void Describe_Entity() override;
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Mission_Key.h b/Jusin154_Team3D/Editor/Public/Mission_Key.h
index 0ea094ca1..662205cf4 100644
--- a/Jusin154_Team3D/Editor/Public/Mission_Key.h
+++ b/Jusin154_Team3D/Editor/Public/Mission_Key.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "Editor_Define.h"
#include "ElementObject.h"
@@ -20,6 +20,9 @@ class CMission_Key final : public CElementObject
virtual _vector Get_WorldPostion() override;
+private:
+ _float4 AlphabetUV(_tchar Alphabet);
+
private:
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
@@ -31,7 +34,7 @@ class CMission_Key final : public CElementObject
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
-
+ _float4 m_vUV{};
public:
static CMission_Key* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
@@ -39,4 +42,4 @@ class CMission_Key final : public CElementObject
void Describe_Entity() override;
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Monster.h b/Jusin154_Team3D/Editor/Public/Monster.h
index 71ec3356d..dadcd638d 100644
--- a/Jusin154_Team3D/Editor/Public/Monster.h
+++ b/Jusin154_Team3D/Editor/Public/Monster.h
@@ -20,6 +20,10 @@ class CMonster abstract : public CUnit
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
+protected:
+ CTransform* m_pPlayerTransform = { nullptr };
+ _float m_fTargetDistance = {};
+
protected:
HRESULT Ready_Components(void* pArg);
HRESULT Bind_ShaderResources();
diff --git a/Jusin154_Team3D/Editor/Public/NoMountIcon.h b/Jusin154_Team3D/Editor/Public/NoMountIcon.h
new file mode 100644
index 000000000..1bc86675b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/NoMountIcon.h
@@ -0,0 +1,42 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CNoMountIcon final : public CElementObject
+{
+private:
+ CNoMountIcon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CNoMountIcon(const CNoMountIcon& rhs);
+ virtual ~CNoMountIcon() = 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 CNoMountIcon* 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/Player.h b/Jusin154_Team3D/Editor/Public/Player.h
index b7c733909..b1b36c1da 100644
--- a/Jusin154_Team3D/Editor/Public/Player.h
+++ b/Jusin154_Team3D/Editor/Public/Player.h
@@ -20,8 +20,6 @@ class CPlayer final : public CUnit
_bool Set_Sprint(_bool bSprint) { m_bSprintToggle = bSprint; }
private:
- unordered_map m_States = { };
- size_t m_iStateMask = { 0 };
_float m_fDirectionRadian = 0.f;
_bool m_bSprintToggle = { false };
@@ -64,7 +62,7 @@ class CPlayer final : public CUnit
HRESULT InputMove();
HRESULT InputSpell();
- STATEANIM::ESTATE m_eSpell = { STATEANIM::END };
+ _float m_fAmount = { 1.f };
void Behavior_IdleEnter();
HRESULT Behavior_IdleExitCheck();
diff --git a/Jusin154_Team3D/Editor/Public/Slot_Number.h b/Jusin154_Team3D/Editor/Public/Slot_Number.h
index 3ffd1b4c2..340b9b872 100644
--- a/Jusin154_Team3D/Editor/Public/Slot_Number.h
+++ b/Jusin154_Team3D/Editor/Public/Slot_Number.h
@@ -27,7 +27,7 @@ class CSlot_Number final : public CElementObject
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
void UV();
- _float2 Compute_UVX(_uint Numver);
+ _float2 Meter_Index(_uint Numver);
_float2 Compute_UVY(_uint Numver);
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
diff --git a/Jusin154_Team3D/Editor/Public/Spell_UI.h b/Jusin154_Team3D/Editor/Public/Spell_UI.h
new file mode 100644
index 000000000..f0f3d3e49
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Spell_UI.h
@@ -0,0 +1,50 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CSpell_UI final : public CElementObject
+{
+private:
+ CSpell_UI(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_UI(const CSpell_UI& rhs);
+ virtual ~CSpell_UI() = 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:
+ _float4 Alphabet_UV(_tchar Alphabet);
+ _float4 Image_UV(_uint Index);
+ void Set_ImagePos();
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _float2 m_vUV[4];
+ _float4 m_vImageUV[4];
+
+public:
+ static CSpell_UI* 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/TrailObject.h b/Jusin154_Team3D/Editor/Public/TrailObject.h
index c332731be..4e2878c29 100644
--- a/Jusin154_Team3D/Editor/Public/TrailObject.h
+++ b/Jusin154_Team3D/Editor/Public/TrailObject.h
@@ -7,12 +7,57 @@ NS_BEGIN(Engine)
class CShader;
class CTexture;
class CTrail;
+class CTransform;
NS_END
NS_BEGIN(Editor)
class CTrailObject final : public CPartObject
{
+public:
+ typedef struct tagTrailInfo
+ {
+ EFFECT_TYPE eEffectType = { EFFECT_TYPE::TRAIL };
+ /* 디퓨즈 */
+ _bool isDiffuse = {};
+ _float fDiffuseAlpha = { 1.f };
+ _float4 vColor = { 0.f ,0.f ,0.f ,1.f };
+
+ /* 마스크 */
+ _bool isMask = {};
+ _float fSoftMaskEdge = {};
+ _float fSoftMask = {};
+
+ /* 노이즈 */
+ _bool isNoise = {};
+ _bool isNoiseColor = { false };
+ _bool isNoiseAlpha = { false };
+ _float fNoiseStrength = {};
+
+ /* 디스 토션 */
+ _bool isDistortion = {};
+ _float2 vDistortionTime = {};
+ _float2 vDiffuseDistortioUVAmount = {};
+ _float2 vMaskDistortionUVAmount = {};
+ _float fDistortionIntensity = {};
+
+ /* 이미시브 */
+ _float4 vEmissive = { 0.f ,0.f ,0.f ,0.f };
+
+ _float fEmissiveStrength = { 0.f };
+ _float fSoftenExp = { 1.31429f };
+ _float fSoftStrength = {};
+ _float fCoreBoost = {};
+ _float fRadius = {};
+
+
+ /* 블러 */
+ _bool isBlur = {};
+ _bool isOnlyBlur = { false };
+ _float fBlurIntensity = {};
+ _int iBlurWeight = {};
+
+ }TRAIL_INFO;
private:
CTrailObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CTrailObject(const CTrailObject& rhs);
@@ -23,9 +68,17 @@ class CTrailObject final : public CPartObject
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
+public:
+ void Set_Target(class CTransform* pTargetTransform);
+ void Set_Target(_float4x4* pMatrix)
+ {
+ if (m_pParantsMatrix != nullptr)
+ {
+ m_pParantsMatrix = pMatrix;
+ }
+ }
public:
#ifdef _DEBUG
- HRESULT Save_Path(HANDLE hFile);
HRESULT Save_Trail(const _char* pPath);
#endif
HRESULT Load_Trail(const _char* pPath, LEVEL eLevel);
@@ -35,6 +88,8 @@ class CTrailObject final : public CPartObject
virtual HRESULT Initialize(void* pArg) override;
virtual HRESULT Ready_Components(void* pArg) override;
virtual HRESULT Render() override;
+ virtual HRESULT Render_Blur() override;
+
public:
static CTrailObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -46,6 +101,7 @@ class CTrailObject final : public CPartObject
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pNoise_TextureCom = { nullptr };
CTexture* m_pMasking_TextureCom = { nullptr };
+ CTexture* m_pDistortion_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CTrail* m_pTrailCom = { nullptr };
@@ -53,15 +109,14 @@ class CTrailObject final : public CPartObject
_string m_strTrailDiffuseName = {};
_string m_strTrailNoiseName = {};
_string m_strTrailMaskingName = {};
+ _string m_strTrailDistortionName = {};
_string m_strPath = {};
_string m_strName = {};
- _bool m_isDiffuse = {};
- _bool m_isNoise = {};
- _bool m_isMask = {};
+ TRAIL_INFO m_TrailInfo = {};
+ _float4x4* m_pParantsMatrix = {};
- EFFECT_TYPE m_eEffectType = { EFFECT_TYPE::TRAIL };
};
NS_END
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 b1efa60ae..b02455a1e 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
@@ -264,5 +264,45 @@ float4x4 RotateAxis(float4 _vAxis , float fAngle)
}
+float2 SelectLerpUV(float2 fAmount, float _fRatio, int iSelectOption)
+{
+ if (iSelectOption < 0)
+ return float2(0, 0);
+
+ float fRatio = _fRatio;
+ switch (iSelectOption)
+ {
+ case 0:
+ fRatio = fRatio; // Linear
+ break;
+ case 1:
+ fRatio = fRatio * fRatio; // EaseInQuad 후반에 속도 증가
+ break;
+ case 2:
+ fRatio = 1 - (1 - fRatio * fRatio); // EaseOutQuad 초반에 속도 증가
+ break;
+ case 3:
+ fRatio = fRatio * fRatio * fRatio; // EaseInCubic 더 강하게 후반 속도 증가
+ break;
+ case 4:
+ fRatio = 1 - (1 - fRatio * fRatio * fRatio); // EaseOutCubic 더 강하게 초반 속도 증가
+ break;
+ case 5:
+ fRatio = 0.5f * (1 - cos(PI * fRatio)); // EaseInOutSin 사인 곡선
+ break;
+ case 6:
+ fRatio = sin(13 * PI * fRatio) * (1 - fRatio) * (1 - fRatio); // EaseInBack 뒤로갔다가 앞으로
+ break;
+ case 7:
+ fRatio = pow(2, 10 * (fRatio - 1)); // Expo 지수 함수
+ break;
+ case 8:
+ fRatio = 1 - pow(1 - fRatio * fRatio, 0.5); // 원형 궤적
+ break;
+ }
+
+ return fAmount * fRatio;
+
+}
#endif // ENGINE_SHADER_FUNCTIONS_HLSLI
diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
index ba1161adb..f0e085866 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
@@ -556,4 +556,14 @@ technique11 DefaultTechnique
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN_SPOT();
}
+
+ pass RefitPass // 6
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_None, 0);
+ SetBlendState(BS_Blend, 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_MAIN_SPOT();
+ }
}
diff --git a/Jusin154_Team3D/Engine/Default/Engine.vcxproj b/Jusin154_Team3D/Engine/Default/Engine.vcxproj
index e4000728f..f8e80124c 100644
--- a/Jusin154_Team3D/Engine/Default/Engine.vcxproj
+++ b/Jusin154_Team3D/Engine/Default/Engine.vcxproj
@@ -110,7 +110,7 @@
Level3
true
- EDITOR_PROJECT;ENGINE_EXPORTS;IMGUI_EXPORTS;TINYXML2_EXPORT;$(USERNAME);_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
+ ENGINE_EXPORTS;IMGUI_EXPORTS;TINYXML2_EXPORT;EDITOR_PROJECT;$(USERNAME);_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
true
stdcpp17
../Public/;%(AdditionalIncludeDirectories)
@@ -148,7 +148,7 @@ call Update_Lib.bat
true
true
true
- EDITOR_PROJECT;ENGINE_EXPORTS;IMGUI_EXPORTS;TINYXML2_EXPORT;$(USERNAME);NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
+ ENGINE_EXPORTS;IMGUI_EXPORTS;TINYXML2_EXPORT;$(USERNAME);NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
true
stdcpp17
../Public/;%(AdditionalIncludeDirectories)
@@ -304,6 +304,7 @@ call Update_Lib.bat
NotUsing
+ NotUsing
@@ -570,31 +571,43 @@ call Update_Lib.bat
Document
+ Effect
+ 5.0
Document
+ Effect
+ 5.0
Document
+ Effect
+ 5.0
Document
+ Effect
+ 5.0
Document
+ Effect
+ 5.0
Document
+ Effect
+ 5.0
@@ -613,7 +626,10 @@ call Update_Lib.bat
-
+
+ Effect
+ 5.0
+
Effect
5.0
@@ -627,10 +643,14 @@ call Update_Lib.bat
Effect
5.0
+ Effect
+ 5.0
Effect
5.0
+ Effect
+ 5.0
Effect
diff --git a/Jusin154_Team3D/Engine/Private/Animation.cpp b/Jusin154_Team3D/Engine/Private/Animation.cpp
index 4ad2f858b..8e839eeac 100644
--- a/Jusin154_Team3D/Engine/Private/Animation.cpp
+++ b/Jusin154_Team3D/Engine/Private/Animation.cpp
@@ -33,37 +33,36 @@ CAnimation::CAnimation(const CAnimation& rhs)
SAFE_ADDREF(pChannel);
}
}
-_bool CAnimation::Update_TransformationMatrices(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, _bool bIsLoop, _float fTimeDelta,CTransform*pTransform)
+_bool CAnimation::Update_TransformationMatrices(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, _bool bIsLoop, _float fTimeDelta,CTransform*pTransform, _float m_fAmount)
{
- //m_fCurrentTrackPosition += m_TickPerSeconds[m_bPause] * fTimeDelta;
- m_fCurrentTrackPosition += m_fTickPerSecond * fTimeDelta * m_fAnimSpeed;
+ _float fProgress = m_fTickPerSecond * fTimeDelta * m_fAnimSpeed;
+ m_fCurrentTrackPosition += fProgress;
+
if (m_fCurrentTrackPosition >= m_fDuration) {
- m_fCurrentTrackPosition = 0.f; // 루프
if (false == bIsLoop) {
+ m_fCurrentTrackPosition = 0.f; // 루프
m_fCurrentTrackPosition = m_fDuration;
return true;
}
else {
Depart_Animation();
+ m_fCurrentTrackPosition = fProgress;
+ ResetRootMotion();
+ ProgressAnimation(Bones, pLocalPosArray, pTransform, m_fAmount);
return true;
}
}
- _uint iIndex = {};
- if (m_vBoneTransformationMatrix.size() > 0)
- m_vBoneTransformationMatrix.clear();
- for (auto& pChannel : m_Channels) {
- pChannel->Update_TransformationMatirx(Bones, pLocalPosArray, m_fCurrentTrackPosition, &m_CurrentKeyFrameIndices[iIndex++],pTransform);
- m_vBoneTransformationMatrix.push_back(pChannel->Get_BoneTransformationMatrix());
- }
+ ProgressAnimation(Bones, pLocalPosArray, pTransform, m_fAmount);
return false;
}
void CAnimation::ResetRootMotion()
{
- for (auto& pChannel : m_Channels)
+ for (auto& pChannel : m_Channels){
pChannel->ResetRootMotion();
+ }
}
void CAnimation::Depart_Animation()
@@ -110,81 +109,105 @@ vector<_int>* CAnimation::Capture_Bones()
return &m_DestBones;
}
-
-void CAnimation::InterpAnim(CAnimation* pPreAnim, vector& Bones, float fRatio)
+void CAnimation::InterpAnim(CAnimation* pPreAnim, vector& Bones, _float fRatio)
{
- if (!pPreAnim) return;
- if (m_Channels.empty() || pPreAnim->m_Channels.empty()) return;
-
- size_t CurCount = m_vBoneTransformationMatrix.size();
- size_t PreCount = pPreAnim->m_vBoneTransformationMatrix.size();
-
- if (CurCount == 0 || PreCount == 0)
+ if (!pPreAnim)
return;
- if (CurCount > PreCount)
+ if (m_Channels.empty() || pPreAnim->m_Channels.empty())
+ return;
+
+ if (Bones.empty())
+ return;
+
+ if (fRatio <= 0.f)
+ fRatio = 0.f;
+ else if (fRatio >= 1.f)
+ fRatio = 1.f;
+
+ _uint boneCount = (_uint)Bones.size();
+
+ vector<_matrix> preBoneMats(boneCount);
+ vector<_bool> preHasBone(boneCount, false);
+
+ _uint preChannelCount =(_uint)pPreAnim->m_Channels.size();
+ _uint preMatCount =(_uint)pPreAnim->m_vBoneTransformationMatrix.size();
+
+ for (_uint i = 0; i < preChannelCount; ++i)
{
- pPreAnim->m_vBoneTransformationMatrix.resize(CurCount, XMMatrixIdentity());
- }
- else if (CurCount < PreCount)
- {
- m_vBoneTransformationMatrix.resize(PreCount, XMMatrixIdentity());
+ _uint boneIndex = pPreAnim->m_Channels[i]->Get_BoneIndex();
+ if (boneIndex < 0 || boneIndex >= boneCount)
+ continue;
+
+ if (i >= preMatCount)
+ continue;
+
+ preBoneMats[boneIndex] = pPreAnim->m_vBoneTransformationMatrix[i];
+ preHasBone[boneIndex] = true;
}
- size_t Count = m_vBoneTransformationMatrix.size();
+ if (m_vBoneTransformationMatrix.size() < m_Channels.size())
+ m_vBoneTransformationMatrix.resize(m_Channels.size(), XMMatrixIdentity());
- unordered_map<_string, int> PreBoneMap;
- PreBoneMap.reserve(pPreAnim->m_Channels.size());
+ _bool hasSaveAnim = (m_pSaveAnim != nullptr);
- for (size_t j = 0; j < pPreAnim->m_Channels.size(); j++)
+ _uint curChannelCount =(_uint)m_Channels.size();
+ _uint curMatCount = (_uint)m_vBoneTransformationMatrix.size();
+
+ for (_uint i = 0; i < curChannelCount; ++i)
{
- PreBoneMap[pPreAnim->m_pSaveAnim->Channels[j].ChannelName] = (int)j;
- }
+ _uint boneIndex = m_Channels[i]->Get_BoneIndex();
+ if (boneIndex < 0 || boneIndex >= (boneCount))
+ continue;
- for (size_t i = 0; i < m_Channels.size(); i++)
- {
- const _string& BoneName = m_pSaveAnim->Channels[i].ChannelName;
+ if (i >= curMatCount)
+ continue;
- auto iter = PreBoneMap.find(BoneName);
- if (iter == PreBoneMap.end())
+ _matrix curMat = m_vBoneTransformationMatrix[i];
+
+ if (!preHasBone[boneIndex] || fRatio <= 0.f)
{
- _int BoneIndex = m_Channels[i]->Get_BoneIndex();
- if (BoneIndex < Bones.size())
- Bones[BoneIndex]->Set_TransformationMatrix(m_vBoneTransformationMatrix[i]);
+ Bones[boneIndex]->Set_TransformationMatrix(curMat);
continue;
}
- int PreIndex = iter->second;
-
- _matrix CurMat = m_vBoneTransformationMatrix[i];
- _matrix PreMat = pPreAnim->m_vBoneTransformationMatrix[PreIndex];
-
- _vector CurScale, CurRot, CurPos;
- _vector PreScale, PreRot, PrePos;
- XMMatrixDecompose(&CurScale, &CurRot, &CurPos, CurMat);
- XMMatrixDecompose(&PreScale, &PreRot, &PrePos, PreMat);
-
- _vector FinalScale = XMVectorLerp(PreScale, CurScale, fRatio);
- _vector FinalRot = XMQuaternionSlerp(PreRot, CurRot, fRatio);
- _vector FinalPos = XMVectorLerp(PrePos, CurPos, fRatio);
-
- if (BoneName == "Reference")
+ if (fRatio >= 1.f)
{
- //FinalPos = XMVectorZero();
+ Bones[boneIndex]->Set_TransformationMatrix(curMat);
+ continue;
}
- _matrix FinalMat = XMMatrixAffineTransformation(FinalScale, XMVectorZero(), FinalRot, FinalPos);
+ _matrix preMat = preBoneMats[boneIndex];
- int BoneIndex = m_Channels[i]->Get_BoneIndex();
- if (BoneIndex < Bones.size())
+ _vector curS, curR, curT;
+ _vector preS, preR, preT;
+
+ XMMatrixDecompose(&curS, &curR, &curT, curMat);
+ XMMatrixDecompose(&preS, &preR, &preT, preMat);
+
+ _vector finalS = XMVectorLerp(preS, curS, fRatio);
+ _vector finalR = XMQuaternionSlerp(preR, curR, fRatio);
+ _vector finalT = XMVectorLerp(preT, curT, fRatio);
+
+ if (hasSaveAnim)
{
- Bones[BoneIndex]->Set_TransformationMatrix(FinalMat);
+ _string& boneName = m_pSaveAnim->Channels[i].ChannelName;
+ if (boneName == "Reference")
+ {
+ finalT = XMVectorZero();
+ }
}
- m_vBoneTransformationMatrix[i] = FinalMat;
+ _matrix finalMat = XMMatrixAffineTransformation(finalS, XMVectorZero(), finalR, finalT);
+
+ Bones[boneIndex]->Set_TransformationMatrix(finalMat);
+
+ m_vBoneTransformationMatrix[i] = finalMat;
}
+
}
+
void CAnimation::CreateGPUData(ID3D11Device* pDevice)
{
vector channels;
@@ -286,6 +309,18 @@ HRESULT CAnimation::Initialize(const vector& Bones, const CModel* pModel
return S_OK;
}
+void CAnimation::ProgressAnimation(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, CTransform* pTransform, _float m_fAmount)
+{
+ _uint iIndex = {};
+ if (m_vBoneTransformationMatrix.size() > 0) {
+ m_vBoneTransformationMatrix.clear();
+ }
+ for (auto& pChannel : m_Channels) {
+ pChannel->Update_TransformationMatirx(Bones, pLocalPosArray, m_fCurrentTrackPosition, &m_CurrentKeyFrameIndices[iIndex++], pTransform, m_fAmount);
+ m_vBoneTransformationMatrix.push_back(pChannel->Get_BoneTransformationMatrix());
+ }
+}
+
HRESULT CAnimation::Combined_Initialize()
{
m_StartKeyFrames.reserve(m_iNumChannels);
@@ -400,10 +435,13 @@ void CAnimation::Free()
}
}
-;
+#ifdef _DEBUG
+
void CAnimation::Describe_Entity()
{
//if (GUI::CollapsingHeader(m_strName.c_str())) {
//
//}
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/Bone.cpp b/Jusin154_Team3D/Engine/Private/Bone.cpp
index b76abcbec..adf046879 100644
--- a/Jusin154_Team3D/Engine/Private/Bone.cpp
+++ b/Jusin154_Team3D/Engine/Private/Bone.cpp
@@ -79,18 +79,6 @@ CBone* CBone::Create(const aiNode* pAINode, _int iParentIndex)
return pInstance;
}
-CBone* CBone::Create(const SaveNode& _SaveNode, _int iParentIndex)
-{
- CBone* pInstance = new CBone();
-
- if (FAILED(pInstance->Initialize(_SaveNode, iParentIndex)))
- {
- MSG_BOX("Failed to Created : CBone");
- SAFE_RELEASE(pInstance);
- }
-
- return pInstance;
-}
HRESULT CBone::Initialize(const aiNode* pAINode, _int iParentIndex)
{
@@ -107,6 +95,18 @@ HRESULT CBone::Initialize(const aiNode* pAINode, _int iParentIndex)
}
#endif
+CBone* CBone::Create(const SaveNode& _SaveNode, _int iParentIndex)
+{
+ CBone* pInstance = new CBone();
+
+ if (FAILED(pInstance->Initialize(_SaveNode, iParentIndex)))
+ {
+ MSG_BOX("Failed to Created : CBone");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
HRESULT CBone::Initialize(HANDLE hFile, DWORD& dwByte)
{
diff --git a/Jusin154_Team3D/Engine/Private/Camera_Manager.cpp b/Jusin154_Team3D/Engine/Private/Camera_Manager.cpp
index 3d1329dab..37bec7d49 100644
--- a/Jusin154_Team3D/Engine/Private/Camera_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/Camera_Manager.cpp
@@ -66,6 +66,11 @@ HRESULT CCamera_Manager::IsBinded_Camera(const _wstring& wstrCameraKey)
return E_FAIL;
}
+_vector CCamera_Manager::Get_CameraLook()
+{
+ return m_pCurrentMainCamera->Get_Component()->Get_State(STATE::LOOK);
+}
+
void CCamera_Manager::Force_CamPosition(_fvector vPos)
{
if (nullptr == m_pCurrentMainCamera)
diff --git a/Jusin154_Team3D/Engine/Private/Channel.cpp b/Jusin154_Team3D/Engine/Private/Channel.cpp
index 07aa53faf..72496230a 100644
--- a/Jusin154_Team3D/Engine/Private/Channel.cpp
+++ b/Jusin154_Team3D/Engine/Private/Channel.cpp
@@ -60,6 +60,19 @@ HRESULT CChannel::Initialize(const vector& Bones, const aiNodeAnim* pAIC
return S_OK;
}
+CChannel* CChannel::Create(const vector& Bones, const aiNodeAnim* pAIChannel)
+{
+ CChannel* pInstance = new CChannel();
+
+ if (FAILED(pInstance->Initialize(Bones, pAIChannel))) {
+ MSG_BOX("Failed to Created : CChannel");
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+#endif
+
void CChannel::Fill_GPU_Keyframes(vector& outKeyframes)
{
for (_uint i = 0; i < m_iNumKeyFrames; i++)
@@ -86,20 +99,6 @@ CHANNEL_DESC CChannel::Fill_GPU_ChannelDesc()
return desc;
}
-
-CChannel* CChannel::Create(const vector& Bones, const aiNodeAnim* pAIChannel)
-{
- CChannel* pInstance = new CChannel();
-
- if (FAILED(pInstance->Initialize(Bones, pAIChannel))) {
- MSG_BOX("Failed to Created : CChannel");
- SAFE_RELEASE(pInstance);
- }
- return pInstance;
-}
-
-#endif
-
HRESULT CChannel::Initialize(const vector& Bones, _uint iIndex)
{
m_iBoneIndex = iIndex;
@@ -112,81 +111,74 @@ HRESULT CChannel::Initialize(const vector& Bones, _uint iIndex)
}
-void CChannel::Update_TransformationMatirx(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, _float fCurrentTrackPosition, _uint* pCurrentKeyFrameIndex, CTransform* pTransform)
+void CChannel::Update_TransformationMatirx(
+ const vector& Bones,
+ const LOCALPOS_DESC* pLocalPosArray,
+ _float fCurrentTrackPosition,
+ _uint* pCurrentKeyFrameIndex,
+ CTransform* pTransform,_float m_fAmount)
{
-
- //if (0.f == fCurrentTrackPosition) {
- // *pCurrentKeyFrameIndex = 0;
- //}
- //KEYFRAME LastKeyFrame = m_KeyFrames.back();
+ KEYFRAME LastKeyFrame = m_KeyFrames.back();
- //_vector vScale = {};
- //_vector vRotation = {};
- //_vector vTranslation = {};
+ _vector vScale{};
+ _vector vRotation{};
+ _vector vTranslation{};
- //if (fCurrentTrackPosition >= LastKeyFrame.fTrackPosition)
- //{
- // vScale = XMLoadFloat3(&LastKeyFrame.vScale);
- // vRotation = XMLoadFloat4(&LastKeyFrame.vRotation);
- // vTranslation = XMVectorSetW(XMLoadFloat3(&LastKeyFrame.vTranslation), 1.f);
- //}
- //else {
- // while (fCurrentTrackPosition >= m_KeyFrames[*pCurrentKeyFrameIndex + 1].fTrackPosition) {
- // ++*pCurrentKeyFrameIndex;
- // }
+ if (fCurrentTrackPosition >= LastKeyFrame.fTrackPosition)
+ {
+ vScale = XMLoadFloat3(&LastKeyFrame.vScale);
+ vRotation = XMLoadFloat4(&LastKeyFrame.vRotation);
+ vTranslation = XMVectorSetW(XMLoadFloat3(&LastKeyFrame.vTranslation), 1.f);
+ }
- // _float3 vSrcScale = {}, vDstScale = {};
- // _float4 vSrcRotation = {}, vDstRotation = {};
- // _float3 vSrcTranslation = {}, vDstTranslation = {};
+ else
+ {
+ while (fCurrentTrackPosition >= m_KeyFrames[*pCurrentKeyFrameIndex + 1].fTrackPosition){
+ ++*pCurrentKeyFrameIndex;
+ }
- // vSrcScale = m_KeyFrames[*pCurrentKeyFrameIndex].vScale;
- // vDstScale = m_KeyFrames[*pCurrentKeyFrameIndex + 1].vScale;
+ _float3 vSourScale{}, vDestScale{};
+ _float4 vSourRotation{}, vDestRotation{};
+ _float3 vSourTranslation{}, vDestTranslation{};
- // vSrcRotation = m_KeyFrames[*pCurrentKeyFrameIndex].vRotation;
- // vDstRotation = m_KeyFrames[*pCurrentKeyFrameIndex + 1].vRotation;
+ vSourScale = m_KeyFrames[*pCurrentKeyFrameIndex].vScale;
+ vDestScale = m_KeyFrames[*pCurrentKeyFrameIndex + 1].vScale;
- // vSrcTranslation = m_KeyFrames[*pCurrentKeyFrameIndex].vTranslation;
- // vDstTranslation = m_KeyFrames[*pCurrentKeyFrameIndex + 1].vTranslation;
+ vSourRotation = m_KeyFrames[*pCurrentKeyFrameIndex].vRotation;
+ vDestRotation = m_KeyFrames[*pCurrentKeyFrameIndex + 1].vRotation;
- // _float fRatio = (fCurrentTrackPosition - m_KeyFrames[*pCurrentKeyFrameIndex].fTrackPosition) /
- // (m_KeyFrames[*pCurrentKeyFrameIndex + 1].fTrackPosition - m_KeyFrames[*pCurrentKeyFrameIndex].fTrackPosition);
+ vSourTranslation = m_KeyFrames[*pCurrentKeyFrameIndex].vTranslation;
+ vDestTranslation = m_KeyFrames[*pCurrentKeyFrameIndex + 1].vTranslation;
- // vScale = XMVectorLerp(XMLoadFloat3(&vSrcScale), XMLoadFloat3(&vDstScale), fRatio);
- // vRotation = XMQuaternionSlerp(XMLoadFloat4(&vSrcRotation), XMLoadFloat4(&vDstRotation), fRatio);
- // vTranslation = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&vSrcTranslation), XMLoadFloat3(&vDstTranslation), fRatio), 1.f);
- //}
+ _float fRatio = (fCurrentTrackPosition - m_KeyFrames[*pCurrentKeyFrameIndex].fTrackPosition) /
+ (m_KeyFrames[*pCurrentKeyFrameIndex + 1].fTrackPosition - m_KeyFrames[*pCurrentKeyFrameIndex].fTrackPosition);
+
+ vScale = XMVectorLerp(XMLoadFloat3(&vSourScale), XMLoadFloat3(&vDestScale), fRatio);
+ vRotation = XMQuaternionSlerp(XMLoadFloat4(&vSourRotation), XMLoadFloat4(&vDestRotation), fRatio);
+ vTranslation = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&vSourTranslation), XMLoadFloat3(&vDestTranslation), fRatio), 1.f);
+ }
+ //const LOCALPOS_DESC& LocalPos = pLocalPosArray[m_iBoneIndex];
- const LOCALPOS_DESC& LocalPos = pLocalPosArray[m_iBoneIndex];
-
- _vector vScale = XMLoadFloat3(&LocalPos.Scale);
- _vector vRotation = XMLoadFloat4(&LocalPos.Rotation);
- _vector vTranslation = XMVectorSet(
- LocalPos.Translation.x,
- LocalPos.Translation.y,
- LocalPos.Translation.z,
- 1.f);
+ //_vector vScale = XMLoadFloat3(&LocalPos.Scale);
+ //_vector vRotation = XMLoadFloat4(&LocalPos.Rotation);
+ //_vector vTranslation = XMVectorSet(
+ // LocalPos.Translation.x,
+ // LocalPos.Translation.y,
+ // LocalPos.Translation.z,
+ // 1.f);
if (Bones[m_iBoneIndex]->Compare_Name("Reference") && pTransform != nullptr)
{
+ GUI::Text("fCurrentTrackPosition : %f", fCurrentTrackPosition);
_float3 vCurRootPos;
XMStoreFloat3(&vCurRootPos, vTranslation);
- XMMATRIX pre = XMLoadFloat4x4(&m_PreTransformMatrix);
- /*
- if (!m_bInitialRootPos)
- {
- m_bInitialRootPos = true;
- vTranslation = XMVectorZero();
- }
- else
- {*/
+ _matrix pre = XMLoadFloat4x4(&m_PreTransformMatrix);
+
_vector vDeltaLocal = XMLoadFloat3(&vCurRootPos) - XMLoadFloat3(&m_vPrevRootPos);
-
- _vector vDeltaAdjusted = {};
-
- vDeltaAdjusted = XMVector3TransformNormal(vDeltaLocal, pre);
+ _vector vDeltaAdjusted = XMVector3TransformNormal(vDeltaLocal, pre);
_vector vRight = pTransform->Get_State(STATE::RIGHT);
_vector vUp = pTransform->Get_State(STATE::UP);
@@ -196,19 +188,19 @@ void CChannel::Update_TransformationMatirx(const vector& Bones, const LO
_float dy = XMVectorGetY(vDeltaAdjusted);
_float dz = XMVectorGetZ(vDeltaAdjusted);
- _vector vDeltaWorld = vRight * dx + (-vUp * dz) + vLook * dy;
-
+ _vector vDeltaWorld = vRight * dx + (vUp * dz) + (-vLook * dy);
+ if (fabsf(dx) < FLT_EPSILON3 && fabsf(dy) < FLT_EPSILON3 && fabsf(dz) < FLT_EPSILON3) {
+ int a = 0;
+ }
vDeltaWorld *= 0.01f;
+ vDeltaWorld *= m_fAmount;
- _vector vCurrentPos = pTransform->Get_State(STATE::POSITION);
- _vector vTargetPos = vCurrentPos + vDeltaWorld;
-
+ vDeltaWorld = XMVectorSetW(vDeltaWorld, 1.f);
+ //pTransform->Set_State(STATE::POSITION,vDeltaWorld);
pTransform->AccumulateMomentum(vDeltaWorld);
m_vPrevRootPos = vCurRootPos;
vTranslation = XMVectorZero();
- //}
- ///////////////////////////////////
_float4 curRotF4;
XMStoreFloat4(&curRotF4, vRotation);
@@ -223,12 +215,11 @@ void CChannel::Update_TransformationMatirx(const vector& Bones, const LO
else
{
_vector qPrev = XMLoadFloat4(&m_vPrevRootRot);
-
_vector qInvPrev = XMQuaternionInverse(qPrev);
_vector qDelta = XMQuaternionMultiply(qInvPrev, qCur);
_vector axisLocal;
- _float angle = 0.f;
+ _float angle = 0.f;
XMQuaternionToAxisAngle(&axisLocal, &angle, qDelta);
_vector axisWorld = XMVector3TransformNormal(axisLocal, pre);
@@ -240,19 +231,30 @@ void CChannel::Update_TransformationMatirx(const vector& Bones, const LO
if (angle > 0 )
- pTransform->TurnAngle(XMLoadFloat4(&axis), -angle);
+ pTransform->TurnAngle(XMLoadFloat4(&axis), angle);
}
XMStoreFloat4(&m_vPrevRootRot, qCur);
-
vRotation = XMLoadFloat4(&m_vInitialRootRot);
}
- m_BoneTransformationMatrix = XMMatrixAffineTransformation(vScale, XMVectorSet(0.f, 0.f, 0.f, 1.f), vRotation, vTranslation);
+ m_BoneTransformationMatrix =
+ XMMatrixAffineTransformation(vScale, XMVectorSet(0.f, 0.f, 0.f, 1.f), vRotation, vTranslation);
Bones[m_iBoneIndex]->Set_TransformationMatrix(m_BoneTransformationMatrix);
}
+void CChannel::ResetRootMotion()
+{
+ m_vPrevRootPos = { 0.f, 0.f, 0.f };
+ m_vPrevRootRot = { 0.f,0.f,0.f,0.f };
+ m_bInitialRootRotSaved = false;
+ m_bInitialRootPos = false;
+}
+
+
+
+
KEYFRAME* CChannel::Get_Frame(_uint iIndex)
{
return &m_KeyFrames[iIndex];
diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
index 8be681b12..9a9a2c363 100644
--- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
+++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
@@ -23,7 +23,7 @@ HRESULT CCharacter_Controller::Render()
_matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
_matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
- _vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x2fc48000, 1.f);
+ _vector vColor = DirectX::Colors::GhostWhite;
switch (m_eBodyType)
{
@@ -58,7 +58,7 @@ HRESULT CCharacter_Controller::Render()
}
return S_OK;
}
-
+#endif // _DEBUG
PSX::PxRigidDynamic* CCharacter_Controller::Get_Actor()
{
return m_pController->getActor();
@@ -69,8 +69,6 @@ PSX::PxController* CCharacter_Controller::Get_Controller()
return m_pController;
}
-#endif // _DEBUG
-
void CCharacter_Controller::Resize_Volume(_float fHeight)
{
m_pController->resize(fHeight);
@@ -160,14 +158,13 @@ void CCharacter_Controller::Move(_float fTimeDelta)
PSX::PxControllerFilters pxFilter = {}; // 충돌 대상 필터
const PSX::PxObstacleContext* pPxObstacles = { nullptr }; // 캐릭터가 충돌해야할 추가적인 장애물 객체?, 닿은 장애물은 캐시된다?
+ if (true == m_bGravity) {
+ m_pTransform->AccumulateMomentum(XMVectorSet(0.f, -GRAVITY * fTimeDelta, 0.f, 0.f));
+ }
XMStoreFloat3((_float3*)&pxVecMomentum, m_pTransform->Get_CurrentMomentum());
m_eBeforeCollisionFlags = m_pController->move(pxVecMomentum, fMinimumDistant, fTimeDelta, pxFilter, pPxObstacles);
- //PSX::PxUserControllerHitReport* pHitCallBack = { nullptr };
- //PSX::PxControllerShapeHit ShapeHit = {};
- //ShapeHit.
- //pHitCallBack->onShapeHit();
}
void CCharacter_Controller::Set_Position(_fvector vNewPos)
@@ -324,7 +321,7 @@ void CCharacter_Controller::Free()
}
__super::Free();
}
-
+#ifdef _DEBUG
void CCharacter_Controller::Describe_Entity()
{
GUI::Begin("Character_Controller");
@@ -381,3 +378,5 @@ void CCharacter_Controller::Describe_Entity()
GUI::End();
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/Collider.cpp b/Jusin154_Team3D/Engine/Private/Collider.cpp
index 139cca0e4..dbf5ffd5f 100644
--- a/Jusin154_Team3D/Engine/Private/Collider.cpp
+++ b/Jusin154_Team3D/Engine/Private/Collider.cpp
@@ -165,7 +165,9 @@ void CCollider::Free()
SAFE_RELEASE(m_pBounding);
}
+#ifdef _DEBUG
void CCollider::Describe_Entity()
{
}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/FSM.cpp b/Jusin154_Team3D/Engine/Private/FSM.cpp
index 8ab5ae9cd..9681f1f97 100644
--- a/Jusin154_Team3D/Engine/Private/FSM.cpp
+++ b/Jusin154_Team3D/Engine/Private/FSM.cpp
@@ -101,6 +101,7 @@ void CFSM::Free()
m_pStates = nullptr;
}
}
+#ifdef _DEBUG
void CFSM::Describe_Entity()
{
@@ -108,3 +109,4 @@ void CFSM::Describe_Entity()
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp
index e2387d636..6bd5690c0 100644
--- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp
+++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp
@@ -199,6 +199,8 @@ void CGameInstance::BillBoard(CTransform* pTransform)
}
+#ifdef EDITOR_PROJECT
+
void CGameInstance::Save_ModelFilePath(const _char* FilePath)
{
@@ -228,6 +230,7 @@ size_t CGameInstance::ModelFilePathCount()
return m_FilePaths.size();
}
+#endif // EDITOR_PROJECT
void CGameInstance::Render_Begin(const _float4* pClearColor)
{
m_pGraphic_Device->Clear_BackBuffer_View(pClearColor);
@@ -538,7 +541,11 @@ HRESULT CGameInstance::Copy_RenderTarget(const _wstring& strTargetTag, ID3D11Tex
{
return m_pRenderTarget_Manager->Copy_RenderTarget(strTargetTag, pTexture2D);
}
-
+HRESULT CGameInstance::Refit_RenderTarget(CVIBuffer_Rect* pVIBuffer, CShader* pShader, const _wstring& wstrRenderTargetInput, const _wstring& wstrRenderTargetOutput)
+{
+ return m_pRenderTarget_Manager->Refit_RenderTarget(pVIBuffer, pShader, wstrRenderTargetInput, wstrRenderTargetOutput);
+}
+#ifdef _DEBUG
void CGameInstance::RenderTarget_Debuger()
{
m_pRenderTarget_Manager->RenderTarget_Debuger();
@@ -548,6 +555,7 @@ HRESULT CGameInstance::Render_RenderTarget_Debug(CShader* pShader, CVIBuffer_Rec
{
return m_pRenderTarget_Manager->Render_RenderTarget_Debug(pShader, pVIBuffer);
}
+#endif // _DEBUG
HRESULT CGameInstance::Clear_Cameras(_uint iLevel)
{
return m_pCamera_Manager->Clear_Cameras(iLevel);
@@ -568,6 +576,10 @@ HRESULT CGameInstance::IsBinded_Camera(const _wstring& strCameraKey)
{
return m_pCamera_Manager->IsBinded_Camera(strCameraKey);
}
+_vector CGameInstance::Get_CameraLook()
+{
+ return m_pCamera_Manager->Get_CameraLook();
+}
const _float* CGameInstance::Get_CurrentCameraFar()
{
return m_pCamera_Manager->Get_CurrentCameraFar();
@@ -602,7 +614,19 @@ _bool CGameInstance::SaveAssimpModel(const _char* filename)
auto iter = m_ModelMap.find(filename);
return iter->second->SaveAssimpModel(filename);
}
+void CGameInstance::Add_ModelToMap(const _char* filePath, CModel* pModel)
+{
+ m_ModelMap[filePath] = pModel;
+}
+
+
#endif
+
+void CGameInstance::Add_SaveModel(const _char* filePath, SaveModel sModel)
+{
+ m_sModelMap[filePath] = sModel;
+}
+
SaveModel* CGameInstance::Load_SaveModel(const _char* filePath)
{
auto iter = m_sModelMap.find(filePath);
@@ -660,6 +684,7 @@ void CGameInstance::Release_Actor(PSX::PxActor& Actor)
{
m_pPhysX_Manager->Detach_Actor(Actor);
}
+#ifdef EDITOR_PROJECT
HRESULT CGameInstance::ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix)
{
return m_pPhysX_Manager->ConvertToTriMeshes(Meshes, pxTriMeshes, WorldMatrix);
@@ -668,6 +693,8 @@ HRESULT CGameInstance::SaveTriMeshes(const _char* pPath, vectorSaveTriMeshes(pPath, TriMeshes);
}
+#endif // EDITOR_PROJECT
+
HRESULT CGameInstance::LoadTriMeshes(const _char* pPath, vector& TriMeshes)
{
return m_pPhysX_Manager->LoadTriMeshes(pPath, TriMeshes);
diff --git a/Jusin154_Team3D/Engine/Private/GameObject_Manager.cpp b/Jusin154_Team3D/Engine/Private/GameObject_Manager.cpp
index 0ceedfeb9..742a06925 100644
--- a/Jusin154_Team3D/Engine/Private/GameObject_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/GameObject_Manager.cpp
@@ -39,8 +39,8 @@ HRESULT CGameObject_Manager::Add_GameObject_ToLayer(_uint iLayerLevelIndex, cons
void CGameObject_Manager::Priority_Update(_float fTimeDelta)
{
- Describe_Entity();
#ifdef _DEBUG
+ Describe_Entity();
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_PriorityUpdate"));
#endif // _DEBUG
for (size_t i = 0; i < m_iNumLevels; i++)
diff --git a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
index c276489f8..f43165818 100644
--- a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
@@ -526,6 +526,7 @@ void CInstance_Model::Free()
SAFE_RELEASE(m_pConstantBuffer);
SAFE_RELEASE(m_pParticleValueBuffer);
}
+#ifdef _DEBUG
void CInstance_Model::Describe_Entity()
{
@@ -732,3 +733,5 @@ void CInstance_Model::Describe_Entity()
ImGui::Separator();
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/Light.cpp b/Jusin154_Team3D/Engine/Private/Light.cpp
index c71638e30..4a77afd55 100644
--- a/Jusin154_Team3D/Engine/Private/Light.cpp
+++ b/Jusin154_Team3D/Engine/Private/Light.cpp
@@ -151,6 +151,7 @@ void CLight::Free()
}
+#ifdef _DEBUG
void CLight::Describe_Entity()
{
@@ -187,3 +188,5 @@ void CLight::Describe_Entity()
GUI::Separator();
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/Mesh.cpp b/Jusin154_Team3D/Engine/Private/Mesh.cpp
index 1b30573ca..5fa3486fe 100644
--- a/Jusin154_Team3D/Engine/Private/Mesh.cpp
+++ b/Jusin154_Team3D/Engine/Private/Mesh.cpp
@@ -597,7 +597,10 @@ void CMesh::Free()
Safe_Delete_Array(m_pBoneMatrices);
}
+#ifdef _DEBUG
void CMesh::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp
index 6bd49333b..9a6888df8 100644
--- a/Jusin154_Team3D/Engine/Private/Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Model.cpp
@@ -107,8 +107,9 @@ 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 (-1 == m_iCurrentAnimIndex // 정지 혹은 시작을 안시켜준 애님
|| m_iCurrentAnimIndex >= (_int)m_iNumAnimations) // 애님 인덱스 초과됨
{
@@ -120,10 +121,10 @@ _bool CModel::Play_Animation(_float fTimeDelta,CTransform* pTransform)
if (m_iPreAnimIndex != m_iCurrentAnimIndex && m_iPreAnimIndex != 0)
{
m_fBlendTime += fTimeDelta;
- _float fRatio = m_fBlendTime / m_fBlendDuration;
+ _float fRatio = (m_fBlendTime / m_fBlendDuration);
fRatio = min(fRatio, 1.f);
- m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, pTransform);
+ m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, pTransform, m_fAmount);
m_Animations[m_iCurrentAnimIndex]->InterpAnim(m_Animations[m_iPreAnimIndex], m_Bones, fRatio);
if (fRatio >= 1.f)
@@ -134,7 +135,7 @@ _bool CModel::Play_Animation(_float fTimeDelta,CTransform* pTransform)
}
else
{
- m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, pTransform);
+ m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, pTransform, m_fAmount);
m_iPreAnimIndex = m_iCurrentAnimIndex;
}
@@ -152,19 +153,22 @@ _bool CModel::Play_Animation(_float fTimeDelta,CTransform* pTransform)
return m_bIsFinishedAnim;
}
-void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop)
+void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop,_float fAmount)
{
- if (m_iCurrentAnimIndex == iIndex)
+ if (m_iCurrentAnimIndex == iIndex){
return;
+ }
if (iIndex >= 0 && iIndex < m_iNumAnimations)
{
m_iCurrentAnimIndex = iIndex;
m_bIsLoop = isLoop;
+ m_fAmount = fAmount;
m_Animations[m_iCurrentAnimIndex]->ResetRootMotion();
m_Animations[m_iCurrentAnimIndex]->Depart_Animation();
}
- else
+ else {
m_iCurrentAnimIndex = -1;
+ }
}
const _float4x4* CModel::Get_BoneMatrixPtr(const _char* pBoneName) const
@@ -905,6 +909,7 @@ HRESULT CModel::Create_ParentVB()
return S_OK;
}
+#ifdef _DEBUG
HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix)
{
m_eType = eType;
@@ -927,6 +932,7 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _
if (FAILED(Assimp_Model_Load(pModelFilePath, eType, PreTransformMatrix, 0))) {
return E_FAIL;
}
+
SaveAssimpModel(Temp);
return S_OK;
@@ -953,6 +959,41 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _
return S_OK;
}
+#endif // _DEBUG
+
+
+
+#ifndef _DEBUG
+
+HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix)
+{
+ m_eType = eType;
+
+ LoadData(pModelFilePath);
+
+ m_pSaveModel = m_pGameInstance->Load_SaveModel(pModelFilePath);
+
+ LoadAdditionalAnimations(pModelFilePath);
+
+ XMStoreFloat4x4(&m_PreTransformMatrix, PreTransformMatrix);
+
+ Ready_Bones(m_pSaveModel->Nodes, 0, -1);
+
+ if (FAILED(Ready_Meshes())) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Ready_Materials(pModelFilePath))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Ready_Animations(m_Bones))) {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+#endif
+
void CModel::LoadAdditionalAnimations(const char* ModelFilePath)
{
filesystem::path fullPath(ModelFilePath);
@@ -1385,6 +1426,7 @@ void CModel::Free()
m_AnimRanges.clear();
}
+#ifdef _DEBUG
void CModel::Describe_Entity()
{
//GUI::Begin("Model_Desc");
@@ -1433,3 +1475,6 @@ void CModel::Describe_Entity()
//}
//GUI::End();
}
+
+#endif // _DEBUG
+
diff --git a/Jusin154_Team3D/Engine/Private/Navigation.cpp b/Jusin154_Team3D/Engine/Private/Navigation.cpp
index 05e375cf6..af41be85b 100644
--- a/Jusin154_Team3D/Engine/Private/Navigation.cpp
+++ b/Jusin154_Team3D/Engine/Private/Navigation.cpp
@@ -1,4 +1,4 @@
-#include "pch.h"
+#include "pch.h"
#include "Navigation.h"
#include "Cell.h"
@@ -68,48 +68,48 @@ HRESULT CNavigation::isMove(_fvector vCurrentPos, _vector vCurrentDir, _vector&
return S_OK;
}
- // iCrossCount > 0 À̹ǷÎ
- // ½½¶óÀ̵ù ȤÀº À̿ôã±â ȤÀº ºí·Ï
+ // iCrossCount > 0 이므로
+ // 슬라이딩 혹은 이웃찾기 혹은 블록
_uint iCrossedNeighborCount = 0;
_int iBlockedLine = -1;
_int iCrossedNeighbor = -1;
{
_int iTempNeighbor = -1;
for (int i = 0; i < 3; ++i) {
- if (fOuts[i] < 0.f) { // ¼±ºп¡ °¡·θ·Çû´µ¥
+ if (fOuts[i] < 0.f) { // 선분에 가로막혔는데
iTempNeighbor = (*m_pCells)[m_iCurrentCellIndex]->Get_Neighbor((NAVI_LINE)i);
- if (-1 != iTempNeighbor) { // À̿ôÀ¸·Î ÇâÇϴ ±æ À̸é
+ if (-1 != iTempNeighbor) { // 이웃으로 향하는 길 이면
iCrossedNeighborCount++;
iCrossedNeighbor = iTempNeighbor;
}
else {
- iBlockedLine = i; // Áø¥ ¸·Èù ±æÀ̸é ÀúÀå
+ iBlockedLine = i; // 진짜 막힌 길이면 저장
}
}
}
}
// 10 11
// 20 21 22
- if (iCrossCount == iCrossedNeighborCount) // °¡·θ·Çû´ø ±æÀÌ ¸ðµÎ À̿ôÀÌ Àִ ±æÀ̾úÀ¸¸é
+ if (iCrossCount == iCrossedNeighborCount) // 가로막혔던 길이 모두 이웃이 있는 길이었으면
{
- m_iCurrentCellIndex = iCrossedNeighbor; // ¾ƹ« ¹æÇâÀ¸·γª
+ m_iCurrentCellIndex = iCrossedNeighbor; // 아무 방향으로나
vCorrectOut = XMVector3TransformNormal(vCurrentDirection, XMLoadFloat4x4(&s_WorldMatrix));
- return S_OK; // À̵¿
+ return S_OK; // 이동
}
// 10
// 20 21
- if (iCrossCount > iCrossedNeighborCount) // °¡·θ·Çû´ø ±æ Áß À̿ôÀ¸·Î ÇâÇϴ ±æÀÌ ´õ Àû´ٸé
+ if (iCrossCount > iCrossedNeighborCount) // 가로막혔던 길 중 이웃으로 향하는 길이 더 적다면
{
- if (iCrossCount == 2 && iCrossedNeighborCount == 0) {// °¡·θ·Çû´ø ±æÀÌ µÑ ´Ù ¸·Èù ±æÀ̾úÀ¸¸é À̵¿ºҰ¡´É
+ if (iCrossCount == 2 && iCrossedNeighborCount == 0) {// 가로막혔던 길이 둘 다 막힌 길이었으면 이동불가능
return E_FAIL;
}
// 10
// 21
- // ¸·Èù ±æ·Î ½½¶óÀ̵ù Ÿ¸é µÊ
+ // 막힌 길로 슬라이딩 타면 됨
- // ½½¶óÀ̵ù º¤ÅÍ
+ // 슬라이딩 벡터
_vector vNeighborNormal = -XMLoadFloat3(pCell->Get_Normarl((NAVI_LINE)iBlockedLine));
vCurrentDirection = vCurrentDirection - XMVector3Dot(vCurrentDirection, vNeighborNormal) * vNeighborNormal;
if (iCrossedNeighborCount == 0) {
@@ -124,7 +124,7 @@ HRESULT CNavigation::isMove(_fvector vCurrentPos, _vector vCurrentDir, _vector&
if (SUCCEEDED((*m_pCells)[iCrossedNeighbor]->isIn(vEstimatedDestination, fOuts, iCrossCount))) {
m_iCurrentCellIndex = iCrossedNeighbor;
}
- else { // K ÀÚ ³ñµµƮ°¡ ÀÖÀ» ¶§ ¾Ʒ¡ »ﰢÇü¿¡¼ ¹ٷÎ À»ﰢÇüÀ¸·Î °¬À» °æ¿ìÀÓ
+ else { // K 자 네비도트가 있을 때 아래 삼각형에서 바로 윗삼각형으로 갔을 경우임
int iFoundCell = Find_Cell_ByPosition(vEstimatedDestination, m_iCurrentCellIndex, 5);
if (iFoundCell >= 0)
@@ -135,7 +135,7 @@ HRESULT CNavigation::isMove(_fvector vCurrentPos, _vector vCurrentDir, _vector&
}
else
{
- return E_FAIL; // ¿ÏÀüÈ÷ ³ñ ¹Û
+ return E_FAIL; // 완전히 네비 밖
}
}
}
@@ -143,8 +143,8 @@ HRESULT CNavigation::isMove(_fvector vCurrentPos, _vector vCurrentDir, _vector&
}
else {
assert(false);
- // ºҰ¡´É,
- // °æ¿ìÀÇ ¼ö°¡ ¾øÀ½
+ // 불가능,
+ // 경우의 수가 없음
}
return S_OK;
}
@@ -162,32 +162,32 @@ HRESULT CNavigation::Get_NearCell(_fvector vCurrentPos, _int& iDestCell)
return S_OK;
}
- // iCrossCount > 0 À̹ǷÎ
- // ½½¶óÀ̵ù ȤÀº À̿ôã±â ȤÀº ºí·Ï
+ // iCrossCount > 0 이므로
+ // 슬라이딩 혹은 이웃찾기 혹은 블록
_uint iCrossedNeighborCount = 0;
_int iBlockedLine = -1;
_int iCrossedNeighbor = -1;
{
_int iTempNeighbor = -1;
for (int i = 0; i < 3; ++i) {
- if (fOuts[i] < 0.f) { // ¼±ºп¡ °¡·θ·Çû´µ¥
+ if (fOuts[i] < 0.f) { // 선분에 가로막혔는데
iTempNeighbor = (*m_pCells)[m_iCurrentCellIndex]->Get_Neighbor((NAVI_LINE)i);
- if (-1 != iTempNeighbor) { // À̿ôÀ¸·Î ÇâÇϴ ±æ À̸é
+ if (-1 != iTempNeighbor) { // 이웃으로 향하는 길 이면
iCrossedNeighborCount++;
iCrossedNeighbor = iTempNeighbor;
}
else {
- iBlockedLine = i; // Áø¥ ¸·Èù ±æÀ̸é ÀúÀå
+ iBlockedLine = i; // 진짜 막힌 길이면 저장
}
}
}
}
// 10 11
// 20 21 22
- if (iCrossCount == iCrossedNeighborCount) // °¡·θ·Çû´ø ±æÀÌ ¸ðµÎ À̿ôÀÌ Àִ ±æÀ̾úÀ¸¸é
+ if (iCrossCount == iCrossedNeighborCount) // 가로막혔던 길이 모두 이웃이 있는 길이었으면
{
iDestCell = iCrossedNeighbor;
- return S_OK; // À̵¿
+ return S_OK; // 이동
}
return E_FAIL;
}
@@ -362,7 +362,9 @@ void CNavigation::Free()
}
}
}
+#ifdef _DEBUG
void CNavigation::Describe_Entity()
{
}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/PartObject.cpp b/Jusin154_Team3D/Engine/Private/PartObject.cpp
index 7421223b0..7a84526df 100644
--- a/Jusin154_Team3D/Engine/Private/PartObject.cpp
+++ b/Jusin154_Team3D/Engine/Private/PartObject.cpp
@@ -23,6 +23,7 @@ HRESULT CPartObject::Initialize(void* pArg)
if (FAILED(__super::Initialize(pArg))){
return E_FAIL;
}
+
PARTOBJECT_DESC* pDesc = static_cast(pArg);
m_pParentTransformCom = pDesc->pParentTransform;
diff --git a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
index b62be3c26..e95b268d4 100644
--- a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
@@ -143,6 +143,7 @@ void CPhysX_Manager::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxT
{
m_TriangleMeshes.emplace(CMyTools::ToWstring(pName), pPxTriMesh);
}
+#ifdef EDITOR_PROJECT
HRESULT CPhysX_Manager::ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix)
{
@@ -194,6 +195,7 @@ HRESULT CPhysX_Manager::SaveTriMeshes(const _char* pPath, vector& TriMeshes)
{
diff --git a/Jusin154_Team3D/Engine/Private/QuadTree.cpp b/Jusin154_Team3D/Engine/Private/QuadTree.cpp
index 9fdb46bad..29acc2ebc 100644
--- a/Jusin154_Team3D/Engine/Private/QuadTree.cpp
+++ b/Jusin154_Team3D/Engine/Private/QuadTree.cpp
@@ -5,6 +5,7 @@
CQuadTree::CQuadTree()
{
}
+#ifdef _DEBUG
void CQuadTree::Set_CullingRadius(_float fRadius)
{
@@ -18,6 +19,7 @@ void CQuadTree::Set_CullingRadius(_float fRadius)
m_pChildren[i]->Set_CullingRadius(fRadius);
}
}
+#endif // _DEBUG
void CQuadTree::Culling(CGameInstance* pGameInstance, const _float3* pVertexPositions, _uint* pIndices, _uint* pNumIndices)
{
diff --git a/Jusin154_Team3D/Engine/Private/RenderTarget.cpp b/Jusin154_Team3D/Engine/Private/RenderTarget.cpp
index 6e1886687..440872956 100644
--- a/Jusin154_Team3D/Engine/Private/RenderTarget.cpp
+++ b/Jusin154_Team3D/Engine/Private/RenderTarget.cpp
@@ -1,4 +1,4 @@
-#include "pch.h"
+#include "pch.h"
#include "RenderTarget.h"
#include "Shader.h"
@@ -73,12 +73,16 @@ void CRenderTarget::Copy_Resource(ID3D11Texture2D* pTexture2D)
{
m_pContext->CopyResource(pTexture2D, m_pTexture2D);
}
+void CRenderTarget::Get_TextureDesc(D3D11_TEXTURE2D_DESC& Desc)
+{
+ m_pTexture2D->GetDesc(&Desc);
+}
#ifdef _DEBUG
void CRenderTarget::Ready_Debug()
{
- XMStoreFloat4x4(&m_WorldMatrix, XMMatrixIdentity()); // µð¹ö±× ¿ùµå ¸ÞƮ¸¯½º Ãʱâȭ
+ XMStoreFloat4x4(&m_WorldMatrix, XMMatrixIdentity()); // 디버그 월드 메트릭스 초기화
_uint iNumViewports = { 1 };
diff --git a/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp b/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp
index 00b50743d..f73d69afb 100644
--- a/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp
@@ -1,6 +1,8 @@
#include "pch.h"
#include "RenderTarget_Manager.h"
#include "RenderTarget.h"
+#include "Shader.h"
+#include "VIBuffer_Rect.h"
CRenderTarget_Manager::CRenderTarget_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CBase(),
@@ -153,6 +155,62 @@ HRESULT CRenderTarget_Manager::Copy_RenderTarget(const _wstring& strTargetTag, I
return S_OK;
}
+HRESULT CRenderTarget_Manager::Refit_RenderTarget(CVIBuffer_Rect* pVIBuffer, CShader* pShader, const _wstring& wstrRenderTargetInput, const _wstring& wstrRenderTargetOutput)
+{
+ CRenderTarget* pInput = Find_RenderTarget(wstrRenderTargetInput);
+ CRenderTarget* pOutput = Find_RenderTarget(wstrRenderTargetOutput);
+ if (nullptr == pInput || nullptr == pOutput) { return E_FAIL; }
+
+ _uint iNumViewPort = 1;
+ D3D11_VIEWPORT vp = {};
+ m_pContext->RSGetViewports(&iNumViewPort, &vp);
+
+ D3D11_TEXTURE2D_DESC OutputDesc = {};
+ pOutput->Get_TextureDesc(OutputDesc);
+ vp.Width = (_float)OutputDesc.Width;
+ vp.Height = (_float)OutputDesc.Height;
+
+ pOutput->Clear();
+
+
+ { // Bind RTVs
+ _uint iNumRenderTargets = { 1 };
+ ID3D11RenderTargetView* pRenderTargetViews[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT] = { pOutput->Get_RTV(), };
+ m_pContext->OMSetRenderTargets(0, nullptr, nullptr);
+ m_pContext->OMSetRenderTargets(1, pRenderTargetViews, nullptr);
+ }
+
+ m_pContext->RSSetViewports(iNumViewPort, &vp);
+
+ { // Bind const
+ _float4x4 matIdentity = {};
+ XMStoreFloat4x4(&matIdentity, XMMatrixIdentity());
+ if (FAILED(pShader->Bind_Matrix("g_WorldMatrix", &matIdentity))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_Matrix("g_ViewMatrix", &matIdentity))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_Matrix("g_ProjMatrix", &matIdentity))) {
+ return E_FAIL;
+ }
+ if (FAILED(pInput->Bind_ShaderResource(pShader, "g_DiffuseTexture"))) {
+ return E_FAIL;
+ }
+ }
+
+ if (FAILED(pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::REFIT)))) {
+ return E_FAIL;
+ }
+ pVIBuffer->Bind_Resources();
+ pVIBuffer->Render();
+
+ ID3D11ShaderResourceView* const pNullSRV[1] = { nullptr };
+ m_pContext->PSSetShaderResources(0, 1, pNullSRV);
+
+
+ return S_OK;
+}
HRESULT CRenderTarget_Manager::End_MRT()
{
diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp
index b6893b462..00540d297 100644
--- a/Jusin154_Team3D/Engine/Private/Renderer.cpp
+++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp
@@ -407,6 +407,11 @@ void CRenderer::Render_Blend()
m_RenderObjects[ENUM_CLASS(RENDER::BLEND)].clear();
}
+void CRenderer::Render_Bloom()
+{
+
+}
+
void CRenderer::Render_UI()
{
m_RenderObjects[ENUM_CLASS(RENDER::UI)].sort([](CGameObject* pDest, CGameObject* pSrc)->_bool {
@@ -596,6 +601,32 @@ HRESULT CRenderer::Initialize()
return E_FAIL;
}
+ /* Target_Bloom */
+ if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Bloom"), (_uint)(Viewport.Width), (_uint)(Viewport.Height),
+ DXGI_FORMAT_R32G32B32A32_FLOAT, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Bloom_4x4"), (_uint)(Viewport.Width * 0.25f), (_uint)(Viewport.Height * 0.25f),
+ DXGI_FORMAT_R32G32B32A32_FLOAT, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Bloom_8x8"), (_uint)(Viewport.Width * 0.125f), (_uint)(Viewport.Height * 0.125f),
+ DXGI_FORMAT_R32G32B32A32_FLOAT, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Bloom_16x16"), (_uint)(Viewport.Width * 0.0625f), (_uint)(Viewport.Height * 0.0625f),
+ DXGI_FORMAT_R32G32B32A32_FLOAT, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Bloom_8x8_2"), (_uint)(Viewport.Width * 0.125f), (_uint)(Viewport.Height * 0.125f),
+ DXGI_FORMAT_R32G32B32A32_FLOAT, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Bloom_4x4_2"), (_uint)(Viewport.Width * 0.25f), (_uint)(Viewport.Height * 0.25f),
+ DXGI_FORMAT_R32G32B32A32_FLOAT, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) {
+ return E_FAIL;
+ }
+
/* Target_Color*/
@@ -663,7 +694,6 @@ HRESULT CRenderer::Initialize()
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Blur"), TEXT("Target_Blur")))) {
return E_FAIL;
}
-
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Blur"), TEXT("Target_Blur_Weight")))) {
return E_FAIL;
}
@@ -677,7 +707,26 @@ HRESULT CRenderer::Initialize()
return E_FAIL;
}
-
+ /* MRT_Bloom */
+ if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Bloom"), TEXT("Target_Bloom")))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Bloom"), TEXT("Target_Bloom_4x4")))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Bloom"), TEXT("Target_Bloom_8x8")))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Bloom"), TEXT("Target_Bloom_16x16")))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Bloom"), TEXT("Target_Bloom_8x8_2")))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Bloom"), TEXT("Target_Bloom_4x4_2")))) {
+ return E_FAIL;
+ }
+
/* MRT_Color */
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Color"), TEXT("Target_Color")))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Engine/Private/RigidBody.cpp b/Jusin154_Team3D/Engine/Private/RigidBody.cpp
index 77b64bf77..754d92893 100644
--- a/Jusin154_Team3D/Engine/Private/RigidBody.cpp
+++ b/Jusin154_Team3D/Engine/Private/RigidBody.cpp
@@ -40,7 +40,10 @@ void CRigidBody::Free()
SAFE_RELEASE(m_pTransform);
}
+#ifdef _DEBUG
void CRigidBody::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
index 47392c2d7..1e3b68340 100644
--- a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
+++ b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
@@ -180,7 +180,9 @@ void CRigidBody_Dynamic::Free()
m_pRigidBody = nullptr;
}
}
+#ifdef _DEBUG
void CRigidBody_Dynamic::Describe_Entity()
{
}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp
index f232ec8b4..32d82d0f3 100644
--- a/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp
+++ b/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp
@@ -70,7 +70,10 @@ void CRigidBody_Static::Free()
m_pRigidBody = nullptr;
}
}
+#ifdef _DEBUG
void CRigidBody_Static::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/Shader.cpp b/Jusin154_Team3D/Engine/Private/Shader.cpp
index 6b90564bc..6972aac4a 100644
--- a/Jusin154_Team3D/Engine/Private/Shader.cpp
+++ b/Jusin154_Team3D/Engine/Private/Shader.cpp
@@ -251,6 +251,7 @@ void CShader::Free()
m_InputLayouts.clear();
}
+#ifdef _DEBUG
void CShader::Describe_Entity()
{
@@ -268,3 +269,5 @@ void CShader::Describe_Entity()
}
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/Texture.cpp b/Jusin154_Team3D/Engine/Private/Texture.cpp
index a5f292c74..3d8f84653 100644
--- a/Jusin154_Team3D/Engine/Private/Texture.cpp
+++ b/Jusin154_Team3D/Engine/Private/Texture.cpp
@@ -230,7 +230,10 @@ void CTexture::Free()
SAFE_RELEASE(pSRV);
}
}
+#ifdef _DEBUG
void CTexture::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/Trail.cpp b/Jusin154_Team3D/Engine/Private/Trail.cpp
index d0a4e3279..267771708 100644
--- a/Jusin154_Team3D/Engine/Private/Trail.cpp
+++ b/Jusin154_Team3D/Engine/Private/Trail.cpp
@@ -244,6 +244,7 @@ void CTrail::Free()
Safe_Delete_Array(m_pVertices);
}
+#ifdef _DEBUG
void CTrail::Describe_Entity()
{
@@ -252,3 +253,5 @@ void CTrail::Describe_Entity()
GUI::InputFloat3("High", (_float*)&m_TrailDesc.vHigh);
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/Transform.cpp b/Jusin154_Team3D/Engine/Private/Transform.cpp
index 0585b946c..89b6cf2f8 100644
--- a/Jusin154_Team3D/Engine/Private/Transform.cpp
+++ b/Jusin154_Team3D/Engine/Private/Transform.cpp
@@ -327,6 +327,14 @@ void CTransform::LookAt(_fvector vAt)
Set_State(STATE::LOOK, XMVector3Normalize(vLook) * vScale.z);
}
+_float CTransform::TargetDis(_fvector vTarget)
+{
+ _vector vTargetDis = vTarget - Get_State(STATE::POSITION);
+ _float dist = XMVectorGetX(
+ XMVector3Length(vTargetDis));
+ return dist;
+}
+
CTransform* CTransform::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CTransform* pInstance = new CTransform(pDevice, pContext);
@@ -358,6 +366,7 @@ void CTransform::Free()
__super::Free();
}
+#ifdef _DEBUG
void CTransform::Describe_Entity()
{
@@ -382,3 +391,5 @@ void CTransform::Describe_Entity()
}
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/UIComponent.cpp b/Jusin154_Team3D/Engine/Private/UIComponent.cpp
index 6057ef584..58f8a4bf3 100644
--- a/Jusin154_Team3D/Engine/Private/UIComponent.cpp
+++ b/Jusin154_Team3D/Engine/Private/UIComponent.cpp
@@ -1,4 +1,4 @@
-#include "pch.h"
+#include "pch.h"
#include "UIComponent.h"
CUIComponent ::CUIComponent(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -51,7 +51,9 @@ void CUIComponent::Free()
{
__super::Free();
}
+#ifdef _DEBUG
void CUIComponent::Describe_Entity()
{
}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/UIObject.cpp b/Jusin154_Team3D/Engine/Private/UIObject.cpp
index 17554e268..8549335bc 100644
--- a/Jusin154_Team3D/Engine/Private/UIObject.cpp
+++ b/Jusin154_Team3D/Engine/Private/UIObject.cpp
@@ -132,6 +132,12 @@ void CUIObject::MoveY(_float fY)
m_fY = fY;
}
+void CUIObject::Move(_float fX, _float fY)
+{
+ m_fX = fX;
+ m_fY = fY;
+}
+
void CUIObject::SizeUpdate(_float fSizeX, _float fSizeY)
{
m_fSizeX = fSizeX;
diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp
index 3c60e0f66..9b6a1a073 100644
--- a/Jusin154_Team3D/Engine/Private/Unit.cpp
+++ b/Jusin154_Team3D/Engine/Private/Unit.cpp
@@ -48,6 +48,7 @@ HRESULT CUnit::Render()
return S_OK;
}
+#ifdef _DEBUG
void CUnit::Load_KeyFrame()
{
FILE* fp = nullptr;
@@ -90,7 +91,7 @@ void CUnit::Load_KeyFrame()
}
}
}
-
+#endif
_float CUnit::Get_KeyFrame(_string FrameName)
{
auto iter = m_KeyFrames.find(FrameName);
@@ -137,7 +138,10 @@ void CUnit::Free()
SAFE_RELEASE(m_pModelCom);
SAFE_RELEASE(m_pFSM);
}
+#ifdef _DEBUG
void CUnit::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Cell.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Cell.cpp
index efb8b9cf2..655c47b85 100644
--- a/Jusin154_Team3D/Engine/Private/VIBuffer_Cell.cpp
+++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Cell.cpp
@@ -1,4 +1,4 @@
-#include "pch.h"
+#include "pch.h"
#include "VIBuffer_Cell.h"
CVIBuffer_Cell::CVIBuffer_Cell(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -127,7 +127,9 @@ void CVIBuffer_Cell::Free()
}
+#ifdef _DEBUG
void CVIBuffer_Cell::Describe_Entity()
{
}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Cube.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Cube.cpp
index 9defc24b6..f669984b8 100644
--- a/Jusin154_Team3D/Engine/Private/VIBuffer_Cube.cpp
+++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Cube.cpp
@@ -1,4 +1,4 @@
-#include "pch.h"
+#include "pch.h"
#include "VIBuffer_Cube.h"
CVIBuffer_Cube::CVIBuffer_Cube(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -273,7 +273,10 @@ void CVIBuffer_Cube::Free()
}
+#ifdef _DEBUG
void CVIBuffer_Cube::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Rect.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Rect.cpp
index 00a4a42f4..d37f468db 100644
--- a/Jusin154_Team3D/Engine/Private/VIBuffer_Rect.cpp
+++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Rect.cpp
@@ -1,4 +1,4 @@
-#include "pch.h"
+#include "pch.h"
#include "VIBuffer_Rect.h"
CVIBuffer_Rect::CVIBuffer_Rect(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -128,7 +128,10 @@ void CVIBuffer_Rect::Free()
}
+#ifdef _DEBUG
void CVIBuffer_Rect::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp
index 8e9a87846..7e8cb21f4 100644
--- a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp
+++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp
@@ -288,12 +288,14 @@ void CVIBuffer_Terrain::Change_HeigthRatio(_float fRatio)
m_pContext->Unmap(m_pVB, 0);
}
+#ifdef _DEBUG
void CVIBuffer_Terrain::Set_CullingRadius(_float fRaduis)
{
m_pQuadTree->Set_CullingRadius(fRaduis);
}
+
HRESULT CVIBuffer_Terrain::Save_HeightMap(const _char* pFilePath)
{
string strFilePath = "../Bin/Resources/Data/Map/" + string(pFilePath);
@@ -361,6 +363,7 @@ HRESULT CVIBuffer_Terrain::Load_HeightMap(const _char* pFilePath)
return S_OK;
}
+#endif // _DEBUG
CVIBuffer_Terrain* CVIBuffer_Terrain::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pFilePath, _uint iSizeX, _uint iSizeZ)
{
@@ -393,7 +396,9 @@ void CVIBuffer_Terrain::Free()
Safe_Release(m_pQuadTree);
}
+#ifdef _DEBUG
void CVIBuffer_Terrain::Describe_Entity()
{
}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp
index 627bd6bf4..110a22c4f 100644
--- a/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp
+++ b/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp
@@ -251,25 +251,6 @@ void CVIBuffer_UI_Instance::Set_ImageUV(UI_ATLAS_DESC* AtlasUV)
m_pContext->Unmap(m_pVBInstance, 0);
}
-void CVIBuffer_UI_Instance::Add_InstanceOvject(vector<_uint> VisileIndices)
-{
- m_VisibleIndices = VisileIndices;
- D3D11_MAPPED_SUBRESOURCE SubResource{};
-
- m_pContext->Map(m_pVBInstance, 0, D3D11_MAP_WRITE_NO_OVERWRITE, 0, &SubResource);
-
- VTX_INSTANCE_UI* pVertices = static_cast(SubResource.pData);
-
- for (_uint i = 0; i < m_VisibleIndices.size(); ++i)
- {
- pVertices[i] = m_pInstanceVertices[m_VisibleIndices[i]];
- }
-
-
- m_pContext->Unmap(m_pVBInstance, 0);
-
-}
-
CVIBuffer_UI_Instance* CVIBuffer_UI_Instance::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const INSTANCE_DESC* pInstanceDesc)
{
CVIBuffer_UI_Instance* pInstance = new CVIBuffer_UI_Instance(pDevice, pContext);
@@ -307,7 +288,10 @@ void CVIBuffer_UI_Instance::Free()
Safe_Delete_Array(m_fPosition);
}
}
+#ifdef _DEBUG
void CVIBuffer_UI_Instance::Describe_Entity()
{
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Public/Animation.h b/Jusin154_Team3D/Engine/Public/Animation.h
index d96ba3570..43a2aeb8f 100644
--- a/Jusin154_Team3D/Engine/Public/Animation.h
+++ b/Jusin154_Team3D/Engine/Public/Animation.h
@@ -11,7 +11,9 @@ class ENGINE_DLL CAnimation : public CBase
CAnimation(const CAnimation& rhs);
virtual ~CAnimation() = default;
public:
- _bool Update_TransformationMatrices(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, _bool bIsLoop, _float fTimeDelta, class CTransform* pTransform = nullptr);
+ _bool Update_TransformationMatrices(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, _bool bIsLoop, _float fTimeDelta, class CTransform* pTransform = nullptr, _float m_fAmount = 1.f);
+ void Reset();
+ void ProgressAnimation(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, CTransform* pTransform, _float m_fAmount);
void ResetRootMotion();
void Depart_Animation();
void Set_AnimPause(_bool bValue) { m_bPause = bValue; }
@@ -21,7 +23,12 @@ class ENGINE_DLL CAnimation : public CBase
void Set_AnimProgressPostion(const _char* pChannelName, _uint iPosition);
vector<_int>* Capture_Bones();
void InterpAnim(CAnimation* pPreAnim, vector& Bones, float fRatio);
+
+
+
void CreateGPUData(ID3D11Device* pDevice);
+
+
vector Get_StartFrameInformations() { return m_StartKeyFrames; }
const _string& Get_Name() const { return m_strName; }
@@ -94,7 +101,10 @@ class ENGINE_DLL CAnimation : public CBase
//
CAnimation* Clone();
virtual void Free() override;
+#ifdef _DEBUG
void Describe_Entity();
+#endif // _DEBUG
+
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/Camera_Manager.h b/Jusin154_Team3D/Engine/Public/Camera_Manager.h
index a6c31d7dc..718bf6b55 100644
--- a/Jusin154_Team3D/Engine/Public/Camera_Manager.h
+++ b/Jusin154_Team3D/Engine/Public/Camera_Manager.h
@@ -16,6 +16,7 @@ class CCamera_Manager final : public CBase
HRESULT Add_Camera(_uint iLevel, CCamera* pCamera, const _wstring& wstrCameraKey);
HRESULT Bind_Camera(_uint iLevel, const _wstring& wstrCameraKey, _bool bIgnorePriority);
HRESULT IsBinded_Camera(const _wstring& wstrCameraKey);
+ _vector Get_CameraLook();
void Force_CamPosition(_fvector vPos);
diff --git a/Jusin154_Team3D/Engine/Public/Channel.h b/Jusin154_Team3D/Engine/Public/Channel.h
index 02626af9f..593a43116 100644
--- a/Jusin154_Team3D/Engine/Public/Channel.h
+++ b/Jusin154_Team3D/Engine/Public/Channel.h
@@ -16,19 +16,17 @@ class ENGINE_DLL CChannel : public CBase
public:
static CChannel* Create(const vector& Bones, const aiNodeAnim* pAIChannel);
+
+#endif // EDITOR_PROJECT
+public:
void Fill_GPU_Keyframes(vector& outKeyframes);
CHANNEL_DESC Fill_GPU_ChannelDesc();
-#endif // EDITOR_PROJECT
public:
- void Update_TransformationMatirx(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, _float fCurrentTrackPosition, _uint* pCurrentKeyFrameIndex,class CTransform* pTransform=nullptr);
+ void Update_TransformationMatirx(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, _float fCurrentTrackPosition, _uint* pCurrentKeyFrameIndex,class CTransform* pTransform=nullptr,_float m_fAmount = 1.f);
_int Get_BoneIndex() { return { m_iBoneIndex }; }
void Set_BoneIndex(_int iBoneIndex) { m_iBoneIndex = iBoneIndex; }
- void ResetRootMotion() {
- m_vPrevRootPos = { 0.f, 0.f, 0.f };
- m_vPrevRootRot = { 0.f,0.f,0.f,0.f };
- m_bInitialRootRotSaved = false;
- }
+ void ResetRootMotion();
_matrix Get_BoneTransformationMatrix() { return m_BoneTransformationMatrix; }
KEYFRAME* Get_Frame(_uint iIndex);
@@ -53,6 +51,7 @@ class ENGINE_DLL CChannel : public CBase
_float3 m_vPrevRootPos = { 0.f, 0.f, 0.f };
_float4 m_vPrevRootRot = { 0.f, 0.f, 0.f,0.f };
_matrix m_BoneTransformationMatrix = {};
+ _bool m_bInitialRootPos = { false };
_bool m_bInitialRootRotSaved = {false};
_float4 m_vInitialRootRot = {};
diff --git a/Jusin154_Team3D/Engine/Public/Character_Controller.h b/Jusin154_Team3D/Engine/Public/Character_Controller.h
index 0d3173be0..18aed237d 100644
--- a/Jusin154_Team3D/Engine/Public/Character_Controller.h
+++ b/Jusin154_Team3D/Engine/Public/Character_Controller.h
@@ -61,6 +61,8 @@ class ENGINE_DLL CCharacter_Controller final :
_float3 Get_Volume();
HRESULT ConvertToDO(class CRigidBody_Dynamic& BodyOriginal);
+ _bool IsGravity() { return m_bGravity; }
+ void SetGravity(_bool bCondition) { m_bGravity = bCondition; };
_bool IsActive() const { return m_bActive; }
void SetActive(_bool bCondition) { m_bActive = bCondition; }
@@ -74,6 +76,7 @@ class ENGINE_DLL CCharacter_Controller final :
PSX::PxControllerCollisionFlags m_eBeforeCollisionFlags = {};
_bool m_bActive = { true };
+ _bool m_bGravity = { true };
#ifdef _DEBUG
unique_ptr m_pMainShape = { nullptr };
unique_ptr m_pSubShape = { nullptr };
@@ -93,7 +96,10 @@ class ENGINE_DLL CCharacter_Controller final :
static CCharacter_Controller* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
virtual void Free() override;
+#ifdef _DEBUG
virtual void Describe_Entity() override;
+#endif // _DEBUG
+
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/Collider.h b/Jusin154_Team3D/Engine/Public/Collider.h
index 01c399467..96529f754 100644
--- a/Jusin154_Team3D/Engine/Public/Collider.h
+++ b/Jusin154_Team3D/Engine/Public/Collider.h
@@ -43,8 +43,9 @@ class ENGINE_DLL CCollider final : public CComponent
static CCollider* 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
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
index 444130735..e90cb29c1 100644
--- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h
+++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
@@ -34,7 +34,7 @@ enum class NAVI_POINT { A, B, C, END };
enum class NAVI_LINE { AB, BC, CA, END };
enum class SHADER_PASS_CELL { DEBUG, END };
-enum class SHADER_PASS_DEFERRED { DEBUG, DIRECTIONAL, POINT, COMBINED, BLUR, SPOT, END };
+enum class SHADER_PASS_DEFERRED { DEBUG, DIRECTIONAL, POINT, COMBINED, BLUR, SPOT, REFIT, END };
enum class QUESTYPE {MAIN, SUB, END};
enum class TEXTURE_MOUNT_SLOT0 { NOT_DEFINED, METALLIC, SPECULAR, HEIGHT, END };
diff --git a/Jusin154_Team3D/Engine/Public/FSM.h b/Jusin154_Team3D/Engine/Public/FSM.h
index 52ae58118..61f7cc80f 100644
--- a/Jusin154_Team3D/Engine/Public/FSM.h
+++ b/Jusin154_Team3D/Engine/Public/FSM.h
@@ -72,7 +72,9 @@ class ENGINE_DLL CFSM final : public CComponent
static CFSM* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CFSM* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
virtual void Free() override;
- virtual void Describe_Entity() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h
index d8acd7623..73531840b 100644
--- a/Jusin154_Team3D/Engine/Public/GameInstance.h
+++ b/Jusin154_Team3D/Engine/Public/GameInstance.h
@@ -157,6 +157,7 @@ class ENGINE_DLL CGameInstance final : public CBase
HRESULT End_MRT();
HRESULT Bind_RenderTarget(const _wstring& strTargetTag, class CShader* pShader, const _char* pConstantName);
HRESULT Copy_RenderTarget(const _wstring& strTargetTag, ID3D11Texture2D* pTexture2D);
+ HRESULT Refit_RenderTarget(class CVIBuffer_Rect* pVIBuffer, class CShader* pShader, const _wstring& wstrRenderTargetInput, const _wstring& wstrRenderTargetOutput);
#ifdef _DEBUG
void RenderTarget_Debuger();
HRESULT Render_RenderTarget_Debug(class CShader* pShader, class CVIBuffer_Rect* pVIBuffer);
@@ -168,6 +169,7 @@ class ENGINE_DLL CGameInstance final : public CBase
HRESULT Add_Camera(_uint iLevel, class CCamera* pCamera, const _wstring& strCameraKey);
HRESULT Bind_Camera(_uint iLevel, const _wstring& strCameraKey, _bool bIgnorePriority);
HRESULT IsBinded_Camera(const _wstring& strCameraKey);
+ _vector Get_CameraLook();
const _float* Get_CurrentCameraFar();
void Force_CamPosition(_fvector vPos);
#pragma endregion
@@ -198,9 +200,10 @@ class ENGINE_DLL CGameInstance final : public CBase
void Attach_Actor(PSX::PxActor& Actor);
void Detach_Actor(PSX::PxActor& pActor);
void Release_Actor(PSX::PxActor& Actor);
-
+#ifdef EDITOR_PROJECT
HRESULT ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix = XMMatrixIdentity());
HRESULT SaveTriMeshes(const _char* pPath, vector& TriMeshes);
+#endif // EDITOR_PROJECT
HRESULT LoadTriMeshes(const _char* pPath, vector& TriMeshes); // 모델 불러왔던 경로에 그대로 있음
#pragma endregion
#pragma region THREADHOLDER
@@ -215,26 +218,19 @@ class ENGINE_DLL CGameInstance final : public CBase
#pragma endregion
public:
- void Add_ModelToMap(const _char* filePath, CModel* pModel)
- {
- m_ModelMap[filePath] = pModel;
- }
+ void Add_ModelToMap(const _char* filePath, CModel* pModel);
- void Add_SaveModel(const _char* filePath, SaveModel sModel)
- {
- m_sModelMap[filePath] = sModel;
- }
-
-#ifdef EDITOR_PROJECT
- _bool SaveAssimpModel(const _char* filename);
-#endif
+ void Add_SaveModel(const _char* filePath, SaveModel sModel);
SaveModel* Load_SaveModel(const _char* filePath);
+#ifdef EDITOR_PROJECT
+ _bool SaveAssimpModel(const _char* filename);
void Save_ModelFilePath(const _char* FilePath);
const _char* Load_ModelFilePath(_uint iIndex);
const _char* Load_BinaryModelFilePath(_uint iIndex);
size_t BinaryModelFilePathCount();
size_t ModelFilePathCount();
+#endif
private:
class CGraphic_Device* m_pGraphic_Device = { nullptr };
@@ -266,9 +262,9 @@ class ENGINE_DLL CGameInstance final : public CBase
vector m_FilePaths = {};
map m_ModelMap;
- map m_sModelMap;
-#endif // _DEBUG
+#endif // _DEBUG
+ map m_sModelMap;
public:
void Release_Engine();
virtual void Free() override;
diff --git a/Jusin154_Team3D/Engine/Public/GameObject.h b/Jusin154_Team3D/Engine/Public/GameObject.h
index 6ba99ef38..7cb2635fe 100644
--- a/Jusin154_Team3D/Engine/Public/GameObject.h
+++ b/Jusin154_Team3D/Engine/Public/GameObject.h
@@ -110,7 +110,10 @@ class ENGINE_DLL CGameObject abstract
public:
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner = nullptr)PURE;
virtual void Free() override;
+#ifdef _DEBUG
virtual void Describe_Entity()PURE;
+#endif // _DEBUG
+
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/Instance_Model.h b/Jusin154_Team3D/Engine/Public/Instance_Model.h
index cba913440..8446176b3 100644
--- a/Jusin154_Team3D/Engine/Public/Instance_Model.h
+++ b/Jusin154_Team3D/Engine/Public/Instance_Model.h
@@ -227,7 +227,9 @@ class ENGINE_DLL CInstance_Model final : public CComponent
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr);
virtual void Free() override;
+#ifdef _DEBUG
void Describe_Entity() override;
+#endif // _DEBUG
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/Light.h b/Jusin154_Team3D/Engine/Public/Light.h
index 00cb49bb3..ac5562130 100644
--- a/Jusin154_Team3D/Engine/Public/Light.h
+++ b/Jusin154_Team3D/Engine/Public/Light.h
@@ -29,7 +29,9 @@ class ENGINE_DLL CLight final : public CComponent
static CLight* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CComponent* Clone(void* pArg, CGameObject* pOwner) override;
virtual void Free() override;
+#ifdef _DEBUG
void Describe_Entity() override;
+#endif // _DEBUG
};
diff --git a/Jusin154_Team3D/Engine/Public/Mesh.h b/Jusin154_Team3D/Engine/Public/Mesh.h
index a1c0a5b89..f0ed2e36b 100644
--- a/Jusin154_Team3D/Engine/Public/Mesh.h
+++ b/Jusin154_Team3D/Engine/Public/Mesh.h
@@ -73,7 +73,11 @@ class ENGINE_DLL CMesh final : public CVIBuffer
//
virtual CMesh* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
virtual void Free() override;
+#ifdef _DEBUG
void Describe_Entity() override;
+
+#endif // _DEBUG
+
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h
index 11b773bc0..1e82c7b5b 100644
--- a/Jusin154_Team3D/Engine/Public/Model.h
+++ b/Jusin154_Team3D/Engine/Public/Model.h
@@ -33,7 +33,7 @@ class ENGINE_DLL CModel final : public CComponent
#pragma endregion
#pragma region Animation
_bool Play_Animation(_float fTimeDelta, class CTransform* pTransform = nullptr); // 애니메이션에 델타타임을 넣어줌
- void Set_AnimationIndex(_uint iIndex, _bool isLoop = true);
+ void Set_AnimationIndex(_uint iIndex, _bool isLoop = true, _float fAmount = 1.f);
_bool IsFinishedAnim() const { return m_bIsFinishedAnim; }
void Set_CurrentTrackPosition(_float TrackPosition);
const _char* Get_AnimList(_uint iIndex);
@@ -109,6 +109,7 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); /
_bool m_bIsFinishedAnim = { false }; // 대상 애니메이션이 끝났는지
_bool m_bIsFinishedLerp = { false }; // 럴프 애니메이션이 끝났는지
_bool m_bPlayAnim = { true };
+ _float m_fAmount = { 1.f };
_int m_iPreAnimIndex = { 0 };
_float m_fBlendTime = { 0.f };
@@ -182,7 +183,10 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); /
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr);
virtual void Free(); public:
+#ifdef _DEBUG
void Describe_Entity() override;
+#endif // _DEBUG
+
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/MyTools.h b/Jusin154_Team3D/Engine/Public/MyTools.h
index 250c0ada6..9ecc59ba6 100644
--- a/Jusin154_Team3D/Engine/Public/MyTools.h
+++ b/Jusin154_Team3D/Engine/Public/MyTools.h
@@ -191,16 +191,75 @@ class CMyTools {
fSrcRadian += (fRotateSpeed * XM_PI) / 180.f;
}
}
-
- inline static _float Get_Direction2D(_float2 fOrigianlDir, _float2 fInputDir) {
- _vector vOriginal = XMVector2Normalize(XMLoadFloat2(&fOrigianlDir));
- _vector vInput = XMVector2Normalize(XMLoadFloat2(&fInputDir));
+
+ // 2D 평면에 사상된 방향을 교정해서 리턴
+ // float -> Radian값
+ // -, +
+ inline static _float Get_Direction2D(_float2 vOrigianlDir, _float2 vInputDir) {
+ _vector vOriginal = XMVector2Normalize(XMLoadFloat2(&vOrigianlDir));
+ _vector vInput = XMVector2Normalize(XMLoadFloat2(&vInputDir));
_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)
+ {
+ if (vAccumulateDegreePitchYaw.y > 360.f)
+ {
+ vAccumulateDegreePitchYaw.y -= 360.f;
+ }
+ else if (vAccumulateDegreePitchYaw.y < -360.f)
+ {
+ vAccumulateDegreePitchYaw.y += 360.f;
+ }
+
+ if (vAccumulateDegreePitchYaw.x > fPitchLimitDegree)
+ {
+ vAccumulateDegreePitchYaw.x = fPitchLimitDegree;
+ }
+ else if (vAccumulateDegreePitchYaw.x < -fPitchLimitDegree)
+ {
+ vAccumulateDegreePitchYaw.x = -fPitchLimitDegree;
+ }
+ }
+
+ // yaw 360도 자동 커트
+ // pitch 80도 클램프
+ inline void AdjustAccumulateDegreePitchYawRadian(_float2& vAccumulateRadianPitchYaw, float fPitchLimitRadian = XMConvertToRadians(80.f))
+ {
+ if (vAccumulateRadianPitchYaw.y > XM_PI)
+ {
+ vAccumulateRadianPitchYaw.y -= XM_PI;
+ }
+ else if (vAccumulateRadianPitchYaw.y < -XM_PI)
+ {
+ vAccumulateRadianPitchYaw.y += XM_PI;
+ }
+
+ if (vAccumulateRadianPitchYaw.x > fPitchLimitRadian)
+ {
+ vAccumulateRadianPitchYaw.x = fPitchLimitRadian;
+ }
+ else if (vAccumulateRadianPitchYaw.x < -fPitchLimitRadian)
+ {
+ vAccumulateRadianPitchYaw.x = -fPitchLimitRadian;
+ }
+ }
+
+
+ inline static _uint AlphabetToInt(_tchar Alphabet)
+ {
+ Alphabet = towupper(Alphabet);
+
+ if (Alphabet < 'A' || Alphabet > 'Z')
+ return 0;
+
+ return (Alphabet - 'A');
+ }
#pragma endregion
#pragma region FileSystem
//static void Folder_Func(/* 재귀적으로 탐색할지 */ _In_ _bool bRecursive,
diff --git a/Jusin154_Team3D/Engine/Public/Navigation.h b/Jusin154_Team3D/Engine/Public/Navigation.h
index 9e9bee7ab..b01dd9217 100644
--- a/Jusin154_Team3D/Engine/Public/Navigation.h
+++ b/Jusin154_Team3D/Engine/Public/Navigation.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "Component.h"
@@ -6,7 +6,7 @@ NS_BEGIN(Engine)
class ENGINE_DLL CNavigation final : public CComponent
{
- // ¸ÊÅø Çü´Բ²¼ ´Ù °¥¾Æ ¾þÀ¸¼ŵµ µ˴ϴÙ ^^7, CCell, CVIBuffer_Cell, ÀÌ챏µéÀ̶û ¿µÇâ·ÂÀÌ ¹¿©À־î¿ä
+ // 맵툴 형님께서 다 갈아 엎으셔도 됩니다 ^^7, CCell, CVIBuffer_Cell, 이친구들이랑 영향력이 묶여있어요
static _float4x4 s_WorldMatrix;
public:
typedef struct tagNavigaionDesc
@@ -55,8 +55,9 @@ class ENGINE_DLL CNavigation final : public CComponent
static CNavigation* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
-
+#ifdef _DEBUG
void Describe_Entity() override;
+#endif // _DEBUG
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
index e933b8123..2e407bf13 100644
--- a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
+++ b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
@@ -28,9 +28,11 @@ class CPhysX_Manager final : public CBase
void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh);
PSX::PxMaterial* Create_Material(const _float3* vMatInfo);
+#ifdef EDITOR_PROJECT
HRESULT ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix);
HRESULT SaveTriMeshes(const _char* pPath, vector& TriMeshes);
+#endif // EDITOR_PROJECT
HRESULT LoadTriMeshes(const _char* pPath, vector& TriMeshes);
//HRESULT LoadTriMeshes_Binary(const _char* pPath, vector& TriMeshes);
PSX::PxTriangleMesh* Find_TriangleMesh(const _tchar* pMeshName);
diff --git a/Jusin154_Team3D/Engine/Public/RenderTarget.h b/Jusin154_Team3D/Engine/Public/RenderTarget.h
index e10d2ac3f..14aeebd85 100644
--- a/Jusin154_Team3D/Engine/Public/RenderTarget.h
+++ b/Jusin154_Team3D/Engine/Public/RenderTarget.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "Base.h"
@@ -18,6 +18,8 @@ class CRenderTarget final : public CBase
HRESULT Bind_ShaderResource(class CShader* pShader, const _char* pConstantName);
void Clear();
void Copy_Resource(ID3D11Texture2D* pTexture2D);
+ void Get_TextureDesc(D3D11_TEXTURE2D_DESC& Desc);
+ ID3D11ShaderResourceView* Get_SRV() const { return m_pSRV; }
#ifdef _DEBUG
public:
@@ -47,4 +49,4 @@ class CRenderTarget final : public CBase
virtual void Free() override;
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h b/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h
index fa065952c..9bd2260cf 100644
--- a/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h
+++ b/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h
@@ -19,6 +19,8 @@ class CRenderTarget_Manager final : public CBase
HRESULT Bind_RenderTarget(const _wstring& strTargetTag, class CShader* pShader, const _char* pConstantName);
HRESULT Copy_RenderTarget(const _wstring& strTargetTag, ID3D11Texture2D* pTexture2D);
+ HRESULT Refit_RenderTarget(class CVIBuffer_Rect* pVIBuffer, class CShader* pShader, const _wstring& wstrRenderTargetInput, const _wstring& wstrRenderTargetOutput);
+
#ifdef _DEBUG
public:
HRESULT Render_RenderTarget_Debug(class CShader* pShader, class CVIBuffer_Rect* pVIBuffer);
diff --git a/Jusin154_Team3D/Engine/Public/Renderer.h b/Jusin154_Team3D/Engine/Public/Renderer.h
index 53c2ff33e..d3a28c7ab 100644
--- a/Jusin154_Team3D/Engine/Public/Renderer.h
+++ b/Jusin154_Team3D/Engine/Public/Renderer.h
@@ -56,6 +56,7 @@ class CRenderer final : public CBase
void Render_WeightBlend();
void Render_NonLight();
void Render_Blend();
+ void Render_Bloom();
void Render_LastColor();
void Render_UI();
diff --git a/Jusin154_Team3D/Engine/Public/RigidBody.h b/Jusin154_Team3D/Engine/Public/RigidBody.h
index c0f6390d2..7a37d795d 100644
--- a/Jusin154_Team3D/Engine/Public/RigidBody.h
+++ b/Jusin154_Team3D/Engine/Public/RigidBody.h
@@ -53,7 +53,9 @@ class ENGINE_DLL CRigidBody abstract : public CComponent
public:
virtual void Free() override;
+#ifdef _DEBUG
virtual void Describe_Entity() override;
+#endif // _DEBUG
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
index f48594939..35b210392 100644
--- a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
+++ b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
@@ -71,7 +71,9 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody
static CRigidBody_Dynamic* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, RIGIDBODY_PROTOTYPE_DYNAMIC_DESC& Desc);
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
virtual void Free() override;
+#ifdef _DEBUG
virtual void Describe_Entity() override;
+#endif // _DEBUG
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/RigidBody_Static.h b/Jusin154_Team3D/Engine/Public/RigidBody_Static.h
index 0e965b0a9..d0122d2fd 100644
--- a/Jusin154_Team3D/Engine/Public/RigidBody_Static.h
+++ b/Jusin154_Team3D/Engine/Public/RigidBody_Static.h
@@ -40,7 +40,9 @@ class ENGINE_DLL CRigidBody_Static : public CRigidBody
static CRigidBody_Static* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, RIGIDBODY_STATIC_PROTOTYPEDESC& Desc);
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
virtual void Free() override;
- virtual void Describe_Entity() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
};
diff --git a/Jusin154_Team3D/Engine/Public/Shader.h b/Jusin154_Team3D/Engine/Public/Shader.h
index 75c14e3e4..82dd9b14a 100644
--- a/Jusin154_Team3D/Engine/Public/Shader.h
+++ b/Jusin154_Team3D/Engine/Public/Shader.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "Component.h"
@@ -53,8 +53,9 @@ class ENGINE_DLL CShader final : public CComponent
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
- // CComponentÀ»(¸¦) ÅëÇØ »ó¼ӵÊ
+#ifdef _DEBUG
void Describe_Entity() override;
+#endif // _DEBUG
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h
index 60a160fe5..1079da162 100644
--- a/Jusin154_Team3D/Engine/Public/State.h
+++ b/Jusin154_Team3D/Engine/Public/State.h
@@ -7,11 +7,11 @@ enum ESTATE
IDLE, IDLE_TURN_L, IDLE_TURN_R, IDLE_TURN_BWD,
MOVE,
WALK, WALK_FWD, WALK_BWD,WALK_STOP,
- JOG,JOG_FWD, JOG_STOP,
+ JOG,JOG_FWD, JOG_BWD,JOG_STOP,
SPRINT,
JUMP,JUMP_JOG,JUMP_SPRINT,
LAND,
- DODGE,
+ DODGE,DODGE_BLINK,
COMBAT, LIGHT_ATTACK, SPELL, SKILL, SKILL2,
ACCIO,DESCENDO,DIFFINDO,DEPULSO,LUMOS,DISILLUSION_ENTER,DISILLUSION_EXIT,
MAPHELP,
diff --git a/Jusin154_Team3D/Engine/Public/Texture.h b/Jusin154_Team3D/Engine/Public/Texture.h
index ba972ab2c..842e8ecce 100644
--- a/Jusin154_Team3D/Engine/Public/Texture.h
+++ b/Jusin154_Team3D/Engine/Public/Texture.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "Component.h"
NS_BEGIN(Engine)
@@ -38,7 +38,9 @@ class ENGINE_DLL CTexture final :
static CTexture* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, TEXTURE_LOAD_TYPE eType, const _tchar* pTextureFilePath, _uint iNumTextures, _wstring wstrPrototypeName = L"");
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
virtual void Free() override;
- virtual void Describe_Entity() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Engine/Public/Trail.h b/Jusin154_Team3D/Engine/Public/Trail.h
index 9172a8e15..150b76bc4 100644
--- a/Jusin154_Team3D/Engine/Public/Trail.h
+++ b/Jusin154_Team3D/Engine/Public/Trail.h
@@ -33,7 +33,9 @@ class ENGINE_DLL CTrail final :
static CTrail* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CTrail* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
virtual void Free() override;
- virtual void Describe_Entity() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
virtual HRESULT Render() override;
private:
TRAIL_DESC m_TrailDesc = {};
diff --git a/Jusin154_Team3D/Engine/Public/Transform.h b/Jusin154_Team3D/Engine/Public/Transform.h
index 690439bbe..a0400c51e 100644
--- a/Jusin154_Team3D/Engine/Public/Transform.h
+++ b/Jusin154_Team3D/Engine/Public/Transform.h
@@ -33,7 +33,9 @@ class ENGINE_DLL CTransform final :
_float3 Get_Scale() const;
_vector Get_QuarternionVector() const; // 현재 회전정보를 담고 있는 쿼터니언 벡터를 out
_vector Get_RollPitchYawVector() const;
- _vector Get_State(STATE eState) const { return XMLoadFloat4(reinterpret_cast(&m_WorldMatrix.m[ENUM_CLASS(eState)])); }
+ _vector Get_State(STATE eState) const {
+ return XMLoadFloat4(reinterpret_cast(&m_WorldMatrix.m[ENUM_CLASS(eState)]));
+ }
const _float4* Get_StatePtr(STATE eState) { return reinterpret_cast<_float4*>(&m_WorldMatrix.m[ENUM_CLASS(eState)]); }
const _float4x4* Get_WorldMatrixPtr() const { return &m_WorldMatrix; }
const _matrix Get_XMWorldMatrix() const { return XMLoadFloat4x4(&m_WorldMatrix); }
@@ -66,6 +68,8 @@ class ENGINE_DLL CTransform final :
// Up, Down 벡터를 바라보게 하면 터짐
void LookAt(_fvector vAt);
+ _float TargetDis(_fvector vTarget);
+
private:
_float m_fSpeedPerSec = {};
_float m_fRotationPerSec = {};
@@ -84,7 +88,9 @@ class ENGINE_DLL CTransform final :
static CTransform* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
virtual void Free() override;
- virtual void Describe_Entity() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/UIComponent.h b/Jusin154_Team3D/Engine/Public/UIComponent.h
index 91130f389..4e331fcf9 100644
--- a/Jusin154_Team3D/Engine/Public/UIComponent.h
+++ b/Jusin154_Team3D/Engine/Public/UIComponent.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "Component.h"
NS_BEGIN(Engine)
@@ -37,7 +37,9 @@ class ENGINE_DLL CUIComponent final : public CComponent
static CUIComponent* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
virtual void Free() override;
- virtual void Describe_Entity() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Engine/Public/UIObject.h b/Jusin154_Team3D/Engine/Public/UIObject.h
index 17e9a636f..cc24b14a3 100644
--- a/Jusin154_Team3D/Engine/Public/UIObject.h
+++ b/Jusin154_Team3D/Engine/Public/UIObject.h
@@ -32,6 +32,7 @@ typedef struct tagUIObjectDesc
public:
virtual void MoveX(_float fX);
virtual void MoveY(_float fY);
+ virtual void Move(_float fX, _float fY);
virtual void SizeUpdate(_float fSizeX, _float fSizeY);
virtual void SizeUpX(_float fSizeX);
virtual void SizeUpY(_float fSizeY);
diff --git a/Jusin154_Team3D/Engine/Public/Unit.h b/Jusin154_Team3D/Engine/Public/Unit.h
index 23e920805..1b2b036c9 100644
--- a/Jusin154_Team3D/Engine/Public/Unit.h
+++ b/Jusin154_Team3D/Engine/Public/Unit.h
@@ -25,7 +25,10 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
_wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; }
+#ifdef _DEBUG
void Load_KeyFrame();
+#endif // _DEBUG
+
public:
#pragma region STATE
@@ -37,6 +40,7 @@ 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 void Reset_Sprint() {};
virtual void Reset_Walk() {};
#pragma endregion
@@ -56,6 +60,10 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
vector> m_Animation;
+ unordered_map m_States = { };
+ size_t m_iStateMask = { 0 };
+
+ STATEANIM::ESTATE m_eSpell = { STATEANIM::END };
private:
virtual void Add_FSM() {};
@@ -69,7 +77,10 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
public:
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)PURE;
virtual void Free() override;
+#ifdef _DEBUG
virtual void Describe_Entity() override;
+#endif // _DEBUG
+
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_Cell.h b/Jusin154_Team3D/Engine/Public/VIBuffer_Cell.h
index 4a0c8617b..1f7e91347 100644
--- a/Jusin154_Team3D/Engine/Public/VIBuffer_Cell.h
+++ b/Jusin154_Team3D/Engine/Public/VIBuffer_Cell.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "VIBuffer.h"
NS_BEGIN(Engine)
@@ -22,7 +22,9 @@ class ENGINE_DLL CVIBuffer_Cell final :
static CVIBuffer_Cell* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _float3* pPoints);
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
virtual void Free() override;
- virtual void Describe_Entity() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_Cube.h b/Jusin154_Team3D/Engine/Public/VIBuffer_Cube.h
index 1142a205e..2b4a47df2 100644
--- a/Jusin154_Team3D/Engine/Public/VIBuffer_Cube.h
+++ b/Jusin154_Team3D/Engine/Public/VIBuffer_Cube.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "VIBuffer.h"
NS_BEGIN(Engine)
@@ -24,7 +24,9 @@ class ENGINE_DLL CVIBuffer_Cube final :
static CVIBuffer_Cube* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CVIBuffer_Cube* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
virtual void Free() override;
- virtual void Describe_Entity() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_Rect.h b/Jusin154_Team3D/Engine/Public/VIBuffer_Rect.h
index c9ca3ca49..c4077d5e4 100644
--- a/Jusin154_Team3D/Engine/Public/VIBuffer_Rect.h
+++ b/Jusin154_Team3D/Engine/Public/VIBuffer_Rect.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "VIBuffer.h"
NS_BEGIN(Engine)
@@ -19,7 +19,9 @@ class ENGINE_DLL CVIBuffer_Rect final :
static CVIBuffer_Rect* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CVIBuffer_Rect* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
virtual void Free() override;
- virtual void Describe_Entity() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h b/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h
index e9e6f9151..c2cb6f982 100644
--- a/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h
+++ b/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h
@@ -47,7 +47,9 @@ class ENGINE_DLL CVIBuffer_Terrain final : public CVIBuffer
static CVIBuffer_Terrain* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pFilePath, _uint iSizeX, _uint iSizeZ);
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
virtual void Free() override;
- virtual void Describe_Entity() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h b/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h
index a484d3a2e..6c65232a6 100644
--- a/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h
+++ b/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h
@@ -33,7 +33,6 @@ class ENGINE_DLL CVIBuffer_UI_Instance final : public CVIBuffer_Instance
void Set_SizeY(_float fSizeY);
void Set_Cloned(_bool isCloned) { m_isCloned = isCloned; }
void Set_ImageUV(UI_ATLAS_DESC* AtlasUV = nullptr);
- void Add_InstanceOvject(vector<_uint> VisileIndices);
private:
VTX_INSTANCE_UI* m_pInstanceVertices = { nullptr };
@@ -42,13 +41,14 @@ class ENGINE_DLL CVIBuffer_UI_Instance final : public CVIBuffer_Instance
_float2* m_fPosition{ nullptr };
_float m_fAddPosition{};
- vector<_uint> m_VisibleIndices;
public:
static CVIBuffer_UI_Instance* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const INSTANCE_DESC* pInstanceDesc);
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
virtual void Free() override;
- virtual void Describe_Entity() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
};
NS_END
diff --git a/Jusin154_Team3D/Update_Lib.bat b/Jusin154_Team3D/Update_Lib.bat
index eba3b5db0..61455f141 100644
--- a/Jusin154_Team3D/Update_Lib.bat
+++ b/Jusin154_Team3D/Update_Lib.bat
@@ -53,3 +53,5 @@ xcopy /y .\Engine\ThirdPartyLib\Assimp\assimp-vc145-mt.lib .\EngineSDK\Lib
xcopy /y .\Engine\ThirdPartyLib\fMod\fmod_vc.lib .\EngineSDK\Lib\Debug\
xcopy /y .\Engine\ThirdPartyLib\fMod\fmod_vc.lib .\EngineSDK\Lib\Release\
+
+xcopy /y .\Engine\ThirdPartyLib\DirectXTK\DirectXTKd.lib .\EngineSDK\Lib\Debug\