diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index 3ac1e5d5d..04dfbea48 100644
--- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -64,13 +64,21 @@ Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
int g_iHover;
+int g_iBoosterOn;
+int g_iBoosterOff;
int g_iClick;
int g_iColor;
+int g_Count;
+int g_ChaseCount;
int g_iStep1 = 0;
int g_iStep2 = 0;
int g_iStep3 = 0;
+float2 g_Trail[200];
+float2 g_ChaseTrail[200];
+
+
struct VS_IN
{
float3 vPosition : POSITION;
@@ -1725,35 +1733,36 @@ PS_OUT PS_Broomstick(PS_IN In)
Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
Rotation += center;
-
- float2 startUV = g_fImageUV.xy;
- float2 endUV = g_fImageUV.zw;
-
- float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
- float4 tex2 = g_Texture1.Sample(ClampSampler, atlasUV);
+ float4 tex2 = g_Texture1.Sample(ClampSampler, Rotation);
tex1.rgb *= 0.4f;
color = tex1;
tex2.rgb *= 0.3f;
color = lerp(color, tex2, tex2.a);
-
- float2 texpos1 = g_fItemPosition1 / g_fCurrent_Size;
- float2 texsize1 = g_fItemImageSizes1 / g_fCurrent_Size;
+ float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size * 0.5f;
+ float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size * 0.5;
float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
- bool inside = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
- if (inside)
+ bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
+ if (inside1)
{
float4 tex3 = g_Texture2.Sample(ClampSampler, texlocal1);
color = lerp(color, tex3, tex3.a);
-
- float CoolTime = 0.f + g_fDeltaV;
- float CoolTime2 = 0.f + g_fDeltaV + 0.1f;
- atlasUV = startUV + texlocal1 * (endUV - startUV);
+ }
+ float2 texpos2 = g_fImageSipos2.xy / g_fCurrent_Size;
+ float2 texsize2 = g_fImageSipos2.zw / g_fCurrent_Size;
+ float2 texlocal2 = (In.vTexcoord - texpos2) / texsize2;
+ bool inside2 = all(texlocal2 >= 0.0f && texlocal2 <= 1.0f);
+ if (inside2)
+ {
+ float2 startUV = g_fImageUV.xy;
+ float2 endUV = g_fImageUV.zw;
+ float2 atlasUV = atlasUV = startUV + texlocal2 * (endUV - startUV);
float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV);
+ color = lerp(color, tex4, tex4.a);
}
color.a *= Alpha;
@@ -1795,32 +1804,105 @@ PS_OUT PS_SpellLearnColor(PS_IN In)
Color = tex;
Color.rgb *= tex1.rgb;
-
- float2 rectPos = g_fPosition;
+
+ float2 rectPos = g_fPosition - float2(256.f, 259.f);
float2 rectSize = g_fCurrent_Size;
float2 itemPos = g_fItemPosition1;
float2 itemSize = g_fItemImageSizes1;
- float x0 = max(rectPos.x, itemPos.x);
- float x1 = min(rectPos.x + rectSize.x, itemPos.x + itemSize.x);
- float y0 = max(rectPos.y, itemPos.y);
- float y1 = min(rectPos.y + rectSize.y, itemPos.y + itemSize.y);
+ float2 pixelPos;
+ pixelPos.x = rectPos.x + In.vTexcoord.x * rectSize.x;
+ pixelPos.y = rectPos.y + (1.0f - In.vTexcoord.y) * rectSize.y;
- float uMin = (x0 - rectPos.x) / rectSize.x;
- float uMax = (x1 - rectPos.x) / rectSize.x;
- float vMin = (y0 - rectPos.y) / rectSize.y;
- float vMax = (y1 - rectPos.y) / rectSize.y;
-
- vMin = 1.0f - vMin;
- vMax = 1.0f - vMax;
-
- if (In.vTexcoord.x >= min(uMin, uMax) && In.vTexcoord.x <= max(uMin, uMax) &&
- In.vTexcoord.y >= min(vMin, vMax) && In.vTexcoord.y <= max(vMin, vMax))
+ if (pixelPos.x >= itemPos.x &&
+ pixelPos.x <= itemPos.x + itemSize.x &&
+ pixelPos.y >= itemPos.y &&
+ pixelPos.y <= itemPos.y + itemSize.y)
{
Color.rgb = float3(0.f, 0.f, 1.f);
}
+
+ for (int i = 0; i < g_Count; ++i)
+ {
+ float2 trailTopLeft = g_Trail[i];
+ float2 trailCenter = trailTopLeft + itemSize / 2.0f;
+
+ float halfWidth = itemSize.x / 2.0f + 12.f;
+ float halfHeight = itemSize.y / 2.0f + 12.f;
+
+ if (pixelPos.x >= trailCenter.x - halfWidth &&
+ pixelPos.x <= trailCenter.x + halfWidth &&
+ pixelPos.y >= trailCenter.y - halfHeight &&
+ pixelPos.y <= trailCenter.y + halfHeight)
+ {
+ Color.rgb = float3(20.f, 100.f, 180.f) / 255.f;
+ break;
+ }
+ }
+ for (int j = 0; j < g_ChaseCount; ++j)
+ {
+ float2 ChaseTopLeft = g_ChaseTrail[j];
+ float2 ChaseCenter = ChaseTopLeft + itemSize / 2.0f;
+
+ float halfWidth = itemSize.x * 0.7f;
+ float halfHeight = itemSize.y * 0.7f;
+
+ if (pixelPos.x >= ChaseCenter.x - halfWidth &&
+ pixelPos.x <= ChaseCenter.x + halfWidth &&
+ pixelPos.y >= ChaseCenter.y - halfHeight &&
+ pixelPos.y <= ChaseCenter.y + halfHeight)
+ {
+ Color.rgb = float3(110.f, 5.f, 5.f) / 255.f;
+ break;
+ }
+ }
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_SpellLearnBooster(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 tex = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+
+ Color = tex;
+
+ float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
+ bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
+
+ if (g_iBoosterOn == 0 && g_iBoosterOff == 0)
+ {
+ if (inside1)
+ {
+ float4 tex1 = g_Texture1.Sample(DefaultSampler, Imagelocal);
+ Color = lerp(Color, tex1, tex1.a);
+ }
+ }
+ else if (g_iBoosterOn != 0 && g_iBoosterOff == 0)
+ {
+
+ float4 tex3 = g_Texture3.Sample(DefaultSampler, In.vTexcoord);
+ Color = lerp(Color, tex3, tex3.a);
+ }
+ else if (g_iBoosterOn == 0 && g_iBoosterOff != 0)
+ {
+ float4 tex2 = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
+
+ tex2.rgb *= float3(1.f, 0.f, 0.f);
+ Color = tex;
+
+ Color = lerp(Color, tex2, tex2.a);
+ }
+
Color.a *= Alpha;
Out.vColor = Color;
return Out;
@@ -2416,6 +2498,16 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_SpellLearnColor();
}
+ pass SpellLearnBooster
+ {
+ SetRasterizerState(RS_Nocull);
+ 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_SpellLearnBooster();
+ }
+
pass Enemy_Detection
{
SetRasterizerState(RS_Nocull);
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 0f6a86a43..08b0a68b2 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -162,18 +162,27 @@ call Update_Resources.bat
+
+
+
+
+
+
+
+
+
@@ -385,18 +394,27 @@ call Update_Resources.bat
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index af381267b..fd36aa641 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -680,6 +680,9 @@
04.Mechanic\State\State_Combat\State_Skill2
+
+ 02.GameObjects\NPC\Ally\GateKeeper
+
02.GameObjects\Effect\Effects\Transformation
@@ -688,6 +691,30 @@
02.GameObjects\Effect\Effects\Avadakedavra
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Overlay
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLeam_LookPointer
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Booster
+
+
+ 02.GameObjects\PhysX\CallBack\Behavior\NPC
+
+
+ 02.GameObjects\PhysX\CallBack\HitReport\NPC
+
+
+ 04.Mechanic\State\Focus\State_Fall
@@ -1431,11 +1458,38 @@
{87b1db75-938f-462f-a288-fe9c8d6c689e}
+
+ {cef7b9f7-3bb3-4782-a1a8-09751fa538d8}
+
{064b5e2f-dcde-47fd-a43d-43e25800393d}
{575f6ef3-7013-448a-b448-e94f1ddc5647}
+
+
+ {d9c0bcb6-64f6-4b58-a68d-ff04c91b9861}
+
+
+ {61024044-17a9-45ed-a6f9-73385290846d}
+
+
+ {b512f128-fcec-4db4-8cd2-08abfc56e000}
+
+
+ {2af08f38-aff0-4632-acb8-492111ff88f2}
+
+
+ {dd7d2910-1d3d-42c4-9390-ac60685357ee}
+
+
+ {954ad10f-edc4-4dda-a2e1-741a418831e8}
+
+
+ {b265ac30-97f5-4dac-bc6b-b11fba1c5ad8}
+
+
+ {b85f80a2-d88e-4eb0-91af-da93b49bfa09}
@@ -2072,6 +2126,33 @@
02.GameObjects\Effect\Effects\Avadakedavra
+
+
+ 02.GameObjects\NPC\Ally\GateKeeper
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Overlay
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLeam_LookPointer
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Booster
+
+
+ 02.GameObjects\PhysX\CallBack\Behavior\NPC
+
+
+ 02.GameObjects\PhysX\CallBack\HitReport\NPC
+
+
+ 04.Mechanic\State\Focus\State_Fall
diff --git a/Jusin154_Team3D/Client/Private/Action_Panel.cpp b/Jusin154_Team3D/Client/Private/Action_Panel.cpp
index e6068d780..b17660106 100644
--- a/Jusin154_Team3D/Client/Private/Action_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/Action_Panel.cpp
@@ -86,7 +86,7 @@ void CAction_Panel::Update(_float fTimeDelta)
}
Magic_Meter_Move();
-
+ m_fTime -= fTimeDelta;
__super::Update(fTimeDelta);
}
@@ -226,6 +226,10 @@ void CAction_Panel::Ancient_Magic_Throw()
void CAction_Panel::Use_Spell(_int Index)
{
+ if (m_fTime >= 0.f)
+ return;
+
+ m_fTime = 1.f;
switch (Index)
{
case 1:
diff --git a/Jusin154_Team3D/Client/Private/CallBack_NonPlayable_Behavior.cpp b/Jusin154_Team3D/Client/Private/CallBack_NonPlayable_Behavior.cpp
new file mode 100644
index 000000000..90dce5274
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/CallBack_NonPlayable_Behavior.cpp
@@ -0,0 +1,94 @@
+#include "pch.h"
+#include "CallBack_NonPlayable_Behavior.h"
+#include "GameInstance.h"
+
+
+CCallBack_NonPlayable_Behavior::CCallBack_NonPlayable_Behavior()
+{
+}
+
+CCallBack_NonPlayable_Behavior::~CCallBack_NonPlayable_Behavior()
+{
+}
+
+PSX::PxControllerBehaviorFlags CCallBack_NonPlayable_Behavior::getBehaviorFlags(const PSX::PxShape& shape, const PSX::PxActor& actor)
+{
+ if (nullptr == actor.userData) {
+ return PSX::PxControllerBehaviorFlags(0);
+ }
+ PSX::PxControllerBehaviorFlags eResults = PSX::PxControllerBehaviorFlags(0);
+ PhsXUserData* pActorData = static_cast(actor.userData);
+ switch (pActorData->eKind)
+ {
+ case PHYSX_KIND::BODY_STATIC:
+ eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE | PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT;
+ break;
+ case PHYSX_KIND::BODY_DYNAMIC:
+ switch (pActorData->iSubKind)
+ {
+ case 20:
+ eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE;
+ break;
+ case 21:
+ eResults = PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT;
+ break;
+ case 22:
+ eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE | PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT;
+ break;
+ case 23:
+ eResults = PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT;
+ break;
+ case 24:
+ eResults = PSX::PxControllerBehaviorFlags(0);
+ break;
+ default:
+ break;
+ }
+ break;
+ case PHYSX_KIND::CCTActor:
+ // Action
+ break;
+ case PHYSX_KIND::OBSTACLEActor:
+ break;
+ default:
+ break;
+ }
+
+ return eResults;
+}
+
+PSX::PxControllerBehaviorFlags CCallBack_NonPlayable_Behavior::getBehaviorFlags(const PSX::PxController& controller)
+{
+ // CCT끼리 부딪힐 때를 굳이 안 쓰면 0 리턴
+ return PSX::PxControllerBehaviorFlag::eCCT_SLIDE;
+}
+
+PSX::PxControllerBehaviorFlags CCallBack_NonPlayable_Behavior::getBehaviorFlags(const PSX::PxObstacle& obstacle)
+{
+ // Obstacle이 움직이는 발판이다?
+ // 여기서 ride/slide 세팅
+ //return PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT;
+
+ return PSX::PxControllerBehaviorFlags(0);
+}
+
+HRESULT CCallBack_NonPlayable_Behavior::Initialize(CCharacter_Controller* pController)
+{
+ m_pController = pController;
+ m_pGameInstance = CGameInstance::GetInstance();
+ SAFE_ADDREF(m_pController);
+ SAFE_ADDREF(m_pGameInstance);
+ return S_OK;
+}
+
+HRESULT CCallBack_NonPlayable_Behavior::Finalize()
+{
+ SAFE_RELEASE(m_pGameInstance);
+ SAFE_RELEASE(m_pController);
+ return S_OK;
+}
+
+CCallBack_NonPlayable_Behavior* CCallBack_NonPlayable_Behavior::Create()
+{
+ return new CCallBack_NonPlayable_Behavior();
+}
diff --git a/Jusin154_Team3D/Client/Private/CallBack_NonPlayable_HitReport.cpp b/Jusin154_Team3D/Client/Private/CallBack_NonPlayable_HitReport.cpp
new file mode 100644
index 000000000..fe36e9a90
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/CallBack_NonPlayable_HitReport.cpp
@@ -0,0 +1,195 @@
+#include "pch.h"
+#include "CallBack_NonPlayable_HitReport.h"
+#include "GameInstance.h"
+#include "GameObject.h"
+
+CCallBack_NonPlayable_HitReport::CCallBack_NonPlayable_HitReport()
+{
+}
+
+CCallBack_NonPlayable_HitReport::~CCallBack_NonPlayable_HitReport()
+{
+}
+
+void CCallBack_NonPlayable_HitReport::BeginFrame()
+{
+ // 매 프레임 초기화
+ m_vClimbNormal = { 0.f, 1.f, 0.f };
+ m_bGroundHit = { false };
+ m_fBestNormal = { 0.f };
+}
+
+void CCallBack_NonPlayable_HitReport::onShapeHit(const PSX::PxControllerShapeHit& hit)
+{
+ PSX::PxController* pController = hit.controller;
+ PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점
+ PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말
+ PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향
+ _float fLength = hit.length; // 시도한 move 길이
+
+ PSX::PxShape* pShape = hit.shape;
+ PSX::PxRigidActor* pActor = hit.actor;
+
+ if (nullptr != pController && nullptr != pActor) {
+ PhsXUserData* pTargetActorData = static_cast(pActor->userData);
+ PhsXUserData* pOwnerActorData = static_cast(pController->getActor()->userData);
+ if (nullptr == pTargetActorData) { // missing user data
+ return;
+ }
+
+ switch (pTargetActorData->eKind)
+ {
+ case PHYSX_KIND::BODY_STATIC:
+ switch (PXOBJECT(pTargetActorData->iSubKind))
+ {
+ case PXOBJECT::TERRAIN:
+ case PXOBJECT::FLOOR:
+ case PXOBJECT::ROAD:
+ if (vWorldNormal.y > 0) {
+ _float fDotValue = vWorldNormal.dot({ 0.f, 1.f, 0.f });
+ if (m_fBestNormal < fDotValue) {
+ m_bGroundHit = true;
+ m_fBestNormal = fDotValue;
+ m_vClimbNormal = { vWorldNormal.x, vWorldNormal.y, vWorldNormal.z };
+ }
+ }
+ break;
+ default:
+ break;
+ }
+ break;
+ case PHYSX_KIND::BODY_DYNAMIC:
+ {
+ switch (PXOBJECT(pTargetActorData->iSubKind))
+ {
+ case PXOBJECT::END:
+ break;
+ case PXOBJECT::BOX:
+ {
+ PSX::PxRigidDynamic* pDynamic = static_cast(pActor);
+ //pDynamic->setRigidBodyFlag(PSX::PxRigidBodyFlag::eKINEMATIC, false);
+ PSX::PxVec3 vCompressedDir = -vWorldNormal;
+ vCompressedDir.normalize();
+ pDynamic->addForce(vCompressedDir * fLength * 1000.f, PSX::PxForceMode::eFORCE);
+ } break;
+ case PXOBJECT::DOOR:
+ {
+ PSX::PxRigidDynamic* pDynamic = static_cast(pActor);
+ _float fDot = vDir.dot(PSX::PxVec3(0.f, 1.f, 0.f));
+ if (fDot > 0) {
+ pDynamic->addTorque(PSX::PxVec3(0.f, 1.f, 0.f) * fLength * 100.f, PSX::PxForceMode::eFORCE);
+ }
+ else {
+ pDynamic->addTorque(PSX::PxVec3(0.f, -1.f, 0.f) * fLength * 100.f, PSX::PxForceMode::eFORCE);
+ }
+ } break;
+ default:
+ {
+ } break;
+ }
+ } break;
+ case PHYSX_KIND::CCTActor:
+ assert(false);
+ break;
+ case PHYSX_KIND::OBSTACLEActor:
+ break;
+ default:
+ break;
+ }
+ }
+}
+
+void CCallBack_NonPlayable_HitReport::onControllerHit(const PSX::PxControllersHit& hit)
+{
+ PSX::PxController* pController = hit.controller;
+ PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점
+ PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말
+ PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향
+ _float fLength = hit.length; // 시도한 move 길이
+
+ PSX::PxController* pOtherController = hit.other; // 다른 컨트롤러
+
+ if (nullptr != pController && nullptr != pOtherController) {
+ PhsXUserData* pActorData = static_cast(pOtherController->getActor()->userData);
+ assert(nullptr != pActorData); // missing user data
+
+ switch (pActorData->eKind)
+ {
+ case PHYSX_KIND::BODY_STATIC:
+ assert(false);
+ break;
+ case PHYSX_KIND::BODY_DYNAMIC:
+ assert(false);
+ break;
+ case PHYSX_KIND::CCTActor:
+ // Action
+ break;
+ case PHYSX_KIND::OBSTACLEActor:
+ break;
+ default:
+ break;
+ }
+ }
+}
+
+void CCallBack_NonPlayable_HitReport::onObstacleHit(const PSX::PxControllerObstacleHit& hit)
+{
+ PSX::PxController* pController = hit.controller;
+ PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점
+ PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말
+ PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향
+ _float fLength = hit.length; // 시도한 move 길이
+
+ const void* pOtherController = hit.userData; // 장애물
+
+ //switch (pOtherController.member)
+ //{
+ //default:
+ // break;
+ //}
+}
+
+void CCallBack_NonPlayable_HitReport::Set_CurrentSlop()
+{
+ m_pController->Rewind_Grounded();
+ if (m_bGroundHit)
+ {
+ m_pController->Set_OnGroundFlag(m_bGroundHit);
+ float fDot = clamp(m_fBestNormal, -1.0f, 1.0f);
+ float fAngleRad = acosf(fDot);
+ float fAngleDeg = XMConvertToDegrees(fAngleRad);
+
+ m_pController->Set_CurrentSlope(fAngleDeg, m_vClimbNormal);
+ }
+}
+
+HRESULT CCallBack_NonPlayable_HitReport::Initialize(CCharacter_Controller* pController)
+{
+ m_pController = pController;
+ m_pGameInstance = CGameInstance::GetInstance();
+ SAFE_ADDREF(m_pController);
+ SAFE_ADDREF(m_pGameInstance);
+ return S_OK;
+}
+
+HRESULT CCallBack_NonPlayable_HitReport::Finalize()
+{
+ SAFE_RELEASE(m_pGameInstance);
+ SAFE_RELEASE(m_pController);
+ return S_OK;
+}
+
+_bool CCallBack_NonPlayable_HitReport::IsOnGround()
+{
+ return m_bGroundHit;
+}
+
+_vector CCallBack_NonPlayable_HitReport::Get_GroundVector()
+{
+ return XMLoadFloat3(&m_vClimbNormal);
+}
+
+CCallBack_NonPlayable_HitReport* CCallBack_NonPlayable_HitReport::Create()
+{
+ return new CCallBack_NonPlayable_HitReport();
+}
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
index 31e9814d5..0b100f941 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
@@ -358,8 +358,8 @@ HRESULT CCamPosition_Shoulder::Ready_SubParts()
return E_FAIL;
}
- m_pGameInstance->Add_Camera(g_iStaticLevel, m_pBinded_Camera, CAMERA_SHOULDER);
- if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_SHOULDER, true))) {
+ m_pGameInstance->Add_Camera(NEXT_LEVEL, m_pBinded_Camera, CAMERA_SHOULDER);
+ if (FAILED(m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_SHOULDER, true))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
index 9bdac8bb4..2a7cfea87 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
@@ -18,7 +18,7 @@ CCamera_Debug::CCamera_Debug(const CCamera_Debug& rhs)
void CCamera_Debug::Priority_Update(_float fTimeDelta)
{
#ifdef _DEBUG
- m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, false);
+ m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_DEBUG, false);
#endif // _DEBUG
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_DEBUG))) {
diff --git a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
index 57bbfb0aa..1fb18dc42 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
@@ -105,7 +105,7 @@ void CCamera_Gaze::Toggle_Priority()
}
else {
m_iPriority = 55;
- m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_SHOULDER, false);
+ m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_SHOULDER, false);
}
}
diff --git a/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp b/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp
index b9cbf4742..0e4bef5a7 100644
--- a/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp
+++ b/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp
@@ -40,12 +40,12 @@ void CDummy_PhysXPlayable::Update(_float fTimeDelta)
m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -10.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta);
}
if (m_pGameInstance->Key_Down(DIK_V)) {
- m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
}
else {
if (m_pGameInstance->Key_Down(DIK_V)) {
- m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor());
+ m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
}
m_pCharacter_Controller->Move(fTimeDelta);
@@ -147,7 +147,7 @@ HRESULT CDummy_PhysXPlayable::Ready_Components(void* pArg)
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());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
diff --git a/Jusin154_Team3D/Client/Private/Dummy_PhysXWall.cpp b/Jusin154_Team3D/Client/Private/Dummy_PhysXWall.cpp
index bd71eb1c7..9aa7c5bb8 100644
--- a/Jusin154_Team3D/Client/Private/Dummy_PhysXWall.cpp
+++ b/Jusin154_Team3D/Client/Private/Dummy_PhysXWall.cpp
@@ -151,9 +151,9 @@ CGameObject* CDummy_PhysXWall::Clone(void* pArg, CGameObject* pOwner)
void CDummy_PhysXWall::Free()
{
- if (nullptr != m_pRigidBody) {
- m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
- }
+ //if (nullptr != m_pRigidBody) {
+ // m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
+ //}
__super::Free();
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 39e3b7ffd..a8a992bdc 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -214,7 +214,7 @@ HRESULT CEffectPool::Bind_ShaderResources()
HRESULT CEffectPool::Ready_Effect()
{
- if (FAILED(Create_Effect(SKILL_TYPE::JAP, 10, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::JAP, 10, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CNomalJap* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
@@ -223,7 +223,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
CBombard* pEffect = nullptr;
@@ -232,7 +232,7 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
CDecendo* pEffect = nullptr;
@@ -241,7 +241,7 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::PROTEGO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::PROTEGO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
CProtego* pEffect = nullptr;
@@ -250,7 +250,7 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::REVELIO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::REVELIO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
CRevelio* pEffect = nullptr;
@@ -259,7 +259,7 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::JAP_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::JAP_SIDE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
CNomalJapSide* pEffect = nullptr;
@@ -268,7 +268,7 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CLevioso* pEffect = nullptr;
@@ -278,7 +278,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::LUMOS, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::LUMOS, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CLumos* pEffect = nullptr;
@@ -288,7 +288,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::ACCIO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::ACCIO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CAccio* pEffect = nullptr;
@@ -298,7 +298,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA_SIDE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CBombardSide* pEffect = nullptr;
@@ -307,7 +307,7 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO_SIDE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CLeviosoSide* pEffect = nullptr;
@@ -317,7 +317,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO_SIDE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CDecendoSide* pEffect = nullptr;
@@ -327,7 +327,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::WAND_END, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::WAND_END, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CWandEnd* pEffect = nullptr;
@@ -337,7 +337,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::BOX_SPLESH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::BOX_SPLESH, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CBox_Splesh* pEffect = nullptr;
@@ -347,7 +347,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::CHAIL_SPLESH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::CHAIL_SPLESH, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CChair_Splesh* pEffect = nullptr;
@@ -357,7 +357,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::BARRAL_SPLASH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::BARRAL_SPLASH, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CBarral_Splesh* pEffect = nullptr;
@@ -367,7 +367,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::SCREEN_WIND, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::SCREEN_WIND, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CScreen_Wind* pEffect = nullptr;
@@ -377,7 +377,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CStupefy* pEffect = nullptr;
@@ -386,7 +386,7 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::LIGHTNING, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::LIGHTNING, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CLightning* pEffect = nullptr;
@@ -395,7 +395,7 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::LIGHTNING_SIDE, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::LIGHTNING_SIDE, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CLightningSide* pEffect = nullptr;
@@ -405,7 +405,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::BLINK, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::BLINK, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CBlink* pEffect = nullptr;
@@ -414,7 +414,7 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::TRANSFORMATION, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::TRANSFORMATION, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CTransformation* pEffect = nullptr;
@@ -423,7 +423,7 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::TRANSFORMATION_SIDE, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::TRANSFORMATION_SIDE, 3, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CTransformationSide* pEffect = nullptr;
@@ -440,7 +440,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
{
- if (FAILED(Create_Effect(SKILL_TYPE::TROLL_ATTACK, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::TROLL_ATTACK, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CTrollSwing* pEffect = nullptr;
@@ -449,7 +449,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
return pEffect; }
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::TROLL_NOMAL_SMOKE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::TROLL_NOMAL_SMOKE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CTroll_Nomal_Smoke* pEffect = nullptr;
@@ -458,7 +458,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
return pEffect; }
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::TROLL_RUSH_HIT, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::TROLL_RUSH_HIT, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CTroll_Rush_Hit* pEffect = nullptr;
@@ -468,7 +468,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_PROTEGO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_PROTEGO, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CGoblin_Protego* pEffect = nullptr;
@@ -477,7 +477,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
return pEffect; }
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_ATTACK, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_ATTACK, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CGoblin_Attack* pEffect = nullptr;
@@ -487,7 +487,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_ATTACK, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_ATTACK, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CMage_Nomal_Attack* pEffect = nullptr;
@@ -497,7 +497,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_DOWN, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_DOWN, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CMage_Down_Attack* pEffect = nullptr;
@@ -508,7 +508,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_MAGE_SIDE, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CMageSide* pEffect = nullptr;
@@ -519,7 +519,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::STUN, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::STUN, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CStunEffect* pEffect = nullptr;
@@ -529,7 +529,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::GOBILN_TELEPORT, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::GOBILN_TELEPORT, 5, g_iStaticLevel, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CGoblin_Teleport* pEffect = nullptr;
diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp
index 840783cd3..3d1df1581 100644
--- a/Jusin154_Team3D/Client/Private/Goblin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin.cpp
@@ -324,6 +324,7 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
break;
case ENUM_CLASS(SKILL_TYPE::JAP):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
+ m_fTumbleTimer = 0.f;
break;
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
@@ -418,7 +419,7 @@ HRESULT CGoblin::Ready_Components()
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());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_GOBLIN"), (CComponent**)&m_pStat))) {
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
index dfe68dd2e..849b0c3fd 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
@@ -317,6 +317,7 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
break;
case ENUM_CLASS(SKILL_TYPE::JAP):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
+ m_fTumbleTimer = 0.f;
break;
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
@@ -411,7 +412,7 @@ HRESULT CGoblin_Mage::Ready_Components()
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());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_GOBLIN_WIZARD"), (CComponent**)&m_pStat))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/Goblin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_States.cpp
index 8cae5facc..cc849b671 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_States.cpp
@@ -697,18 +697,6 @@ void CGoblin::Behavior_DeadEnter()
_bool bStrongerKnockDown = { false };
- switch (m_eHitSpell)
- {
- case STATEANIM::KNOCKDOWN_FWD:
- bStrongerKnockDown = true;
- break;
- case STATEANIM::TUMBLE2:
- bStrongerKnockDown = true;
- break;
- default:
- break;
- }
-
_float fabsRadius = fabsf(m_fHitRadius);
_uint iState = { UINT_MAX };
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index 29c560ab6..6c164d9f1 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -166,14 +166,8 @@ void CInfoInstance::Key_Input(_uint Input)
switch (m_eInput)
{
case ENUM_CLASS(KEYINPUT::INPUT_1):
- Event_CallBack(TEXT("Spell"), &m_eInput);
- break;
case ENUM_CLASS(KEYINPUT::INPUT_2):
- Event_CallBack(TEXT("Spell"), &m_eInput);
- break;
case ENUM_CLASS(KEYINPUT::INPUT_3):
- Event_CallBack(TEXT("Spell"), &m_eInput);
- break;
case ENUM_CLASS(KEYINPUT::INPUT_4):
Event_CallBack(TEXT("Spell"), &m_eInput);
break;
@@ -440,7 +434,6 @@ void CInfoInstance::Release_Information()
SAFE_RELEASE(m_pSkillInfo);
SAFE_RELEASE(m_pQuestInfo);
SAFE_RELEASE(m_pInteractiveInfo);
- SAFE_RELEASE(m_pSpellLearn_Data);
SAFE_RELEASE(m_pDevice);
SAFE_RELEASE(m_pContext);
SAFE_RELEASE(m_pGameInstance);
diff --git a/Jusin154_Team3D/Client/Private/Level_Field.cpp b/Jusin154_Team3D/Client/Private/Level_Field.cpp
index 20f3c0f6f..536cb8a7d 100644
--- a/Jusin154_Team3D/Client/Private/Level_Field.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_Field.cpp
@@ -3,6 +3,8 @@
#include "GameInstance.h"
#include "Level_Loading.h"
#include "InfoInstance.h"
+#include "Player.h"
+#include "EffectPool.h"
#include "Light_Main.h"
#include "Layer.h"
#include "Camera_Debug.h"
@@ -33,6 +35,13 @@ HRESULT CLevel_Field::Initialize(void* pArg)
return E_FAIL;
}
+ if (FAILED(Reday_Layer_EffectPool())) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Ready_Layer_Player(LAYER_PLAYER))) {
+ return E_FAIL;
+ }
if (FAILED(Ready_Markers())) {
return E_FAIL;
}
@@ -157,11 +166,11 @@ HRESULT CLevel_Field::Ready_Camera()
return E_FAIL;
}
- m_pGameInstance->Add_Camera(g_iStaticLevel, pCamera, CAMERA_DEBUG);
+ m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_DEBUG);
#endif // _DEBUG
- if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, true))) {
+ if (FAILED(m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_DEBUG, true))) {
return E_FAIL;
}
return S_OK;
@@ -208,6 +217,18 @@ HRESULT CLevel_Field::Ready_Markers()
return S_OK;
}
+HRESULT CLevel_Field::Ready_Layer_Player(const _wstring& strLayerTag)
+{
+ CPlayer::PLAYERDESC playerDesc = {};
+ playerDesc.vPos = _float4(-17.96f, 18.74f, 9.11f, 1.f);
+ playerDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &playerDesc))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
HRESULT CLevel_Field::Ready_Layer_Effect(const _wstring& strLayerTag)
{
return S_OK;
@@ -222,6 +243,14 @@ HRESULT CLevel_Field::Ready_Layer_Monster()
return S_OK;
}
+HRESULT CLevel_Field::Reday_Layer_EffectPool()
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_EFFECTPOOL))) {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
pair> CLevel_Field::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg)
{
CLevel_Field* pInstance = new CLevel_Field(pDevice, pContext, eLevelID);
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 4ade71163..b26fcaa24 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -266,8 +266,8 @@ HRESULT CLevel_GamePlay::Ready_Background()
#endif //
#ifdef 기무리
isReady_Background = true;
- isReady_Hogsmeade = false;
- isReady_Hogwart = false;
+ isReady_Hogsmeade = true;
+ isReady_Hogwart = true;
#endif //
#ifdef 인혁
isReady_Background = false;
@@ -549,11 +549,11 @@ HRESULT CLevel_GamePlay::Ready_Layer_Camera()
return E_FAIL;
}
- m_pGameInstance->Add_Camera(g_iStaticLevel, pCamera, CAMERA_DEBUG);
+ m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_DEBUG);
#endif // _DEBUG
- if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_SHOULDER, true))) {
+ if (FAILED(m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_SHOULDER, true))) {
return E_FAIL;
}
@@ -573,16 +573,17 @@ 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))) {
+ CPlayer::PLAYERDESC playerDesc = {};
+ playerDesc.vPos = _float4(-21.f, 0.f, -14.f, 1.f);
+ playerDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &playerDesc))) {
return E_FAIL;
}
- /*for (_uint i = 0; i < 1; ++i) {
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
return E_FAIL;
}
- }*/
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 8b284e075..982067cb1 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -118,6 +118,11 @@
#include "SpellLearn_Name.h"
#include "SpellLearn.h"
#include "SpellLearn_MovePointer.h"
+#include "SpellLearn_ChaserPointer.h"
+#include "SpellLearn_LookPointer.h"
+#include "SpellLearn_Booster.h"
+#include "SpellLearn_Slot.h"
+#include "SpellLearn_Overlay.h"
#include "Interaction_Key.h"
@@ -352,7 +357,7 @@ HRESULT CLoader::Loading_For_GamePlay()
#endif //
#ifdef 기무리
isLoad_Background = true;
- isLoad_Hogwart = false;
+ isLoad_Hogwart = true;
#endif //
#ifdef 인혁
isLoad_Background = false;
@@ -1865,7 +1870,7 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GerboldOlivander_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
+ CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
return E_FAIL;
}
@@ -1875,7 +1880,7 @@ HRESULT CLoader::Loading_For_GamePlay()
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Dragon/Dragon.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
+ CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
@@ -1938,131 +1943,131 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CBombard::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBombard::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CDecendo::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDecendo::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CNomalJap::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CNomalJap::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CProtego::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CProtego::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRevelio::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRevelio::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CNomalJapSide::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CNomalJapSide::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CLevioso::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLevioso::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CLumos::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLumos::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CAccio::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CAccio::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CLeviosoSide::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLeviosoSide::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CBombardSide::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBombardSide::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CDecendoSide::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDecendoSide::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CTransformationSide::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTransformationSide::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CTrollSwing::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTrollSwing::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CTroll_Nomal_Smoke::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll_Nomal_Smoke::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CTroll_Rush_Hit::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll_Rush_Hit::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CGoblin_Protego::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_Protego::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CGoblin_Attack::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_Attack::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CMage_Down_Attack::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMage_Down_Attack::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CMage_Nomal_Attack::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMage_Nomal_Attack::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CMageSide::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMageSide::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CStunEffect::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CStunEffect::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CBox_Splesh::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBox_Splesh::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CBarral_Splesh::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBarral_Splesh::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CChair_Splesh::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CChair_Splesh::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CWandEnd::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CWandEnd::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CStupefy::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CStupefy::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CLightning::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLightning::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CLightningSide::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLightningSide::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CBlink::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBlink::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CTransformation::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTransformation::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CScreen_Wind::Create(m_pDevice, m_pContext)))) {
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CScreen_Wind::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
@@ -2414,6 +2419,31 @@ HRESULT CLoader::Loading_For_GamePlay()
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_SpellLearn_ChaserPointer*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_ChaserPointer::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_SpellLearn_SpellLearn_LookPointer*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_LookPointer::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_SpellLearn_SpellLearn_Booster*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_Booster::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_SpellLearn_SpellLearn_Slot*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_Slot::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_SpellLearn_SpellLearn_Overlay*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_Overlay::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
/* For.Prototype_GameObject_Interaction_Key*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CInteraction_Key::Create(m_pDevice, m_pContext))))
diff --git a/Jusin154_Team3D/Client/Private/Magic_Item.cpp b/Jusin154_Team3D/Client/Private/Magic_Item.cpp
index 3a23c3b48..3292b19fb 100644
--- a/Jusin154_Team3D/Client/Private/Magic_Item.cpp
+++ b/Jusin154_Team3D/Client/Private/Magic_Item.cpp
@@ -42,27 +42,22 @@ HRESULT CMagic_Item::Initialize(void* pArg)
m_fAngle = XMConvertToRadians(-135.f);
m_fAlphaTime = 1.f;
m_fSortZ = 0.2f;
- m_fCoolTime = 5.f;
- m_vUVScale.y = 1.f;
- m_iArratCount = 2;
- Compute_UV(0);
+ Compute_UV(1);
Compute_Image();
m_fFontX = 1171.f;
m_fFontY = 870.f;
- m_iPotionIndex = 0;
- m_iPerPotionIndex = -1;
return S_OK;
}
void CMagic_Item::Compute_UV(_uint iItemID)
{
- _float2 fImage_Size = { 1024.f, 512.f };
+ _float2 fImage_Size = { 320.f, 384.f };
- _uint iCountX = 4;
- _uint iCountY = 2;
+ _uint iCountX = 5;
+ _uint iCountY = 6;
- _float iImageX = 256.f;
- _float iImageY = 256.f;
+ _float iImageX = 64.f;
+ _float iImageY = 64.f;
_uint iframeX = iItemID % iCountX;
_uint iframeY = iItemID / iCountX;
@@ -81,10 +76,8 @@ void CMagic_Item::Compute_UV(_uint iItemID)
void CMagic_Item::Compute_Image()
{
- m_vImagePos1 = _float2(72.f, 0.f);
- m_vImageSize1 = _float2(30.f, 30.f);
- m_vImagePos2 = _float2(65.f, 65.f);
- m_vImageSize2 = _float2(30.f, 30.f);
+ m_vImageposi1 = _float4(30.f, 30.f, 120.f, 120.f);
+ m_vImageposi2 = _float4(70.f, 0.f, 30.f, 30.f);
}
void CMagic_Item::Priority_Update(_float fTimeDelta)
@@ -128,27 +121,6 @@ void CMagic_Item::Update(_float fTimeDelta)
}
}
- if (m_vUVScale.y >= 1.f)
- {
- if (m_pGameInstance->Key_Down(DIK_TAB))
- {
- m_vUVScale.y = 0.f;
- }
- }
-
- if (m_iPerPotionIndex != m_iPotionIndex)
- {
- m_strPotion = to_wstring(m_iPotionIndex);
- m_fFontOffSet = (m_pGameInstance->FontSizeX(TEXT("UI_size15"), m_strPotion.c_str()) - 13.f) * 0.5f;
- m_iPerPotionIndex = m_iPotionIndex;
- }
-
-
- if (m_vUVScale.y <= 1)
- {
- m_vUVScale.y += fTimeDelta * (1.f / m_fCoolTime);
- }
-
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
}
@@ -172,7 +144,7 @@ HRESULT CMagic_Item::Render()
{
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::MAGIC_ITEM))))
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::BROOMSTICK))))
{
return E_FAIL;
}
@@ -184,7 +156,6 @@ HRESULT CMagic_Item::Render()
{
return E_FAIL;
}
- m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY - m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha));
return S_OK;
}
@@ -224,18 +195,6 @@ HRESULT CMagic_Item::Bind_ShaderResources()
{
return E_FAIL;
}
- if (FAILED(m_pDiffuse_TextureCom4->Bind_ShaderResource(m_pShaderCom, "g_Texture4", 0)))
- {
- return E_FAIL;
- }
- if (FAILED(m_pDiffuse_TextureCom5->Bind_ShaderResource(m_pShaderCom, "g_Texture5", 0)))
- {
- return E_FAIL;
- }
- if (FAILED(m_pDiffuse_TextureCom6->Bind_ShaderResource(m_pShaderCom, "g_MaskingTexture", 0)))
- {
- return E_FAIL;
- }
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
{
return E_FAIL;
@@ -264,35 +223,11 @@ HRESULT CMagic_Item::Bind_ShaderResources()
{
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoolTime", &m_fCoolTime, sizeof(_float))))
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_vImageposi1, sizeof(_float4))))
{
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaV", &m_vUVScale.y, sizeof(_float))))
- {
- return E_FAIL;
- }
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV, sizeof(_float4))))
- {
- return E_FAIL;
- }
- if (FAILED(m_pShaderCom->Bind_RawValue("g_iArrayCount", &m_iArratCount, sizeof(_uint))))
- {
- return E_FAIL;
- }
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition1", &m_vImagePos1, sizeof(_float2))))
- {
- return E_FAIL;
- }
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes1", &m_vImageSize1, sizeof(_float2))))
- {
- return E_FAIL;
- }
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition2", &m_vImagePos2, sizeof(_float2))))
- {
- return E_FAIL;
- }
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes2", &m_vImageSize2, sizeof(_float2))))
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos2", &m_vImageposi2, sizeof(_float4))))
{
return E_FAIL;
}
@@ -300,6 +235,7 @@ HRESULT CMagic_Item::Bind_ShaderResources()
{
return E_FAIL;
}
+
return S_OK;
}
@@ -313,27 +249,15 @@ HRESULT CMagic_Item::Ready_Components(void* pArg)
{
return E_FAIL;
}
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_spellmeter_Generic"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
{
return E_FAIL;
}
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Broom9"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
{
return E_FAIL;
}
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Item"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
- {
- return E_FAIL;
- }
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Keyboard_Tab"), reinterpret_cast(&m_pDiffuse_TextureCom4), nullptr)))
- {
- return E_FAIL;
- }
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_AmountFrame"), reinterpret_cast(&m_pDiffuse_TextureCom5), nullptr)))
- {
- return E_FAIL;
- }
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_tillingSmokes"), reinterpret_cast(&m_pDiffuse_TextureCom6), nullptr)))
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Keyboard"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
{
return E_FAIL;
}
@@ -379,9 +303,6 @@ void CMagic_Item::Free()
SAFE_RELEASE(m_pDiffuse_TextureCom1);
SAFE_RELEASE(m_pDiffuse_TextureCom2);
SAFE_RELEASE(m_pDiffuse_TextureCom3);
- SAFE_RELEASE(m_pDiffuse_TextureCom4);
- SAFE_RELEASE(m_pDiffuse_TextureCom5);
- SAFE_RELEASE(m_pDiffuse_TextureCom6);
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pVIBufferCom);
}
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp b/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp
index 96003639a..e88df1c57 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp
@@ -315,9 +315,9 @@ CGameObject* CMapElement_Chest::Clone(void* pArg, CGameObject* pOwner)
void CMapElement_Chest::Free()
{
- if (nullptr != m_pRigidBody) {
- m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
- }
+ //if (nullptr != m_pRigidBody) {
+ // m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
+ //}
__super::Free();
if (m_bCloned)
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp
index 8a4b63b17..72c108d92 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp
@@ -482,9 +482,6 @@ CGameObject* CMapElement_Interactable::Clone(void* pArg, CGameObject* pOwner)
void CMapElement_Interactable::Free()
{
- if (nullptr != m_pRigidBody) {
- m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
- }
__super::Free();
SAFE_RELEASE(m_pRigidBody);
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
index c58058de0..f74831165 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
@@ -149,12 +149,12 @@ void CMapElement_Static::ReadyForPhysX()
return;
}
m_bConverted = true;
-
+ _uint iLevel = NEXT_LEVEL;
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
{
CModel* pModel = m_pModelComs[iIndexLOD];
- if (FAILED(pModel->Ready_PhysXMeshes(m_pTransformCom->Get_XMWorldMatrix()))) {
+ if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
assert(false);
}
}
diff --git a/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp b/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp
index 08ea6e825..edbfb3a47 100644
--- a/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp
+++ b/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp
@@ -88,7 +88,7 @@ void CMapObject_Collision::ReadyForPhysX()
return;
}
m_bConverted = true;
-
+ _uint iLevel = NEXT_LEVEL;
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
{
CModel* pModel = m_pModelComs[iIndexLOD];
@@ -98,7 +98,7 @@ void CMapObject_Collision::ReadyForPhysX()
_bool bSkip = { false };
for (_int i = 0; i < 4; ++i) {
if (false == XMVector4NearEqual(idenMatrix.r[i], parentMatrix.r[i], XMVectorReplicate(FLT_EPSILON5))) {
- if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix)))) {
+ if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
assert(false);
}
bSkip = true;
@@ -106,7 +106,7 @@ void CMapObject_Collision::ReadyForPhysX()
}
}
if (false == bSkip) {
- if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix()))) {
+ if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix(), iLevel))) {
assert(false);
}
}
@@ -226,6 +226,7 @@ void CMapObject_Collision::Free()
for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
SAFE_RELEASE(m_RigidBodies[i][j]);
}
+ m_RigidBodies[i].clear();
} m_RigidBodies.clear();
m_ModelPrototypeTags.clear();
diff --git a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
index c3ca5b58c..db9b61a4f 100644
--- a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
+++ b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
@@ -156,11 +156,12 @@ void CMapObject_Render::ReadyForPhysX()
}
m_bConverted = true;
+ _uint iLevel = NEXT_LEVEL;
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
{
CModel* pModel = m_pModelComs[iIndexLOD];
- if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix)))) {
+ if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
assert(false);
}
}
diff --git a/Jusin154_Team3D/Client/Private/NPC_EleazarFig.cpp b/Jusin154_Team3D/Client/Private/NPC_EleazarFig.cpp
new file mode 100644
index 000000000..690100725
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/NPC_EleazarFig.cpp
@@ -0,0 +1,238 @@
+#include "pch.h"
+#include "NPC_EleazarFig.h"
+
+#include "GameInstance.h"
+#include "InfoInstance.h"
+#include "Player.h"
+
+CNPC_EleazarFig::CNPC_EleazarFig(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CUnit(pDevice, pContext)
+{
+}
+
+CNPC_EleazarFig::CNPC_EleazarFig(const CNPC_EleazarFig& Prototype)
+ : CUnit(Prototype),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+void CNPC_EleazarFig::Priority_Update(_float fTimeDelta)
+{
+ m_pTransformCom->RewindMomentum();
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CNPC_EleazarFig::Update(_float fTimeDelta)
+{
+ m_pFSM->Update_State(fTimeDelta);
+ if (m_pModelCom->IsFinishedAnim()) {
+ m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false);
+ }
+ m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
+ __super::Update(fTimeDelta);
+#ifdef _DEBUG
+ Describe_Entity();
+#endif // _DEBUG
+
+}
+
+void CNPC_EleazarFig::Late_Update(_float fTimeDelta)
+{
+ m_pTransformCom->Set_State(STATE::POSITION, m_pTransformCom->Get_EstimatedPositionByMomentum());
+
+ m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CNPC_EleazarFig::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+
+ _uint iNumMeshes = m_pModelCom->Get_NumMeshes();
+
+ for (_uint i = 0; i < iNumMeshes; i++)
+ {
+ if (FAILED(m_pShaderCom->Bind_Matrices(
+ "g_OffsetMatrix",
+ m_pModelCom->Get_OffsetMatrix(i).data(),
+ (_int)m_pModelCom->Get_OffsetMatrix(i).size()
+ )))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+ }
+
+ return S_OK;
+}
+
+HRESULT CNPC_EleazarFig::Render_Shadow(SHADOW eType)
+{
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ViewMatrix", D3DTS::VIEW, eType))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ, eType))) {
+ return E_FAIL;
+ }
+ _uint iNumMeshes = m_pModelCom->Get_NumMeshes();
+
+ for (_uint i = 0; i < iNumMeshes; i++)
+ {
+ if (FAILED(m_pShaderCom->Bind_Matrices(
+ "g_OffsetMatrix",
+ m_pModelCom->Get_OffsetMatrix(i).data(),
+ (_int)m_pModelCom->Get_OffsetMatrix(i).size()
+ )))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+ }
+
+ return S_OK;
+}
+
+HRESULT CNPC_EleazarFig::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
+ 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;
+}
+
+HRESULT CNPC_EleazarFig::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CNPC_EleazarFig::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg))) {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(40.f, 4.f, 68.9f, 1.f));
+ m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false);
+ return S_OK;
+}
+
+HRESULT CNPC_EleazarFig::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ /* Com_Shader */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
+ reinterpret_cast(&m_pShaderCom)))) {
+ return E_FAIL;
+ }
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_GerboldOlivander_Model"),
+ reinterpret_cast(&m_pModelCom)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CNPC_EleazarFig* CNPC_EleazarFig::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CNPC_EleazarFig* pInstance = new CNPC_EleazarFig(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CNPC_EleazarFig");
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+CGameObject* CNPC_EleazarFig::Clone(void* pArg, CGameObject* pOwner)
+{
+ CNPC_EleazarFig* pInstance = new CNPC_EleazarFig(*this);
+
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CNPC_EleazarFig");
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CNPC_EleazarFig::Free()
+{
+ __super::Free();
+}
+#ifdef _DEBUG
+
+void CNPC_EleazarFig::Describe_Entity()
+{
+ GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
+ if (GUI::CollapsingHeader("Ollivander")) {
+ m_pModelCom->Describe_Entity();
+ if (ImGui::TreeNode("ANIM STATE")) {
+
+ for (auto& pState : m_States)
+ {
+ if (ImGui::Button(to_string(pState.first).c_str()))
+ {
+ m_pFSM->Change_State(pState.first);
+ }
+ }
+
+ GUI::Text(to_string(m_pModelCom->Get_CurrentTrackProgressRatio()).c_str());
+
+ ImGui::TreePop();
+ }
+ }
+ GUI::End();
+}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp
index f250372c5..722ee994c 100644
--- a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp
+++ b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp
@@ -4,6 +4,8 @@
#include "GameInstance.h"
#include "InfoInstance.h"
#include "Player.h"
+#include "CallBack_NonPlayable_Behavior.h"
+#include "CallBack_NonPlayable_HitReport.h"
CNPC_Ollivander::CNPC_Ollivander(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CUnit(pDevice, pContext)
@@ -25,23 +27,85 @@ void CNPC_Ollivander::Priority_Update(_float fTimeDelta)
void CNPC_Ollivander::Update(_float fTimeDelta)
{
m_pFSM->Update_State(fTimeDelta);
- if (m_pModelCom->IsFinishedAnim()) {
- m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false);
- }
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
__super::Update(fTimeDelta);
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
+ if (false == m_bEntered) {
+ if (true == CastToPlayer()) {
+ m_vEnteringTimer.x += fTimeDelta;
+ if (m_vEnteringTimer.x > m_vEnteringTimer.y) {
+ m_vEnteringTimer.x -= m_vEnteringTimer.y;
+ m_bEntered = true;
+ // Active();
+ }
+#ifdef _DEBUG
+ GUI::Begin("UNIT");
+ if (GUI::CollapsingHeader("Ollivander")) {
+ GUI::Text("Timer :%.1f", m_vEnteringTimer.x);
+ GUI::Text("Hello");
+ }
+ GUI::End();
+#endif // _DEBUG
+ }
+ }
+ else {
+ if (false == CastToPlayer()) {
+ m_vEnteringTimer.x += fTimeDelta;
+ if (m_vEnteringTimer.x > m_vEnteringTimer.y) {
+ m_vEnteringTimer.x -= m_vEnteringTimer.y;
+ m_bEntered = false;
+ // DeActive(), Ready To Enter;
+ }
+#ifdef _DEBUG
+ GUI::Begin("UNIT");
+ if (GUI::CollapsingHeader("Ollivander")) {
+ GUI::Text("Timer :%.1f", m_vEnteringTimer.x);
+ GUI::Text("CoolTime");
+ }
+ GUI::End();
+#endif // _DEBUG
+ }
+ else {
+#ifdef _DEBUG
+ GUI::Begin("UNIT");
+ if (GUI::CollapsingHeader("Ollivander")) {
+ GUI::Text("Timer :%.1f", m_vEnteringTimer.x);
+ GUI::Text("You must go Out");
+ }
+ GUI::End();
+#endif // _DEBUG
+ }
+ }
+
+ if (false == CastToPlayer() && false == m_bEntered) {
+#ifdef _DEBUG
+ GUI::Begin("UNIT");
+ if (GUI::CollapsingHeader("Ollivander")) {
+ GUI::Text("Timer :%.1f", m_vEnteringTimer.x);
+ GUI::Text("Waiting For ReEnter");
+ }
+ GUI::End();
+#endif // _DEBUG
+ }
+
+
+ { // 세트
+ m_pCallBack_HitReport->BeginFrame();
+ m_pCharacter_Controller->Move(fTimeDelta);
+ m_pCallBack_HitReport->Set_CurrentSlop();
+ }
}
void CNPC_Ollivander::Late_Update(_float fTimeDelta)
{
- m_pTransformCom->Set_State(STATE::POSITION, m_pTransformCom->Get_EstimatedPositionByMomentum());
+ m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
- //m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
- //m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+
+ Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
__super::Late_Update(fTimeDelta);
}
@@ -73,6 +137,7 @@ HRESULT CNPC_Ollivander::Render()
}
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
@@ -110,6 +175,7 @@ HRESULT CNPC_Ollivander::Render_Shadow(SHADOW eType)
}
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
@@ -145,6 +211,19 @@ HRESULT CNPC_Ollivander::Bind_ShaderResources()
return S_OK;
}
+_bool CNPC_Ollivander::CastToPlayer()
+{
+ _vector vCurrentPos = m_pTransformCom->Get_State(STATE::POSITION);
+ _vector vTargetPos = {};
+ pair pairAllyInfo = m_pInfoInstance->Get_NearestPlayerAlly(m_pTransformCom->Get_State(STATE::POSITION));
+ vTargetPos = pairAllyInfo.second->Get_State(STATE::POSITION);
+ _float fLength = XMVectorGetX(XMVector4Length(vTargetPos - vCurrentPos));
+ if (fLength < m_fEncounterDistance) {
+ return true;
+ }
+ return false;
+}
+
HRESULT CNPC_Ollivander::Initialize_Prototype()
{
return S_OK;
@@ -159,13 +238,22 @@ HRESULT CNPC_Ollivander::Initialize(void* pArg)
return E_FAIL;
}
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(40.f, 4.f, 68.9f, 1.f));
- m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false);
+ m_pCharacter_Controller->Set_Position(XMVectorSet(40.f, 4.f, 68.9f, 1.f));
+ m_pModelCom->Set_AnimationIndex(0, true);
+ m_pCallBack_Behavior->Initialize(m_pCharacter_Controller);
+ m_pCallBack_HitReport->Initialize(m_pCharacter_Controller);
return S_OK;
}
HRESULT CNPC_Ollivander::Ready_Components(void* pArg)
{
- if (FAILED(__super::Ready_Components(pArg))) {
+ CTransform::TRANSFORM_DESC Desc = {};
+
+ Desc.fSpeedPerSec = 10.f;
+ Desc.fRotationPerSec = XMConvertToRadians(180.0f);
+ Desc.fRadius = 10.f;
+
+ if (FAILED(__super::Ready_Components(&Desc))) {
return E_FAIL;
}
@@ -179,6 +267,28 @@ HRESULT CNPC_Ollivander::Ready_Components(void* pArg)
return E_FAIL;
}
+ { // CCT
+ CCharacter_Controller::Character_Controller_DESC Desc{};
+
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::OLLIVANDER);
+ Desc.pTransform = m_pTransformCom;
+ Desc.eBodyType = ACTOR::CAPSULE;
+ Desc.fContactOffset = 0.0001f;
+ Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
+ Desc.bAutoStepping = { false };
+ Desc.fStepOffset = { 0.02f };
+ Desc.fRadius = 0.5f;
+ Desc.fHeight = 0.6f;
+ Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_NonPlayable_HitReport::Create();
+ Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_NonPlayable_Behavior::Create();
+ Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY;
+ Desc.fWalkableSlope = 45.f;
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) {
+ return E_FAIL;
+ }
+ m_pCharacter_Controller->SetGravity(true);
+ }
+
return S_OK;
}
@@ -209,30 +319,25 @@ CGameObject* CNPC_Ollivander::Clone(void* pArg, CGameObject* pOwner)
void CNPC_Ollivander::Free()
{
__super::Free();
+
+ SAFE_RELEASE(m_pCharacter_Controller);
+ if (nullptr != m_pInfoInstance) {
+ CInfoInstance* pInfo = m_pInfoInstance;
+ m_pInfoInstance = nullptr;
+ }
+ if (nullptr != m_pCallBack_Behavior) {
+ m_pCallBack_Behavior->Finalize();
+ }
+ if (nullptr != m_pCallBack_HitReport) {
+ m_pCallBack_HitReport->Finalize();
+ }
+ Safe_Delete(m_pCallBack_Behavior);
+ Safe_Delete(m_pCallBack_HitReport);
}
#ifdef _DEBUG
void CNPC_Ollivander::Describe_Entity()
{
- GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
- if (GUI::CollapsingHeader("Ollivander")) {
- m_pModelCom->Describe_Entity();
- if (ImGui::TreeNode("ANIM STATE")) {
-
- for (auto& pState : m_States)
- {
- if (ImGui::Button(to_string(pState.first).c_str()))
- {
- m_pFSM->Change_State(pState.first);
- }
- }
-
- GUI::Text(to_string(m_pModelCom->Get_CurrentTrackProgressRatio()).c_str());
-
- ImGui::TreePop();
- }
- }
- GUI::End();
}
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
index 4c61ffb1d..8d371593b 100644
--- a/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
+++ b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
@@ -194,7 +194,7 @@ void CPhysXEffectHitBox::Free()
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
- m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index 08b405243..6c8a41bef 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -9,8 +9,8 @@
#include "Wand.h"
#include "Item_Potion.h"
#include "Character_Controller.h"
-#include "CallBack_Playable_Behavior.h"
#include "CamPosition_Shoulder.h"
+#include "CallBack_Playable_Behavior.h"
#include "CallBack_Playable_HitReport.h"
#include "Monster.h"
#include "Broom.h"
@@ -95,10 +95,14 @@ HRESULT CPlayer::Initialize(void* pArg)
m_pInfoInstance->Regist_PlayerAlly(this);
m_pInfoInstance->Set_Damage(m_pStat->Get_Stat().fDamage);
-
- m_pCharacter_Controller->Set_Position(XMVectorSet(-21.f, 0.f, -14.f, 1.f));
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-21.f, 0.f, -14.f, 1.f));
-
+ {
+ PLAYERDESC* pDesc = static_cast(pArg);
+ _vector vPos = XMLoadFloat4(&pDesc->vPos);
+ _vector vRotQ = XMLoadFloat4(&pDesc->vRotQ);
+ m_pCharacter_Controller->Set_Position(vPos);
+ m_pTransformCom->Set_State(STATE::POSITION, vPos);
+ m_pTransformCom->Rotation(vRotQ);
+ }
#ifdef _DEBUG
m_BasicEffect = make_unique(m_pDevice);
@@ -136,6 +140,8 @@ void CPlayer::Update(_float fTimeDelta)
UpdateGrapInteractive(fTimeDelta);
m_pFSM->Update_State(fTimeDelta);
+
+ Play_SpellHitAnim();
/* _float ratio = m_pModelCom->Get_CurrentTrackProgressRatio();
_float ease = 1.f;
@@ -483,7 +489,7 @@ HRESULT CPlayer::Ready_Components()
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());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
return S_OK;
@@ -563,6 +569,11 @@ void CPlayer::ReLockOnTarget()
m_LockOnInfo.pUnit = nullptr;
}
}
+ if (nullptr != m_LockOnInfo.pInteractive) {
+ if (true == m_LockOnInfo.pInteractive->isDead()) {
+ m_LockOnInfo.pInteractive = nullptr;
+ }
+ }
//m_pLockOnMonster->Get_State
}
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index bbf24dece..4592f1bc5 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -22,6 +22,7 @@
#include "State_Blink.h"
#include "State_Jump.h"
#include "State_Land.h"
+#include "State_Fall.h"
#include "State_Slide.h"
#include "State_Move.h"
#include "State_Combat.h"
@@ -821,6 +822,9 @@ void CPlayer::Behavior_LandEnter()
{
pairAnimInfo = m_Animation[STATEANIM::LAND_TO_JOG];
}
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::LAND];
+ }
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
@@ -854,9 +858,30 @@ void CPlayer::Behavior_LandExit()
m_fGravityAmount = 0.f;
}
+void CPlayer::Behavior_FallEnter()
+{
+ pair<_uint, _bool> pairAnimInfo;
+ m_pFSM->Enable_State(FSMSTATE::FALL);
+ pairAnimInfo = m_Animation[STATEANIM::FALL_LOOP];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+}
+
+HRESULT CPlayer::Behavior_FallExitCheck(_float fTimeDelta)
+{
+
+ m_pFSM->Change_State(FSMSTATE::LAND);
+ return E_FAIL;
+
+ return S_OK;
+}
+
+void CPlayer::Behavior_FallExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::FALL);
+}
+
void CPlayer::Behavior_DodgeEnter()
{
- // 혹시 @@ to Dodge 있으면 여기에
m_pFSM->Enable_State(FSMSTATE::DODGE);
pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::DODGE];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.3f);
@@ -1039,11 +1064,8 @@ void CPlayer::Behavior_CombatEnter()
return;
}
else if (m_pGameInstance->Key_Down(DIK_Z)) {
- if (nullptr != m_pGrapInteractive) {
- m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
- pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
- }
- else if (nullptr != m_LockOnInfo.pInteractive) {
+
+ if (nullptr != m_LockOnInfo.pInteractive) {
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
m_pGrapInteractive = m_LockOnInfo.pInteractive;
@@ -1094,17 +1116,7 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
else if (m_pGameInstance->Key_Down(DIK_Z)) {
-
- m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
- pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
-
- if (nullptr != m_pGrapInteractive) {
- m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
- pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
- }
- else if (nullptr != m_LockOnInfo.pInteractive) {
+ if (nullptr != m_LockOnInfo.pInteractive) {
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
m_pGrapInteractive = m_LockOnInfo.pInteractive;
@@ -1112,6 +1124,9 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
m_pGrapInteractive->Set_KinematicFlag(true);
m_vGrapInteratableLerp.x = 0.f;
}
+ else {
+ return S_OK;
+ }
Add_Event(pairAnimInfo.first,
[this]() { m_bLookAt = true; },
0.1f);
@@ -1171,6 +1186,7 @@ void CPlayer::Behavior_LightAttackEnter()
pair<_uint, _bool> pairAnimInfo;
m_pModelCom->Set_BlendDuration(0.1f);
m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK);
+ _float fRatio = 0.07f;
if (m_LockOnInfo.pUnit)
{
@@ -1214,6 +1230,7 @@ void CPlayer::Behavior_LightAttackEnter()
else
{
pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK_180_R];
+ fRatio = 0.18f;
}
}
else {
@@ -1226,7 +1243,7 @@ void CPlayer::Behavior_LightAttackEnter()
Add_Event(pairAnimInfo.first,
[this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject(), &iIndex); },
- 0.07f);
+ fRatio);
Add_Event(pairAnimInfo.first,
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject()); },
@@ -1335,6 +1352,8 @@ void CPlayer::Behavior_LightAttackExit()
void CPlayer::Behavior_SpellEnter()
{
+ if (m_bSpellHit)
+ return;
pair<_uint, _bool> pairAnimInfo;
m_pModelCom->Set_BlendDuration(0.1f);
@@ -1382,13 +1401,15 @@ void CPlayer::Behavior_SpellEnter()
pairAnimInfo = m_Animation[STATEANIM::SPELL_180_R];
fRatio = 0.23f;
}
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
}
else {
- pairAnimInfo = m_Animation[STATEANIM::SPELL];
fRatio = 0.2f;
+ pairAnimInfo = m_Animation[STATEANIM::SPELL];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
}
- if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END) && m_eSpell != -1)
+ if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END) && m_eSpell != 0)
{
Add_SpellEvent(pairAnimInfo.first,fRatio);
}
@@ -1399,8 +1420,8 @@ void CPlayer::Behavior_SpellEnter()
Add_Event(pairAnimInfo.first,
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::WAND_END, Get_PartObject()); },
0.2f);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
}
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
}
HRESULT CPlayer::Behavior_SpellExitCheck()
@@ -1421,20 +1442,14 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
if (iCurr >= iStart && iCurr < iStart + 3)
{
- if (fRatio >= 0.15f)
+ if (fRatio >= 0.2f)
{
_uint iNext = iCurr + 1;
pairAnimInfo = m_Animation[STATEANIM::SPELL];
pairAnimInfo.first = iNext;
-
- Add_Event(pairAnimInfo.first,
- [this]() {m_bLookAt = true;
- },
- 0.01f);
-
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
- if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END) && m_eSpell != -1)
+ if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END) && m_eSpell != 0)
{
_float fAttackRatio = 0.2f;
if (iNext - iStart == 2) {
@@ -1452,8 +1467,31 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
pairAnimInfo = m_Animation[STATEANIM::SPELL_FAIL];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,true);
}
+
+ if (iCurr != iStart + 2)
+ {
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_bLookAt = true;
+ },
+ 0.01f);
+
+ }
+ else {
+ m_bLookAt = false;
+ }
+
+
}
}
+ else if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell()))
+ {
+ if (fRatio >= 0.3f)
+ {
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+ return E_FAIL;
+ }
+ return S_OK;
+ }
}
else if (m_pGameInstance->Key_Down(DIK_Q)) {
m_pFSM->Change_State(FSMSTATE::SHIELD);
@@ -1467,41 +1505,20 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
m_pFSM->Change_State(FSMSTATE::COMBAT);
return E_FAIL;
}
-
- if (m_bSpellHit)
- {
- if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END))
- {
- m_bLookAt = true;
- switch (m_eSpell)
- {
- case ENUM_CLASS(SKILL_TYPE::ACCIO):
- pairAnimInfo = m_Animation[STATEANIM::ACCIO];
- break;
- case ENUM_CLASS(SKILL_TYPE::DESCENDO):
- pairAnimInfo = m_Animation[STATEANIM::DESCENDO];
- break;
- default:
- m_eSpell = ENUM_CLASS(SKILL_TYPE::END);
- return S_OK;
- break;
- }
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
- }
- }
-
-
- if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell()))
+ else if (SUCCEEDED(InputAction()))
{
if (fRatio >= 0.3f)
{
m_pFSM->Change_State(FSMSTATE::COMBAT);
return E_FAIL;
}
+ return S_OK;
}
+ Play_SpellHitAnim();
+
if (SUCCEEDED(InputMove())) {
- if (fRatio >= 0.3f) {
+ if (fRatio >= 0.4f) {
m_pFSM->Change_State(FSMSTATE::MOVE);
return E_FAIL;
}
@@ -1650,7 +1667,7 @@ HRESULT CPlayer::Behavior_ShieldExitCheck()
Add_Event(pairAnimInfo.first,
[this]() {m_bLookAt = true;
},
- 0.01f);
+ 0.8f);
}
else {
pairAnimInfo = m_Animation[STATEANIM::PARRY_180];
@@ -2373,7 +2390,7 @@ void CPlayer::Throwing_Interactive()
{
if (nullptr == m_pGrapInteractive) {
return;
- } _vector vDir = {}; _float vDistance = 60.f;
+ } _vector vDir = {}; _float vDistance = 100.f;
CRigidBody_Dynamic* pBody = m_pGrapInteractive->Get_Component();
if (nullptr != m_LockOnInfo.pUnit) {
vDir = XMVector3Normalize(m_LockOnInfo.pUnit->Get_LockOnPos() - m_pGrapInteractive->Get_LockOnPos());
@@ -2459,9 +2476,15 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
break;
case ENUM_CLASS(SKILL_TYPE::DIFFINDO):
pairAnimInfo = m_Animation[STATEANIM::DIFFINDO];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
break;
case ENUM_CLASS(SKILL_TYPE::DISILLUSIONMENT):
pairAnimInfo = m_Animation[STATEANIM::DISILLUSION_ENTER];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
+ break;
+ case ENUM_CLASS(SKILL_TYPE::AVADA_KEDAVRA):
+ pairAnimInfo = m_Animation[STATEANIM::AVADA_KEDAVRA];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
break;
case ENUM_CLASS(SKILL_TYPE::LUMOS):
if (m_pModelCom->Get_SecondAnimIndex() != m_Animation[STATEANIM::LUMOS].first)
@@ -2511,10 +2534,46 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
Add_Event(AnimIndex,
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::WAND_END, Get_PartObject()); },
0.2f);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
break;
}
}
+void CPlayer::Play_SpellHitAnim()
+{
+ if (m_bSpellHit)
+ {
+ pair<_uint, _bool> pairAnimInfo;
+ if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END))
+ {
+ m_bLookAt = true;
+ switch (m_eSpell)
+ {
+ case ENUM_CLASS(SKILL_TYPE::ACCIO):
+ pairAnimInfo = m_Animation[STATEANIM::ACCIO];
+ break;
+ case ENUM_CLASS(SKILL_TYPE::DESCENDO):
+ pairAnimInfo = m_Animation[STATEANIM::DESCENDO];
+ break;
+ }
+ m_pFSM->Change_State(FSMSTATE::SPELL);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ m_bSpellHit = false;
+
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ if (SUCCEEDED(InputMove()))
+ {
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+ }
+ else
+ {
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ }
+ }
+ }
+ }
+}
void CPlayer::Add_FSM()
{
@@ -2579,6 +2638,17 @@ void CPlayer::Add_FSM()
Desc.funcExitEvent = [this]() { Behavior_LandExit(); };
m_States.emplace(FSMSTATE::LAND, CState_Land::Create(&Desc));
}
+
+ {
+ CState_Fall::STATE_FALL_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_FallEnter(); };
+ Desc.funcExitCheck = [this](_float fTimeDelta) { return Behavior_FallExitCheck(fTimeDelta); };
+ Desc.funcExitEvent = [this]() { Behavior_FallExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::FALL, CState_Fall::Create(&Desc));
+ }
{
CState_Dodge::STATE_DODGE_DESC Desc{};
Desc.pOwner = this;
@@ -2927,6 +2997,9 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::LAND] = { 259,false }; // 259
m_Animation[STATEANIM::LAND_TO_JOG] = {247,false};
m_Animation[STATEANIM::LAND_TO_SPRINT] = { 249 ,false};
+ m_Animation[STATEANIM::LAND_HARD] = { 255 ,false };
+ m_Animation[STATEANIM::LAND_MID] = { 257 ,false };
+ m_Animation[STATEANIM::LAND_SOFT] = { 259 ,false };
m_Animation[STATEANIM::SLIDE_STOP_R] = { 568,false };
m_Animation[STATEANIM::SLIDE_START_R] = { 566,false };
@@ -2961,6 +3034,8 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::DISILLUSION_ENTER] = { 585,false };
m_Animation[STATEANIM::DISILLUSION_EXIT] = { 586,false };
m_Animation[STATEANIM::ANCIENT_THROW] = { 919,false };
+ m_Animation[STATEANIM::AVADA_KEDAVRA] = { 863,false };
+
m_Animation[STATEANIM::ANCIENT_LIGHTNING] = { 1001,false }; // 859
@@ -3050,6 +3125,8 @@ void CPlayer::Set_Anim()
//874
//1277 1281
+
+ //255 하드 257 중간 259 소프트
}
diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp
index fa0cf1777..e90d1b168 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp
@@ -141,6 +141,11 @@ void CRanrok::Update(_float fTimeDelta)
m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta);
#pragma endregion
+
+ m_vEtherealTimer.x += fTimeDelta * 0.2f;
+ if (m_vEtherealTimer.x > m_vEtherealTimer.y) {
+ m_vEtherealTimer.x -= m_vEtherealTimer.y;
+ }
}
void CRanrok::Late_Update(_float fTimeDelta)
@@ -161,89 +166,28 @@ void CRanrok::Late_Update(_float fTimeDelta)
}
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
}
HRESULT CRanrok::Render()
{
- if (!m_bVisible)
+ if (!m_bVisible){
return S_OK;
-
+ }
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
-
- _uint iNumMeshes = m_pModelCom->Get_NumMeshes();
- _uint iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT);
- if (true == m_bDrawOutLine) {
- iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_WRITE);
+ RENDER eCurrentPass = m_pGameInstance->Get_CurrentRenderPass();
+ HRESULT hr = E_FAIL;
+ if (RENDER::NONBLEND == eCurrentPass) {
+ hr = Render_Nonblend();
}
- if (FAILED(Render_DeadDisolve())) {
- return E_FAIL;
+ else if (RENDER::BLEND == eCurrentPass) {
+ //hr = Render_Blend();
+ hr = S_OK;
}
-
- if (FAILED(Render_Disolve())) {
- return E_FAIL;
- }
-
- for (_uint i = 0; i < iNumMeshes; i++)
- {
- if (FAILED(m_pShaderCom->Bind_Matrices(
- "g_OffsetMatrix",
- m_pModelCom->Get_OffsetMatrix(i).data(),
- (_int)m_pModelCom->Get_OffsetMatrix(i).size()
- )))
- {
- return E_FAIL;
- }
-
- if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
- return E_FAIL;
- }
- if (FAILED(m_pShaderCom->Begin(iShaderPass))) {
- return E_FAIL;
- }
-
- m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
- m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0);
-
- if (FAILED(m_pModelCom->Render(i))) {
- return E_FAIL;
- }
- }
-
- if (m_bDrawOutLine) {
- Render_OutLine();
- }
-
-#ifdef _DEBUG
- if (true == m_pCharacter_Controller->IsActive()) {
- if (FAILED(m_pCharacter_Controller->Render())) {
- return E_FAIL;
- }
- }
- else if (true == m_pRigidBody->IsActive()) {
- if (FAILED(m_pRigidBody->Render())) {
- return E_FAIL;
- }
- }
-#endif
-
- if (0.f < m_fDeadRatio) {
- _bool bDisolve = false;
- if (FAILED(m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool)))) {
- return E_FAIL;
- }
- }
-
- {
- _bool bDisolve = false;
- _float zero = 0.f;
- m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool));
- m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float));
- }
-
- return S_OK;
+ return hr;
}
HRESULT CRanrok::Render_Shadow(SHADOW eType)
@@ -273,7 +217,8 @@ HRESULT CRanrok::Render_Shadow(SHADOW eType)
return E_FAIL;
}
- m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
@@ -378,6 +323,12 @@ HRESULT CRanrok::Ready_Components()
Desc.fRadius = 10.f;
__super::Ready_Components(&Desc);
+ SAFE_RELEASE(m_pShaderCom);
+
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
+ reinterpret_cast(&m_pShaderCom)))) {
+ return E_FAIL;
+ }
m_strModelPrototypeTag = TEXT("Prototype_Component_Ranrok_Model");
@@ -416,7 +367,7 @@ HRESULT CRanrok::Ready_Components()
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());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_RANROK"), (CComponent**)&m_pStat))) {
@@ -457,6 +408,104 @@ HRESULT CRanrok::Bind_ShaderResources()
}
return S_OK;
}
+HRESULT CRanrok::Render_Nonblend()
+{
+ if (FAILED(Render_DeadDisolve())) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Render_Disolve())) {
+ return E_FAIL;
+ }
+
+ for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i < ENUM_CLASS(RANROK_MESH_ORDER::END); ++i)
+ {
+ if (FAILED(m_pShaderCom->Bind_Matrices( "g_OffsetMatrix",
+ m_pModelCom->Get_OffsetMatrix(i).data(),
+ (_int)m_pModelCom->Get_OffsetMatrix(i).size() )))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pModelCom->Begin(i, m_pShaderCom, m_bDrawOutLine))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_bDrawOutLine) {
+ Render_OutLine();
+ }
+
+#ifdef _DEBUG
+ if (true == m_pCharacter_Controller->IsActive()) {
+ if (FAILED(m_pCharacter_Controller->Render())) {
+ return E_FAIL;
+ }
+ }
+ else if (true == m_pRigidBody->IsActive()) {
+ if (FAILED(m_pRigidBody->Render())) {
+ return E_FAIL;
+ }
+ }
+#endif
+
+ if (0.f < m_fDeadRatio) {
+ _bool bDisolve = false;
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ }
+
+ {
+ _bool bDisolve = false;
+ _float zero = 0.f;
+ m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool));
+ m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float));
+ }
+ return S_OK;
+}
+HRESULT CRanrok::Render_Blend()
+{
+ _float fDiffuseUVRatio = (m_vEtherealTimer.x / m_vEtherealTimer.y);
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fEtherealRatio", &fDiffuseUVRatio, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i)
+ {
+ if (FAILED(m_pShaderCom->Bind_Matrices("g_OffsetMatrix",
+ m_pModelCom->Get_OffsetMatrix(i).data(),
+ (_int)m_pModelCom->Get_OffsetMatrix(i).size())))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pModelCom->Begin(i, m_pShaderCom, m_bDrawOutLine))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+ }
+
+ return S_OK;
+}
void CRanrok::MoveTo(_float fTimeDelta)
{
@@ -470,15 +519,22 @@ void CRanrok::MoveTo(_float fTimeDelta)
m_iCurrentFlow = 0;
_vector Target = m_Points[m_iCurrentFlow][m_iCurrentPoint];
+ _vector NextTarget;
+ if (m_iCurrentPoint + 1 <= m_Points[m_iCurrentFlow].size())
+ {
+ NextTarget = m_Points[m_iCurrentFlow][m_iCurrentPoint + 1];
+ }
_vector CurPos = m_pCharacter_Controller->Get_Position();
- _vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
+ _vector vLook = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
+
+ _float Speed = 50.f;
_vector toTarget = Target - CurPos;
_float fDist = XMVectorGetX(XMVector3Length(toTarget));
- GUI::Text("Dist %.2f", fDist);
+
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
{
- if (fDist < 10.f)
+ if (fDist < 15.f)
{
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
{
@@ -490,7 +546,7 @@ void CRanrok::MoveTo(_float fTimeDelta)
return;
}
}
- else if (fDist < 10.f)
+ else if (fDist < 50.f)
{
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
{
@@ -502,38 +558,9 @@ void CRanrok::MoveTo(_float fTimeDelta)
return;
}
- //_float4x4 CurMat, TargetMat, LerpMat;
-
- //XMStoreFloat4x4(&CurMat,XMMatrixTranslationFromVector(CurPos));
-
- //XMStoreFloat4x4(&TargetMat,XMMatrixTranslationFromVector(Target));
-
- //_float fLerpRatio = fTimeDelta * 2.f;
- //fLerpRatio = min(fLerpRatio, 1.f);
-
- //CMyTools::MatrixLerp(&CurMat, &TargetMat, LerpMat, fLerpRatio);
-
- //_vector vNextPos = XMVectorSet(LerpMat._41, LerpMat._42, LerpMat._43, 1.f);
-
-
- //m_pTransformCom->Set_WorldMatrix(LerpMat);
-
- //m_pCharacter_Controller->Set_Position(vNextPos);
-
- static _vector vMoveDir = m_pTransformCom->Get_State(STATE::LOOK);
-
- _vector vDir = XMVector3Normalize(Target - CurPos);
-
- vMoveDir = XMVectorLerp(vMoveDir, vDir, fTimeDelta * 2.f);
- vMoveDir = XMVector3Normalize(vMoveDir);
-
- m_pTransformCom->LookAt_Horizontal_Lerp(CurPos + vMoveDir, fTimeDelta, 1.f);
-
- _float Speed = 35.f;
- m_pCharacter_Controller->Set_Position(
- CurPos + vMoveDir * Speed * fTimeDelta
- );
+ m_pTransformCom->LookAt_Lerp(Target, fTimeDelta, 1.f);
+ m_pCharacter_Controller->Set_Position(CurPos + vLook * Speed * fTimeDelta);
}
void CRanrok::AroundPoint(_float fTimeDelta)
@@ -673,8 +700,6 @@ void CRanrok::Describe_Entity()
GUI::Text("Degree %.2f", m_fDegree);
GUI::Text("CurrFlow %d", m_iCurrentFlow);
-
-
_float3 Pos;
XMStoreFloat3(&Pos, Get_WorldPostion());
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
index bf42ee736..6e92f9a5f 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
@@ -616,13 +616,14 @@ void CRanrok::Behavior_TuckedEnter()
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::TUCKED);
- if (m_iCurrentFlow == 0)
- {
- pairAnimInfo = m_Animation[STATEANIM::FLY];
- }
- else {
- pairAnimInfo = m_Animation[STATEANIM::TUCKED];
- }
+ //if (m_iCurrentFlow == 0)
+ //{
+ // pairAnimInfo = m_Animation[STATEANIM::FLY];
+ //}
+ //else {
+ // pairAnimInfo = m_Animation[STATEANIM::TUCKED];
+ //}
+ pairAnimInfo = m_Animation[STATEANIM::FLY];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
}
diff --git a/Jusin154_Team3D/Client/Private/Skill_Data.cpp b/Jusin154_Team3D/Client/Private/Skill_Data.cpp
index 6db20bcc1..87a66ea56 100644
--- a/Jusin154_Team3D/Client/Private/Skill_Data.cpp
+++ b/Jusin154_Team3D/Client/Private/Skill_Data.cpp
@@ -17,10 +17,12 @@ HRESULT CSkill_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pCon
m_bNoCool = false;
m_pInfoInstance->Add_Event(TEXT("NoCooL"), [this](void* p) {this->NoCool(*reinterpret_cast<_bool*>(p)); });
Spell_UnLock(2);
+ Spell_UnLock(3);
Spell_UnLock(4);
Spell_UnLock(6);
Spell_UnLock(11);
Spell_UnLock(14);
+ Spell_UnLock(20);
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn.cpp b/Jusin154_Team3D/Client/Private/SpellLearn.cpp
index 884254d57..0a5a69e9d 100644
--- a/Jusin154_Team3D/Client/Private/SpellLearn.cpp
+++ b/Jusin154_Team3D/Client/Private/SpellLearn.cpp
@@ -1,6 +1,8 @@
#include "pch.h"
#include "SpellLearn.h"
#include "GameInstance.h"
+#include "SpellLearn_MovePointer.h"
+#include "SpellLearn_ChaserPointer.h"
#include "InfoInstance.h"
CSpellLearn::CSpellLearn(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -39,8 +41,12 @@ HRESULT CSpellLearn::Initialize(void* pArg)
}
m_fTimeMult = 3.f;
- m_fAlpha = 1.f;
+ m_fAlpha = 0.f;
m_fAlphaTime = 5.f;
+ m_iTrailIndex = 0;
+ m_fSortZ = 0.02f;
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ static_cast(m_pOwner)->Add_Function(TEXT("OverrlayClear"), [this](void* p) {this->Set_FadeOut(); });
Change_Image(0);
Visible(false);
return S_OK;
@@ -87,7 +93,44 @@ void CSpellLearn::Update(_float fTimeDelta)
}
}
- m_fTime += fTimeDelta * m_fTimeMult;
+ if (m_bReset == true)
+ {
+ m_Trail.clear();
+ m_ChaseTrail.clear();
+ m_bReset = false;
+ }
+
+ if (m_bHover == false)
+ {
+ fill(m_Trail.begin(), m_Trail.end(), _float2(-9999.f, -9999.f));
+ fill(m_ChaseTrail.begin(), m_ChaseTrail.end(), _float2(-9999.f, -9999.f));
+ m_bReset = true;
+ }
+
+ if (m_pPointer != nullptr)
+ {
+ if (m_pPointer->Get_MoveStart() == true)
+ {
+ m_bHover = true;
+ m_vPointerPosition = m_pPointer->Get_Position();
+ m_vPointerScale = m_pPointer->Get_Current_Size();
+
+ m_vChasePosition = m_pChasePointer->Get_Position();
+ m_vChaseScale = m_pChasePointer->Get_Current_Size();
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ if (m_fTime >= 0.3f)
+ {
+ m_fTime = 0.f;
+ m_Trail.push_back(m_vPointerPosition);
+ m_iTrailIndex++;
+ m_ChaseTrail.push_back(m_vChasePosition);
+ m_iChaseiTrailIndex++;
+ }
+ }
+ }
+
+
__super::Update(fTimeDelta);
}
@@ -108,7 +151,7 @@ HRESULT CSpellLearn::Render()
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::COLOR)))) {
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELLLEARNCOLOR)))) {
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
@@ -168,6 +211,34 @@ HRESULT CSpellLearn::Bind_ShaderResources()
{
return E_FAIL;
}
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes1", &m_vPointerScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fPosition", &m_fCurrent_Position, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_Trail", m_Trail.data(), sizeof(_float2) * _uint(m_Trail.size()))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_Count", &m_iTrailIndex, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_ChaseTrail", m_ChaseTrail.data(), sizeof(_float2) * _uint(m_Trail.size()))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_ChaseCount", &m_iChaseiTrailIndex, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
return S_OK;
}
@@ -195,9 +266,14 @@ HRESULT CSpellLearn::Ready_Components(void* pArg)
HRESULT CSpellLearn::Change_Image(_int SpellID)
{
+ m_bHover = false;
+ m_ChaseTrail.push_back(_float2(-9999.f, -9999.f));
+ m_Trail.push_back(_float2(-9999.f, -9999.f));
+ m_iTrailIndex = 0;
+ m_iChaseiTrailIndex = 0;
_wstring pName = TEXT("Prototype_Texture_");
_wstring pImageName = pName + m_pInfoInstance->Get_SpellLearn(SpellID).pImageName;
-
+ m_MoveLine = m_pInfoInstance->Get_SpellLearn(SpellID).Lines;
if (m_pDiffuse_TextureCom)
{
Remove_Component();
@@ -206,9 +282,21 @@ HRESULT CSpellLearn::Change_Image(_int SpellID)
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pImageName, reinterpret_cast(&m_pDiffuse_TextureCom))))
return E_FAIL;
+ Set_FadeIn();
return S_OK;
}
+void CSpellLearn::Set_Pointer(CSpellLearn_MovePointer* Pointer, CSpellLearn_ChaserPointer* Chase)
+{
+ m_pPointer = Pointer;
+ m_pChasePointer = Chase;
+}
+
+void CSpellLearn::Clear()
+{
+ fill(m_ChaseTrail.begin(), m_ChaseTrail.end(), _float2(-9999.f, -9999.f));
+}
+
CSpellLearn* CSpellLearn::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CSpellLearn* pInstance = new CSpellLearn(pDevice, pContext);
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Booster.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Booster.cpp
new file mode 100644
index 000000000..ecb3ae787
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_Booster.cpp
@@ -0,0 +1,321 @@
+#include "pch.h"
+#include "SpellLearn_Booster.h"
+#include "GameInstance.h"
+#include "InfoInstance.h"
+
+CSpellLearn_Booster::CSpellLearn_Booster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_Booster::CSpellLearn_Booster(const CSpellLearn_Booster& rhs)
+ :CElementObject(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CSpellLearn_Booster::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Booster::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 476.f;
+ Desc.fY = -253.f;
+ Desc.fSizeX = 64.f;
+ Desc.fSizeY = 64.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 = 5.f;
+ m_fAngle = XMConvertToRadians(0);
+ m_bHover = true;
+ m_fImagePosi = _float4(16.f, 16.f, 32.f, 32.f);
+ static_cast(m_pOwner)->Add_Function(TEXT("BoosterOn"), [this](void* p) {this->BoosterOn(p); });
+ static_cast(m_pOwner)->Add_Function(TEXT("BoosterOff"), [this](void* p) {this->BoosterOff(p); });
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ Visible(true);
+ return S_OK;
+}
+
+void CSpellLearn_Booster::BoosterOn(void* pArg)
+{
+ Booster* State = static_cast(pArg);
+ if (State->iBoosterIndex != m_iIndex)
+ return;
+
+ m_bBoosterOn = true;
+ m_bBoosterOff = false;
+}
+
+void CSpellLearn_Booster::BoosterOff(void* pArg)
+{
+ Booster* State = static_cast(pArg);
+
+ if (m_bBoosterOn == true)
+ return;
+
+ if (State->iBoosterIndex != m_iIndex)
+ return;
+
+ m_bBoosterOff = true;
+ static_cast(m_pOwner)->Function_Callback(TEXT("ChaseBooster"));
+}
+
+void CSpellLearn_Booster::Set_Index(_int iIndex)
+{
+ m_iIndex = iIndex;
+}
+
+void CSpellLearn_Booster::Reset()
+{
+ m_bBoosterOn = false;
+ m_bBoosterOff = false;
+ Set_FadeIn();
+}
+
+void CSpellLearn_Booster::Clear()
+{
+ Set_FadeOut();
+}
+
+void CSpellLearn_Booster::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_Booster::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ 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 * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_Booster::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpellLearn_Booster::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELLLEARNBOOSTER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_Booster::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_Booster::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_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 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;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_fImagePosi, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_bHover, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iBoosterOn", &m_bBoosterOn, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iBoosterOff", &m_bBoosterOff, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Booster::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SU_ButtonCalloutRing"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Mouse_LeftClick"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SpellMinigame_SpeedBurstFail"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_VFX_T_Speck_HighCoverage_D"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpellLearn_Booster* CSpellLearn_Booster::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_Booster* pInstance = new CSpellLearn_Booster(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_Booster");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_Booster::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_Booster* pInstance = new CSpellLearn_Booster(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_Booster");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_Booster::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pDiffuse_TextureCom3);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpellLearn_Booster::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_ChaserPointer.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_ChaserPointer.cpp
new file mode 100644
index 000000000..05a2bcc0a
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_ChaserPointer.cpp
@@ -0,0 +1,294 @@
+#include "pch.h"
+#include "SpellLearn_ChaserPointer.h"
+#include "GameInstance.h"
+#include "SpellLearn_MovePointer.h"
+#include "InfoInstance.h"
+
+CSpellLearn_ChaserPointer::CSpellLearn_ChaserPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_ChaserPointer::CSpellLearn_ChaserPointer(const CSpellLearn_ChaserPointer& rhs)
+ :CElementObject(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CSpellLearn_ChaserPointer::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_ChaserPointer::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 476.f;
+ Desc.fY = -253.f;
+ Desc.fSizeX = 32.f;
+ Desc.fSizeY = 32.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.f;
+ m_fAlphaTime = 5.f;
+ m_fMoveSpeed = 165.f;
+ static_cast(m_pOwner)->Add_Function(TEXT("ChaseBooster"), [this](void* p) {this->SpeedUp(); });
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ Set_SpellLearn(0);
+ Visible(false);
+ return S_OK;
+}
+
+void CSpellLearn_ChaserPointer::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_ChaserPointer::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ 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 * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ if (m_bMoveStart == true)
+ {
+ Line(fTimeDelta);
+ }
+
+ if (m_fMoveSpeed >= 165.f)
+ {
+ m_fMoveSpeed -= fTimeDelta;
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_ChaserPointer::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpellLearn_ChaserPointer::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 CSpellLearn_ChaserPointer::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpellLearn_ChaserPointer::Set_SpellLearn(_int Index)
+{
+ m_fAlpha = 0.f;
+ m_bHover = false;
+ m_bMoveStart = false;
+ m_fTime = 0.f;
+ m_iLineIndex = _int(m_pInfoInstance->Get_SpellLearn(Index).Lines.size());
+ m_MoveLine = m_pInfoInstance->Get_SpellLearn(Index).Lines;
+ m_iCurrentLine = 0;
+ m_fX = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.x;
+ m_fY = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.y;
+ m_fMoveSpeed = 165.f;
+}
+
+void CSpellLearn_ChaserPointer::Set_Move()
+{
+ m_bHover = true;
+ m_bMoveStart = true;
+}
+
+void CSpellLearn_ChaserPointer::Line(_float fTime)
+{
+ m_vLerp_Position = m_MoveLine[m_iCurrentLine];
+
+ if (Start_Lerp(fTime) == true)
+ {
+ if (m_iCurrentLine < m_iLineIndex - 1)
+ {
+ ++m_iCurrentLine;
+ }
+ else
+ {
+ m_bMoveStart = false;
+ }
+ }
+
+}
+
+void CSpellLearn_ChaserPointer::SpeedUp()
+{
+ m_fMoveSpeed = 190.f;
+}
+
+void CSpellLearn_ChaserPointer::Clear()
+{
+ m_fMoveSpeed = 0.f;
+ Set_FadeOut();
+}
+
+HRESULT CSpellLearn_ChaserPointer::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 CSpellLearn_ChaserPointer::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SpellMinigame_SpeedBurstDropBack"), 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;
+}
+
+CSpellLearn_ChaserPointer* CSpellLearn_ChaserPointer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_ChaserPointer* pInstance = new CSpellLearn_ChaserPointer(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_ChaserPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_ChaserPointer::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_ChaserPointer* pInstance = new CSpellLearn_ChaserPointer(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_ChaserPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_ChaserPointer::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpellLearn_ChaserPointer::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Data.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Data.cpp
index 0f4d1a4aa..cdfd5f9e0 100644
--- a/Jusin154_Team3D/Client/Private/SpellLearn_Data.cpp
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_Data.cpp
@@ -50,12 +50,34 @@ HRESULT CSpellLearn_Data::Load_SpellInfo(const _char* pFilePath)
// 속성 읽기
Info.pSpellName = CMyTools::ToWstring(pName->Attribute("SpellName"));
Info.pImageName = CMyTools::ToWstring(pName->Attribute("ImageName"));
+ pName->QueryIntAttribute("SpellID", &Info.iSpellID);
+ pName->QueryIntAttribute("SpellType", &Info.iSpellType);
pName->QueryFloatAttribute("Size", &Info.fSpellSize);
_float fX{}, fY{};
pName->QueryFloatAttribute("x", &fX);
pName->QueryFloatAttribute("y", &fY);
Info.fStartPosition = _float2(fX, fY);
+ _float endx{}, endy{};
+ pName->QueryFloatAttribute("endx", &endx);
+ pName->QueryFloatAttribute("endy", &endy);
+ Info.fEndPosition = _float2(endx, endy);
+
+ tinyxml2::XMLElement* pBooster = pName->FirstChildElement("Booster");
+ while (pBooster)
+ {
+ tinyxml2::XMLElement* pPos = pBooster->FirstChildElement("Pos");
+ if (pPos)
+ {
+ _float px{}, py{};
+ pPos->QueryFloatAttribute("x", &px);
+ pPos->QueryFloatAttribute("y", &py);
+ Info.Booster.push_back(XMVectorSet(px, py, 0.f, 1.f));
+ }
+
+ // 다음 Position으로 이동
+ pBooster = pBooster->NextSiblingElement("Booster");
+ }
// Position 요소 반복
tinyxml2::XMLElement* pPosition = pName->FirstChildElement("Position");
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_LookPointer.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_LookPointer.cpp
new file mode 100644
index 000000000..57e1deea0
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_LookPointer.cpp
@@ -0,0 +1,255 @@
+#include "pch.h"
+#include "SpellLearn_LookPointer.h"
+#include "GameInstance.h"
+
+CSpellLearn_LookPointer::CSpellLearn_LookPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_LookPointer::CSpellLearn_LookPointer(const CSpellLearn_LookPointer& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpellLearn_LookPointer::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_LookPointer::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 100.f;
+ Desc.fY = 100.f;
+ Desc.fSizeX = 80.f;
+ Desc.fSizeY = 80.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 = 5.f;
+ m_fMoveSpeed = 130.f;
+ Set_SpellLearn(0);
+ m_fAngle = XMConvertToRadians(0);
+ Visible(true);
+ m_localX = 0.f;
+ m_localY = 20.f;
+ return S_OK;
+}
+
+void CSpellLearn_LookPointer::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_LookPointer::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ 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 * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fAngle = XMConvertToRadians(static_cast(m_pOwner)->Get_Angle());
+
+ float cosA = cos(m_fAngle);
+ float sinA = sin(m_fAngle);
+
+ float rotatedX = m_localX * cosA - m_localY * sinA;
+ float rotatedY = m_localX * sinA + m_localY * cosA;
+
+ MoveX(rotatedX);
+ MoveY(rotatedY);
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_LookPointer::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpellLearn_LookPointer::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ROTATION)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_LookPointer::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_LookPointer::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;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fMapAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_LookPointer::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SU_CursorArrow"), 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;
+}
+
+void CSpellLearn_LookPointer::Set_SpellLearn(_int Index)
+{
+ m_bMoveStart = false;
+ m_iLineIndex = _int(static_cast(m_pOwner)->Get_Learninfo(Index).Lines.size());
+ m_MoveLine = static_cast(m_pOwner)->Get_Learninfo(Index).Lines;
+ m_iCurrentLine = 0;
+ m_fX = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.x;
+ m_fY = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.y;
+}
+
+CSpellLearn_LookPointer* CSpellLearn_LookPointer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_LookPointer* pInstance = new CSpellLearn_LookPointer(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_LookPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_LookPointer::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_LookPointer* pInstance = new CSpellLearn_LookPointer(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_LookPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_LookPointer::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpellLearn_LookPointer::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp
index 85ca12265..da1943a73 100644
--- a/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp
@@ -1,6 +1,7 @@
#include "pch.h"
#include "SpellLearn_MovePointer.h"
#include "GameInstance.h"
+#include "SpellLearn_LookPointer.h"
#include "InfoInstance.h"
CSpellLearn_MovePointer::CSpellLearn_MovePointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -38,41 +39,69 @@ HRESULT CSpellLearn_MovePointer::Initialize(void* pArg)
return E_FAIL;
}
- m_fTimeMult = 3.f;
- m_fAlpha = 1.f;
+ m_fTimeMult = 10.f;
+ m_fAlpha = 0.f;
m_fAlphaTime = 5.f;
- m_fMoveSpeed = 15.f;
+ m_fMoveSpeed = 105.f;
Set_SpellLearn(0);
m_fAngle = XMConvertToRadians(0);
+ static_cast(m_pOwner)->Add_Function(TEXT("Booster"), [this](void* p) {this->Set_Booster(p); });
Visible(false);
return S_OK;
}
void CSpellLearn_MovePointer::Set_SpellLearn(_int Index)
{
+ m_bMoveStart = false;
+ m_bHover = true;
m_iLineIndex = _int(m_pInfoInstance->Get_SpellLearn(Index).Lines.size());
+ m_Boosters = m_pInfoInstance->Get_SpellLearn(Index).Booster;
m_MoveLine = m_pInfoInstance->Get_SpellLearn(Index).Lines;
m_iCurrentLine = 0;
m_fX = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.x;
m_fY = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.y;
+ m_iCurrentLine = 0;
+ m_Booster.iBoosterIndex = -1;
+ m_Booster.bBoosterOn = false;
+ Set_FadeIn();
}
-void CSpellLearn_MovePointer::Line(_float fTime)
+_int CSpellLearn_MovePointer::Get_SpellTrail()
+{
+ return m_iCurrentLine;
+}
+
+_bool CSpellLearn_MovePointer::Get_MoveStart()
+{
+ return m_bMoveStart;
+}
+
+void CSpellLearn_MovePointer::Line(_float fTime, _float2 fMouse)
{
m_vLerp_Position = m_MoveLine[m_iCurrentLine];
- if (Start_Lerp(m_fMoveSpeed * fTime) == true)
+ if (Start_Lerp_Speed(fTime, fMouse) == true)
{
if (m_iCurrentLine < m_iLineIndex - 1)
{
++m_iCurrentLine;
+ m_fPerPosition = _float2(m_MoveLine[m_iCurrentLine - 1].m128_f32[0], m_MoveLine[m_iCurrentLine - 1].m128_f32[1]);
}
else
{
m_bMoveStart = false;
+ Set_FadeOut();
+ static_cast(m_pOwner)->Function_Callback(TEXT("LearnClear"));
}
}
+}
+void CSpellLearn_MovePointer::Set_Booster(void* pArg)
+{
+ Booster* Info = static_cast(pArg);
+ m_Booster.iBoosterIndex = Info->iBoosterIndex;
+ m_Booster.bBoosterOn = Info->bBoosterOn;
+ m_bBooster = m_Booster.bBoosterOn;
}
void CSpellLearn_MovePointer::Priority_Update(_float fTimeDelta)
@@ -116,28 +145,45 @@ void CSpellLearn_MovePointer::Update(_float fTimeDelta)
}
}
+ POINT ptMouse{};
+ GetCursorPos(&ptMouse);
+ ScreenToClient(g_hWnd, &ptMouse);
+ _float2 fMouse{};
+ fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
+ fMouse.y = -ptMouse.y + (g_iWinSizeY * 0.5f);
+
+ _float2 fFinalMouse{};
+ fFinalMouse.x = fMouse.x - m_fX;
+ fFinalMouse.y = fMouse.y - m_fY;
+
if (m_pGameInstance->Key_Down(DIK_L))
{
m_bMoveStart = true;
+ m_bBooster = false;
+ m_fMoveSpeed = 105.f;
}
if (m_bMoveStart == true)
{
- Line(fTimeDelta);
+ Line(fTimeDelta, fMouse);
}
- POINT ptMouse{};
- GetCursorPos(&ptMouse);
- ScreenToClient(g_hWnd, &ptMouse);
- _float2 fMouse;
- fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
- fMouse.y = -ptMouse.y + (g_iWinSizeY * 0.5f);
+ m_fAngle = atan2(-fFinalMouse.x, fFinalMouse.y);
- fMouse.x = fMouse.x - m_fX;
- fMouse.y = fMouse.y - m_fY;
+ if (m_bBooster == true)
+ {
+ if (m_pGameInstance->Mouse_Down(DIM_LBUTTON))
+ {
+ m_bBooster = false;
+ m_fMoveSpeed = 170.f;
+ static_cast(m_pOwner)->Function_Callback(TEXT("BoosterOn"), &m_Booster);
+ }
+ }
-
- m_fAngle = atan2(-fMouse.x, fMouse.y);
+ if (m_fMoveSpeed >= 105.f)
+ {
+ m_fMoveSpeed -= fTimeDelta * m_fTimeMult;
+ }
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
@@ -150,7 +196,8 @@ void CSpellLearn_MovePointer::Late_Update(_float fTimeDelta)
return;
}
if (m_bVisible) {
- m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ if (m_bHover == true)
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
__super::Late_Update(fTimeDelta);
}
}
@@ -239,6 +286,10 @@ HRESULT CSpellLearn_MovePointer::Ready_Components(void* pArg)
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLeam_LookPointer))))
+ {
+ return E_FAIL;
+ }
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Overlay.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Overlay.cpp
new file mode 100644
index 000000000..bff6981fc
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_Overlay.cpp
@@ -0,0 +1,391 @@
+#include "pch.h"
+#include "SpellLearn_Overlay.h"
+#include "GameInstance.h"
+#include "InfoInstance.h"
+
+CSpellLearn_Overlay::CSpellLearn_Overlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_Overlay::CSpellLearn_Overlay(const CSpellLearn_Overlay& rhs)
+ :CElementObject(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CSpellLearn_Overlay::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Overlay::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 380.f;
+ Desc.fY = -30.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.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_iImageFrameX = 8;
+ m_iImageFrameY = 8;
+ m_fFrame = 0.2f;
+ m_fTimeMult = 3.f;
+ m_fAngle = XMConvertToRadians(-135.f);
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 1.f;
+ m_vUVScale.x = 1.f;
+ m_vUVScale.y = 1.f;
+ m_fCoolTime = 5.f;
+ m_fSortZ = 0.01f;
+ m_fMoveSpeed = 10.f;
+ m_fLerpX = 600.f;
+ m_fLerpY = 100.f;
+ m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ Compute_UI(5);
+ return S_OK;
+}
+
+void CSpellLearn_Overlay::Set_SpellLearn(_int Index)
+{
+ Compute_UI(m_pInfoInstance->Get_SpellLearn(Index).iSpellID);
+ m_vUVScale.y = 0.f;
+ m_fTrail = 0.f;
+ m_iSpellType = m_pInfoInstance->Get_SpellLearn(Index).iSpellType;
+ m_fSpellLearn = _float(m_pInfoInstance->Get_SpellLearn(Index).Lines.size());
+ MoveX(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.x);
+ MoveY(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.y);
+ SizeUpdate(m_fOrigin_Size.x, m_fOrigin_Size.y);
+ m_fSizeUp = false;
+ m_bClear = false;
+}
+
+void CSpellLearn_Overlay::Set_Count(_int Index)
+{
+ m_fTrail = _float(Index);
+}
+
+void CSpellLearn_Overlay::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_Overlay::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ 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;
+ }
+ }
+
+ Update_Trail(fTimeDelta);
+
+ if (m_bClear == true)
+ {
+ SizeUp(fTimeDelta * m_fTimeMult * m_fMoveSpeed);
+ }
+
+ if (m_fSizeUp == true)
+ {
+ if (Start_Lerp(fTimeDelta * m_fTimeMult * m_fMoveSpeed) == true)
+ {
+ m_fSizeUp = false;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_Overlay::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpellLearn_Overlay::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::TYPE))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_Overlay::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_Overlay::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_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 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_fFrame", &m_fFrame, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, 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_iSpellType", &m_iSpellType, sizeof(_int))))
+ {
+ 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_iImageCountX", &m_iImageFrameX, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iImageCountY", &m_iImageFrameY, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaU", &m_vUVScale.x, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaV", &m_vUVScale.y, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoolTime", &m_fCoolTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Overlay::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemBack_4K"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_spellmeter_Generic"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Spell"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_tillingSmokes"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CSpellLearn_Overlay::Clear()
+{
+ m_vUVScale.y = 1.5f;
+ m_bClear = true;
+}
+
+void CSpellLearn_Overlay::Compute_UI(_uint SpellID)
+{
+ _float2 fImage_Size = { 1024.f, 1792.f };
+
+ _uint iCountX = 4;
+ _uint iCountY = 6;
+
+ _float iImageX = 256.f;
+ _float iImageY = 256.f;
+
+ _uint iframeX = SpellID % iCountX;
+ _uint iframeY = SpellID / iCountX;
+
+ _float2 UVStart;
+ UVStart.x = iframeX * iImageX / fImage_Size.x;
+ UVStart.y = iframeY * iImageY / fImage_Size.y;
+
+ _float2 UVEnd;
+ UVEnd.x = UVStart.x + (iImageX / fImage_Size.x);
+ UVEnd.y = UVStart.y + (iImageY / fImage_Size.y);
+
+ _float4 UV = _float4{ UVStart.x, UVStart.y, UVEnd.x, UVEnd.y };
+ m_vUV = UV;
+}
+
+void CSpellLearn_Overlay::Update_Trail(_float fTimeaDalta)
+{
+ m_vUVScale.y = CMyTools::Lerp_f1D(m_vUVScale.y, m_fTrail / m_fSpellLearn * 1.06f, fTimeaDalta * m_fMoveSpeed);
+}
+
+void CSpellLearn_Overlay::SizeUp(_float fSizeX)
+{
+ m_fSizeX += fSizeX;
+ m_fSizeY += fSizeX;
+
+ if (160.f <= m_fSizeX + fSizeX)
+ {
+ m_fSizeX = 160.f;
+ m_fSizeY = 160.f;
+ m_bClear = false;
+ m_fSizeUp = true;
+ static_cast(m_pOwner)->Function_Callback(TEXT("OverrlayClear"));
+ }
+}
+
+CSpellLearn_Overlay* CSpellLearn_Overlay::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_Overlay* pInstance = new CSpellLearn_Overlay(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_Overlay");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_Overlay::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_Overlay* pInstance = new CSpellLearn_Overlay(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Overlay");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_Overlay::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pDiffuse_TextureCom3);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpellLearn_Overlay::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp
index ff5a40be3..b01e080f1 100644
--- a/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp
@@ -4,7 +4,11 @@
#include "SpellLearn_Name.h"
#include "SpellLearn.h"
#include "SpellLearn_MovePointer.h"
+#include "SPellLearn_ChaserPointer.h"
#include "SpellLearn_Data.h"
+#include "SpellLearn_Booster.h"
+#include "SpellLearn_Slot.h"
+#include "SpellLearn_Overlay.h"
#include "InfoInstance.h"
CSpellLearn_Panel::CSpellLearn_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -47,11 +51,45 @@ HRESULT CSpellLearn_Panel::Initialize(void* pArg)
m_fCanvasAlpha = 1.f;
m_fSortZ = 0.05f;
m_fDelayTime = 1.f;
+ static_cast(m_pSpellLearn)->Set_Pointer(
+ static_cast(m_pSpellLearn_MovePointer),
+ static_cast(m_pSpellLearn_ChaserPointer));
+
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ static_cast(m_pBooster[i])->Move(m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[0],
+ m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[1]);
+ }
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ m_PointerStates.push_back(m_State);
+ m_ChaseStates.push_back(m_State);
+ }
+ static_cast(m_pSpellLearn_Overlay)->Set_SpellLearn(0);
+ static_cast(m_pSpellLearn_Slot)->Set_SpellLearn(0);
Visible(true);
ElementAllVisible(true);
return S_OK;
}
+void CSpellLearn_Panel::Set_Learn(_int Index)
+{
+ m_fTime = 0.f;
+ static_cast(m_pSpellLearn)->Change_Image(Index);
+ static_cast(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index);
+ static_cast(m_pSpellLearn_ChaserPointer)->Set_SpellLearn(Index);
+ static_cast(m_pSpellLearn_Name)->Set_Name(Index);
+ static_cast(m_pSpellLearn_Overlay)->Set_SpellLearn(Index);
+ static_cast(m_pSpellLearn_Slot)->Set_SpellLearn(Index);
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ static_cast(m_pBooster[i])->Move(
+ m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[0],
+ m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[1]);
+ static_cast(m_pBooster[i])->Reset();
+ }
+}
+
void CSpellLearn_Panel::Priority_Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
@@ -78,11 +116,90 @@ void CSpellLearn_Panel::Update(_float fTimeDelta)
{
Index++;
}
- static_cast(m_pSpellLearn)->Change_Image(Index);
- static_cast(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index);
- static_cast(m_pSpellLearn_Name)->Set_Name(Index);
+ Set_Learn(Index);
}
+ if (static_cast(m_pSpellLearn_MovePointer)->Get_MoveStart() == true)
+ {
+ m_fTime += fTimeDelta;
+
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ m_PointerStates[i].bPerHit = m_PointerStates[i].bHit;
+
+ _bool bPointer = Chack_Element(static_cast(m_pBooster[i])->Get_Position(),
+ static_cast(m_pSpellLearn_MovePointer)->Get_Position(),
+ static_cast(m_pSpellLearn_MovePointer)->Get_Current_Size().x,
+ static_cast(m_pSpellLearn_MovePointer)->Get_Current_Size().x);
+
+ m_PointerStates[i].bHit = bPointer;
+
+ if (m_PointerStates[i].bHit == true && m_PointerStates[i].bPerHit == false)
+ {
+ m_Booster.iBoosterIndex = _int(i);
+ m_Booster.bBoosterOn = true;
+ Function_Callback(TEXT("Booster"), &m_Booster);
+ }
+
+ if (m_PointerStates[i].bHit == false && m_PointerStates[i].bPerHit == true)
+ {
+ m_Booster.iBoosterIndex = _int(i);
+ m_Booster.bBoosterOn = false;
+ Function_Callback(TEXT("Booster"), &m_Booster);
+ }
+ }
+
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ m_ChaseStates[i].bPerHit = m_ChaseStates[i].bHit;
+
+ _bool bPointer = Chack_Element(static_cast(m_pBooster[i])->Get_Position(),
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Position(),
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x,
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x);
+
+ m_ChaseStates[i].bHit = bPointer;
+
+ if (m_ChaseStates[i].bHit == true && m_ChaseStates[i].bPerHit == false)
+ {
+ m_Booster.iBoosterIndex = _int(i);
+ m_Booster.bBoosterOn = true;
+ Function_Callback(TEXT("BoosterOff"), &m_Booster);
+ }
+
+ static_cast(m_pSpellLearn_Overlay)->Set_Count(
+ static_cast(m_pSpellLearn_MovePointer)->Get_SpellTrail());
+
+ }
+
+ if (m_fTime >= 1.f)
+ {
+ static_cast(m_pSpellLearn_ChaserPointer)->Set_FadeIn();
+ }
+
+ if (m_fTime >= 2.f)
+ {
+ static_cast(m_pSpellLearn_ChaserPointer)->Set_Move();
+
+ if (_bool bPointer = Chack_Element(static_cast(m_pSpellLearn_MovePointer)->Get_Position(),
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Position(),
+ static_cast(m_pSpellLearn_MovePointer)->Get_Current_Size().x,
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x) == true)
+ {
+ Set_Learn(Index);
+
+ m_Booster.iBoosterIndex = _int(-1);
+ m_Booster.bBoosterOn = false;
+ Function_Callback(TEXT("Booster"), &m_Booster);
+ for (size_t i = 0; i < m_PointerStates.size(); ++i)
+ {
+ m_PointerStates[i].bPerHit = false;
+ m_PointerStates[i].bHit = false;
+ }
+ }
+
+ }
+ }
__super::Update(fTimeDelta);
}
@@ -204,6 +321,36 @@ HRESULT CSpellLearn_Panel::Ready_Element(void* pArg)
}
Add_Element(TEXT("SpellLearn_MovePointer"), m_pSpellLearn_MovePointer);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_ChaserPointer))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("SPellLeam_ChaserPointer"), m_pSpellLearn_ChaserPointer);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Slot))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("SpellLearn_Slot"), m_pSpellLearn_Slot);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Overlay))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("SpellLearn_Overlay"), m_pSpellLearn_Overlay);
+
+ for (_int i = 0; i < 3; ++i)
+ {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Booster))))
+ {
+ return E_FAIL;
+ }
+
+ static_cast(m_pSpellLearn_Booster)->Set_Index(i);
+
+ m_pBooster.push_back(m_pSpellLearn_Booster);
+ }
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Slot.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Slot.cpp
new file mode 100644
index 000000000..5fcebb92a
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_Slot.cpp
@@ -0,0 +1,287 @@
+#include "pch.h"
+#include "SpellLearn_Slot.h"
+#include "GameInstance.h"
+#include "InfoInstance.h"
+
+CSpellLearn_Slot::CSpellLearn_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_Slot::CSpellLearn_Slot(const CSpellLearn_Slot& rhs)
+ :CElementObject(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CSpellLearn_Slot::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Slot::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 380.f;
+ Desc.fY = -30.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.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_fAngle = XMConvertToRadians(135.f);
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 1.f;
+ m_fMoveSpeed = 10.f;
+ m_fLerpX = 600.f;
+ m_fLerpY = 100.f;
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ return S_OK;
+}
+
+void CSpellLearn_Slot::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_Slot::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ 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;
+ }
+ }
+
+ if (m_bClear == true)
+ {
+ SizeUp(fTimeDelta * m_fTimeMult * m_fMoveSpeed);
+ }
+
+ if (m_fSizeUp == true)
+ {
+ if (Start_Lerp(fTimeDelta * m_fTimeMult * m_fMoveSpeed) == true)
+ {
+ m_fSizeUp = false;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_Slot::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpellLearn_Slot::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SLOT))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_Slot::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_Slot::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_fAngle", &m_fAngle, 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_iSpellType", &m_iSpellType, sizeof(_int))))
+ {
+ 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_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Slot::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_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;
+}
+
+void CSpellLearn_Slot::Set_SpellLearn(_int Index)
+{
+ MoveX(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.x);
+ MoveY(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.y);
+ SizeUpdate(m_fOrigin_Size.x, m_fOrigin_Size.y);
+ m_fSizeUp = false;
+ m_bClear = false;
+}
+
+void CSpellLearn_Slot::Clear()
+{
+ m_bClear = true;
+}
+
+void CSpellLearn_Slot::SizeUp(_float fSizeX)
+{
+ m_fSizeX += fSizeX;
+ m_fSizeY += fSizeX;
+
+ if (160.f <= m_fSizeX + fSizeX)
+ {
+ m_fSizeX = 160.f;
+ m_fSizeY = 160.f;
+ m_bClear = false;
+ m_fSizeUp = true;
+ }
+}
+
+CSpellLearn_Slot* CSpellLearn_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_Slot* pInstance = new CSpellLearn_Slot(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_Slot");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_Slot::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_Slot* pInstance = new CSpellLearn_Slot(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_Slot");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_Slot::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpellLearn_Slot::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/State_Fall.cpp b/Jusin154_Team3D/Client/Private/State_Fall.cpp
new file mode 100644
index 000000000..a04e7894f
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/State_Fall.cpp
@@ -0,0 +1,64 @@
+#include "pch.h"
+#include "State_Fall.h"
+#include "Unit.h"
+
+
+CState_Fall::CState_Fall()
+ :CState_Root()
+{
+}
+
+void CState_Fall::Enter()
+{
+ __super::Enter();
+}
+
+HRESULT CState_Fall::Update(_float fTimeDelta)
+{
+ if (nullptr != m_funcPriorityUpdate) {
+ m_funcPriorityUpdate(fTimeDelta);
+ }
+ if (FAILED(__super::Update(fTimeDelta))) {
+ return E_FAIL;
+ }
+ if (nullptr != m_funcLateUpdate) {
+ m_funcLateUpdate(fTimeDelta);
+ }
+ return S_OK;
+}
+
+void CState_Fall::Exit()
+{
+ __super::Exit();
+}
+
+HRESULT CState_Fall::Initialize(STATE_FALL_DESC* pDesc)
+{
+ if (FAILED(__super::Initialize(pDesc))) {
+ return E_FAIL;
+ }
+ m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
+ m_funcLateUpdate = pDesc->funcLateUpdate;
+ m_pModel = m_pOwner->Get_Component();
+ m_pFSM = m_pOwner->Get_Component();
+
+ return S_OK;
+}
+
+CState_Fall* CState_Fall::Create(STATE_FALL_DESC* pDesc)
+{
+ CState_Fall* pInstance = new CState_Fall;
+ if (FAILED(pInstance->Initialize(pDesc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CState_Fall::Free()
+{
+ __super::Free();
+}
+
+void CState_Fall::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Transformation.cpp b/Jusin154_Team3D/Client/Private/Transformation.cpp
index c21827c0b..c6162eae1 100644
--- a/Jusin154_Team3D/Client/Private/Transformation.cpp
+++ b/Jusin154_Team3D/Client/Private/Transformation.cpp
@@ -202,8 +202,6 @@ void CTransformation::OnCollision(CGameObject* pOther, void* pDesc)
if (m_bHit == false)
return;
-
-
ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
CCharacter_Controller* pCCT = CollisionDesc.pObject->Get_Component();
diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp
index 25420d13a..fb8948a69 100644
--- a/Jusin154_Team3D/Client/Private/Troll.cpp
+++ b/Jusin154_Team3D/Client/Private/Troll.cpp
@@ -461,7 +461,7 @@ HRESULT CTroll::Ready_Components()
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());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_TROLL"), (CComponent**)&m_pStat))) {
diff --git a/Jusin154_Team3D/Client/Public/CallBack_NonPlayable_Behavior.h b/Jusin154_Team3D/Client/Public/CallBack_NonPlayable_Behavior.h
new file mode 100644
index 000000000..91b97d1cc
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/CallBack_NonPlayable_Behavior.h
@@ -0,0 +1,42 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "GameObject.h"
+
+NS_BEGIN(Client)
+
+class CCallBack_NonPlayable_Behavior final : public PSX::PxControllerBehaviorCallback
+{
+ // 구현 예시
+ // CCT는 RigidBody의 PxSimulationEventCallback에 안걸리고, 이 전용 콜백에서 처리되는 구조임
+ //
+ // PxUserControllerHitReport = "무엇과 부딪혔는지 알려줌(이벤트 알림)"
+ // PxControllerBehaviorCallback = "부딪힌 것에 대해 어떤 행동 정책을 쓸지 물어봄(질의)"
+ // PxSimulationEventCallback = "씬 전체에 대한 글로벌 콜백(일반 물리 이벤트)"
+private:
+ CCallBack_NonPlayable_Behavior();
+public:
+ ~CCallBack_NonPlayable_Behavior();
+
+public:
+ // PxControllerBehaviorCallback을(를) 통해 상속됨
+ // 충돌알림이 아닌, 행동정책 정해주기. CCT vs CCT는 지원안함
+ // slopeLimit로 미끄러져 갈 수 있는지 없는지 이분법적인 계산 대신, 원하는 물체에 대해서만 미끄러운 표면으로 정의해줌
+ // 주인이 되는 CCT가 이 물체에 대해 이 물체를 어떻게 해야 할까? -> (타고 올라갈까? Ride?) (미끄러져갈까? Slide?) ( 직접 내가 구현할까? user defined ride? )
+ virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxShape& shape, const PSX::PxActor& actor) override;
+
+ virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxController& controller) override;
+
+ virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxObstacle& obstacle) override;
+
+public:
+ HRESULT Initialize(CCharacter_Controller* pController);
+ HRESULT Finalize();
+private:
+ CCharacter_Controller* m_pController = { nullptr };
+ CGameInstance* m_pGameInstance = { nullptr };
+
+public:
+ static CCallBack_NonPlayable_Behavior* Create();
+};
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/CallBack_NonPlayable_HitReport.h b/Jusin154_Team3D/Client/Public/CallBack_NonPlayable_HitReport.h
new file mode 100644
index 000000000..dcb1be3bd
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/CallBack_NonPlayable_HitReport.h
@@ -0,0 +1,50 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "GameObject.h"
+
+NS_BEGIN(Client)
+
+class CCallBack_NonPlayable_HitReport final : public PSX::PxUserControllerHitReport
+{
+ // 구현 예시
+ // CCT는 RigidBody의 PxSimulationEventCallback에 안걸리고, 이 전용 콜백에서 처리되는 구조임
+ //
+ // PxUserControllerHitReport = "무엇과 부딪혔는지 알려줌(이벤트 알림)"
+ // PxControllerBehaviorCallback = "부딪힌 것에 대해 어떤 행동 정책을 쓸지 물어봄(질의)"
+ // PxSimulationEventCallback = "씬 전체에 대한 글로벌 콜백(일반 물리 이벤트)"
+private:
+ CCallBack_NonPlayable_HitReport();
+public:
+ ~CCallBack_NonPlayable_HitReport();
+
+ void BeginFrame();
+
+public:
+ // PxUserControllerHitReport을(를) 통해 상속됨
+ // 충돌알림!!
+ // 주인이 되는 CCT가 이 물체에 대해 어떻게 반응해야 할까?
+ virtual void onShapeHit(const PSX::PxControllerShapeHit& hit) override; // statc, rigid 등과 부딪힌 경우
+
+ virtual void onControllerHit(const PSX::PxControllersHit& hit) override; // 다른 CCT와 부딪힌 경우
+
+ virtual void onObstacleHit(const PSX::PxControllerObstacleHit& hit) override; // 사용자 정의 장애물과 부딪힌 경우
+
+ void Set_CurrentSlop();
+
+public:
+ HRESULT Initialize(CCharacter_Controller* pController);
+ HRESULT Finalize();
+ _bool IsOnGround();
+ _vector Get_GroundVector();
+private:
+ CCharacter_Controller* m_pController = { nullptr };
+ CGameInstance* m_pGameInstance = { nullptr };
+
+ _float3 m_vClimbNormal = { 0.f, 1.f, 0.f };
+ _float m_fBestNormal = { 0.f };
+ _bool m_bGroundHit = { false };
+public:
+ static CCallBack_NonPlayable_HitReport* Create();
+};
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index 200110b3e..2428c25c1 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -19,8 +19,8 @@ namespace Client
REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER,
SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
- SPELL_LEARN,
- ENEMY_DETECTION, INTERACTION_OBJECT, END };
+ SPELL_LEARN, SPELLLEARNCOLOR, SPELLLEARNBOOSTER,
+ ENEMY_DETECTION, INTERACTION_OBJECT, END};
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
enum class SHADER_PASS_NPC_PBR_ANIM {
diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h
index b7939626d..d3986ed7d 100644
--- a/Jusin154_Team3D/Client/Public/Client_Struct.h
+++ b/Jusin154_Team3D/Client/Public/Client_Struct.h
@@ -40,6 +40,7 @@ namespace Client
typedef struct tagLockOnInfo {
CUnit* pUnit = { nullptr };
class CMapElement_Interactable* pInteractive = { nullptr };
+ class CMapElement_Chest* pChest = { nullptr };
}LOCKON_INFO;
typedef struct tagUnitInfo
@@ -93,10 +94,14 @@ namespace Client
typedef struct tagSpellLearnInfo
{
- _wstring pSpellName{};
- _wstring pImageName{};
- _float fSpellSize{};
- _float2 fStartPosition{};
+ _wstring pSpellName{};
+ _wstring pImageName{};
+ _int iSpellID{};
+ _int iSpellType{};
+ _float fSpellSize{};
+ _float2 fStartPosition{};
+ _float2 fEndPosition{};
+ vector<_vector> Booster;
vector<_vector> Lines;
}SPELLLEARNINFO;
diff --git a/Jusin154_Team3D/Client/Public/Level_Field.h b/Jusin154_Team3D/Client/Public/Level_Field.h
index 4e131b6b6..880a29d7d 100644
--- a/Jusin154_Team3D/Client/Public/Level_Field.h
+++ b/Jusin154_Team3D/Client/Public/Level_Field.h
@@ -26,11 +26,13 @@ class CLevel_Field final : public CLevel
HRESULT Ready_Layer_SkyBox();
HRESULT Ready_Background();
HRESULT Ready_Markers();
+ HRESULT Ready_Layer_Player(const _wstring& strLayerTag);
HRESULT Ready_Layer_UI(const _wstring& strLayerTag);
HRESULT Ready_Layer_Camera();
HRESULT Ready_Layer_Sound();
HRESULT Ready_Layer_Effect(const _wstring& strLayerTag);
HRESULT Ready_Layer_Monster();
+ HRESULT Reday_Layer_EffectPool();
public:
static pair> Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg);
diff --git a/Jusin154_Team3D/Client/Public/Magic_Item.h b/Jusin154_Team3D/Client/Public/Magic_Item.h
index e2df4a2e4..b0a653622 100644
--- a/Jusin154_Team3D/Client/Public/Magic_Item.h
+++ b/Jusin154_Team3D/Client/Public/Magic_Item.h
@@ -34,27 +34,19 @@ class CMagic_Item final : public CElementObject
private:
void Compute_UV(_uint iItemID);
void Compute_Image();
+
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
CTexture* m_pDiffuse_TextureCom3 = { nullptr };
- CTexture* m_pDiffuse_TextureCom4 = { nullptr };
- CTexture* m_pDiffuse_TextureCom5 = { nullptr };
- CTexture* m_pDiffuse_TextureCom6 = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
_float4 m_vUV{};
_uint m_iArratCount{};
- _float2 m_vImageSize1 = {};
- _float2 m_vImagePos1 = {};
- _float2 m_vImageSize2 = {};
- _float2 m_vImagePos2 = {};
-
- _int m_iPotionIndex{};
- _int m_iPerPotionIndex{};
- _wstring m_strPotion;
+ _float4 m_vImageposi1 = {};
+ _float4 m_vImageposi2 = {};
public:
static CMagic_Item* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Client/Public/NPC_EleazarFig.h b/Jusin154_Team3D/Client/Public/NPC_EleazarFig.h
new file mode 100644
index 000000000..8529509dd
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/NPC_EleazarFig.h
@@ -0,0 +1,40 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Unit.h"
+
+NS_BEGIN(Client)
+
+class CNPC_EleazarFig final : public CUnit
+{
+protected:
+ CNPC_EleazarFig(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CNPC_EleazarFig(const CNPC_EleazarFig& Prototype);
+ virtual ~CNPC_EleazarFig() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+ virtual HRESULT Render() override;
+ virtual HRESULT Render_Shadow(SHADOW eType) override;
+protected:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+
+protected:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ HRESULT Ready_Components(void* pArg);
+ HRESULT Bind_ShaderResources() override;
+
+public:
+ static CNPC_EleazarFig* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr);
+ virtual void Free() override;
+#ifdef _DEBUG
+ virtual void Describe_Entity() override;
+
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/NPC_Ollivander.h b/Jusin154_Team3D/Client/Public/NPC_Ollivander.h
index 16a511bc8..97af286d0 100644
--- a/Jusin154_Team3D/Client/Public/NPC_Ollivander.h
+++ b/Jusin154_Team3D/Client/Public/NPC_Ollivander.h
@@ -19,13 +19,22 @@ class CNPC_Ollivander final : public CUnit
virtual HRESULT Render() override;
virtual HRESULT Render_Shadow(SHADOW eType) override;
protected:
- CInfoInstance* m_pInfoInstance = { nullptr };
+ CInfoInstance* m_pInfoInstance = { nullptr };
+ CCharacter_Controller* m_pCharacter_Controller = { nullptr };
+ class CCallBack_NonPlayable_Behavior* m_pCallBack_Behavior = { nullptr };
+ class CCallBack_NonPlayable_HitReport* m_pCallBack_HitReport = { nullptr };
+ CUnit* m_pPlayerAllyUnit = { nullptr };
+
+ _bool m_bEntered = { false };
+ _float2 m_vEnteringTimer = { 0.f, 1.f };
+ _float m_fEncounterDistance = { 10.f };
protected:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
HRESULT Ready_Components(void* pArg);
HRESULT Bind_ShaderResources() override;
+ _bool CastToPlayer();
public:
static CNPC_Ollivander* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h
index e7d27c801..0bc2ef9aa 100644
--- a/Jusin154_Team3D/Client/Public/Player.h
+++ b/Jusin154_Team3D/Client/Public/Player.h
@@ -7,6 +7,11 @@ NS_BEGIN(Client)
class CPlayer final : public CUnit
{
+public:
+ typedef struct tagPlayerInitDesc {
+ _float4 vPos;
+ _float4 vRotQ;
+ }PLAYERDESC;
private:
CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CPlayer(const CPlayer& Prototype);
@@ -75,6 +80,7 @@ class CPlayer final : public CUnit
void ReLockOnTarget();
void SetGravity();
void Add_SpellEvent(_uint AnimIndex, _float fRatio);
+ void Play_SpellHitAnim();
void Update_CameraCoordinateSystem(_float fTimeDelta);
#ifdef _DEBUG
@@ -163,6 +169,10 @@ class CPlayer final : public CUnit
HRESULT Behavior_LandExitCheck(_float fTimeDelta);
void Behavior_LandExit();
+ void Behavior_FallEnter();
+ HRESULT Behavior_FallExitCheck(_float fTimeDelta);
+ void Behavior_FallExit();
+
void Behavior_DodgeEnter();
HRESULT Behavior_DodgeExitCheck(_float fTimeDelta);
void Behavior_DodgeExit();
diff --git a/Jusin154_Team3D/Client/Public/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h
index c0a2b7f16..3a21dddcd 100644
--- a/Jusin154_Team3D/Client/Public/Ranrok.h
+++ b/Jusin154_Team3D/Client/Public/Ranrok.h
@@ -19,6 +19,18 @@ class CRanrok final : public CMonster
RUSH,
END
};
+ enum class RANROK_MESH_ORDER {
+ ETHEREAL_HOT_SPINE,
+ ETHEREAL_HOT_WINGS,
+ ETHEREAL_HOT_ARMS,
+ ETHEREAL_HOT_SHELL,
+ ETHEREAL_AURA,
+ ETHEREAL_EYES,
+ ETHEREAL_WINGS,
+ WINGS,
+ BODY,
+ END
+ };
enum class RANROK_PHASE
{
@@ -49,6 +61,8 @@ class CRanrok final : public CMonster
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
class CEffectPool* m_pEffectPool = nullptr;
_float2 m_vStunTimer = { 0.f, 4.f };
+ _float2 m_vAuraTimer = { 0.f, 0.16f };
+ _float2 m_vEtherealTimer = { 0.f, 0.16f };
_uint iIndex;
DAMAGE_INFO m_DamageInfo;
@@ -58,6 +72,8 @@ class CRanrok final : public CMonster
HRESULT Ready_Components();
HRESULT Ready_Parts();
HRESULT Bind_ShaderResources();
+ HRESULT Render_Nonblend();
+ HRESULT Render_Blend();
void MoveTo(_float fTimeDelta);
void AroundPoint(_float fTimeDelta);
HRESULT Load_RanrokPos(const _char* pFilePath);
diff --git a/Jusin154_Team3D/Client/Public/SpellLearn.h b/Jusin154_Team3D/Client/Public/SpellLearn.h
index 2e8e8f361..9f05f27b6 100644
--- a/Jusin154_Team3D/Client/Public/SpellLearn.h
+++ b/Jusin154_Team3D/Client/Public/SpellLearn.h
@@ -33,6 +33,10 @@ class CSpellLearn final : public CElementObject
public:
HRESULT Change_Image(_int SpellID);
+ void Set_Pointer(class CSpellLearn_MovePointer* Pointer, class CSpellLearn_ChaserPointer* Chase);
+
+private:
+ void Clear();
private:
CInfoInstance* m_pInfoInstance = { nullptr };
@@ -42,6 +46,25 @@ class CSpellLearn final : public CElementObject
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ class CSpellLearn_MovePointer* m_pPointer = { nullptr };
+ class CSpellLearn_ChaserPointer* m_pChasePointer = { nullptr };
+
+ _float2 m_vPointerPosition{};
+ _float3 m_vPointerScale{};
+
+ _float2 m_vChasePosition{};
+ _float3 m_vChaseScale{};
+
+ _bool m_bReset{};
+
+ _int m_iIndex{};
+ _int m_iTrailIndex{};
+ vector<_float2> m_Trail;
+
+ _int m_iChaseiTrailIndex{};
+ vector<_float2> m_ChaseTrail;
+ vector<_vector> m_MoveLine;
+
public:
static CSpellLearn* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Client/Public/SpellLearn_Booster.h b/Jusin154_Team3D/Client/Public/SpellLearn_Booster.h
new file mode 100644
index 000000000..14d8dcabc
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/SpellLearn_Booster.h
@@ -0,0 +1,72 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CSpellLearn_Booster final : public CElementObject
+{
+private:
+ struct Booster
+ {
+ _bool bBoosterOn = { false };
+ _int iBoosterIndex{};
+ };
+private:
+ CSpellLearn_Booster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_Booster(const CSpellLearn_Booster& rhs);
+ virtual ~CSpellLearn_Booster() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void BoosterOn(void* pArg);
+ void BoosterOff(void* pArg);
+
+ void Set_Index(_int iIndex);
+ void Reset();
+
+private:
+ void Clear();
+
+private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom3 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _bool m_bBoosterOn = { false };
+ _bool m_bBoosterOff = { false };
+ _float4 m_fImagePosi{};
+ _int m_iIndex{};
+public:
+ static CSpellLearn_Booster* 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/SpellLearn_ChaserPointer.h b/Jusin154_Team3D/Client/Public/SpellLearn_ChaserPointer.h
new file mode 100644
index 000000000..985b4bb2d
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/SpellLearn_ChaserPointer.h
@@ -0,0 +1,65 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CSpellLearn_ChaserPointer final : public CElementObject
+{
+private:
+ CSpellLearn_ChaserPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_ChaserPointer(const CSpellLearn_ChaserPointer& rhs);
+ virtual ~CSpellLearn_ChaserPointer() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_SpellLearn(_int Index);
+ void Set_Move();
+private:
+ void Line(_float fTime);
+ void SpeedUp();
+ void Clear();
+
+private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+
+ _bool m_bMoveStart = { false };
+
+ _int m_iLineIndex{};
+ _int m_iCurrentLine{};
+ vector<_vector> m_MoveLine;
+
+public:
+ static CSpellLearn_ChaserPointer* 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/SpellLearn_LookPointer.h b/Jusin154_Team3D/Client/Public/SpellLearn_LookPointer.h
new file mode 100644
index 000000000..34d128575
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/SpellLearn_LookPointer.h
@@ -0,0 +1,59 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CSpellLearn_LookPointer final : public CElementObject
+{
+private:
+ CSpellLearn_LookPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_LookPointer(const CSpellLearn_LookPointer& rhs);
+ virtual ~CSpellLearn_LookPointer() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_SpellLearn(_int Index);
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+
+ _bool m_bMoveStart = { false };
+
+ _int m_iLineIndex{};
+ _int m_iCurrentLine{};
+ vector<_vector> m_MoveLine;
+ _float m_localX{};
+ _float m_localY{};
+public:
+ static CSpellLearn_LookPointer* 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/SpellLearn_MovePointer.h b/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h
index a467bb9b9..b1ed7965d 100644
--- a/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h
+++ b/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h
@@ -13,6 +13,12 @@ NS_BEGIN(Client)
class CSpellLearn_MovePointer final : public CElementObject
{
+private:
+ struct Booster
+ {
+ _bool bBoosterOn = { false };
+ _int iBoosterIndex{};
+ };
private:
CSpellLearn_MovePointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CSpellLearn_MovePointer(const CSpellLearn_MovePointer& rhs);
@@ -33,8 +39,12 @@ class CSpellLearn_MovePointer final : public CElementObject
public:
void Set_SpellLearn(_int Index);
+ _int Get_SpellTrail();
+ _bool Get_MoveStart();
private:
- void Line(_float fTime);
+ void Line(_float fTime, _float2 fMouse);
+
+ void Set_Booster(void* pArg);
private:
@@ -43,11 +53,17 @@ class CSpellLearn_MovePointer final : public CElementObject
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ class SpellLearm_LookPointer* m_pSpellLeam_LookPointer = { nullptr };
+
_bool m_bMoveStart = { false };
+ _bool m_bBooster = { false };
+
+ Booster m_Booster;
_int m_iLineIndex{};
_int m_iCurrentLine{};
vector<_vector> m_MoveLine;
+ vector<_vector> m_Boosters;
public:
static CSpellLearn_MovePointer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/SpellLearn_Overlay.h b/Jusin154_Team3D/Client/Public/SpellLearn_Overlay.h
new file mode 100644
index 000000000..578c725b7
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/SpellLearn_Overlay.h
@@ -0,0 +1,72 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CSpellLearn_Overlay final : public CElementObject
+{
+private:
+ CSpellLearn_Overlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_Overlay(const CSpellLearn_Overlay& rhs);
+ virtual ~CSpellLearn_Overlay() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_SpellLearn(_int Index);
+ void Set_Count(_int Index);
+
+private:
+ void Clear();
+ void Compute_UI(_uint SpellID);
+ void Update_Trail(_float fTimeaDalta);
+ void SizeUp(_float fSizeX);
+private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom3 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iImageFrameX{};
+ _int m_iImageFrameY{};
+ _float m_fFrame{};
+ _float4 m_vUV{};
+
+ _float m_fSpellLearn{};
+ _float m_fTrail{};
+ _float m_fTargetTrail{};
+ _bool m_bClear = { false };
+ _bool m_fSizeUp = { false };
+public:
+ static CSpellLearn_Overlay* 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/SpellLearn_Panel.h b/Jusin154_Team3D/Client/Public/SpellLearn_Panel.h
index 4d6a891bf..79535e13b 100644
--- a/Jusin154_Team3D/Client/Public/SpellLearn_Panel.h
+++ b/Jusin154_Team3D/Client/Public/SpellLearn_Panel.h
@@ -13,7 +13,17 @@ NS_BEGIN(Client)
class CSpellLearn_Panel final : public CPanelObject
{
-
+private:
+ struct Booster
+ {
+ _bool bBoosterOn = { false };
+ _int iBoosterIndex{};
+ };
+ struct State
+ {
+ _bool bHit = { false };
+ _bool bPerHit = { false };
+ };
private:
CSpellLearn_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CSpellLearn_Panel(const CSpellLearn_Panel& rhs);
@@ -33,6 +43,9 @@ class CSpellLearn_Panel final : public CPanelObject
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
+public:
+ void Set_Learn(_int Index);
+
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
@@ -46,10 +59,18 @@ class CSpellLearn_Panel final : public CPanelObject
CGameObject* m_pSpellLearn_Name = { nullptr };
CGameObject* m_pSpellLearn = { nullptr };
CGameObject* m_pSpellLearn_MovePointer = { nullptr };
+ CGameObject* m_pSpellLearn_ChaserPointer = { nullptr };
CGameObject* m_pSpellLearn_Data = { nullptr };
+ CGameObject* m_pSpellLearn_Booster = { nullptr };
+ CGameObject* m_pSpellLearn_Slot = { nullptr };
+ CGameObject* m_pSpellLearn_Overlay = { nullptr };
_int Index{};
-
+ vector m_pBooster;
+ Booster m_Booster;
+ State m_State;
+ vector m_PointerStates;
+ vector m_ChaseStates;
public:
static CSpellLearn_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Client/Public/SpellLearn_Slot.h b/Jusin154_Team3D/Client/Public/SpellLearn_Slot.h
new file mode 100644
index 000000000..e9a1e3e56
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/SpellLearn_Slot.h
@@ -0,0 +1,58 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CSpellLearn_Slot final : public CElementObject
+{
+private:
+ CSpellLearn_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_Slot(const CSpellLearn_Slot& rhs);
+ virtual ~CSpellLearn_Slot() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_SpellLearn(_int Index);
+ void Clear();
+
+private:
+ void SizeUp(_float fSizeX);
+private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _bool m_bClear = { false };
+ _bool m_fSizeUp = { false };
+public:
+ static CSpellLearn_Slot* 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/State_Fall.h b/Jusin154_Team3D/Client/Public/State_Fall.h
new file mode 100644
index 000000000..4362497f9
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/State_Fall.h
@@ -0,0 +1,36 @@
+#pragma once
+#include "Client_Define.h"
+#include "State_Root.h"
+
+NS_BEGIN(Client)
+
+class CState_Fall final : public CState_Root
+{
+public:
+ typedef struct tagFall : public CState_Root::STATE_ROOT_DESC {
+ function funcPriorityUpdate = { nullptr };
+ function funcLateUpdate = { nullptr };
+ }STATE_FALL_DESC;
+public:
+ CState_Fall();
+ virtual ~CState_Fall() = default;
+
+public:
+ virtual void Enter();
+ virtual HRESULT Update(_float fTimeDelta);
+ virtual void Exit();
+
+private:
+ function m_funcPriorityUpdate = { nullptr };
+ function m_funcLateUpdate = { nullptr };
+
+private:
+ HRESULT Initialize(STATE_FALL_DESC* pDesc);
+
+public:
+ static CState_Fall* Create(STATE_FALL_DESC* pDesc);
+ virtual void Free() override;
+ virtual void Describe_Entity();
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/SpellLearn.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/SpellLearn.xml
index a5a168e36..ffe4b05d4 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/SpellLearn.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/SpellLearn.xml
@@ -1,28 +1,256 @@
-
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
@@ -87,9 +315,60 @@
-
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -158,7 +437,58 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -244,10 +574,58 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -336,5 +714,162 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/BaseFlattenNormalMap.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/BaseFlattenNormalMap.png
new file mode 100644
index 000000000..d8e1fd944
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/BaseFlattenNormalMap.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/EleazarFig.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/EleazarFig.xml
new file mode 100644
index 000000000..b9e85f8d1
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/EleazarFig.xml
@@ -0,0 +1,234 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_DefaultGrey_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_DefaultGrey_D.png
new file mode 100644
index 000000000..b414d5691
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_DefaultGrey_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Eye_Iris_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Eye_Iris_D.png
new file mode 100644
index 000000000..4bf9d62f9
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Eye_Iris_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_D.dds
new file mode 100644
index 000000000..24effbef3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_N.dds
new file mode 100644
index 000000000..4d226e763
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_SRXO.dds
new file mode 100644
index 000000000..a404651ed
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_SRXO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld01_Fig_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld01_Fig_D.png
new file mode 100644
index 000000000..86219e012
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld01_Fig_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld01_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld01_N.dds
new file mode 100644
index 000000000..020053e70
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld01_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld0_Fig_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld0_Fig_SRXO.dds
new file mode 100644
index 000000000..70ba29604
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld0_Fig_SRXO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Old_M_Hair_Fig_DAO_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Old_M_Hair_Fig_DAO_MSK.dds
new file mode 100644
index 000000000..a746343df
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Old_M_Hair_Fig_DAO_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Old_M_Hair_Fig_THV_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Old_M_Hair_Fig_THV_MSK.dds
new file mode 100644
index 000000000..576607f3e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Old_M_Hair_Fig_THV_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_A.dds
new file mode 100644
index 000000000..ac3f1439d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_A.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_I.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_I.png
new file mode 100644
index 000000000..98e87023a
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_I.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_IB.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_IB.dds
new file mode 100644
index 000000000..54a2975e6
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_IB.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_N.dds
new file mode 100644
index 000000000..79e7ecc96
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_SRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_SRO.dds
new file mode 100644
index 000000000..3e28dd9d9
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_SRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Clothes_Fig_Lower_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Clothes_Fig_Lower_MSK.dds
new file mode 100644
index 000000000..baf6afa78
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Clothes_Fig_Lower_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Clothes_Fig_Upper_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Clothes_Fig_Upper_MSK.dds
new file mode 100644
index 000000000..afad3582e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Clothes_Fig_Upper_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_D.dds
new file mode 100644
index 000000000..7d916b4ab
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_D.dds
new file mode 100644
index 000000000..361af9a7c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_N.dds
new file mode 100644
index 000000000..8c9b522f3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_SRXO.dds
new file mode 100644
index 000000000..248c4e41d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_SRXO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_D.dds
new file mode 100644
index 000000000..b73a56e1e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_MRO.dds
new file mode 100644
index 000000000..e970db79d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_N.dds
new file mode 100644
index 000000000..8371f50a5
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_MRO.dds
new file mode 100644
index 000000000..9aa0066e7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_N.dds
new file mode 100644
index 000000000..708dbc848
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Wind_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Wind_MSK.dds
new file mode 100644
index 000000000..db303cea4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Wind_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin
index 459598ade..704035228 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:45edbad61d9d6f8891b2009ec64951195a58e0fa50134a9d3b3dd0c5e34bee30
-size 6393892
+oid sha256:93816fc5a683892c7619312ac2ea43b255efd70cbf30141fa615eb5480f3397e
+size 6556632
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.fbx
index 838440947..d43881cfc 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:7fd7b3d203725b7044f2a72e4c7fda5981befcc2c607bfca596b0b6c0797c417
-size 3160204
+oid sha256:0102d6f855f46901fc5f1b291a29f46af1d4cac3baceafeed3a495d1dbbbc5f8
+size 3901724
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander_Anim.bin
deleted file mode 100644
index 16e04855b..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander_Anim.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:4c3d337a05c5621c027dec7cfd5345c13b8c46b243a072d4c8cf5c11d0d34039
-size 12951064
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander_Anim.fbx
deleted file mode 100644
index 0aa5ad418..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander_Anim.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:436a9c2d497061156640f0f2011616d41e0eacb3763eb86d18442bf4e2b4a193
-size 19497756
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin
new file mode 100644
index 000000000..464d8d521
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4a7bc2755dd5fd8440f2acf4ea4a59f9042e30882237691599e5d6ff27559161
+size 33366375
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.fbx
new file mode 100644
index 000000000..b03574243
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6b205034cef08ac10bab09aefd5a276691236401d0337363b5b9842f0324d3d0
+size 60748076
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.xml
new file mode 100644
index 000000000..b82a6a608
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.xml
@@ -0,0 +1,234 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.bin
new file mode 100644
index 000000000..d1fc13983
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1bb288217aae1334cd223e1a0e90918e447f7f3438fd9a26efcc802db9e7820a
+size 128977083
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.fbx
new file mode 100644
index 000000000..67e648a8f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:60b4cf37b01242822d6cf9de693c64c94b28467be9d50cd43fb883202aa01a52
+size 186213084
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/Good64x64TilingNoiseHighFreq.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/Good64x64TilingNoiseHighFreq.png
new file mode 100644
index 000000000..dd63cc9d7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/Good64x64TilingNoiseHighFreq.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Base011_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Base011_MRO.dds
new file mode 100644
index 000000000..0d400fefe
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Base011_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Blank_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Blank_A.dds
new file mode 100644
index 000000000..d02c5d8e2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Blank_A.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Cav_Spid_ThickWeb_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Cav_Spid_ThickWeb_N.dds
new file mode 100644
index 000000000..4a77ba948
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Cav_Spid_ThickWeb_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ColorNoise512_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ColorNoise512_D.png
new file mode 100644
index 000000000..c20422c41
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ColorNoise512_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_D.dds
new file mode 100644
index 000000000..fe2a81196
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_MRO.dds
new file mode 100644
index 000000000..0039d9606
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_MSK.dds
new file mode 100644
index 000000000..cabad19bb
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_N.dds
new file mode 100644
index 000000000..19ff15405
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_D.dds
new file mode 100644
index 000000000..b9d4dfb8f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_MRO.dds
new file mode 100644
index 000000000..8bd817f14
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_MSK.dds
new file mode 100644
index 000000000..6a1a899c3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_N.dds
new file mode 100644
index 000000000..1911e3bf3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_CorruptedSpider_Eye_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_CorruptedSpider_Eye_D.dds
new file mode 100644
index 000000000..85e252a4f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_CorruptedSpider_Eye_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_DragonEye_Iris_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_DragonEye_Iris_D.png
new file mode 100644
index 000000000..059dcf656
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_DragonEye_Iris_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Forageable_Horklump_Gradient_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Forageable_Horklump_Gradient_D.png
new file mode 100644
index 000000000..dc7dc8c70
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Forageable_Horklump_Gradient_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_GlassNoise_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_GlassNoise_D.dds
new file mode 100644
index 000000000..077312fd4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_GlassNoise_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_WaterCaustics_Disorder_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_WaterCaustics_Disorder_A.dds
new file mode 100644
index 000000000..f5f05435a
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_WaterCaustics_Disorder_A.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_CausticNoise_C_Seamless_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_CausticNoise_C_Seamless_D.png
new file mode 100644
index 000000000..2c3d57910
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_CausticNoise_C_Seamless_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_ConjuredDragonWing_M.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_ConjuredDragonWing_M.dds
new file mode 100644
index 000000000..a0efacb20
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_ConjuredDragonWing_M.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_GooBlob_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_GooBlob_E.png
new file mode 100644
index 000000000..fb634dc66
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_GooBlob_E.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_GooBlob_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_GooBlob_N.dds
new file mode 100644
index 000000000..a245fa9fb
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_GooBlob_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_MarbleSkin_01_BPF_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_MarbleSkin_01_BPF_D.dds
new file mode 100644
index 000000000..1ff91f3a4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_MarbleSkin_01_BPF_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_Noise05_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_Noise05_D.dds
new file mode 100644
index 000000000..f3ebdd976
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_Noise05_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RanrakDragon_UpperAlpha_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RanrakDragon_UpperAlpha_E.dds
new file mode 100644
index 000000000..81e618163
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RanrakDragon_UpperAlpha_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RanrakDragon_Upper_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RanrakDragon_Upper_E.dds
new file mode 100644
index 000000000..4b8533472
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RanrakDragon_Upper_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RibbonOffset_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RibbonOffset_N.dds
new file mode 100644
index 000000000..64b67efe3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RibbonOffset_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_VerticalBeam_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_VerticalBeam_D.dds
new file mode 100644
index 000000000..c90844d1c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_VerticalBeam_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_black_d.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_black_d.png
new file mode 100644
index 000000000..835a85b64
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_black_d.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_flat_n.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_flat_n.dds
new file mode 100644
index 000000000..f80bb9b11
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_flat_n.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_white_d.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_white_d.dds
new file mode 100644
index 000000000..4ee349fa0
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_white_d.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Pink.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Pink.png
new file mode 100644
index 000000000..1e1e56a54
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Pink.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Red.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Red.png
new file mode 100644
index 000000000..8b6954504
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Red.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Yellow.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Yellow.png
new file mode 100644
index 000000000..453e872d3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Yellow.png differ
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 444f13d38..fb7ab27eb 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
@@ -190,6 +190,51 @@ PBR_LIGHT_OUT PBR_Lighting(
return Out;
}
+bool CalcLighting(
+ in Texture2D SurfaceTexture2D,
+ in float fTagDepthBlue,
+ in float2 uv,
+ in float3 vAlbedo,
+ inout float3 vF0,
+ inout float fMetallic,
+ inout float fRoughness,
+ inout float fOcclusion,
+ inout float fAttenuation)
+{
+ bool bResult = false;
+ if (true == AlmostEqual3(fTagDepthBlue * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic Roughness Occ
+ {
+ bResult = true;
+ float3 vMRO = SurfaceTexture2D.Sample(DefaultSampler, uv).rgb;
+ fMetallic = vMRO.r;
+ fRoughness = vMRO.g;
+ fOcclusion = vMRO.b;
+
+ vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
+ }
+ else if (true == AlmostEqual3(fTagDepthBlue * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular Roughness Occ
+ {
+ bResult = true;
+ fMetallic = 0.f;
+
+ float3 vSRO = SurfaceTexture2D.Sample(DefaultSampler, uv).rgb;
+ vF0 = vSRO.rrr;
+ fRoughness = vSRO.g;
+ fOcclusion = vSRO.b;
+ }
+ else if (true == AlmostEqual3(fTagDepthBlue * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY)) // Specular Roughness SubSurfaceScattering Occlusion
+ {
+ bResult = true;
+ fMetallic = 0.f;
+
+ float4 vSRXO = SurfaceTexture2D.Sample(DefaultSampler, uv);
+ vF0 = vSRXO.rrr;
+ fRoughness = vSRXO.g;
+ fOcclusion = vSRXO.a;
+ }
+ return bResult;
+}
+
float GetBloomCurve(float x, float fThreshold, uint iMethod)
{
float fResult = x;
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
index 05ce2cc23..4a596b98f 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
@@ -455,42 +455,14 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
float3 vToLight = normalize(-g_vLightDir.xyz); // 픽셀에서 라이트로
-
-
- if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic Roughness Occ
- {
- float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- fMetallic = vMRO.r;
- fRoughness = vMRO.g;
- fOcclusion = vMRO.b;
-
- vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular Roughness Occ
- {
- fMetallic = 0.f;
-
- float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- vF0 = vSRO.rrr;
- fRoughness = vSRO.g;
- fOcclusion = vSRO.b;
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY))
- {
- fMetallic = 0.f;
-
- float4 vSRXO = g_SurfaceTexture.Sample(DefaultSampler, uv);
- vF0 = vSRXO.rrr;
- fRoughness = vSRXO.g;
- fOcclusion = vSRXO.a;
- }
- else // basic Lighting(phong blinn) // if you were here, you miss some assets.
+ if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
{
Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
Out.vSpecular.a = 0.f;
return Out;
}
+
float fTotalOcclusion = saturate(fOcclusion * fSSAO_AmbientOcclusion);
{ // 수치조정 // 디렉셔널
@@ -569,37 +541,10 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
return Out;
}
- if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic
+ if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
{
- float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- fMetallic = vMRO.r;
- fRoughness = vMRO.g;
- fOcclusion = vMRO.b;
-
- vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular
- {
- fMetallic = 0.f;
-
- float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- vF0 = vSRO.rrr;
- fRoughness = vSRO.g;
- fOcclusion = vSRO.b;
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY))
- {
- fMetallic = 0.f;
-
- float4 vSRXO = g_SurfaceTexture.Sample(DefaultSampler, uv);
- vF0 = vSRXO.rrr;
- fRoughness = vSRXO.g;
- fOcclusion = vSRXO.a;
- }
- else // basic Lighting(phong blinn) // if you were here, you miss some assets.
- {
- Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vToLight * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient)));
- Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f));
+ Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
+ Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
Out.vSpecular.a = 0.f;
return Out;
}
@@ -697,40 +642,14 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
fSpotAttenenuation *= fSpotAttenenuation;
fAttenuation *= fSpotAttenenuation;
- if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic
+ if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
{
- float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- fMetallic = vMRO.r;
- fRoughness = vMRO.g;
- fOcclusion = vMRO.b;
-
- vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular
- {
- fMetallic = 0.f;
-
- float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- vF0 = vSRO.rrr;
- fRoughness = vSRO.g;
- fOcclusion = vSRO.b;
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY))
- {
- fMetallic = 0.f;
-
- float4 vSRXO = g_SurfaceTexture.Sample(DefaultSampler, uv);
- vF0 = vSRXO.rrr;
- fRoughness = vSRXO.g;
- fOcclusion = vSRXO.a;
- }
- else // basic Lighting(phong blinn) // if you were here, you miss some assets.
- {
- Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vToLight * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient)));
- Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f));
+ Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
+ Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
Out.vSpecular.a = 0.f;
return Out;
}
+
float fTotalOcclusion = saturate(fOcclusion * fSSAO_AmbientOcclusion);
{ // 수치조정 // 점광원
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl
index 120ade77d..4a1c9a8a7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl
@@ -11,7 +11,6 @@ float4x4 g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
float4x4 g_PrevWorldMatrix, g_PrevViewMatrix, g_PrevProjMatrix;
matrix g_OffsetMatrix[256];
-
int g_bRimLight;
int g_bUseNormalMap;
int g_bDisolve;
@@ -24,41 +23,41 @@ float g_fOutLineScale;
float g_fOutLineThickness;
float g_fOutLinePower;
float g_fUsingSurfaceParams;
+float g_fEtherealRatio;
-Texture2D g_DiffuseTexture;
-Texture2D g_SpecularTexture;
-Texture2D g_AmbientTexture;
-Texture2D g_EmissiveTexture;
-Texture2D g_HeightTexture;
-Texture2D g_NormalTexture;
-Texture2D g_ShininessTexture;
-Texture2D g_OpacityTexture;
-Texture2D g_DisplacementTexture;
-Texture2D g_LightMapTexture;
-Texture2D g_ReflectionTexture;
-Texture2D g_BaseColorTexture;
-Texture2D g_NormalCameraTexture;
-Texture2D g_EmissionColorTexture;
-Texture2D g_MetalnessTexture;
-Texture2D g_Diffuse_RoughnessTexture;
-Texture2D g_AmbientOcclusionTexture;
-Texture2D g_UnknownTexture;
-Texture2D g_SheenTexture;
-Texture2D g_ClearcoadTexture;
-Texture2D g_TransmissionTexture;
-Texture2D g_Maya_BaseTexture;
-Texture2D g_Maya_SpecularTexture;
-Texture2D g_Maya_Specular_ColorTexture;
-Texture2D g_Maya_Specular_RoughnessTexture;
-Texture2D g_AnisotropyTexture;
+Texture2D g_DiffuseTexture : register(t00);
+Texture2D g_SpecularTexture : register(t01);
+Texture2D g_AmbientTexture : register(t02);
+Texture2D g_EmissiveTexture : register(t03);
+Texture2D g_HeightTexture : register(t04);
+Texture2D g_NormalTexture : register(t05);
+Texture2D g_ShininessTexture : register(t06);
+Texture2D g_NormalBlendTexture : register(t07);
+Texture2D g_SROBlendTexture : register(t08);
+Texture2D g_LightMapTexture : register(t09);
+Texture2D g_ReflectionTexture : register(t10);
+Texture2D g_DiffuseBlend : register(t11);
+Texture2D g_NormalCameraTexture : register(t12);
+Texture2D g_EmissionColorTexture : register(t13);
+Texture2D g_MetalnessTexture : register(t14);
+Texture2D g_Diffuse_RoughnessTexture : register(t15);
+Texture2D g_AmbientOcclusionTexture : register(t16);
+Texture2D g_UnknownTexture : register(t17);
+Texture2D g_SheenTexture : register(t18);
+Texture2D g_ClearcoadTexture : register(t19);
+Texture2D g_TransmissionTexture : register(t20);
+Texture2D g_Maya_BaseTexture : register(t21);
+Texture2D g_Maya_SpecularTexture : register(t22);
+Texture2D g_Maya_Specular_ColorTexture : register(t23);
+Texture2D g_Maya_Specular_RoughnessTexture : register(t24);
+Texture2D g_AnisotropyTexture : register(t25);
-StructuredBuffer g_BoneBuffer : register(t26);
-StructuredBuffer g_PrevBoneBuffer : register(t27);
+StructuredBuffer g_BoneBuffer : register(t26);
+StructuredBuffer g_PrevBoneBuffer : register(t27);
Texture2D g_SurfaceParamsTexture;
-
int g_iBinded_Texture[27];
matrix g_BoneMatrices[512];
@@ -126,23 +125,23 @@ VS_OUT VS_MAIN(VS_IN In)
matrix BoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_BoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_BoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_BoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
+ mul(g_BoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
matrix PrevBoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
+ mul(g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
vector vPrevPosition = mul(vector(In.vPosition, 1.f), PrevBoneMatrix);
@@ -180,23 +179,23 @@ VS_OUT VS_MAIN_OUTLINE_READ(VS_IN In)
matrix BoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_BoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_BoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_BoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
-
+ mul(g_BoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
+
matrix PrevBoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
+ mul(g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
vector vPrevPosition = mul(vector(In.vPosition, 1.f), PrevBoneMatrix);
@@ -243,13 +242,13 @@ VS_OUT_SHADOW VS_MAIN_SHADOW(VS_IN In)
matrix BoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_BoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_BoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_BoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
+ mul(g_BoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
@@ -284,6 +283,14 @@ struct PS_OUT
float4 vSurface : SV_Target4;
float2 vVelocityUV : SV_TARGET5;
};
+
+struct PS_OUT_BLEND
+{
+ float4 vAlbedo : SV_TARGET0;
+ //float4 vNormal : SV_TARGET1;
+ //float4 vDepth : SV_TARGET2;
+ //float2 vVelocityUV : SV_TARGET3;
+};
struct PS_OUT_OUTLINE
{
float4 vOutLine : SV_TARGET0;
@@ -309,9 +316,9 @@ PS_OUT_OUTLINE PS_MAIN_OUTLINE_READ(PS_IN In)
Out.vOutLine = float4(g_vOutLineColor.rgb, fRim);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
@@ -335,7 +342,7 @@ PS_OUT PS_EYELASH_DAOTHV_ToSRO(PS_IN In)
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
- float4 vTHV_Mask = g_DisplacementTexture.Sample(DefaultSampler, In.vTexcoord);
+ float4 vTHV_Mask = g_SROBlendTexture.Sample(DefaultSampler, In.vTexcoord);
float RootTip = vTHV_Mask.r;
float SpecMask = vTHV_Mask.g;
float AoMask_Thv = vTHV_Mask.b;
@@ -347,13 +354,14 @@ PS_OUT PS_EYELASH_DAOTHV_ToSRO(PS_IN In)
Out.vAlbedo = float4(fDiffuseMask, fDiffuseMask, fDiffuseMask, AlphaMask);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(lerp(0.7f, 0.3f, SpecMask), SpecMask * 0.5f, AoMask_Dao * AoMask_Thv, 0.f);
// SRO
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
return Out;
}
@@ -375,12 +383,13 @@ PS_OUT PS_TEETH_SRXO_ToSRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vSRXO_MASK.r, vSRXO_MASK.g, vSRXO_MASK.a, 0.f);
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
// SRO
return Out;
}
@@ -401,12 +410,13 @@ PS_OUT PS_EYE_DN_SRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(0.5f, 0.5f, 1.f, 0.f);
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
// SRO
return Out;
}
@@ -437,7 +447,7 @@ PS_OUT PS_FACIAL_HAIR_DAOTHV_ToSRO(PS_IN In)
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
- float4 vTHV_Mask = g_DisplacementTexture.Sample(DefaultSampler, In.vTexcoord);
+ float4 vTHV_Mask = g_SROBlendTexture.Sample(DefaultSampler, In.vTexcoord);
float RootTip = vTHV_Mask.r;
float SpecMask = vTHV_Mask.g;
float AoMask_Thv = vTHV_Mask.b;
@@ -449,13 +459,14 @@ PS_OUT PS_FACIAL_HAIR_DAOTHV_ToSRO(PS_IN In)
Out.vAlbedo = float4(fDiffuseMask, fDiffuseMask, fDiffuseMask, AlphaMask);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(lerp(0.7f, 0.3f, SpecMask), SpecMask * 0.5f, AoMask_Dao * AoMask_Thv, 0.f);
// SRO
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
return Out;
}
@@ -478,7 +489,7 @@ PS_OUT PS_HEAD_HAIR_DAOTHV_ToSRO(PS_IN In)
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
- float4 vTHV_Mask = g_DisplacementTexture.Sample(DefaultSampler, In.vTexcoord);
+ float4 vTHV_Mask = g_SROBlendTexture.Sample(DefaultSampler, In.vTexcoord);
float RootTip = vTHV_Mask.r;
float SpecMask = vTHV_Mask.g;
float AoMask_Thv = vTHV_Mask.b;
@@ -490,13 +501,14 @@ PS_OUT PS_HEAD_HAIR_DAOTHV_ToSRO(PS_IN In)
Out.vAlbedo = float4(fDiffuseMask, fDiffuseMask, fDiffuseMask, AlphaMask);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(lerp(0.7f, 0.3f, SpecMask), SpecMask * 0.5f, AoMask_Dao * AoMask_Thv, 0.f);
// SRO
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
return Out;
}
@@ -517,12 +529,13 @@ PS_OUT PS_HEADwtHAND_DSRXON_ToSRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vSRXO_Mask.r, vSRXO_Mask.g, vSRXO_Mask.a, 0.f);
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
// SRO
return Out;
}
@@ -544,12 +557,13 @@ PS_OUT PS_LOWER_DSRON_ToSRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vSRO_Mask.r, vSRO_Mask.g, vSRO_Mask.b, 0.f);
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
// SRO
return Out;
}
@@ -571,12 +585,13 @@ PS_OUT PS_UPPER_DMRON_ToMRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f);
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
// MRO
return Out;
}
@@ -598,12 +613,13 @@ PS_OUT PS_GLASSES_DMRON_ToMRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f);
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
// SRO
return Out;
}
@@ -626,12 +642,42 @@ PS_OUT PS_EmissiveMetalness_DENMRO_ToMRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f);
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
+ // SRO
+ return Out;
+}
+
+PS_OUT PS_DNMRO_ToMRO(PS_IN In)
+{
+ PS_OUT Out;
+
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
+ float4 vEmissive = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord);
+ vDiffuse.rgb += vEmissive.rgb;
+ if (vDiffuse.a < 0.2f) {
+ discard;
+ }
+ float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
+ float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
+ float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
+
+ float4 vMRO_Mask = g_MetalnessTexture.Sample(DefaultSampler, In.vTexcoord);
+
+ Out.vAlbedo = vDiffuse;
+ Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
+ 1.f);
+ Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
+ Out.vSurface = float4(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f);
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
// SRO
return Out;
}
@@ -654,12 +700,48 @@ PS_OUT PS_MI_ClothSim_DSEN_ToSRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vSpecular_Mask.r, 0.5f, 1.f, 0.f);
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
+ // SRO
+ return Out;
+}
+
+PS_OUT PS_MI_DANSROMRO_ToSRO(PS_IN In)
+{
+ PS_OUT Out;
+
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
+ float4 vAlpha = g_TransmissionTexture.Sample(DefaultSampler, In.vTexcoord);
+ if (vAlpha.r < 0.2f)
+ {
+ discard;
+ }
+ vDiffuse.a = vAlpha.r;
+ float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
+ float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
+ float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
+
+ float4 vSRO_Mask = g_SpecularTexture.Sample(DefaultSampler, In.vTexcoord);
+ float4 vMRO_MASK = g_MetalnessTexture.Sample(DefaultSampler, In.vTexcoord);
+
+ float Roughness = saturate(vSRO_Mask.g * vMRO_MASK.g);
+
+ float Occlusion = saturate(vSRO_Mask.b * vMRO_MASK.b);
+
+ Out.vAlbedo = vDiffuse;
+ Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
+ 1.f);
+ Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
+ Out.vSurface = float4(vSRO_Mask.r, Roughness, Occlusion, 0.f);
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
// SRO
return Out;
}
@@ -689,16 +771,148 @@ PS_OUT PS_Troll_Club_DAENMROSRXO_ToMROX(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vMRO_MASK.r, Roughness, Occlusion, vSRXO_Mask.b);
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
// SRO
return Out;
}
+PS_OUT_BLEND PS_Dragon_Aura(PS_IN In)
+{
+ PS_OUT_BLEND Out;
+ float2 uv = In.vTexcoord;
+ float2 uvOppacity = uv;
+ uvOppacity.y += g_fEtherealRatio;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
+ float fOppacity = g_NormalBlendTexture.Sample(DefaultSampler, uvOppacity).r;
+ vDiffuse = vDiffuse * (1 - fOppacity);
+ Out.vAlbedo = vDiffuse;
+ return Out;
+}
+
+PS_OUT_BLEND PS_Dragon_EtherealEyes(PS_IN In)
+{
+ PS_OUT_BLEND Out;
+ float2 uv = In.vTexcoord;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
+ float fOppacity = g_NormalBlendTexture.Sample(DefaultSampler, uv).a;
+ float4 vBaseColor = g_DiffuseBlend.Sample(DefaultSampler, uv);
+ //TODO ?덉븣 ???댁빞??
+ Out.vAlbedo = lerp(vDiffuse, vBaseColor, fOppacity);
+ return Out;
+}
+
+PS_OUT_BLEND PS_Dragon_EtherealWings(PS_IN In)
+{
+ PS_OUT_BLEND Out;
+ float2 uv = In.vTexcoord;
+ float2 uvDiffuse = uv; uvDiffuse.y -= g_fEtherealRatio;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uvDiffuse);
+ float4 vEmissive = g_EmissiveTexture.Sample(DefaultSampler, uv);
+ vDiffuse += vEmissive;
+ float fOppacity = g_NormalBlendTexture.Sample(DefaultSampler, uvDiffuse).a;
+ vDiffuse.a = (1- fOppacity);
+ Out.vAlbedo = vDiffuse;
+ return Out;
+}
+
+PS_OUT PS_Dragon_Body(PS_IN In)
+{
+ PS_OUT Out;
+ float2 uv = In.vTexcoord;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
+ float fOppacity = g_NormalBlendTexture.Sample(DefaultSampler, uv).r;
+ vDiffuse.a = fOppacity;
+ if (vDiffuse.a < 0.2f)
+ {
+ discard;
+ }
+ float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
+ float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
+ float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
+
+ float3 vMRO = g_MetalnessTexture.Sample(DefaultSampler, uv).rgb;
+ float4 vMask = g_UnknownTexture.Sample(DefaultSampler, uv);
+
+
+ Out.vAlbedo = vDiffuse;
+ Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
+ 1.f);
+ Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
+ Out.vSurface = float4(vMRO, 0.f);
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
+ // SRO
+ return Out;
+}
+
+PS_OUT PS_Dragon_Wings(PS_IN In)
+{
+ PS_OUT Out;
+ float2 uv = In.vTexcoord;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
+ float4 vEmissive = g_EmissiveTexture.Sample(DefaultSampler, uv);
+ vDiffuse += vEmissive;
+
+ if (vDiffuse.a < 0.2f)
+ {
+ discard;
+ }
+ float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
+ float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
+ float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
+
+ float3 vMRO = g_MetalnessTexture.Sample(DefaultSampler, uv).rgb;
+ float4 vMask = g_UnknownTexture.Sample(DefaultSampler, uv);
+
+
+ Out.vAlbedo = vDiffuse;
+ Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
+ 1.f);
+ Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
+ Out.vSurface = float4(vMRO, 0.f);
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
+ // SRO
+ return Out;
+}
+
+PS_OUT_BLEND PS_Dragon_RedHot(PS_IN In)
+{
+ PS_OUT_BLEND Out;
+ float2 uv = In.vTexcoord;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
+ Out.vAlbedo = vDiffuse;
+ return Out;
+}
+
+PS_OUT_BLEND PS_Dragon_PinkHot(PS_IN In)
+{
+ PS_OUT_BLEND Out;
+ float2 uv = In.vTexcoord;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
+ Out.vAlbedo = vDiffuse;
+ return Out;
+}
+
+PS_OUT_BLEND PS_Dragon_YellowHot(PS_IN In)
+{
+ PS_OUT_BLEND Out;
+ float2 uv = In.vTexcoord;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
+ Out.vAlbedo = vDiffuse;
+ return Out;
+}
+
struct PS_IN_SHADOW
{
float4 vPosition : SV_POSITION;
@@ -903,4 +1117,131 @@ technique11 DefaultTechnique
PixelShader = compile ps_5_0 PS_MI_ClothSim_DSEN_ToSRO();
}
///////
+ pass MI_DANSROMRO_ToSRO // 20
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_None, 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_MI_DANSROMRO_ToSRO();
+ }
+ pass MI_DANSROMRO_ToSRO_OUTLINE_WRITE // 21
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
+ SetBlendState(BS_None, 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_MI_DANSROMRO_ToSRO();
+ }
+ pass DNMRO_ToMRO__OUTLINE_WRITE // 22
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
+ SetBlendState(BS_None, 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_DNMRO_ToMRO();
+ }
+//// DRAGON
+ pass DragonAuraPass // 23
+ {
+ 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_Dragon_Aura();
+ }
+ pass DragonEtherealEyesPass // 24
+ {
+ 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_Dragon_EtherealEyes();
+ }
+ pass DragonEtherealEyes_OUTLINE_WRITEPass // 25
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
+ 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_Dragon_EtherealEyes();
+ }
+ pass DragonEtherealWingsPass // 26
+ {
+ 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_Dragon_EtherealWings();
+ }
+ pass DragonWingsPass // 27
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_None, 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_Dragon_Wings();
+ }
+ pass DragonWings_OUTLINE_WRITEPass // 28
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
+ SetBlendState(BS_None, 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_Dragon_Wings();
+ }
+ pass DragonBodyPass // 29
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_None, 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_Dragon_Body();
+ }
+ pass DragonBody_OUTLINE_WRITEPass // 30
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
+ SetBlendState(BS_None, 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_Dragon_Body();
+ }
+ pass DragonRedHotPass // 31
+ {
+ 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_Dragon_RedHot();
+ }
+ pass DragonPinkHotPass // 32
+ {
+ 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_Dragon_PinkHot();
+ }
+ pass DragonYellowHotPass // 33
+ {
+ 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_Dragon_YellowHot();
+ }
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index 3ac1e5d5d..04dfbea48 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -64,13 +64,21 @@ Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
int g_iHover;
+int g_iBoosterOn;
+int g_iBoosterOff;
int g_iClick;
int g_iColor;
+int g_Count;
+int g_ChaseCount;
int g_iStep1 = 0;
int g_iStep2 = 0;
int g_iStep3 = 0;
+float2 g_Trail[200];
+float2 g_ChaseTrail[200];
+
+
struct VS_IN
{
float3 vPosition : POSITION;
@@ -1725,35 +1733,36 @@ PS_OUT PS_Broomstick(PS_IN In)
Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
Rotation += center;
-
- float2 startUV = g_fImageUV.xy;
- float2 endUV = g_fImageUV.zw;
-
- float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
- float4 tex2 = g_Texture1.Sample(ClampSampler, atlasUV);
+ float4 tex2 = g_Texture1.Sample(ClampSampler, Rotation);
tex1.rgb *= 0.4f;
color = tex1;
tex2.rgb *= 0.3f;
color = lerp(color, tex2, tex2.a);
-
- float2 texpos1 = g_fItemPosition1 / g_fCurrent_Size;
- float2 texsize1 = g_fItemImageSizes1 / g_fCurrent_Size;
+ float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size * 0.5f;
+ float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size * 0.5;
float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
- bool inside = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
- if (inside)
+ bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
+ if (inside1)
{
float4 tex3 = g_Texture2.Sample(ClampSampler, texlocal1);
color = lerp(color, tex3, tex3.a);
-
- float CoolTime = 0.f + g_fDeltaV;
- float CoolTime2 = 0.f + g_fDeltaV + 0.1f;
- atlasUV = startUV + texlocal1 * (endUV - startUV);
+ }
+ float2 texpos2 = g_fImageSipos2.xy / g_fCurrent_Size;
+ float2 texsize2 = g_fImageSipos2.zw / g_fCurrent_Size;
+ float2 texlocal2 = (In.vTexcoord - texpos2) / texsize2;
+ bool inside2 = all(texlocal2 >= 0.0f && texlocal2 <= 1.0f);
+ if (inside2)
+ {
+ float2 startUV = g_fImageUV.xy;
+ float2 endUV = g_fImageUV.zw;
+ float2 atlasUV = atlasUV = startUV + texlocal2 * (endUV - startUV);
float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV);
+ color = lerp(color, tex4, tex4.a);
}
color.a *= Alpha;
@@ -1795,32 +1804,105 @@ PS_OUT PS_SpellLearnColor(PS_IN In)
Color = tex;
Color.rgb *= tex1.rgb;
-
- float2 rectPos = g_fPosition;
+
+ float2 rectPos = g_fPosition - float2(256.f, 259.f);
float2 rectSize = g_fCurrent_Size;
float2 itemPos = g_fItemPosition1;
float2 itemSize = g_fItemImageSizes1;
- float x0 = max(rectPos.x, itemPos.x);
- float x1 = min(rectPos.x + rectSize.x, itemPos.x + itemSize.x);
- float y0 = max(rectPos.y, itemPos.y);
- float y1 = min(rectPos.y + rectSize.y, itemPos.y + itemSize.y);
+ float2 pixelPos;
+ pixelPos.x = rectPos.x + In.vTexcoord.x * rectSize.x;
+ pixelPos.y = rectPos.y + (1.0f - In.vTexcoord.y) * rectSize.y;
- float uMin = (x0 - rectPos.x) / rectSize.x;
- float uMax = (x1 - rectPos.x) / rectSize.x;
- float vMin = (y0 - rectPos.y) / rectSize.y;
- float vMax = (y1 - rectPos.y) / rectSize.y;
-
- vMin = 1.0f - vMin;
- vMax = 1.0f - vMax;
-
- if (In.vTexcoord.x >= min(uMin, uMax) && In.vTexcoord.x <= max(uMin, uMax) &&
- In.vTexcoord.y >= min(vMin, vMax) && In.vTexcoord.y <= max(vMin, vMax))
+ if (pixelPos.x >= itemPos.x &&
+ pixelPos.x <= itemPos.x + itemSize.x &&
+ pixelPos.y >= itemPos.y &&
+ pixelPos.y <= itemPos.y + itemSize.y)
{
Color.rgb = float3(0.f, 0.f, 1.f);
}
+
+ for (int i = 0; i < g_Count; ++i)
+ {
+ float2 trailTopLeft = g_Trail[i];
+ float2 trailCenter = trailTopLeft + itemSize / 2.0f;
+
+ float halfWidth = itemSize.x / 2.0f + 12.f;
+ float halfHeight = itemSize.y / 2.0f + 12.f;
+
+ if (pixelPos.x >= trailCenter.x - halfWidth &&
+ pixelPos.x <= trailCenter.x + halfWidth &&
+ pixelPos.y >= trailCenter.y - halfHeight &&
+ pixelPos.y <= trailCenter.y + halfHeight)
+ {
+ Color.rgb = float3(20.f, 100.f, 180.f) / 255.f;
+ break;
+ }
+ }
+ for (int j = 0; j < g_ChaseCount; ++j)
+ {
+ float2 ChaseTopLeft = g_ChaseTrail[j];
+ float2 ChaseCenter = ChaseTopLeft + itemSize / 2.0f;
+
+ float halfWidth = itemSize.x * 0.7f;
+ float halfHeight = itemSize.y * 0.7f;
+
+ if (pixelPos.x >= ChaseCenter.x - halfWidth &&
+ pixelPos.x <= ChaseCenter.x + halfWidth &&
+ pixelPos.y >= ChaseCenter.y - halfHeight &&
+ pixelPos.y <= ChaseCenter.y + halfHeight)
+ {
+ Color.rgb = float3(110.f, 5.f, 5.f) / 255.f;
+ break;
+ }
+ }
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_SpellLearnBooster(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 tex = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+
+ Color = tex;
+
+ float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
+ bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
+
+ if (g_iBoosterOn == 0 && g_iBoosterOff == 0)
+ {
+ if (inside1)
+ {
+ float4 tex1 = g_Texture1.Sample(DefaultSampler, Imagelocal);
+ Color = lerp(Color, tex1, tex1.a);
+ }
+ }
+ else if (g_iBoosterOn != 0 && g_iBoosterOff == 0)
+ {
+
+ float4 tex3 = g_Texture3.Sample(DefaultSampler, In.vTexcoord);
+ Color = lerp(Color, tex3, tex3.a);
+ }
+ else if (g_iBoosterOn == 0 && g_iBoosterOff != 0)
+ {
+ float4 tex2 = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
+
+ tex2.rgb *= float3(1.f, 0.f, 0.f);
+ Color = tex;
+
+ Color = lerp(Color, tex2, tex2.a);
+ }
+
Color.a *= Alpha;
Out.vColor = Color;
return Out;
@@ -2416,6 +2498,16 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_SpellLearnColor();
}
+ pass SpellLearnBooster
+ {
+ SetRasterizerState(RS_Nocull);
+ 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_SpellLearnBooster();
+ }
+
pass Enemy_Detection
{
SetRasterizerState(RS_Nocull);
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl
index e66653ba8..bb003e9d0 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl
@@ -125,24 +125,23 @@ VS_OUT VS_MAIN(VS_IN In)
matrix BoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_BoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_BoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_BoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
-
+ mul(g_BoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
matrix PrevBoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
+ mul(g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
@@ -195,23 +194,23 @@ VS_OUT_OUTLINE VS_MAIN_OUTLINE(VS_IN In)
matrix BoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_BoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_BoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_BoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
-
+ mul(g_BoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
+
matrix PrevBoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
+ mul(g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
vector vPrevPosition = mul(vector(In.vPosition, 1.f), PrevBoneMatrix);
@@ -322,14 +321,14 @@ VS_OUT_SHADOW VS_MAIN_SHADOW(VS_IN In)
matrix BoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_BoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_BoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_BoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
-
+ mul(g_BoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
+
/* ?ㅽ궎??*/
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
index f6c196114..9d191be04 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
@@ -428,7 +428,8 @@ PS_OUT PS_GLASS(PS_IN In)
Out.vNormal = float4(In.vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 15.f / 27.f, 1.f);
Out.vSurface = vSurface;
- Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
+ Out.vVelocityUV = float2(0.5f, 0.5f);
+ //CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
return Out;
}
@@ -456,7 +457,8 @@ PS_OUT PS_GLASS_CUBE(PS_IN In)
Out.vNormal = float4(In.vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 15.f / 27.f, 1.f);
Out.vSurface = vSurface;
- Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos) * 0.5f + 0.5f;
+ Out.vVelocityUV = float2(0.5f, 0.5f);
+ //CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
return Out;
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/AvadaKedavra.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/AvadaKedavra.png
new file mode 100644
index 000000000..9ba5cfb67
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/AvadaKedavra.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/Transformation.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/Transformation.png
new file mode 100644
index 000000000..506dea8b2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/Transformation.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_CursorArrow.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_CursorArrow.png
index 9df5cba6e..1cfceb4d7 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_CursorArrow.png and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_CursorArrow.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SpellMinigame_SpeedBurstDropBack.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SpellMinigame_SpeedBurstDropBack.png
new file mode 100644
index 000000000..4e4b60dda
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SpellMinigame_SpeedBurstDropBack.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SpellMinigame_SpeedBurstFail.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SpellMinigame_SpeedBurstFail.png
new file mode 100644
index 000000000..f8b24e389
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SpellMinigame_SpeedBurstFail.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/VFX_T_Speck_HighCoverage_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/VFX_T_Speck_HighCoverage_D.png
new file mode 100644
index 000000000..60dfbbad3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/VFX_T_Speck_HighCoverage_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Atlas_Widget_Spell.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Atlas_Widget_Spell.dds
index 66d912ed0..ca819de01 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Atlas_Widget_Spell.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Atlas_Widget_Spell.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/SpellMeters/Atlas_Spell.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/SpellMeters/Atlas_Spell.dds
index 094852933..d202a99fd 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/SpellMeters/Atlas_Spell.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/SpellMeters/Atlas_Spell.dds differ
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index d026e6ada..93f64a17c 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -198,13 +198,17 @@ call Update_Shaders.bat
-
+
+
+
+
+
@@ -424,13 +428,17 @@ call Update_Shaders.bat
-
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index 9b40d75f3..f06c47741 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -631,11 +631,23 @@
{6e769435-83c4-4f64-b306-1b8c5f2d228d}
-
+
{54a92f0d-26f1-49bf-a13b-ab11995968c7}
{3b207257-c396-473b-9906-df04b28fb0cd}
+
+
+ {ea002e2c-481e-4f1f-a16f-4e47e3a48d37}
+
+
+ {933a90c2-8fce-4e6d-89e7-74e88cbc7f45}
+
+
+ {5bab4bbf-253e-4d66-a0d2-8a6328ae244b}
+
+
+ {268e67a6-fa77-4a34-84d9-b3e6f6e46a00}
@@ -1263,8 +1275,20 @@
50.UI\SpellLearn_Data
-
- 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_SpeedPointer
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLeam_LookPointer
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Booster
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Overlay
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot
02.GameObjects\Layer_Effect\Effect\Magic\Blink
@@ -1897,8 +1921,20 @@
50.UI\SpellLearn_Data
-
- 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_SpeedPointer
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLeam_LookPointer
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Booster
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Overlay
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot
02.GameObjects\Layer_Effect\Effect\Magic\Blink
diff --git a/Jusin154_Team3D/Editor/Private/DummyObject.cpp b/Jusin154_Team3D/Editor/Private/DummyObject.cpp
index f7f91eed9..c91044b84 100644
--- a/Jusin154_Team3D/Editor/Private/DummyObject.cpp
+++ b/Jusin154_Team3D/Editor/Private/DummyObject.cpp
@@ -39,6 +39,7 @@ HRESULT CDummyObject::Initialize(void* pArg)
void CDummyObject::Priority_Update(_float fTimeDelta)
{
+ m_pTransformCom->RewindMomentum();
}
void CDummyObject::Update(_float fTimeDelta)
@@ -49,7 +50,12 @@ void CDummyObject::Update(_float fTimeDelta)
void CDummyObject::Late_Update(_float fTimeDelta)
{
+#ifdef 기무리
+ m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+#else
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
+#endif // 기무리
+
}
HRESULT CDummyObject::Render()
@@ -62,6 +68,7 @@ HRESULT CDummyObject::Render()
for (_uint i = 0; i < iNumMeshes; i++)
{
+
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
return E_FAIL;
}
@@ -75,13 +82,24 @@ HRESULT CDummyObject::Render()
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
- return E_FAIL;
+ if (m_pModelCom->Get_Type() == MODEL::PBR_ANIM)
+ {
+ if (FAILED(m_pModelCom->Begin(i, m_pShaderCom, false))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
}
+ else {
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
+ return E_FAIL;
+ }
- m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
- m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0);
+ }
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
@@ -101,15 +119,24 @@ HRESULT CDummyObject::Ready_Components()
__super::Ready_Components(&Desc);
- /* Com_Model */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag,
- reinterpret_cast(&m_pModelCom))))
+ reinterpret_cast(&m_pModelCom)))){
return E_FAIL;
+ }
- /* Com_Shader */
- if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH,
- reinterpret_cast(&m_pShaderCom))))
- return E_FAIL;
+ if (m_pModelCom->Get_Type() == MODEL::PBR_ANIM)
+ {
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
+ reinterpret_cast(&m_pShaderCom)))) {
+ return E_FAIL;
+ }
+ }
+ else {
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH,
+ reinterpret_cast(&m_pShaderCom)))) {
+ return E_FAIL;
+ }
+ }
return S_OK;
}
@@ -125,6 +152,17 @@ HRESULT CDummyObject::Bind_ShaderResources()
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
return E_FAIL;
}
+#ifdef 기무리
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
+ return E_FAIL;
+ }
+#endif // 기무리
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXEffectHitBox.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXEffectHitBox.cpp
index 9fc52d5a4..99f4c58de 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXEffectHitBox.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXEffectHitBox.cpp
@@ -177,7 +177,7 @@ void CDummy_PhysXEffectHitBox::Free()
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
- m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp
index d6f847f70..50695a0bb 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp
@@ -138,7 +138,7 @@ HRESULT CDummy_PhysXMonster::Ready_Components(void* pArg)
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());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp
index b87568c73..5cb8b5732 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp
@@ -47,12 +47,12 @@ void CDummy_PhysXPlayable::Update(_float fTimeDelta)
m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -10.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta);
}
if (m_pGameInstance->Key_Down(DIK_V)) {
- m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
}
else {
if (m_pGameInstance->Key_Down(DIK_V)) {
- m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor());
+ m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
}
@@ -154,7 +154,7 @@ HRESULT CDummy_PhysXPlayable::Ready_Components(void* pArg)
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());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
diff --git a/Jusin154_Team3D/Editor/Private/Goblin.cpp b/Jusin154_Team3D/Editor/Private/Goblin.cpp
index 1ed7a6271..afdef5cbc 100644
--- a/Jusin154_Team3D/Editor/Private/Goblin.cpp
+++ b/Jusin154_Team3D/Editor/Private/Goblin.cpp
@@ -328,7 +328,7 @@ HRESULT CGoblin::Ready_Components()
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());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
//if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_GOBLIN"), (CComponent**)&m_pStat))) {
diff --git a/Jusin154_Team3D/Editor/Private/Level_Loading.cpp b/Jusin154_Team3D/Editor/Private/Level_Loading.cpp
index e3a80969f..e0b989504 100644
--- a/Jusin154_Team3D/Editor/Private/Level_Loading.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_Loading.cpp
@@ -46,10 +46,14 @@ void CLevel_Loading::Update(_float fTimeDelta)
if(m_eNextLevelID == LEVEL::UI)
m_bNextLevel = true;
+#ifdef 기무리
+ m_bNextLevel = true;
+#endif // 기무리
if (m_pGameInstance->Key_Down(DIK_F1))
{
- if (m_eNextLevelID != LEVEL::LOGO)
+ if (m_eNextLevelID != LEVEL::LOGO){
m_bNextLevel = true;
+ }
else
{
static_cast(m_pIntro_Image)->Set_Hover(true);
diff --git a/Jusin154_Team3D/Editor/Private/Level_Logo.cpp b/Jusin154_Team3D/Editor/Private/Level_Logo.cpp
index 326d0a33c..a297cbb4f 100644
--- a/Jusin154_Team3D/Editor/Private/Level_Logo.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_Logo.cpp
@@ -59,6 +59,10 @@ void CLevel_Logo::Update(_float fTimeDelta)
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::MAP))))
return;
#endif // gimch
+#ifdef 기무리
+ if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::OBJECT))))
+ return;
+#endif // 기무리
#ifdef 진우
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::EFFECT))))
return;
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index 0860699c9..9174e57e1 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -118,6 +118,11 @@
#include "SpellLearn_Name.h"
#include "SpellLearn.h"
#include "SpellLearn_MovePointer.h"
+#include "SpellLearn_ChaserPointer.h"
+#include "SpellLearn_LookPointer.h"
+#include "SpellLearn_Booster.h"
+#include "SpellLearn_Slot.h"
+#include "SpellLearn_Overlay.h"
#include "IMGUIUI.h"
@@ -352,6 +357,12 @@ HRESULT CLoader::Loading_For_Logo()
VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NPC_PBR_ANIM,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"),
+ VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_CELL,
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_Cell.hlsl"),
@@ -1214,6 +1225,7 @@ HRESULT CLoader::Loading_For_UI()
{
return E_FAIL;
}
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_Canvas::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
@@ -1234,6 +1246,26 @@ HRESULT CLoader::Loading_For_UI()
{
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_ChaserPointer::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_LookPointer::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_Booster::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_Slot::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_Overlay::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CIMGUIUI::Create(m_pDevice, m_pContext))))
{
@@ -2398,6 +2430,19 @@ HRESULT CLoader::Loading_For_ObjectViewer()
TEXT("Prototype_Component_Dragon_Model")
));
+ futures.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_ConjuredDragon_Model")
+ ));
+
+ //if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_ConjuredDragon_Model"),
+ // CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f))* XMMatrixIdentity()))))
+ // return E_FAIL;
+ futures.emplace_back(Deferred_ModelLoad(
+ MODEL::ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.bin", XMMatrixIdentity(),
+ TEXT("Prototype_Component_ConjuredDragon_Anim_Model")
+ ));
+
#pragma endregion
futures.emplace_back(Deferred_ModelLoad(
diff --git a/Jusin154_Team3D/Editor/Private/Magic_Item.cpp b/Jusin154_Team3D/Editor/Private/Magic_Item.cpp
index 91c3b012a..a8f16745b 100644
--- a/Jusin154_Team3D/Editor/Private/Magic_Item.cpp
+++ b/Jusin154_Team3D/Editor/Private/Magic_Item.cpp
@@ -51,7 +51,7 @@ HRESULT CMagic_Item::Initialize(void* pArg)
void CMagic_Item::Compute_UV(_uint iItemID)
{
- _float2 fImage_Size = { 320.f, 384.f};
+ _float2 fImage_Size = { 320.f, 384.f };
_uint iCountX = 5;
_uint iCountY = 6;
@@ -76,8 +76,8 @@ void CMagic_Item::Compute_UV(_uint iItemID)
void CMagic_Item::Compute_Image()
{
- m_vImagePos1 = _float2(72.f, 0.f);
- m_vImageSize1 = _float2(30.f, 30.f);
+ m_vImageposi1 = _float4(30.f, 30.f, 120.f, 120.f);
+ m_vImageposi2 = _float4(70.f, 0.f, 30.f, 30.f);
}
void CMagic_Item::Priority_Update(_float fTimeDelta)
@@ -121,19 +121,6 @@ void CMagic_Item::Update(_float fTimeDelta)
}
}
- if (m_vUVScale.y >= 1.f)
- {
- if (m_pGameInstance->Key_Down(DIK_TAB))
- {
- m_vUVScale.y = 0.f;
- }
- }
-
- if (m_vUVScale.y <= 1)
- {
- m_vUVScale.y += fTimeDelta * (1.f / m_fCoolTime);
- }
-
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
}
@@ -236,11 +223,11 @@ HRESULT CMagic_Item::Bind_ShaderResources()
{
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition1", &m_vImagePos1, sizeof(_float2))))
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_vImageposi1, sizeof(_float4))))
{
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes1", &m_vImageSize1, sizeof(_float2))))
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos2", &m_vImageposi2, sizeof(_float4))))
{
return E_FAIL;
}
@@ -248,6 +235,7 @@ HRESULT CMagic_Item::Bind_ShaderResources()
{
return E_FAIL;
}
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Player.cpp b/Jusin154_Team3D/Editor/Private/Player.cpp
index 8893229c5..094a63672 100644
--- a/Jusin154_Team3D/Editor/Private/Player.cpp
+++ b/Jusin154_Team3D/Editor/Private/Player.cpp
@@ -304,7 +304,7 @@ HRESULT CPlayer::Ready_Components()
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());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
return S_OK;
diff --git a/Jusin154_Team3D/Editor/Private/SPellLeam_SpeedPointer.cpp b/Jusin154_Team3D/Editor/Private/SPellLeam_SpeedPointer.cpp
deleted file mode 100644
index de1ee7712..000000000
--- a/Jusin154_Team3D/Editor/Private/SPellLeam_SpeedPointer.cpp
+++ /dev/null
@@ -1,96 +0,0 @@
-#include "pch.h"
-#include "SPellLeam_SpeedPointer.h"
-#include "GameInstance.h"
-
-CSPellLeam_SpeedPointer::CSPellLeam_SpeedPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
- :CElementObject(pDevice, pContext)
-{
-}
-
-CSPellLeam_SpeedPointer::CSPellLeam_SpeedPointer(const CSPellLeam_SpeedPointer& rhs)
- :CElementObject(rhs)
-{
-}
-
-HRESULT CSPellLeam_SpeedPointer::Initialize_Prototype()
-{
- return S_OK;
-}
-
-HRESULT CSPellLeam_SpeedPointer::Initialize(void* pArg)
-{
- CUIObject::UIOBJECT_DESC Desc{};
-
- Desc.fX = 476.f;
- Desc.fY = -253.f;
- Desc.fSizeX = 32.f;
- Desc.fSizeY = 32.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 = 5.f;
- m_fMoveSpeed = 15.f;
- m_fAngle = XMConvertToRadians(0);
- Visible(false);
- return S_OK;
-}
-
-void CSPellLeam_SpeedPointer::Priority_Update(_float fTimeDelta)
-{
-}
-
-void CSPellLeam_SpeedPointer::Update(_float fTimeDelta)
-{
-}
-
-void CSPellLeam_SpeedPointer::Late_Update(_float fTimeDelta)
-{
-}
-
-HRESULT CSPellLeam_SpeedPointer::Render()
-{
- return S_OK;
-}
-
-_vector CSPellLeam_SpeedPointer::Get_WorldPostion()
-{
- return _vector();
-}
-
-HRESULT CSPellLeam_SpeedPointer::Bind_ShaderResources()
-{
- return S_OK;
-}
-
-HRESULT CSPellLeam_SpeedPointer::Ready_Components(void* pArg)
-{
- return S_OK;
-}
-
-CSPellLeam_SpeedPointer* CSPellLeam_SpeedPointer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
-{
- return nullptr;
-}
-
-CGameObject* CSPellLeam_SpeedPointer::Clone(void* pArg, CGameObject* pOwner)
-{
- return nullptr;
-}
-
-void CSPellLeam_SpeedPointer::Free()
-{
-}
-
-void CSPellLeam_SpeedPointer::Describe_Entity()
-{
-}
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn.cpp
index 8a0468f02..5798d5f0d 100644
--- a/Jusin154_Team3D/Editor/Private/SpellLearn.cpp
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn.cpp
@@ -2,6 +2,7 @@
#include "SpellLearn.h"
#include "GameInstance.h"
#include "SpellLearn_MovePointer.h"
+#include "SpellLearn_ChaserPointer.h"
CSpellLearn::CSpellLearn(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CElementObject(pDevice, pContext)
@@ -38,8 +39,12 @@ HRESULT CSpellLearn::Initialize(void* pArg)
}
m_fTimeMult = 3.f;
- m_fAlpha = 1.f;
+ m_fAlpha = 0.f;
m_fAlphaTime = 5.f;
+ m_iTrailIndex = 0;
+ m_fSortZ = 0.02f;
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ static_cast(m_pOwner)->Add_Function(TEXT("OverrlayClear"), [this](void* p) {this->Set_FadeOut(); });
Change_Image(0);
Visible(false);
return S_OK;
@@ -86,7 +91,44 @@ void CSpellLearn::Update(_float fTimeDelta)
}
}
- m_fTime += fTimeDelta * m_fTimeMult;
+ if (m_bReset == true)
+ {
+ m_Trail.clear();
+ m_ChaseTrail.clear();
+ m_bReset = false;
+ }
+
+ if (m_bHover == false)
+ {
+ fill(m_Trail.begin(), m_Trail.end(), _float2(-9999.f, -9999.f));
+ fill(m_ChaseTrail.begin(), m_ChaseTrail.end(), _float2(-9999.f, -9999.f));
+ m_bReset = true;
+ }
+
+ if (m_pPointer != nullptr)
+ {
+ if (m_pPointer->Get_MoveStart() == true)
+ {
+ m_bHover = true;
+ m_vPointerPosition = m_pPointer->Get_Position();
+ m_vPointerScale = m_pPointer->Get_Current_Size();
+
+ m_vChasePosition = m_pChasePointer->Get_Position();
+ m_vChaseScale = m_pChasePointer->Get_Current_Size();
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ if (m_fTime >= 0.3f)
+ {
+ m_fTime = 0.f;
+ m_Trail.push_back(m_vPointerPosition);
+ m_iTrailIndex++;
+ m_ChaseTrail.push_back(m_vChasePosition);
+ m_iChaseiTrailIndex++;
+ }
+ }
+ }
+
+
__super::Update(fTimeDelta);
}
@@ -98,11 +140,7 @@ void CSpellLearn::Late_Update(_float fTimeDelta)
}
if (m_bVisible) {
if (m_pPointer != nullptr)
- {
- m_vPointerPosition = m_pPointer->Get_Position();
- m_vPointerScale = m_pPointer->Get_Current_Size();
- }
- m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
__super::Late_Update(fTimeDelta);
}
}
@@ -172,10 +210,6 @@ HRESULT CSpellLearn::Bind_ShaderResources()
{
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition1", &m_vPointerPosition, sizeof(_float2))))
- {
- return E_FAIL;
- }
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes1", &m_vPointerScale, sizeof(_float2))))
{
return E_FAIL;
@@ -188,7 +222,22 @@ HRESULT CSpellLearn::Bind_ShaderResources()
{
return E_FAIL;
}
-
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_Trail", m_Trail.data(), sizeof(_float2) * _uint(m_Trail.size()))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_Count", &m_iTrailIndex, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_ChaseTrail", m_ChaseTrail.data(), sizeof(_float2) * _uint(m_Trail.size()))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_ChaseCount", &m_iChaseiTrailIndex, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
return S_OK;
}
@@ -216,9 +265,14 @@ HRESULT CSpellLearn::Ready_Components(void* pArg)
HRESULT CSpellLearn::Change_Image(_int SpellID)
{
+ m_bHover = false;
+ m_ChaseTrail.push_back(_float2(-9999.f, -9999.f));
+ m_Trail.push_back(_float2(-9999.f, -9999.f));
+ m_iTrailIndex = 0;
+ m_iChaseiTrailIndex = 0;
_wstring pName = TEXT("Prototype_Texture_");
_wstring pImageName = pName + static_cast(m_pOwner)->Get_Learninfo(SpellID).pImageName;
-
+ m_MoveLine = static_cast(m_pOwner)->Get_Learninfo(SpellID).Lines;
if (m_pDiffuse_TextureCom)
{
Remove_Component();
@@ -227,12 +281,19 @@ HRESULT CSpellLearn::Change_Image(_int SpellID)
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(LEVEL::UI), pImageName, reinterpret_cast(&m_pDiffuse_TextureCom))))
return E_FAIL;
+ Set_FadeIn();
return S_OK;
}
-void CSpellLearn::Set_Pointer(CSpellLearn_MovePointer* Pointer)
+void CSpellLearn::Set_Pointer(CSpellLearn_MovePointer* Pointer, CSpellLearn_ChaserPointer* Chase)
{
m_pPointer = Pointer;
+ m_pChasePointer = Chase;
+}
+
+void CSpellLearn::Clear()
+{
+ fill(m_ChaseTrail.begin(), m_ChaseTrail.end(), _float2(-9999.f, -9999.f));
}
CSpellLearn* CSpellLearn::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_Booster.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_Booster.cpp
new file mode 100644
index 000000000..df6f02a4a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_Booster.cpp
@@ -0,0 +1,317 @@
+#include "pch.h"
+#include "SpellLearn_Booster.h"
+#include "GameInstance.h"
+
+CSpellLearn_Booster::CSpellLearn_Booster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_Booster::CSpellLearn_Booster(const CSpellLearn_Booster& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpellLearn_Booster::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Booster::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 476.f;
+ Desc.fY = -253.f;
+ Desc.fSizeX = 64.f;
+ Desc.fSizeY = 64.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 = 5.f;
+ m_fAngle = XMConvertToRadians(0);
+ m_bHover = true;
+ m_fImagePosi = _float4(16.f, 16.f, 32.f, 32.f);
+ static_cast(m_pOwner)->Add_Function(TEXT("BoosterOn"), [this](void* p) {this->BoosterOn(p); });
+ static_cast(m_pOwner)->Add_Function(TEXT("BoosterOff"), [this](void* p) {this->BoosterOff(p); });
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ Visible(true);
+ return S_OK;
+}
+
+void CSpellLearn_Booster::BoosterOn(void* pArg)
+{
+ Booster* State = static_cast(pArg);
+ if (State->iBoosterIndex != m_iIndex)
+ return;
+
+ m_bBoosterOn = true;
+ m_bBoosterOff = false;
+}
+
+void CSpellLearn_Booster::BoosterOff(void* pArg)
+{
+ Booster* State = static_cast(pArg);
+
+ if (m_bBoosterOn == true)
+ return;
+
+ if (State->iBoosterIndex != m_iIndex)
+ return;
+
+ m_bBoosterOff = true;
+ static_cast(m_pOwner)->Function_Callback(TEXT("ChaseBooster"));
+}
+
+void CSpellLearn_Booster::Set_Index(_int iIndex)
+{
+ m_iIndex = iIndex;
+}
+
+void CSpellLearn_Booster::Reset()
+{
+ m_bBoosterOn = false;
+ m_bBoosterOff = false;
+ Set_FadeIn();
+}
+
+void CSpellLearn_Booster::Clear()
+{
+ Set_FadeOut();
+}
+
+void CSpellLearn_Booster::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_Booster::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ 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 * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_Booster::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpellLearn_Booster::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELLLEARNBOOSTER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_Booster::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_Booster::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_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 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;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_fImagePosi, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_bHover, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iBoosterOn", &m_bBoosterOn, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iBoosterOff", &m_bBoosterOff, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Booster::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_SU_ButtonCalloutRing"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Mouse_LeftClick"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_SpellMinigame_SpeedBurstFail"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_VFX_T_Speck_HighCoverage_D"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpellLearn_Booster* CSpellLearn_Booster::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_Booster* pInstance = new CSpellLearn_Booster(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_Booster");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_Booster::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_Booster* pInstance = new CSpellLearn_Booster(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_Booster");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_Booster::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pDiffuse_TextureCom3);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpellLearn_Booster::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_ChaserPointer.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_ChaserPointer.cpp
new file mode 100644
index 000000000..5c760c82f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_ChaserPointer.cpp
@@ -0,0 +1,290 @@
+#include "pch.h"
+#include "SpellLearn_ChaserPointer.h"
+#include "GameInstance.h"
+#include "SpellLearn_MovePointer.h"
+
+CSpellLearn_ChaserPointer::CSpellLearn_ChaserPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_ChaserPointer::CSpellLearn_ChaserPointer(const CSpellLearn_ChaserPointer& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpellLearn_ChaserPointer::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_ChaserPointer::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 476.f;
+ Desc.fY = -253.f;
+ Desc.fSizeX = 32.f;
+ Desc.fSizeY = 32.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.f;
+ m_fAlphaTime = 5.f;
+ m_fMoveSpeed = 165.f;
+ static_cast(m_pOwner)->Add_Function(TEXT("ChaseBooster"), [this](void* p) {this->SpeedUp(); });
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ Set_SpellLearn(0);
+ Visible(false);
+ return S_OK;
+}
+
+void CSpellLearn_ChaserPointer::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_ChaserPointer::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ 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 * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ if (m_bMoveStart == true)
+ {
+ Line(fTimeDelta);
+ }
+
+ if (m_fMoveSpeed >= 165.f)
+ {
+ m_fMoveSpeed -= fTimeDelta;
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_ChaserPointer::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpellLearn_ChaserPointer::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 CSpellLearn_ChaserPointer::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpellLearn_ChaserPointer::Set_SpellLearn(_int Index)
+{
+ m_fAlpha = 0.f;
+ m_bHover = false;
+ m_bMoveStart = false;
+ m_fTime = 0.f;
+ m_iLineIndex = _int(static_cast(m_pOwner)->Get_Learninfo(Index).Lines.size());
+ m_MoveLine = static_cast(m_pOwner)->Get_Learninfo(Index).Lines;
+ m_iCurrentLine = 0;
+ m_fX = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.x;
+ m_fY = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.y;
+ m_fMoveSpeed = 165.f;
+}
+
+void CSpellLearn_ChaserPointer::Set_Move()
+{
+ m_bHover = true;
+ m_bMoveStart = true;
+}
+
+void CSpellLearn_ChaserPointer::Line(_float fTime)
+{
+ m_vLerp_Position = m_MoveLine[m_iCurrentLine];
+
+ if (Start_Lerp(fTime) == true)
+ {
+ if (m_iCurrentLine < m_iLineIndex - 1)
+ {
+ ++m_iCurrentLine;
+ }
+ else
+ {
+ m_bMoveStart = false;
+ }
+ }
+
+}
+
+void CSpellLearn_ChaserPointer::SpeedUp()
+{
+ m_fMoveSpeed = 190.f;
+}
+
+void CSpellLearn_ChaserPointer::Clear()
+{
+ m_fMoveSpeed = 0.f;
+ Set_FadeOut();
+}
+
+HRESULT CSpellLearn_ChaserPointer::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 CSpellLearn_ChaserPointer::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_SpellMinigame_SpeedBurstDropBack"), 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;
+}
+
+CSpellLearn_ChaserPointer* CSpellLearn_ChaserPointer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_ChaserPointer* pInstance = new CSpellLearn_ChaserPointer(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_ChaserPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_ChaserPointer::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_ChaserPointer* pInstance = new CSpellLearn_ChaserPointer(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_ChaserPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_ChaserPointer::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpellLearn_ChaserPointer::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_Data.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_Data.cpp
index da293f8fe..2456abd27 100644
--- a/Jusin154_Team3D/Editor/Private/SpellLearn_Data.cpp
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_Data.cpp
@@ -41,12 +41,34 @@ HRESULT CSpellLearn_Data::Initialize(void* pArg)
// 속성 읽기
Info.pSpellName = CMyTools::ToWstring(pName->Attribute("SpellName"));
Info.pImageName = CMyTools::ToWstring(pName->Attribute("ImageName"));
+ pName->QueryIntAttribute("SpellID", &Info.iSpellID);
+ pName->QueryIntAttribute("SpellType", &Info.iSpellType);
pName->QueryFloatAttribute("Size", &Info.fSpellSize);
_float fX{}, fY{};
pName->QueryFloatAttribute("x", &fX);
pName->QueryFloatAttribute("y", &fY);
Info.fStartPosition = _float2(fX, fY);
+ _float endx{}, endy{};
+ pName->QueryFloatAttribute("endx", &endx);
+ pName->QueryFloatAttribute("endy", &endy);
+ Info.fEndPosition = _float2(endx, endy);
+
+ tinyxml2::XMLElement* pBooster = pName->FirstChildElement("Booster");
+ while (pBooster)
+ {
+ tinyxml2::XMLElement* pPos = pBooster->FirstChildElement("Pos");
+ if (pPos)
+ {
+ _float px{}, py{};
+ pPos->QueryFloatAttribute("x", &px);
+ pPos->QueryFloatAttribute("y", &py);
+ Info.Booster.push_back(XMVectorSet(px, py, 0.f, 1.f));
+ }
+
+ // 다음 Position으로 이동
+ pBooster = pBooster->NextSiblingElement("Booster");
+ }
// Position 요소 반복
tinyxml2::XMLElement* pPosition = pName->FirstChildElement("Position");
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_LookPointer.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_LookPointer.cpp
new file mode 100644
index 000000000..1db84a47b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_LookPointer.cpp
@@ -0,0 +1,253 @@
+#include "pch.h"
+#include "SpellLearn_LookPointer.h"
+#include "GameInstance.h"
+
+CSpellLearn_LookPointer::CSpellLearn_LookPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_LookPointer::CSpellLearn_LookPointer(const CSpellLearn_LookPointer& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpellLearn_LookPointer::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_LookPointer::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 100.f;
+ Desc.fY = 100.f;
+ Desc.fSizeX = 80.f;
+ Desc.fSizeY = 80.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 = 5.f;
+ m_fMoveSpeed = 130.f;
+ Set_SpellLearn(0);
+ m_fAngle = XMConvertToRadians(0);
+ Visible(true);
+ m_localX = 0.f;
+ m_localY = 20.f;
+ return S_OK;
+}
+
+void CSpellLearn_LookPointer::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_LookPointer::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ 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 * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fAngle = XMConvertToRadians(static_cast(m_pOwner)->Get_Angle());
+
+ float cosA = cos(m_fAngle);
+ float sinA = sin(m_fAngle);
+
+ float rotatedX = m_localX * cosA - m_localY * sinA;
+ float rotatedY = m_localX * sinA + m_localY * cosA;
+
+ MoveX(rotatedX);
+ MoveY(rotatedY);
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_LookPointer::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpellLearn_LookPointer::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ROTATION)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_LookPointer::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_LookPointer::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;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fMapAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_LookPointer::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_SU_CursorArrow"), 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;
+}
+
+void CSpellLearn_LookPointer::Set_SpellLearn(_int Index)
+{
+ m_bMoveStart = false;
+ m_iLineIndex = _int(static_cast(m_pOwner)->Get_Learninfo(Index).Lines.size());
+ m_MoveLine = static_cast(m_pOwner)->Get_Learninfo(Index).Lines;
+ m_iCurrentLine = 0;
+ m_fX = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.x;
+ m_fY = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.y;
+}
+
+CSpellLearn_LookPointer* CSpellLearn_LookPointer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_LookPointer* pInstance = new CSpellLearn_LookPointer(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_LookPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_LookPointer::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_LookPointer* pInstance = new CSpellLearn_LookPointer(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_LookPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_LookPointer::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpellLearn_LookPointer::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_MovePointer.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_MovePointer.cpp
index 2c9c95b4c..e87b2b30c 100644
--- a/Jusin154_Team3D/Editor/Private/SpellLearn_MovePointer.cpp
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_MovePointer.cpp
@@ -1,6 +1,7 @@
#include "pch.h"
#include "SpellLearn_MovePointer.h"
#include "GameInstance.h"
+#include "SpellLearn_LookPointer.h"
CSpellLearn_MovePointer::CSpellLearn_MovePointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CElementObject(pDevice, pContext)
@@ -36,41 +37,68 @@ HRESULT CSpellLearn_MovePointer::Initialize(void* pArg)
return E_FAIL;
}
- m_fTimeMult = 3.f;
- m_fAlpha = 1.f;
+ m_fTimeMult = 10.f;
+ m_fAlpha = 0.f;
m_fAlphaTime = 5.f;
- m_fMoveSpeed = 15.f;
+ m_fMoveSpeed = 105.f;
Set_SpellLearn(0);
m_fAngle = XMConvertToRadians(0);
+ static_cast(m_pOwner)->Add_Function(TEXT("Booster"), [this](void* p) {this->Set_Booster(p); });
Visible(false);
return S_OK;
}
void CSpellLearn_MovePointer::Set_SpellLearn(_int Index)
{
+ m_bMoveStart = false;
+ m_bHover = true;
m_iLineIndex = _int(static_cast(m_pOwner)->Get_Learninfo(Index).Lines.size());
m_MoveLine = static_cast(m_pOwner)->Get_Learninfo(Index).Lines;
+ m_Boosters = static_cast(m_pOwner)->Get_Learninfo(Index).Booster;
m_iCurrentLine = 0;
m_fX = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.x;
m_fY = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.y;
+ m_Booster.iBoosterIndex = -1;
+ m_Booster.bBoosterOn = false;
+ Set_FadeIn();
}
-void CSpellLearn_MovePointer::Line(_float fTime)
+_int CSpellLearn_MovePointer::Get_SpellTrail()
+{
+ return m_iCurrentLine;
+}
+
+_bool CSpellLearn_MovePointer::Get_MoveStart()
+{
+ return m_bMoveStart;
+}
+
+void CSpellLearn_MovePointer::Line(_float fTime, _float2 fMouse)
{
m_vLerp_Position = m_MoveLine[m_iCurrentLine];
- if (Start_Lerp(m_fMoveSpeed * fTime) == true)
+ if (Start_Lerp_Speed(fTime, fMouse) == true)
{
if (m_iCurrentLine < m_iLineIndex - 1)
{
++m_iCurrentLine;
+ m_fPerPosition = _float2(m_MoveLine[m_iCurrentLine - 1].m128_f32[0], m_MoveLine[m_iCurrentLine - 1].m128_f32[1]);
}
else
{
m_bMoveStart = false;
+ Set_FadeOut();
+ static_cast(m_pOwner)->Function_Callback(TEXT("LearnClear"));
}
}
+}
+void CSpellLearn_MovePointer::Set_Booster(void* pArg)
+{
+ Booster* Info = static_cast(pArg);
+ m_Booster.iBoosterIndex = Info->iBoosterIndex;
+ m_Booster.bBoosterOn = Info->bBoosterOn;
+ m_bBooster = m_Booster.bBoosterOn;
}
void CSpellLearn_MovePointer::Priority_Update(_float fTimeDelta)
@@ -114,28 +142,45 @@ void CSpellLearn_MovePointer::Update(_float fTimeDelta)
}
}
+ POINT ptMouse{};
+ GetCursorPos(&ptMouse);
+ ScreenToClient(g_hWnd, &ptMouse);
+ _float2 fMouse{};
+ fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
+ fMouse.y = -ptMouse.y + (g_iWinSizeY * 0.5f);
+
+ _float2 fFinalMouse{};
+ fFinalMouse.x = fMouse.x - m_fX;
+ fFinalMouse.y = fMouse.y - m_fY;
+
if (m_pGameInstance->Key_Down(DIK_L))
{
m_bMoveStart = true;
+ m_bBooster = false;
+ m_fMoveSpeed = 105.f;
}
if (m_bMoveStart == true)
{
- Line(fTimeDelta);
+ Line(fTimeDelta, fMouse);
}
- POINT ptMouse{};
- GetCursorPos(&ptMouse);
- ScreenToClient(g_hWnd, &ptMouse);
- _float2 fMouse;
- fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
- fMouse.y = -ptMouse.y + (g_iWinSizeY * 0.5f);
+ m_fAngle = atan2(-fFinalMouse.x, fFinalMouse.y);
- fMouse.x = fMouse.x - m_fX;
- fMouse.y = fMouse.y - m_fY;
+ if (m_bBooster == true)
+ {
+ if (m_pGameInstance->Mouse_Down(DIM_LBUTTON))
+ {
+ m_bBooster = false;
+ m_fMoveSpeed = 160.f;
+ static_cast(m_pOwner)->Function_Callback(TEXT("BoosterOn"), &m_Booster);
+ }
+ }
-
- m_fAngle = atan2(-fMouse.x, fMouse.y);
+ if (m_fMoveSpeed >= 105.f)
+ {
+ m_fMoveSpeed -= fTimeDelta * m_fTimeMult;
+ }
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
@@ -148,7 +193,8 @@ void CSpellLearn_MovePointer::Late_Update(_float fTimeDelta)
return;
}
if (m_bVisible) {
- m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ if (m_bHover == true)
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
__super::Late_Update(fTimeDelta);
}
}
@@ -237,6 +283,10 @@ HRESULT CSpellLearn_MovePointer::Ready_Components(void* pArg)
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLeam_LookPointer))))
+ {
+ return E_FAIL;
+ }
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_Overlay.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_Overlay.cpp
new file mode 100644
index 000000000..7c04ff286
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_Overlay.cpp
@@ -0,0 +1,387 @@
+#include "pch.h"
+#include "SpellLearn_Overlay.h"
+#include "GameInstance.h"
+
+CSpellLearn_Overlay::CSpellLearn_Overlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_Overlay::CSpellLearn_Overlay(const CSpellLearn_Overlay& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpellLearn_Overlay::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Overlay::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 380.f;
+ Desc.fY = -30.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.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_iImageFrameX = 8;
+ m_iImageFrameY = 8;
+ m_fFrame = 0.2f;
+ m_fTimeMult = 3.f;
+ m_fAngle = XMConvertToRadians(-135.f);
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 1.f;
+ m_vUVScale.x = 1.f;
+ m_vUVScale.y = 1.f;
+ m_fCoolTime = 5.f;
+ m_fSortZ = 0.01f;
+ m_fMoveSpeed = 10.f;
+ m_fLerpX = 600.f;
+ m_fLerpY = 100.f;
+ m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ Compute_UI(5);
+ return S_OK;
+}
+
+void CSpellLearn_Overlay::Set_SpellLearn(_int Index)
+{
+ Compute_UI(static_cast(m_pOwner)->Get_Learninfo(Index).iSpellID);
+ m_vUVScale.y = 0.f;
+ m_fTrail = 0.f;
+ m_iSpellType = static_cast(m_pOwner)->Get_Learninfo(Index).iSpellType;
+ m_fSpellLearn = _float(static_cast(m_pOwner)->Get_Learninfo(Index).Lines.size());
+ MoveX(static_cast(m_pOwner)->Get_Learninfo(Index).fEndPosition.x);
+ MoveY(static_cast(m_pOwner)->Get_Learninfo(Index).fEndPosition.y);
+ SizeUpdate(m_fOrigin_Size.x, m_fOrigin_Size.y);
+ m_fSizeUp = false;
+ m_bClear = false;
+}
+
+void CSpellLearn_Overlay::Set_Count(_int Index)
+{
+ m_fTrail = _float(Index);
+}
+
+void CSpellLearn_Overlay::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_Overlay::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ 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;
+ }
+ }
+
+ Update_Trail(fTimeDelta);
+
+ if (m_bClear == true)
+ {
+ SizeUp(fTimeDelta * m_fTimeMult * m_fMoveSpeed);
+ }
+
+ if (m_fSizeUp == true)
+ {
+ if (Start_Lerp(fTimeDelta * m_fTimeMult * m_fMoveSpeed) == true)
+ {
+ m_fSizeUp = false;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_Overlay::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpellLearn_Overlay::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::TYPE))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_Overlay::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_Overlay::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_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 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_fFrame", &m_fFrame, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, 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_iSpellType", &m_iSpellType, sizeof(_int))))
+ {
+ 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_iImageCountX", &m_iImageFrameX, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iImageCountY", &m_iImageFrameY, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaU", &m_vUVScale.x, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaV", &m_vUVScale.y, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoolTime", &m_fCoolTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Overlay::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_ActionItemBack_4K"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_spellmeter_Generic"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Atlas_Spell"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_tillingSmokes"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CSpellLearn_Overlay::Clear()
+{
+ m_vUVScale.y = 1.2f;
+ m_bClear = true;
+}
+
+void CSpellLearn_Overlay::Compute_UI(_uint SpellID)
+{
+ _float2 fImage_Size = { 1024.f, 1792.f };
+
+ _uint iCountX = 4;
+ _uint iCountY = 6;
+
+ _float iImageX = 256.f;
+ _float iImageY = 256.f;
+
+ _uint iframeX = SpellID % iCountX;
+ _uint iframeY = SpellID / iCountX;
+
+ _float2 UVStart;
+ UVStart.x = iframeX * iImageX / fImage_Size.x;
+ UVStart.y = iframeY * iImageY / fImage_Size.y;
+
+ _float2 UVEnd;
+ UVEnd.x = UVStart.x + (iImageX / fImage_Size.x);
+ UVEnd.y = UVStart.y + (iImageY / fImage_Size.y);
+
+ _float4 UV = _float4{ UVStart.x, UVStart.y, UVEnd.x, UVEnd.y };
+ m_vUV = UV;
+}
+
+void CSpellLearn_Overlay::Update_Trail(_float fTimeaDalta)
+{
+ m_vUVScale.y = CMyTools::Lerp_f1D(m_vUVScale.y, m_fTrail / m_fSpellLearn * 1.05f, fTimeaDalta * m_fMoveSpeed);
+}
+
+void CSpellLearn_Overlay::SizeUp(_float fSizeX)
+{
+ m_fSizeX += fSizeX;
+ m_fSizeY += fSizeX;
+
+ if (160.f <= m_fSizeX + fSizeX)
+ {
+ m_fSizeX = 160.f;
+ m_fSizeY = 160.f;
+ m_bClear = false;
+ m_fSizeUp = true;
+ static_cast(m_pOwner)->Function_Callback(TEXT("OverrlayClear"));
+ }
+}
+
+CSpellLearn_Overlay* CSpellLearn_Overlay::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_Overlay* pInstance = new CSpellLearn_Overlay(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_Overlay");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_Overlay::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_Overlay* pInstance = new CSpellLearn_Overlay(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Overlay");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_Overlay::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pDiffuse_TextureCom3);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpellLearn_Overlay::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_Panel.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_Panel.cpp
index 928db31af..be6ab523c 100644
--- a/Jusin154_Team3D/Editor/Private/SpellLearn_Panel.cpp
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_Panel.cpp
@@ -4,7 +4,11 @@
#include "SpellLearn_Name.h"
#include "SpellLearn.h"
#include "SpellLearn_MovePointer.h"
+#include "SPellLearn_ChaserPointer.h"
#include "SpellLearn_Data.h"
+#include "SpellLearn_Booster.h"
+#include "SpellLearn_Slot.h"
+#include "SpellLearn_Overlay.h"
CSpellLearn_Panel::CSpellLearn_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CPanelObject(pDevice, pContext)
@@ -45,7 +49,22 @@ HRESULT CSpellLearn_Panel::Initialize(void* pArg)
m_fCanvasAlpha = 1.f;
m_fSortZ = 0.05f;
m_fDelayTime = 1.f;
- static_cast(m_pSpellLearn)->Set_Pointer(static_cast(m_pSpellLearn_MovePointer));
+ static_cast(m_pSpellLearn)->Set_Pointer(
+ static_cast(m_pSpellLearn_MovePointer),
+ static_cast(m_pSpellLearn_ChaserPointer));
+
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ static_cast(m_pBooster[i])->Move(Get_Learninfo(Index).Booster[i].m128_f32[0],
+ Get_Learninfo(Index).Booster[i].m128_f32[1]);
+ }
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ m_PointerStates.push_back(m_State);
+ m_ChaseStates.push_back(m_State);
+ }
+ static_cast(m_pSpellLearn_Overlay)->Set_SpellLearn(0);
+ static_cast(m_pSpellLearn_Slot)->Set_SpellLearn(0);
Visible(true);
ElementAllVisible(true);
return S_OK;
@@ -56,6 +75,23 @@ const CUIObject::SPELLLEARNINFO CSpellLearn_Panel::Get_Learninfo(_int Index)
return static_cast(m_pSpellLearn_Data)->Get_SpellLearn(Index);
}
+void CSpellLearn_Panel::Set_Learn(_int Index)
+{
+ m_fTime = 0.f;
+ static_cast(m_pSpellLearn)->Change_Image(Index);
+ static_cast(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index);
+ static_cast(m_pSpellLearn_ChaserPointer)->Set_SpellLearn(Index);
+ static_cast(m_pSpellLearn_Name)->Set_Name(Index);
+ static_cast(m_pSpellLearn_Overlay)->Set_SpellLearn(Index);
+ static_cast(m_pSpellLearn_Slot)->Set_SpellLearn(Index);
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ static_cast(m_pBooster[i])->Move(Get_Learninfo(Index).Booster[i].m128_f32[0],
+ Get_Learninfo(Index).Booster[i].m128_f32[1]);
+ static_cast(m_pBooster[i])->Reset();
+ }
+}
+
void CSpellLearn_Panel::Priority_Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
@@ -82,11 +118,90 @@ void CSpellLearn_Panel::Update(_float fTimeDelta)
{
Index++;
}
- static_cast(m_pSpellLearn)->Change_Image(Index);
- static_cast(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index);
- static_cast(m_pSpellLearn_Name)->Set_Name(Index);
+ Set_Learn(Index);
}
+ if (static_cast(m_pSpellLearn_MovePointer)->Get_MoveStart() == true)
+ {
+ m_fTime += fTimeDelta;
+
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ m_PointerStates[i].bPerHit = m_PointerStates[i].bHit;
+
+ _bool bPointer = Chack_Element(static_cast(m_pBooster[i])->Get_Position(),
+ static_cast(m_pSpellLearn_MovePointer)->Get_Position(),
+ static_cast(m_pSpellLearn_MovePointer)->Get_Current_Size().x,
+ static_cast(m_pSpellLearn_MovePointer)->Get_Current_Size().x);
+
+ m_PointerStates[i].bHit = bPointer;
+
+ if (m_PointerStates[i].bHit == true && m_PointerStates[i].bPerHit == false)
+ {
+ m_Booster.iBoosterIndex = _int(i);
+ m_Booster.bBoosterOn = true;
+ Function_Callback(TEXT("Booster"), &m_Booster);
+ }
+
+ if (m_PointerStates[i].bHit == false && m_PointerStates[i].bPerHit == true)
+ {
+ m_Booster.iBoosterIndex = _int(i);
+ m_Booster.bBoosterOn = false;
+ Function_Callback(TEXT("Booster"), &m_Booster);
+ }
+ }
+
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ m_ChaseStates[i].bPerHit = m_ChaseStates[i].bHit;
+
+ _bool bPointer = Chack_Element(static_cast(m_pBooster[i])->Get_Position(),
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Position(),
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x,
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x);
+
+ m_ChaseStates[i].bHit = bPointer;
+
+ if (m_ChaseStates[i].bHit == true && m_ChaseStates[i].bPerHit == false)
+ {
+ m_Booster.iBoosterIndex = _int(i);
+ m_Booster.bBoosterOn = true;
+ Function_Callback(TEXT("BoosterOff"), &m_Booster);
+ }
+
+ static_cast(m_pSpellLearn_Overlay)->Set_Count(
+ static_cast(m_pSpellLearn_MovePointer)->Get_SpellTrail());
+
+ }
+
+ if (m_fTime >= 1.f)
+ {
+ static_cast(m_pSpellLearn_ChaserPointer)->Set_FadeIn();
+ }
+
+ if (m_fTime >= 2.f)
+ {
+ static_cast(m_pSpellLearn_ChaserPointer)->Set_Move();
+
+ if (_bool bPointer = Chack_Element(static_cast(m_pSpellLearn_MovePointer)->Get_Position(),
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Position(),
+ static_cast(m_pSpellLearn_MovePointer)->Get_Current_Size().x,
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x) == true)
+ {
+ Set_Learn(Index);
+
+ m_Booster.iBoosterIndex = _int(-1);
+ m_Booster.bBoosterOn = false;
+ Function_Callback(TEXT("Booster"), &m_Booster);
+ for (size_t i = 0; i < m_PointerStates.size(); ++i)
+ {
+ m_PointerStates[i].bPerHit = false;
+ m_PointerStates[i].bHit = false;
+ }
+ }
+
+ }
+ }
__super::Update(fTimeDelta);
}
@@ -213,6 +328,36 @@ HRESULT CSpellLearn_Panel::Ready_Element(void* pArg)
}
Add_Element(TEXT("SpellLearn_MovePointer"), m_pSpellLearn_MovePointer);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_ChaserPointer))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("SPellLeam_ChaserPointer"), m_pSpellLearn_ChaserPointer);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Slot))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("SpellLearn_Slot"), m_pSpellLearn_Slot);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Overlay))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("SpellLearn_Overlay"), m_pSpellLearn_Overlay);
+
+ for (_int i = 0; i < 3; ++i)
+ {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Booster))))
+ {
+ return E_FAIL;
+ }
+
+ static_cast(m_pSpellLearn_Booster)->Set_Index(i);
+
+ m_pBooster.push_back(m_pSpellLearn_Booster);
+ }
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_Slot.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_Slot.cpp
new file mode 100644
index 000000000..f7d879eaf
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_Slot.cpp
@@ -0,0 +1,283 @@
+#include "pch.h"
+#include "SpellLearn_Slot.h"
+#include "GameInstance.h"
+
+CSpellLearn_Slot::CSpellLearn_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_Slot::CSpellLearn_Slot(const CSpellLearn_Slot& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpellLearn_Slot::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Slot::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 380.f;
+ Desc.fY = -30.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.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_fAngle = XMConvertToRadians(135.f);
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 1.f;
+ m_fMoveSpeed = 10.f;
+ m_fLerpX = 600.f;
+ m_fLerpY = 100.f;
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ return S_OK;
+}
+
+void CSpellLearn_Slot::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_Slot::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ 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;
+ }
+ }
+
+ if (m_bClear == true)
+ {
+ SizeUp(fTimeDelta * m_fTimeMult * m_fMoveSpeed);
+ }
+
+ if (m_fSizeUp == true)
+ {
+ if (Start_Lerp(fTimeDelta * m_fTimeMult * m_fMoveSpeed) == true)
+ {
+ m_fSizeUp = false;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_Slot::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpellLearn_Slot::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SLOT))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_Slot::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_Slot::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_fAngle", &m_fAngle, 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_iSpellType", &m_iSpellType, sizeof(_int))))
+ {
+ 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_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Slot::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;
+}
+
+void CSpellLearn_Slot::Set_SpellLearn(_int Index)
+{
+ MoveX(static_cast(m_pOwner)->Get_Learninfo(Index).fEndPosition.x);
+ MoveY(static_cast(m_pOwner)->Get_Learninfo(Index).fEndPosition.y);
+ SizeUpdate(m_fOrigin_Size.x, m_fOrigin_Size.y);
+ m_fSizeUp = false;
+ m_bClear = false;
+}
+
+void CSpellLearn_Slot::Clear()
+{
+ m_bClear = true;
+}
+
+void CSpellLearn_Slot::SizeUp(_float fSizeX)
+{
+ m_fSizeX += fSizeX;
+ m_fSizeY += fSizeX;
+
+ if (160.f <= m_fSizeX + fSizeX)
+ {
+ m_fSizeX = 160.f;
+ m_fSizeY = 160.f;
+ m_bClear = false;
+ m_fSizeUp = true;
+ }
+}
+
+CSpellLearn_Slot* CSpellLearn_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_Slot* pInstance = new CSpellLearn_Slot(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_Slot");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_Slot::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_Slot* pInstance = new CSpellLearn_Slot(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_Slot");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_Slot::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpellLearn_Slot::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Troll.cpp b/Jusin154_Team3D/Editor/Private/Troll.cpp
index 3b1493807..361d1ed97 100644
--- a/Jusin154_Team3D/Editor/Private/Troll.cpp
+++ b/Jusin154_Team3D/Editor/Private/Troll.cpp
@@ -318,7 +318,7 @@ HRESULT CTroll::Ready_Components()
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());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
//if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_TROLL"), (CComponent**)&m_pStat))) {
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index 717e4bb92..b972a447d 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -34,7 +34,7 @@ namespace Editor
REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER,
SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
- SPELL_LEARN, SPELLLEARNCOLOR,
+ SPELL_LEARN, SPELLLEARNCOLOR, SPELLLEARNBOOSTER,
ENEMY_DETECTION, INTERACTION_OBJECT, END };
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX , DISTORTION , NONPOS , NONPOS_BLUR, BLUR_MESH, END };
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
diff --git a/Jusin154_Team3D/Editor/Public/Magic_Item.h b/Jusin154_Team3D/Editor/Public/Magic_Item.h
index ebf7422c7..898ecac51 100644
--- a/Jusin154_Team3D/Editor/Public/Magic_Item.h
+++ b/Jusin154_Team3D/Editor/Public/Magic_Item.h
@@ -39,8 +39,8 @@ class CMagic_Item final : public CElementObject
_float4 m_vUV{};
_uint m_iArratCount{};
- _float2 m_vImageSize1 = {};
- _float2 m_vImagePos1 = {};
+ _float4 m_vImageposi1 = {};
+ _float4 m_vImageposi2 = {};
public:
static CMagic_Item* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Editor/Public/SpellLearn.h b/Jusin154_Team3D/Editor/Public/SpellLearn.h
index d7d9db4b4..478448067 100644
--- a/Jusin154_Team3D/Editor/Public/SpellLearn.h
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn.h
@@ -27,7 +27,11 @@ class CSpellLearn final : public CElementObject
public:
HRESULT Change_Image(_int SpellID);
- void Set_Pointer(class CSpellLearn_MovePointer* Pointer);
+ void Set_Pointer(class CSpellLearn_MovePointer* Pointer, class CSpellLearn_ChaserPointer* Chase);
+
+private:
+ void Clear();
+
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
@@ -35,9 +39,24 @@ class CSpellLearn final : public CElementObject
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
class CSpellLearn_MovePointer* m_pPointer = { nullptr };
+ class CSpellLearn_ChaserPointer* m_pChasePointer = { nullptr };
_float2 m_vPointerPosition{};
_float3 m_vPointerScale{};
+
+ _float2 m_vChasePosition{};
+ _float3 m_vChaseScale{};
+
+ _bool m_bReset{};
+
+ _int m_iIndex{};
+ _int m_iTrailIndex{};
+ vector<_float2> m_Trail;
+
+ _int m_iChaseiTrailIndex{};
+ vector<_float2> m_ChaseTrail;
+ vector<_vector> m_MoveLine;
+
public:
static CSpellLearn* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Editor/Public/SpellLearn_Booster.h b/Jusin154_Team3D/Editor/Public/SpellLearn_Booster.h
new file mode 100644
index 000000000..6020654e3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn_Booster.h
@@ -0,0 +1,63 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CSpellLearn_Booster final : public CElementObject
+{
+private:
+ struct Booster
+ {
+ _bool bBoosterOn = { false };
+ _int iBoosterIndex{};
+ };
+private:
+ CSpellLearn_Booster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_Booster(const CSpellLearn_Booster& rhs);
+ virtual ~CSpellLearn_Booster() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void BoosterOn(void* pArg);
+ void BoosterOff(void* pArg);
+
+ void Set_Index(_int iIndex);
+ void Reset();
+
+private:
+ void Clear();
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom3 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _bool m_bBoosterOn = { false };
+ _bool m_bBoosterOff = { false };
+ _float4 m_fImagePosi{};
+ _int m_iIndex{};
+public:
+ static CSpellLearn_Booster* 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/SpellLearn_ChaserPointer.h b/Jusin154_Team3D/Editor/Public/SpellLearn_ChaserPointer.h
new file mode 100644
index 000000000..319b5109d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn_ChaserPointer.h
@@ -0,0 +1,54 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CSpellLearn_ChaserPointer final : public CElementObject
+{
+private:
+ CSpellLearn_ChaserPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_ChaserPointer(const CSpellLearn_ChaserPointer& rhs);
+ virtual ~CSpellLearn_ChaserPointer() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_SpellLearn(_int Index);
+ void Set_Move();
+private:
+ void Line(_float fTime);
+ void SpeedUp();
+ void Clear();
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+
+ _bool m_bMoveStart = { false };
+
+ _int m_iLineIndex{};
+ _int m_iCurrentLine{};
+ vector<_vector> m_MoveLine;
+
+public:
+ static CSpellLearn_ChaserPointer* 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/SpellLearn_LookPointer.h b/Jusin154_Team3D/Editor/Public/SpellLearn_LookPointer.h
new file mode 100644
index 000000000..ca0580012
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn_LookPointer.h
@@ -0,0 +1,51 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CSpellLearn_LookPointer final : public CElementObject
+{
+private:
+ CSpellLearn_LookPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_LookPointer(const CSpellLearn_LookPointer& rhs);
+ virtual ~CSpellLearn_LookPointer() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_SpellLearn(_int Index);
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+
+ _bool m_bMoveStart = { false };
+
+ _int m_iLineIndex{};
+ _int m_iCurrentLine{};
+ vector<_vector> m_MoveLine;
+ _float m_localX{};
+ _float m_localY{};
+public:
+ static CSpellLearn_LookPointer* 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/SpellLearn_MovePointer.h b/Jusin154_Team3D/Editor/Public/SpellLearn_MovePointer.h
index b3c0b4b60..5a7c44978 100644
--- a/Jusin154_Team3D/Editor/Public/SpellLearn_MovePointer.h
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn_MovePointer.h
@@ -7,6 +7,12 @@ NS_BEGIN(Editor)
class CSpellLearn_MovePointer final : public CElementObject
{
+private:
+ struct Booster
+ {
+ _bool bBoosterOn = { false };
+ _int iBoosterIndex{};
+ };
private:
CSpellLearn_MovePointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CSpellLearn_MovePointer(const CSpellLearn_MovePointer& rhs);
@@ -27,23 +33,29 @@ class CSpellLearn_MovePointer final : public CElementObject
public:
void Set_SpellLearn(_int Index);
-
+ _int Get_SpellTrail();
+ _bool Get_MoveStart();
private:
- void Line(_float fTime);
+ void Line(_float fTime, _float2 fMouse);
+ void Set_Booster(void* pArg);
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ class SpellLearm_LookPointer* m_pSpellLeam_LookPointer = { nullptr };
_bool m_bMoveStart = { false };
+ _bool m_bBooster = { false };
+
+ Booster m_Booster;
_int m_iLineIndex{};
_int m_iCurrentLine{};
vector<_vector> m_MoveLine;
-
+ vector<_vector> m_Boosters;
public:
static CSpellLearn_MovePointer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Editor/Public/SpellLearn_Overlay.h b/Jusin154_Team3D/Editor/Public/SpellLearn_Overlay.h
new file mode 100644
index 000000000..a8f0d2a5e
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn_Overlay.h
@@ -0,0 +1,63 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CSpellLearn_Overlay final : public CElementObject
+{
+private:
+ CSpellLearn_Overlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_Overlay(const CSpellLearn_Overlay& rhs);
+ virtual ~CSpellLearn_Overlay() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_SpellLearn(_int Index);
+ void Set_Count(_int Index);
+
+private:
+ void Clear();
+ void Compute_UI(_uint SpellID);
+ void Update_Trail(_float fTimeaDalta);
+ void SizeUp(_float fSizeX);
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom3 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iImageFrameX{};
+ _int m_iImageFrameY{};
+ _float m_fFrame{};
+ _float4 m_vUV{};
+
+ _float m_fSpellLearn{};
+ _float m_fTrail{};
+ _float m_fTargetTrail{};
+ _bool m_bClear = { false };
+ _bool m_fSizeUp = { false };
+public:
+ static CSpellLearn_Overlay* 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/SpellLearn_Panel.h b/Jusin154_Team3D/Editor/Public/SpellLearn_Panel.h
index 5405b5c18..6e2fd4bd5 100644
--- a/Jusin154_Team3D/Editor/Public/SpellLearn_Panel.h
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn_Panel.h
@@ -11,7 +11,17 @@ NS_BEGIN(Editor)
class CSpellLearn_Panel final : public CPanelObject
{
-
+private:
+ struct Booster
+ {
+ _bool bBoosterOn = { false };
+ _int iBoosterIndex{};
+ };
+ struct State
+ {
+ _bool bHit = { false };
+ _bool bPerHit = { false };
+ };
private:
CSpellLearn_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CSpellLearn_Panel(const CSpellLearn_Panel& rhs);
@@ -34,6 +44,8 @@ class CSpellLearn_Panel final : public CPanelObject
public:
virtual const SPELLLEARNINFO Get_Learninfo(_int Index) override;
+ void Set_Learn(_int Index);
+
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
@@ -45,10 +57,19 @@ class CSpellLearn_Panel final : public CPanelObject
CGameObject* m_pSpellLearn_Name = { nullptr };
CGameObject* m_pSpellLearn = { nullptr };
CGameObject* m_pSpellLearn_MovePointer = { nullptr };
+ CGameObject* m_pSpellLearn_ChaserPointer = { nullptr };
CGameObject* m_pSpellLearn_Data = { nullptr };
+ CGameObject* m_pSpellLearn_Booster = { nullptr };
+ CGameObject* m_pSpellLearn_Slot= { nullptr };
+ CGameObject* m_pSpellLearn_Overlay = { nullptr };
_int Index{};
+ vector m_pBooster;
+ Booster m_Booster;
+ State m_State;
+ vector m_PointerStates;
+ vector m_ChaseStates;
public:
static CSpellLearn_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Editor/Public/SPellLeam_SpeedPointer.h b/Jusin154_Team3D/Editor/Public/SpellLearn_Slot.h
similarity index 64%
rename from Jusin154_Team3D/Editor/Public/SPellLeam_SpeedPointer.h
rename to Jusin154_Team3D/Editor/Public/SpellLearn_Slot.h
index a2c881d6d..d8b8382e6 100644
--- a/Jusin154_Team3D/Editor/Public/SPellLeam_SpeedPointer.h
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn_Slot.h
@@ -5,12 +5,12 @@
NS_BEGIN(Editor)
-class CSPellLeam_SpeedPointer final : public CElementObject
+class CSpellLearn_Slot final : public CElementObject
{
private:
- CSPellLeam_SpeedPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
- CSPellLeam_SpeedPointer(const CSPellLeam_SpeedPointer& rhs);
- virtual ~CSPellLeam_SpeedPointer() = default;
+ CSpellLearn_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_Slot(const CSpellLearn_Slot& rhs);
+ virtual ~CSpellLearn_Slot() = default;
public:
virtual void Priority_Update(_float fTimeDelta);
@@ -19,19 +19,28 @@ class CSPellLeam_SpeedPointer final : public CElementObject
virtual HRESULT Render() override;
virtual _vector Get_WorldPostion() override;
+
private:
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
+public:
+ void Set_SpellLearn(_int Index);
+ void Clear();
+
+private:
+ void SizeUp(_float fSizeX);
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ _bool m_bClear = { false };
+ _bool m_fSizeUp = { false };
public:
- static CSPellLeam_SpeedPointer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ static CSpellLearn_Slot* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
void Describe_Entity() override;
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 444f13d38..fb7ab27eb 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
@@ -190,6 +190,51 @@ PBR_LIGHT_OUT PBR_Lighting(
return Out;
}
+bool CalcLighting(
+ in Texture2D SurfaceTexture2D,
+ in float fTagDepthBlue,
+ in float2 uv,
+ in float3 vAlbedo,
+ inout float3 vF0,
+ inout float fMetallic,
+ inout float fRoughness,
+ inout float fOcclusion,
+ inout float fAttenuation)
+{
+ bool bResult = false;
+ if (true == AlmostEqual3(fTagDepthBlue * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic Roughness Occ
+ {
+ bResult = true;
+ float3 vMRO = SurfaceTexture2D.Sample(DefaultSampler, uv).rgb;
+ fMetallic = vMRO.r;
+ fRoughness = vMRO.g;
+ fOcclusion = vMRO.b;
+
+ vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
+ }
+ else if (true == AlmostEqual3(fTagDepthBlue * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular Roughness Occ
+ {
+ bResult = true;
+ fMetallic = 0.f;
+
+ float3 vSRO = SurfaceTexture2D.Sample(DefaultSampler, uv).rgb;
+ vF0 = vSRO.rrr;
+ fRoughness = vSRO.g;
+ fOcclusion = vSRO.b;
+ }
+ else if (true == AlmostEqual3(fTagDepthBlue * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY)) // Specular Roughness SubSurfaceScattering Occlusion
+ {
+ bResult = true;
+ fMetallic = 0.f;
+
+ float4 vSRXO = SurfaceTexture2D.Sample(DefaultSampler, uv);
+ vF0 = vSRXO.rrr;
+ fRoughness = vSRXO.g;
+ fOcclusion = vSRXO.a;
+ }
+ return bResult;
+}
+
float GetBloomCurve(float x, float fThreshold, uint iMethod)
{
float fResult = x;
diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
index 05ce2cc23..4a596b98f 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
@@ -455,42 +455,14 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
float3 vToLight = normalize(-g_vLightDir.xyz); // 픽셀에서 라이트로
-
-
- if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic Roughness Occ
- {
- float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- fMetallic = vMRO.r;
- fRoughness = vMRO.g;
- fOcclusion = vMRO.b;
-
- vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular Roughness Occ
- {
- fMetallic = 0.f;
-
- float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- vF0 = vSRO.rrr;
- fRoughness = vSRO.g;
- fOcclusion = vSRO.b;
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY))
- {
- fMetallic = 0.f;
-
- float4 vSRXO = g_SurfaceTexture.Sample(DefaultSampler, uv);
- vF0 = vSRXO.rrr;
- fRoughness = vSRXO.g;
- fOcclusion = vSRXO.a;
- }
- else // basic Lighting(phong blinn) // if you were here, you miss some assets.
+ if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
{
Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
Out.vSpecular.a = 0.f;
return Out;
}
+
float fTotalOcclusion = saturate(fOcclusion * fSSAO_AmbientOcclusion);
{ // 수치조정 // 디렉셔널
@@ -569,37 +541,10 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
return Out;
}
- if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic
+ if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
{
- float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- fMetallic = vMRO.r;
- fRoughness = vMRO.g;
- fOcclusion = vMRO.b;
-
- vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular
- {
- fMetallic = 0.f;
-
- float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- vF0 = vSRO.rrr;
- fRoughness = vSRO.g;
- fOcclusion = vSRO.b;
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY))
- {
- fMetallic = 0.f;
-
- float4 vSRXO = g_SurfaceTexture.Sample(DefaultSampler, uv);
- vF0 = vSRXO.rrr;
- fRoughness = vSRXO.g;
- fOcclusion = vSRXO.a;
- }
- else // basic Lighting(phong blinn) // if you were here, you miss some assets.
- {
- Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vToLight * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient)));
- Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f));
+ Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
+ Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
Out.vSpecular.a = 0.f;
return Out;
}
@@ -697,40 +642,14 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
fSpotAttenenuation *= fSpotAttenenuation;
fAttenuation *= fSpotAttenenuation;
- if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic
+ if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
{
- float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- fMetallic = vMRO.r;
- fRoughness = vMRO.g;
- fOcclusion = vMRO.b;
-
- vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular
- {
- fMetallic = 0.f;
-
- float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- vF0 = vSRO.rrr;
- fRoughness = vSRO.g;
- fOcclusion = vSRO.b;
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY))
- {
- fMetallic = 0.f;
-
- float4 vSRXO = g_SurfaceTexture.Sample(DefaultSampler, uv);
- vF0 = vSRXO.rrr;
- fRoughness = vSRXO.g;
- fOcclusion = vSRXO.a;
- }
- else // basic Lighting(phong blinn) // if you were here, you miss some assets.
- {
- Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vToLight * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient)));
- Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f));
+ Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
+ Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
Out.vSpecular.a = 0.f;
return Out;
}
+
float fTotalOcclusion = saturate(fOcclusion * fSSAO_AmbientOcclusion);
{ // 수치조정 // 점광원
diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
index cdbbbbff8..a618ddade 100644
--- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
+++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
@@ -151,7 +151,7 @@ HRESULT CCharacter_Controller::ConvertToDO(CRigidBody_Dynamic& BodyOriginal)
m_bActive = false;
BodyOriginal.SetActive(true);
- m_pGameInstance->Attach_Actor(*pDOActor); // DO 액터 활성화
+ m_pGameInstance->Attach_Actor(*pDOActor, m_pGameInstance->Get_CurrentLevelID()); // DO 액터 활성화
PSX::PxTransform pxTransform = pCCTActor->getGlobalPose();
pDOActor->setGlobalPose(pxTransform);
@@ -252,7 +252,10 @@ _bool CCharacter_Controller::UpdateGroundByCast(_float fTimeDelta)
return bHit;
}
-
+_bool CCharacter_Controller::IsOnGround()
+{
+ return m_eBeforeCollisionFlags & PSX::PxControllerCollisionFlag::eCOLLISION_DOWN;
+}
void CCharacter_Controller::Move(_float fTimeDelta)
{
diff --git a/Jusin154_Team3D/Engine/Private/ElementObject.cpp b/Jusin154_Team3D/Engine/Private/ElementObject.cpp
index 92e573c9f..3e70c723b 100644
--- a/Jusin154_Team3D/Engine/Private/ElementObject.cpp
+++ b/Jusin154_Team3D/Engine/Private/ElementObject.cpp
@@ -158,6 +158,46 @@ _bool CElementObject::Start_Lerp(_float fTimeDelta)
}
}
+_bool CElementObject::Start_Lerp_Speed(_float fTimeDelta, _float2 MousePoint)
+{
+ _vector Mouse = XMVectorSet(MousePoint.x, MousePoint.y, 1.f, 1.f);
+ _vector Pos = m_fCurrent_Position;
+ _vector Target = m_vLerp_Position;
+
+ _vector Dir = XMVectorSubtract(Target, Pos);
+ _vector MouseDir = XMVectorSubtract(Mouse, Pos);
+
+ _vector NorDir = XMVector3Normalize(Dir);
+ _vector NorMouse = XMVector3Normalize(MouseDir);
+
+ _float SameDir = XMVectorGetX(XMVector3Dot(NorDir, NorMouse));
+ _float Weight = max(0.5f, SameDir);
+ _vector LenVec = XMVector3Length(Dir);
+ _float Distance = XMVectorGetX(LenVec);
+
+ _float move = m_fMoveSpeed * fTimeDelta * Weight;
+
+ if (Distance <= move)
+ {
+ m_fX = m_vLerp_Position.m128_f32[0];
+ m_fY = m_vLerp_Position.m128_f32[1];
+ return true;
+ }
+
+ else
+ {
+ XMVECTOR DirNorm = XMVector3Normalize(Dir);
+ m_fX = (Pos + DirNorm * move).m128_f32[0];
+ m_fY = (Pos + DirNorm * move).m128_f32[1];
+ return false;
+ }
+}
+
+_bool CElementObject::Set_Trgger()
+{
+ return _bool();
+}
+
void CElementObject::Reset_Pos(_float fTimeDelta)
{
_vector Pos = m_fCurrent_Position;
diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp
index 49611c40d..718d6a0e5 100644
--- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp
+++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp
@@ -100,7 +100,7 @@ HRESULT CGameInstance::Initialize_Engine(const ENGINE_DESC& EngineDesc, ID3D11De
if (nullptr == m_pCollider_Manager) {
return E_FAIL;
}
- m_pPhysX_Manager = CPhysX_Manager::Create(*ppDevice, *ppContext);
+ m_pPhysX_Manager = CPhysX_Manager::Create(*ppDevice, *ppContext, EngineDesc.iNumLevels);
if (nullptr == m_pPhysX_Manager) {
return E_FAIL;
}
@@ -177,6 +177,7 @@ void CGameInstance::Clear_Resources(_uint iLevelIndex)
m_pObject_Manager->Clear(iLevelIndex);
m_pLight_Manager->Light_Clear(iLevelIndex);
m_pResource_Manager->Clear_LevelResources(iLevelIndex);
+ m_pPhysX_Manager->ClearScene(iLevelIndex);
}
_float CGameInstance::Random_Normal()
@@ -685,6 +686,11 @@ void CGameInstance::Render_PreShadow(const _float4x4& ViewMatrix, const _float4x
return m_pRenderer->Render_PreShadow(ViewMatrix, ProjMatrix);
}
+RENDER CGameInstance::Get_CurrentRenderPass()
+{
+ return m_pRenderer->Get_CurrentRenderPass();
+}
+
HRESULT CGameInstance::Bind_PreShadowMatrix(CShader* pShader, const _char* pConstants, D3DTS eType)
{
return m_pRenderer->Bind_PreShadowMatrix(pShader, pConstants, eType);
@@ -976,27 +982,27 @@ PSX::PxMaterial* CGameInstance::Create_Material(_float3* vMatInfo)
return m_pPhysX_Manager->Create_Material(vMatInfo);
}
-void CGameInstance::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh)
+void CGameInstance::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh, _uint iLevel)
{
- return m_pPhysX_Manager->RegistTriMesh(pName, pPxTriMesh);
+ return m_pPhysX_Manager->RegistTriMesh(pName, pPxTriMesh, iLevel);
}
-void CGameInstance::RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc)
+void CGameInstance::RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc, _uint iLevel)
{
- return m_pPhysX_Manager->RegistHeight(pName, Desc);
+ return m_pPhysX_Manager->RegistHeight(pName, Desc, iLevel);
}
-PSX::PxRigidDynamic* CGameInstance::Add_DynamicActor(CRigidBody_Dynamic& RigidBody)
+PSX::PxRigidDynamic* CGameInstance::Add_DynamicActor(CRigidBody_Dynamic& RigidBody, _uint iLevel)
{
- return m_pPhysX_Manager->Add_DynamicActor(RigidBody);
+ return m_pPhysX_Manager->Add_DynamicActor(RigidBody, iLevel);
}
-PSX::PxRigidStatic* CGameInstance::Add_StaticActor(CRigidBody_Static& RigidBody)
+PSX::PxRigidStatic* CGameInstance::Add_StaticActor(CRigidBody_Static& RigidBody, _uint iLevel)
{
- return m_pPhysX_Manager->Add_StaticActor(RigidBody);
+ return m_pPhysX_Manager->Add_StaticActor(RigidBody, iLevel);
}
-PSX::PxRevoluteJoint* CGameInstance::Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame)
+PSX::PxRevoluteJoint* CGameInstance::Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame, _uint iLevel)
{
- return m_pPhysX_Manager->Create_PxRevoluteJoint(pActorFrame, pxLocalWallFrame, pActorObject, pxLocalActorFrame);
+ return m_pPhysX_Manager->Create_PxRevoluteJoint(pActorFrame, pxLocalWallFrame, pActorObject, pxLocalActorFrame, iLevel);
}
_bool CGameInstance::SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer)
{
@@ -1030,17 +1036,17 @@ void CGameInstance::ReleaseController(_uint iControllerIndex)
{
m_pPhysX_Manager->ReleaseController(iControllerIndex);
}
-void CGameInstance::Attach_Actor(PSX::PxActor& Actor)
+void CGameInstance::Attach_Actor(PSX::PxActor& Actor, _uint iLevel)
{
- m_pPhysX_Manager->Attach_Actor(Actor);
+ m_pPhysX_Manager->Attach_Actor(Actor, iLevel);
}
-void CGameInstance::Detach_Actor(PSX::PxActor& Actor)
+void CGameInstance::Detach_Actor(PSX::PxActor& Actor, _uint iLevel)
{
- m_pPhysX_Manager->Detach_Actor(Actor);
+ m_pPhysX_Manager->Detach_Actor(Actor, iLevel);
}
void CGameInstance::Release_Actor(PSX::PxActor& Actor)
{
- m_pPhysX_Manager->Detach_Actor(Actor);
+ m_pPhysX_Manager->Release_Actor(Actor);
}
HRESULT CGameInstance::ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix)
{
diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp
index 8e0ab8e65..50fb252d2 100644
--- a/Jusin154_Team3D/Engine/Private/Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Model.cpp
@@ -175,7 +175,7 @@ _bool CModel::Play_Anim(_float fTimeDelta, CTransform* pTransform)
}
- ComputeAnimation(m_iCurrentAnimIndex, 0);
+ ComputeAnimation(m_iCurrentAnimIndex, m_iIndexAnimPlayableMesh);
if (m_bIsFinishedAnim)
{
@@ -674,7 +674,7 @@ HRESULT CModel::Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIn
return S_OK;
}
-HRESULT CModel::Ready_PhysXMeshes(_fmatrix& PreTransformMatrix)
+HRESULT CModel::Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel)
{
m_iNumPhysXMeshes = m_iNumMeshes;
@@ -683,7 +683,7 @@ HRESULT CModel::Ready_PhysXMeshes(_fmatrix& PreTransformMatrix)
m_pGameInstance->ConvertToTriMeshes(m_Meshes, m_TriMeshes, PreTransformMatrix);
for (_uint i = 0; i < m_iNumMeshes; ++i) {
- m_pGameInstance->RegistTriMesh((m_Meshes[i]->Get_Name() + to_string(i)).c_str(), m_TriMeshes[i]);
+ m_pGameInstance->RegistTriMesh((m_Meshes[i]->Get_Name() + to_string(i)).c_str(), m_TriMeshes[i], iLevel);
}
return S_OK;
}
@@ -2233,14 +2233,29 @@ HRESULT CModel::Initialize(void* pArg)
Create_ParentSrv();
Create_BoneLocalSrv();
- if (FAILED(Create_ComputeShaderLocal()))
+ if (FAILED(Create_ComputeShaderLocal())){
return E_FAIL;
+ }
- if (FAILED(Create_ComputeShader()))
+ if (FAILED(Create_ComputeShader())){
return E_FAIL;
+ }
+
+ for (int i = 0; i < m_Meshes.size(); i++)
+ {
+ if (1 < m_Meshes[i]->Get_NumBone()) {
+ m_iIndexAnimPlayableMesh = i;
+ break;
+ }
+ }
+ if (-1 == m_iIndexAnimPlayableMesh) {
+
+ assert(false);
+ }
}
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Engine/Private/PanelObject.cpp b/Jusin154_Team3D/Engine/Private/PanelObject.cpp
index ea19fd18c..df16b10e4 100644
--- a/Jusin154_Team3D/Engine/Private/PanelObject.cpp
+++ b/Jusin154_Team3D/Engine/Private/PanelObject.cpp
@@ -183,6 +183,19 @@ _bool CPanelObject::Chack_Visible()
return m_bVisible;
}
+_bool CPanelObject::Chack_Element(_float2 Position, _float2 Target, _float Scale, _float TargetScale)
+{
+ _vector vPos = XMVectorSet(Position.x, Position.y, 0.f, 1.f);
+ _vector vTarget = XMVectorSet(Target.x, Target.y, 0.f, 1.f);
+
+ _float Dir = XMVectorGetX(XMVector3Length(XMVectorSubtract(vTarget, vPos)));
+
+ if (Dir <= (Scale * 0.5f) + (TargetScale * 0.5f))
+ return true;
+
+ return false;
+}
+
CGameObject* CPanelObject::Find_Element(const wstring& Name)
{
auto iter = m_Elements_map.find(Name);
diff --git a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
index 5fb6c95fd..37cc85f7d 100644
--- a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
@@ -16,7 +16,7 @@ CPhysX_Manager::CPhysX_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pCont
SAFE_ADDREF(m_pGameInstance);
}
-PSX::PxRigidDynamic* CPhysX_Manager::Add_DynamicActor(CRigidBody_Dynamic& RigidBody)
+PSX::PxRigidDynamic* CPhysX_Manager::Add_DynamicActor(CRigidBody_Dynamic& RigidBody, _uint iLevel)
{
_matrix WorldMatrix = RigidBody.Get_TransformPtr()->Get_XMWorldMatrix();
PSX::PxTransform pxWorldMatrix = XMWorldToPx_NoScale(WorldMatrix);
@@ -58,16 +58,17 @@ PSX::PxRigidDynamic* CPhysX_Manager::Add_DynamicActor(CRigidBody_Dynamic& RigidB
PSX::PxRigidBodyExt::updateMassAndInertia(*pActorDynamic, (PSX::PxReal)RigidBody.Get_Density());
- m_pRestBodies.insert(pActorDynamic);
- Attach_Actor(*pActorDynamic);
+ m_pRestBodies[iLevel].insert(pActorDynamic);
+ Attach_Actor(*pActorDynamic, iLevel);
return pActorDynamic;
}
-PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody)
+PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody, _uint iLevel)
{
_matrix WorldMatrix = RigidBody.Get_TransformPtr()->Get_XMWorldMatrix();
- PSX::PxTransform pxWorldMatrix = XMWorldToPx_NoScale(WorldMatrix);
+ PSX::PxTransform pxWorldMatrix = XMWorldToPx_NoScale(WorldMatrix);
+
// PxRigidStatic 씬의 정적 바디 인터페이스
PSX::PxRigidStatic* pActor = m_pPhysics->createRigidStatic(pxWorldMatrix);
@@ -80,7 +81,7 @@ PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody
break;
case ACTOR::TRIANGLEMESH:
{ // SetUp Geometry
- PSX::PxTriangleMesh* pPxMesh = Find_TriangleMesh(RigidBody.Get_PxMeshKey());
+ PSX::PxTriangleMesh* pPxMesh = Find_TriangleMesh(RigidBody.Get_PxMeshKey(), iLevel);
PSX::PxTriangleMeshGeometry* pPxMeshGeometry = { nullptr };
_vector vPos, vRotq, vScale;
@@ -101,26 +102,26 @@ PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody
// 유효성 체크
PX_ASSERT(pPxMeshGeometry->isValid());
pGeometry = pPxMeshGeometry;
- _bool bEmplaceSuccess = m_TriangleMeshGeometry.emplace(RigidBody.Get_PxMeshKey(), pPxMeshGeometry).second;
+ _bool bEmplaceSuccess = m_TriangleMeshGeometry[iLevel].emplace(RigidBody.Get_PxMeshKey(), pPxMeshGeometry).second;
if (false == bEmplaceSuccess) {
Safe_Delete(pPxMeshGeometry);
- pGeometry = (*m_TriangleMeshGeometry.find(RigidBody.Get_PxMeshKey())).second;
+ pGeometry = (*m_TriangleMeshGeometry[iLevel].find(RigidBody.Get_PxMeshKey())).second;
}
}
break;
case ACTOR::HEIGHTFIELD:
{ // SetUp HeightField
- PSX::PxHeightField* pHeightField = Find_HeightField(RigidBody.Get_PxMeshKey());
+ PSX::PxHeightField* pHeightField = Find_HeightField(RigidBody.Get_PxMeshKey(), iLevel);
PSX::PxHeightFieldGeometry* pPxHeightGeometry = new PSX::PxHeightFieldGeometry(pHeightField);
pPxHeightGeometry->heightScale = 0.01f/* 기본 정밀도 100배 0.01 -> 1cm, 1 -> 1m */;
// 유효성 체크
PX_ASSERT(pPxHeightGeometry->isValid());
pGeometry = pPxHeightGeometry;
- _bool bEmplaceSuccess = m_HeightFieldGeometry.emplace(RigidBody.Get_PxMeshKey(), pPxHeightGeometry).second;
+ _bool bEmplaceSuccess = m_HeightFieldGeometry[iLevel].emplace(RigidBody.Get_PxMeshKey(), pPxHeightGeometry).second;
if (false == bEmplaceSuccess) {
Safe_Delete(pPxHeightGeometry);
- pGeometry = (*m_HeightFieldGeometry.find(RigidBody.Get_PxMeshKey())).second;
+ pGeometry = (*m_HeightFieldGeometry[iLevel].find(RigidBody.Get_PxMeshKey())).second;
}
}
break;
@@ -135,13 +136,13 @@ PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody
pShape->setContactOffset(RigidBody.Get_ContactOffset());
pShape->setRestOffset(0.f);
- m_pRestBodies.insert(pActor);
- Attach_Actor(*pActor);
+ m_pRestBodies[iLevel].insert(pActor);
+ Attach_Actor(*pActor, iLevel);
return pActor;
}
-PSX::PxRevoluteJoint* CPhysX_Manager::Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame)
+PSX::PxRevoluteJoint* CPhysX_Manager::Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame, _uint iLevel)
{
PSX::PxRevoluteJoint* pJoint = PSX::PxRevoluteJointCreate(*m_pPhysics, pActorFrame, pxLocalWallFrame, pActorObject, pxLocalActorFrame);
@@ -229,18 +230,18 @@ bool CPhysX_Manager::RayCast(_fvector _vStartPos, _gvector _vDir, _float fDistan
}
-void CPhysX_Manager::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh)
+void CPhysX_Manager::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh, _uint iLevel)
{
- m_TriangleMeshes.emplace(CMyTools::ToWstring(pName), pPxTriMesh);
+ m_TriangleMeshes[iLevel].emplace(CMyTools::ToWstring(pName), pPxTriMesh);
}
-void CPhysX_Manager::RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc)
+void CPhysX_Manager::RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc, _uint iLevel)
{
PSX::PxHeightField* pHeightField = PxCreateHeightField(Desc);
if (nullptr == pHeightField) {
assert(false);
}
else {
- m_HeightFields.emplace(pName, pHeightField);
+ m_HeightFields[iLevel].emplace(pName, pHeightField);
}
}
@@ -347,19 +348,19 @@ HRESULT CPhysX_Manager::LoadTriMeshes(const _char* pPath, vector::iterator iter = m_TriangleMeshes.find(pMeshName);
- if (iter != m_TriangleMeshes.end()) {
+ map<_wstring, PSX::PxTriangleMesh*>::iterator iter = m_TriangleMeshes[iLevel].find(pMeshName);
+ if (iter != m_TriangleMeshes[iLevel].end()) {
return iter->second;
}
return nullptr;
}
-PSX::PxHeightField* CPhysX_Manager::Find_HeightField(const _tchar* pFieldName)
+PSX::PxHeightField* CPhysX_Manager::Find_HeightField(const _tchar* pFieldName, _uint iLevel)
{
- map<_wstring, PSX::PxHeightField*>::iterator iter = m_HeightFields.find(pFieldName);
- if (iter != m_HeightFields.end()) {
+ map<_wstring, PSX::PxHeightField*>::iterator iter = m_HeightFields[iLevel].find(pFieldName);
+ if (iter != m_HeightFields[iLevel].end()) {
return iter->second;
}
return nullptr;
@@ -367,17 +368,19 @@ PSX::PxHeightField* CPhysX_Manager::Find_HeightField(const _tchar* pFieldName)
void CPhysX_Manager::Update_Kinematic()
{
- for (auto& pBody : m_pActiveBodys) {
- PSX::PxRigidDynamic* pActor = pBody->is();
- if (nullptr == pActor) {
- continue;
- }
+ for (_uint iLevel = 0; iLevel < m_iMaxLevel; ++iLevel) {
+ for (auto& pBody : m_pActiveBodys[iLevel]) {
+ PSX::PxRigidDynamic* pActor = pBody->is();
+ if (nullptr == pActor) {
+ continue;
+ }
- if (pActor->getRigidBodyFlags() & PSX::PxRigidBodyFlag::eKINEMATIC)
- {
- const CTransform* pTransform = static_cast(pBody->userData)->pOwner->Get_Component();
-
- pActor->setKinematicTarget(XMWorldToPx_NoScale(pTransform->Get_XMWorldMatrix()));
+ if (pActor->getRigidBodyFlags() & PSX::PxRigidBodyFlag::eKINEMATIC)
+ {
+ const CTransform* pTransform = static_cast(pBody->userData)->pOwner->Get_Component();
+
+ pActor->setKinematicTarget(XMWorldToPx_NoScale(pTransform->Get_XMWorldMatrix()));
+ }
}
}
}
@@ -429,40 +432,56 @@ void CPhysX_Manager::Update_Dynamic_ActiveActors()
}
}
-void CPhysX_Manager::ClearScene()
+void CPhysX_Manager::ClearScene(_uint iLevel)
{
- for (auto& pBody : m_pActiveBodys) {
+ for (auto& pBody : m_pActiveBodys[iLevel]) {
pBody->release();
- } m_pActiveBodys.clear();
- for (auto& pBody : m_pRestBodies) {
+ } m_pActiveBodys[iLevel].clear();
+ for (auto& pBody : m_pRestBodies[iLevel]) {
pBody->release();
- } m_pRestBodies.clear();
+ } m_pRestBodies[iLevel].clear();
+ for (auto& pMeshes : m_TriangleMeshes[iLevel]) {
+ pMeshes.second->release();
+ } m_TriangleMeshes[iLevel].clear();
+
+ for (auto& pGeometry : m_TriangleMeshGeometry[iLevel]) {
+ Safe_Delete(pGeometry.second);
+ } m_TriangleMeshGeometry[iLevel].clear();
+
+ for (auto& pGeometry : m_HeightFieldGeometry[iLevel]) {
+ Safe_Delete(pGeometry.second);
+ } m_HeightFieldGeometry[iLevel].clear();
+
+ for (auto& pField : m_HeightFields[iLevel]) {
+ pField.second->release();
+ } m_HeightFields[iLevel].clear();
+
}
-void CPhysX_Manager::Attach_Actor(PSX::PxActor& Actor)
+void CPhysX_Manager::Attach_Actor(PSX::PxActor& Actor, _uint iLevel)
{
- unordered_set::iterator iter = m_pRestBodies.find(&Actor);
- if (m_pRestBodies.end() == iter) {
+ unordered_set::iterator iter = m_pRestBodies[iLevel].find(&Actor);
+ if (m_pRestBodies[iLevel].end() == iter) {
return;
}
else {
- m_pRestBodies.erase(&Actor);
+ m_pRestBodies[iLevel].erase(&Actor);
}
- m_pActiveBodys.insert(&Actor);
+ m_pActiveBodys[iLevel].insert(&Actor);
if (m_pScene != nullptr) {
m_pScene->addActor(Actor);
}
}
-unordered_set::iterator CPhysX_Manager::Detach_Actor(PSX::PxActor& Actor)
+unordered_set::iterator CPhysX_Manager::Detach_Actor(PSX::PxActor& Actor, _uint iLevel)
{
- unordered_set::iterator iterOut = m_pRestBodies.end();
- unordered_set::iterator iter = m_pActiveBodys.find(&Actor);
- if (m_pActiveBodys.end() != iter) {
- m_pActiveBodys.erase(iter); // 액터를 활성화 맵에서 분리 해주고
- iterOut = m_pRestBodies.insert(&Actor).first; // 액터를 다시 쓸 수 있기 때문에 따로 보관해줌
+ unordered_set::iterator iterOut = m_pRestBodies[iLevel].end();
+ unordered_set::iterator iter = m_pActiveBodys[iLevel].find(&Actor);
+ if (m_pActiveBodys[iLevel].end() != iter) {
+ m_pActiveBodys[iLevel].erase(iter); // 액터를 활성화 맵에서 분리 해주고
+ iterOut = m_pRestBodies[iLevel].insert(&Actor).first; // 액터를 다시 쓸 수 있기 때문에 따로 보관해줌
}
- PSX::PxScene* pOwnerScene = Actor.getScene();
+ PSX::PxScene* pOwnerScene = Actor.getScene();
if (pOwnerScene == nullptr) { // 액터가 씬에 없는 경우 nullptr이 나옴
return iterOut;
@@ -479,15 +498,21 @@ unordered_set::iterator CPhysX_Manager::Detach_Actor(PSX::PxActor
void CPhysX_Manager::Release_Actor(PSX::PxActor& Actor)
{
// 혹시 활성화 맵에 들어있을 수도 있으니 검사
- unordered_set::iterator iterResult = Detach_Actor(Actor);
- if (m_pRestBodies.end() != iterResult) { // 방금 전까지만 해도 활성화 중이었던 액터 라면
- m_pRestBodies.erase(iterResult); // 바로 지워줌
+ unordered_set::iterator iterResult = {};
+ _uint iReleasedLevel = UINT_MAX;
+ for (_uint iLevel = 0; iLevel < m_iMaxLevel; ++iLevel) {
+ iterResult = Detach_Actor(Actor, iLevel);
+ if (m_pRestBodies[iLevel].end() != iterResult) { // 방금 전까지만 해도 활성화 중이었던 액터 라면
+ m_pRestBodies[iLevel].erase(iterResult); // 바로 지워줌
+ iReleasedLevel = iLevel;
+ break;
+ }
}
- else {
- m_pActiveBodys.erase(&Actor);
- m_pRestBodies.erase(&Actor);
+ if (UINT_MAX == iReleasedLevel) {
+ m_pActiveBodys[iReleasedLevel].erase(&Actor);
+ m_pRestBodies[iReleasedLevel].erase(&Actor);
}
- Actor.release();
+ //Actor.release();
}
PSX::PxController* CPhysX_Manager::Add_CapsuleController(PSX::PxCapsuleControllerDesc& Desc)
@@ -535,8 +560,9 @@ HRESULT CPhysX_Manager::PurgeAllController()
}
-HRESULT CPhysX_Manager::Initialize()
+HRESULT CPhysX_Manager::Initialize(_uint iLevel)
{
+ m_iMaxLevel = iLevel;
m_pFoundation = PxCreateFoundation(PX_PHYSICS_VERSION, m_AllocatorCallBack, m_ErrorCallBack);
if (nullptr == m_pFoundation) {
assert(false);
@@ -628,11 +654,18 @@ HRESULT CPhysX_Manager::Initialize()
PlaneData.pOwner = nullptr;
PlaneData.pBody = nullptr;
- PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 50), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]);
+ PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 85), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]);
pGroundPlane->userData = &PlaneData;
pGroundPlane->setName("PHYSX_MANAGER_PLANE");
m_pScene->addActor(*pGroundPlane);
+ m_pActiveBodys = new unordered_set[m_iMaxLevel]();
+ m_pRestBodies = new unordered_set[m_iMaxLevel]();
+ m_TriangleMeshes = new map<_wstring, PSX::PxTriangleMesh*>[m_iMaxLevel]();
+ m_TriangleMeshGeometry = new map<_wstring, PSX::PxTriangleMeshGeometry*>[m_iMaxLevel]();
+ m_HeightFields = new map<_wstring, PSX::PxHeightField*>[m_iMaxLevel]();
+ m_HeightFieldGeometry = new map<_wstring, PSX::PxHeightFieldGeometry*>[m_iMaxLevel]();
+
return S_OK;
}
#ifdef _DEBUG
@@ -660,10 +693,10 @@ HRESULT CPhysX_Manager::Connect_DebugServer()
#endif // _DEBUG
-CPhysX_Manager* CPhysX_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+CPhysX_Manager* CPhysX_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, _uint iLevel)
{
CPhysX_Manager* pInstance = new CPhysX_Manager(pDevice, pContext);
- if (FAILED(pInstance->Initialize())) {
+ if (FAILED(pInstance->Initialize(iLevel))) {
SAFE_RELEASE(pInstance);
assert(false);
}
@@ -672,24 +705,22 @@ CPhysX_Manager* CPhysX_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContex
void CPhysX_Manager::Free()
{
- ClearScene();
+ for (_uint iLevel = 0; iLevel < m_iMaxLevel; ++iLevel) {
+ ClearScene(iLevel);
+ m_pActiveBodys[iLevel].clear();
+ m_pRestBodies[iLevel].clear();
+ m_TriangleMeshes[iLevel].clear();
+ m_TriangleMeshGeometry[iLevel].clear();
+ m_HeightFields[iLevel].clear();
+ m_HeightFieldGeometry[iLevel].clear();
+ }
+ Safe_Delete_Array(m_pActiveBodys);
+ Safe_Delete_Array(m_pRestBodies);
+ Safe_Delete_Array(m_TriangleMeshes);
+ Safe_Delete_Array(m_TriangleMeshGeometry);
+ Safe_Delete_Array(m_HeightFields);
+ Safe_Delete_Array(m_HeightFieldGeometry);
- for (auto& pMeshes : m_TriangleMeshes) {
- pMeshes.second->release();
- } m_TriangleMeshes.clear();
-
- for (auto& pGeometry : m_TriangleMeshGeometry) {
- Safe_Delete(pGeometry.second);
- } m_TriangleMeshGeometry.clear();
-
- for (auto& pGeometry : m_HeightFieldGeometry) {
- Safe_Delete(pGeometry.second);
- } m_HeightFieldGeometry.clear();
-
- for (auto& pField : m_HeightFields) {
- pField.second->release();
- } m_HeightFields.clear();
-
if (nullptr != m_pCookingParam) {
Safe_Delete(m_pCookingParam);
}
diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp
index b6d5c7776..0fafd8464 100644
--- a/Jusin154_Team3D/Engine/Private/Renderer.cpp
+++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp
@@ -52,6 +52,12 @@ void CRenderer::Render()
GUI::End();
#endif
+ m_eType = RENDER::END;
+}
+
+RENDER CRenderer::Get_CurrentRenderPass()
+{
+ return m_eType;
}
void CRenderer::Render_PreShadow(const _float4x4& ViewMatrix, const _float4x4& ProjMatrix)
@@ -153,6 +159,8 @@ void CRenderer::Bind_RawValue()
void CRenderer::Render_Occlusion()
{
COMPUTE_TIMEDELTA("Timer_Render_Occlusion");
+ EVENTSCOPE_("Render_Occlusion");
+ m_eType = RENDER::OCCLUSION;
if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_Combined")))) {
return;
}
@@ -184,6 +192,7 @@ void CRenderer::Render_Priority()
{
COMPUTE_TIMEDELTA("Timer_Render_Priority");
EVENTSCOPE_("Render_Priority");
+ m_eType = RENDER::PRIORITY;
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::PRIORITY)])
{
if (nullptr != pRenderObject) {
@@ -224,6 +233,7 @@ void CRenderer::Render_Shadow()
return;
}
+ m_eType = RENDER::SHADOW_NEAR;
D3D11_VIEWPORT ViewPortDesc;
ZeroMemory(&ViewPortDesc, sizeof(D3D11_VIEWPORT));
{
@@ -257,6 +267,7 @@ void CRenderer::Render_Shadow()
return;
}
+ m_eType = RENDER::SHADOW_MIDDLE;
D3D11_VIEWPORT ViewPortDesc;
ZeroMemory(&ViewPortDesc, sizeof(D3D11_VIEWPORT));
{
@@ -294,6 +305,7 @@ void CRenderer::Render_NonBlend()
{
COMPUTE_TIMEDELTA("Timer_Render_NonBlend");
EVENTSCOPE_("Render_NonBlend");
+ m_eType = RENDER::NONBLEND;
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_GameObjects")))) {
return;
}
@@ -599,6 +611,7 @@ void CRenderer::Render_NonLight()
{
COMPUTE_TIMEDELTA("Timer_Render_NonLight");
EVENTSCOPE_("Render_NonLight");
+ m_eType = RENDER::NONLIGHT;
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::NONLIGHT)])
{
if (nullptr != pRenderObject)
@@ -615,6 +628,7 @@ void CRenderer::Render_Blur()
{
COMPUTE_TIMEDELTA("Timer_Render_Blur");
EVENTSCOPE_("Render_Blur");
+ m_eType = RENDER::BLUR;
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_Blur")))) {
return;
}
@@ -791,6 +805,7 @@ void CRenderer::Render_Blend()
{
COMPUTE_TIMEDELTA("Timer_Render_Blend");
EVENTSCOPE_("Render_Blend");
+ m_eType = RENDER::BLEND;
m_RenderObjects[ENUM_CLASS(RENDER::BLEND)].sort([](CGameObject* pSour, CGameObject* pDest)->_bool {
return pSour->Get_Depth() > pDest->Get_Depth();
});
@@ -930,6 +945,7 @@ void CRenderer::Render_PostProcessing()
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_Bloom")))) {
return;
}
+ m_eType = RENDER::BLOOM;
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::BLOOM)])
{
@@ -993,6 +1009,7 @@ void CRenderer::Render_Distortion()
{
COMPUTE_TIMEDELTA("Timer_Render_Distortion");
EVENTSCOPE_("Render_Distortion");
+ m_eType = RENDER::DISTORTION;
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_Distortion")))) {
return;
@@ -1055,6 +1072,7 @@ void CRenderer::Render_UI()
{
COMPUTE_TIMEDELTA("Timer_Render_UI");
EVENTSCOPE_("Render_UI");
+ m_eType = RENDER::UI;
m_RenderObjects[ENUM_CLASS(RENDER::UI)].sort([](CGameObject* pDest, CGameObject* pSrc)->_bool {
_float3 vDstPos = {};
_float3 vSrcPos = {};
@@ -1084,6 +1102,7 @@ void CRenderer::Render_UI_Overley()
{
COMPUTE_TIMEDELTA("Timer_Render_UI_Overley");
EVENTSCOPE_("Render_UI_Overley");
+ m_eType = RENDER::UI_OVERLAY;
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::UI_OVERLAY)])
{
if (nullptr != pRenderObject) {
diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
index 05806ba32..933eb0ea2 100644
--- a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
+++ b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
@@ -145,15 +145,15 @@ HRESULT CRigidBody_Dynamic::ConvertToCCT(CCharacter_Controller& CCTOriginal)
m_pRigidBody->setAngularVelocity(PSX::PxZERO()); // DO 객체 이동 제거
m_pRigidBody->setLinearVelocity(PSX::PxZERO());
- Detach_Actor();
+ Detach_Actor(m_pGameInstance->Get_CurrentLevelID());
CCTOriginal.SetActive(true);
return E_FAIL;
}
-void CRigidBody_Dynamic::Detach_Actor()
+void CRigidBody_Dynamic::Detach_Actor(_uint iLevel)
{
- m_pGameInstance->Detach_Actor(*m_pRigidBody); // 현재 액터 비활성화
+ m_pGameInstance->Detach_Actor(*m_pRigidBody, iLevel); // 현재 액터 비활성화
m_bActive = false;
}
@@ -286,7 +286,7 @@ HRESULT CRigidBody_Dynamic::Initialize(void* pArg)
m_tagData.pOwner = m_pOwner;
XMStoreFloat4x4(&m_tagData.BeforeMatrix, m_pTransform->Get_XMWorldMatrix());
m_tagData.pBody = this;
- m_pRigidBody = m_pGameInstance->Add_DynamicActor(*this);
+ m_pRigidBody = m_pGameInstance->Add_DynamicActor(*this, m_pGameInstance->Get_NextLevelID());
m_pRigidBody->userData = &m_tagData;
m_pRigidBody->setCMassLocalPose(m_PxMassCenter);
m_pRigidBody->setRigidDynamicLockFlags(m_eLockFlag);
diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp
index 854f7aa98..22ded3164 100644
--- a/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp
+++ b/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp
@@ -37,7 +37,7 @@ HRESULT CRigidBody_Static::Initialize(void* pArg)
m_tagData.pOwner = m_pOwner;
XMStoreFloat4x4(&m_tagData.BeforeMatrix, m_pTransform->Get_XMWorldMatrix());
m_tagData.pBody = this;
- m_pRigidBody = m_pGameInstance->Add_StaticActor(*this);
+ m_pRigidBody = m_pGameInstance->Add_StaticActor(*this, m_pGameInstance->Get_NextLevelID());
m_pRigidBody->userData = &m_tagData;
m_pRigidBody->setName(CMyTools::ToString(m_wstrMeshName).c_str());
diff --git a/Jusin154_Team3D/Engine/Private/UIObject.cpp b/Jusin154_Team3D/Engine/Private/UIObject.cpp
index cf9262857..f7a2f40b1 100644
--- a/Jusin154_Team3D/Engine/Private/UIObject.cpp
+++ b/Jusin154_Team3D/Engine/Private/UIObject.cpp
@@ -377,7 +377,7 @@ _bool CUIObject::Start_Lerp(_float fTimeDelta)
return false;
}
-_bool CUIObject::Start_Bezier(_float fTimeDelta)
+_bool CUIObject::Start_Lerp_Speed(_float fTimeDelta, _float2 Mouse_Point)
{
return _bool();
}
@@ -538,6 +538,11 @@ _float2 CUIObject::Get_Font()
return _float2(m_fFontX, m_fFontY);
}
+_float2 CUIObject::Get_PerPosition()
+{
+ return m_fPerPosition;
+}
+
void CUIObject::Free()
{
__super::Free();
diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp
index 9edac6596..a4624b6ac 100644
--- a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp
+++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp
@@ -393,9 +393,11 @@ HRESULT CVIBuffer_Terrain::Initialize(void* pArg)
void CVIBuffer_Terrain::ConvertToHeightField(const _tchar* pStaticKey)
{
+ PSX::PxHeightFieldDesc Desc{};
+ Desc.format = PSX::PxHeightFieldFormat::eS16_TM;
+
vector pxSamples = {};
pxSamples.resize(m_iNumVerticesZ * m_iNumVerticesX);
-
for (_uint iRow = 0; iRow < m_iNumVerticesZ; ++iRow) {
for (_uint iCol = 0; iCol < m_iNumVerticesX; ++iCol) {
_uint iIndex = iRow * m_iNumVerticesX + iCol;
@@ -411,11 +413,9 @@ void CVIBuffer_Terrain::ConvertToHeightField(const _tchar* pStaticKey)
pxSample.clearTessFlag();
}
}
+ Desc.nbRows = m_iNumVerticesX;
+ Desc.nbColumns = m_iNumVerticesZ;
- PSX::PxHeightFieldDesc Desc{};
- Desc.format = PSX::PxHeightFieldFormat::eS16_TM;
- Desc.nbRows = m_iNumVerticesZ;
- Desc.nbColumns = m_iNumVerticesX;
Desc.samples.data = pxSamples.data();
Desc.samples.stride = sizeof(PSX::PxHeightFieldSample);
@@ -424,9 +424,8 @@ void CVIBuffer_Terrain::ConvertToHeightField(const _tchar* pStaticKey)
assert(false);
}
else {
- m_pGameInstance->RegistHeight(pStaticKey, Desc);
+ m_pGameInstance->RegistHeight(pStaticKey, Desc, m_pGameInstance->Get_NextLevelID());
}
-
}
_bool CVIBuffer_Terrain::Picking(_fmatrix WorldMatrix, _float3* pOut)
diff --git a/Jusin154_Team3D/Engine/Public/Character_Controller.h b/Jusin154_Team3D/Engine/Public/Character_Controller.h
index 4f07f54a3..872129d95 100644
--- a/Jusin154_Team3D/Engine/Public/Character_Controller.h
+++ b/Jusin154_Team3D/Engine/Public/Character_Controller.h
@@ -81,6 +81,7 @@ class ENGINE_DLL CCharacter_Controller final :
void Set_GravityAmount(_float Amount) { m_fGravity = Amount; }
void Reset_GravityAmount() { m_fGravity = 0.450f; }
_float Get_GravityAmount() { return m_fGravity; }
+ _bool IsOnGround();
private:
ACTOR m_eBodyType = { ACTOR::END };
diff --git a/Jusin154_Team3D/Engine/Public/ElementObject.h b/Jusin154_Team3D/Engine/Public/ElementObject.h
index 90b5c68b5..363435267 100644
--- a/Jusin154_Team3D/Engine/Public/ElementObject.h
+++ b/Jusin154_Team3D/Engine/Public/ElementObject.h
@@ -31,6 +31,8 @@ class ENGINE_DLL CElementObject abstract : public CUIObject
virtual _float Get_Nine_Slice_Bottom() override;
virtual _bool Start_Lerp(_float fTimeDelta) override;
+ virtual _bool Start_Lerp_Speed(_float fTimeDelta, _float2 MousePoint) override;
+ virtual _bool Set_Trgger();
virtual void Reset_Pos(_float fTimeDelta)override;
virtual void Start_Size_Lerp(_float fTimeDelta) override;
virtual void Reset_Size_Lerp(_float fTimeDelta) override;
@@ -43,6 +45,9 @@ class ENGINE_DLL CElementObject abstract : public CUIObject
_float m_fBezierTime = 0;
+ vector<_vector> m_vector;
+
+
public:
virtual void Free() override;
};
diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
index 34afc696f..f9d34fdee 100644
--- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h
+++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
@@ -184,6 +184,7 @@ enum class PXOBJECT : _uint {
#pragma endregion
#pragma region NPC
NPC = 500,
+ OLLIVANDER,
#pragma endregion
#pragma region ITEM
diff --git a/Jusin154_Team3D/Engine/Public/FSM.h b/Jusin154_Team3D/Engine/Public/FSM.h
index e9c8506c8..0ca39ed21 100644
--- a/Jusin154_Team3D/Engine/Public/FSM.h
+++ b/Jusin154_Team3D/Engine/Public/FSM.h
@@ -52,6 +52,7 @@ enum ESTATE : _u64Flag
GROUND = 1ULL << 45,
SWIPE = 1ULL << 46,
SLIDE = 1ULL << 47,
+ FALL = 1ULL << 48,
END
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h
index e50d5f035..5979532e8 100644
--- a/Jusin154_Team3D/Engine/Public/GameInstance.h
+++ b/Jusin154_Team3D/Engine/Public/GameInstance.h
@@ -103,6 +103,7 @@ class ENGINE_DLL CGameInstance final : public CBase
#pragma region RENDERER
HRESULT Add_RenderGroup(RENDER eRenderGroup, class CGameObject* pRenderObject);
void Render_PreShadow(const _float4x4& ViewMatrix, const _float4x4& ProjMatrix);
+ RENDER Get_CurrentRenderPass();
HRESULT Bind_PreShadowMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
HRESULT Bind_PrevMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
#pragma endregion
@@ -205,11 +206,11 @@ class ENGINE_DLL CGameInstance final : public CBase
#pragma endregion
#pragma region PhysX_Manager
PSX::PxMaterial* Create_Material(_float3* vMatInfo);
- void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh);
- void RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc);
- PSX::PxRigidDynamic* Add_DynamicActor(CRigidBody_Dynamic& RigidBody);
- PSX::PxRigidStatic* Add_StaticActor(CRigidBody_Static& RigidBody);
- PSX::PxRevoluteJoint* Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame);
+ void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh, _uint iLevel);
+ void RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc, _uint iLevel);
+ PSX::PxRigidDynamic* Add_DynamicActor(CRigidBody_Dynamic& RigidBody, _uint iLevel);
+ PSX::PxRigidStatic* Add_StaticActor(CRigidBody_Static& RigidBody, _uint iLevel);
+ PSX::PxRevoluteJoint* Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame, _uint iLevel);
_bool SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
_bool SphereCast(_float fRadius, _fvector vStartPos, _gvector vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
@@ -220,8 +221,8 @@ class ENGINE_DLL CGameInstance final : public CBase
PSX::PxController* Add_BoxController(PSX::PxBoxControllerDesc& Desc);
PSX::PxController* Get_Controller(_uint iControllerIndex);
void ReleaseController(_uint iControllerIndex);
- void Attach_Actor(PSX::PxActor& Actor);
- void Detach_Actor(PSX::PxActor& pActor);
+ void Attach_Actor(PSX::PxActor& Actor, _uint iLevel);
+ void Detach_Actor(PSX::PxActor& pActor, _uint iLevel);
void Release_Actor(PSX::PxActor& Actor);
HRESULT ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix = XMMatrixIdentity());
#ifdef EDITOR_PROJECT
diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h
index c8a08f89c..fd86ef248 100644
--- a/Jusin154_Team3D/Engine/Public/Model.h
+++ b/Jusin154_Team3D/Engine/Public/Model.h
@@ -41,6 +41,7 @@ class ENGINE_DLL CModel final : public CComponent
_float4x4 Get_PreTransformMatrix() const { return m_PreTransformMatrix; };
virtual HRESULT Render(_uint iMeshIndex);
virtual HRESULT Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIndexLocation, _uint BaseVertexLocation);
+ MODEL Get_Type() { return m_eType; }
#pragma endregion
#pragma region Animation
_bool Play_Animation(_float fTimeDelta, class CTransform* pTransform = nullptr); // 애니메이션에 델타타임을 넣어줌
@@ -105,7 +106,7 @@ class ENGINE_DLL CModel final : public CComponent
void Initialize_BoneMasks();
public:
- HRESULT Ready_PhysXMeshes(_fmatrix& PreTransformMatrix);
+ HRESULT Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel);
#ifdef EDITOR_PROJECT
HRESULT Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex);
HRESULT Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& PreTransformMatrix);
@@ -180,6 +181,7 @@ class ENGINE_DLL CModel final : public CComponent
_float m_fRadius = { 0.f }; // 컬링용 Radius
_int m_iRootBoneIndex = { -1 }; // 루트본의 인덱스
+ _int m_iIndexAnimPlayableMesh = { -1 };
_vector m_vector[3];
vector<_uint> m_iBoneMask;
diff --git a/Jusin154_Team3D/Engine/Public/PanelObject.h b/Jusin154_Team3D/Engine/Public/PanelObject.h
index c661f9c47..9e790d547 100644
--- a/Jusin154_Team3D/Engine/Public/PanelObject.h
+++ b/Jusin154_Team3D/Engine/Public/PanelObject.h
@@ -33,10 +33,12 @@ class ENGINE_DLL CPanelObject abstract : public CUIObject
virtual void Add_Function(wstring Name, function Evnet) override;
virtual void Function_Callback(wstring Name, void* pArg = nullptr) override;
+
protected:
virtual void Add_Element(wstring Name, class CGameObject* pElement);
virtual _bool Chack_Visible() override;
+ virtual _bool Chack_Element(_float2 Position, _float2 Target, _float Scale, _float TargetScale);
protected:
vector m_Elements; // 패널이 엘리먼츠를 관리하기 위해 만듬
vector m_ElementName; // 엘리멘트들의 이름을 전해주기 위해서
diff --git a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
index 20694994a..a5897fa25 100644
--- a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
+++ b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
@@ -21,12 +21,12 @@ class CPhysX_Manager final : public CBase
// HRESULT Update_RegionOfInterest(); ( 충돌 컬링, 필터링도 검색해야함 )
// Aggregate ( 충돌 그룹, 이 그룹끼리는 서로 충돌검사를 하지 않음, 지형, 레그돌 등 )
- PSX::PxRigidDynamic* Add_DynamicActor(CRigidBody_Dynamic& RigidBody);
- PSX::PxRigidStatic* Add_StaticActor(CRigidBody_Static& RigidBody);
- PSX::PxRevoluteJoint* Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame);
+ PSX::PxRigidDynamic* Add_DynamicActor(CRigidBody_Dynamic& RigidBody, _uint iLevel);
+ PSX::PxRigidStatic* Add_StaticActor(CRigidBody_Static& RigidBody, _uint iLevel);
+ PSX::PxRevoluteJoint* Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame, _uint iLevel);
- void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh);
- void RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc);
+ void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh, _uint iLevel);
+ void RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc, _uint iLevel);
PSX::PxMaterial* Create_Material(const _float3* vMatInfo);
_bool SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
@@ -44,13 +44,13 @@ class CPhysX_Manager final : public CBase
#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);
- PSX::PxHeightField* Find_HeightField(const _tchar* pFieldName);
+ PSX::PxTriangleMesh* Find_TriangleMesh(const _tchar* pMeshName, _uint iLevel);
+ PSX::PxHeightField* Find_HeightField(const _tchar* pFieldName, _uint iLevel);
void Update(_float fTimeDelta);
- void ClearScene();
- void Attach_Actor(PSX::PxActor& Actor);
- unordered_set::iterator Detach_Actor(PSX::PxActor& Actor);
+ void ClearScene(_uint iLevel);
+ void Attach_Actor(PSX::PxActor& Actor, _uint iLevel);
+ unordered_set::iterator Detach_Actor(PSX::PxActor& Actor, _uint iLevel);
void Release_Actor(PSX::PxActor& Actor);
#pragma endregion
#pragma region CHARACTER_CONTROLLER
@@ -89,23 +89,24 @@ class CPhysX_Manager final : public CBase
PSX::PxPvdTransport* m_pTransport = { nullptr };
+ _uint m_iMaxLevel = {};
- unordered_set m_pActiveBodys = { };
- unordered_set m_pRestBodies = { }; // 피직스의 액터로 구별되기 때문에 피직스액터 포인터를 키로 사용함
+ unordered_set* m_pActiveBodys = { nullptr };
+ unordered_set* m_pRestBodies = { nullptr }; // 피직스의 액터로 구별되기 때문에 피직스액터 포인터를 키로 사용함
- map<_wstring, PSX::PxTriangleMesh*> m_TriangleMeshes = {};
- map<_wstring, PSX::PxTriangleMeshGeometry*> m_TriangleMeshGeometry = {};
+ map<_wstring, PSX::PxTriangleMesh*>* m_TriangleMeshes = { nullptr };
+ map<_wstring, PSX::PxTriangleMeshGeometry*>*m_TriangleMeshGeometry = { nullptr };
- map<_wstring, PSX::PxHeightField*> m_HeightFields = {};
- map<_wstring, PSX::PxHeightFieldGeometry*> m_HeightFieldGeometry = {};
+ map<_wstring, PSX::PxHeightField*>* m_HeightFields = { nullptr };
+ map<_wstring, PSX::PxHeightFieldGeometry*>* m_HeightFieldGeometry = { nullptr };
PhsXUserData PlaneData = {};
vector m_pMaterials = { };
- _uint m_iNumLevel = {};
+ _uint m_iNumLevel = { UINT_MAX };
private:
- HRESULT Initialize();
+ HRESULT Initialize(_uint iLevel);
#ifdef _DEBUG
HRESULT Connect_DebugServer();
#endif // _DEBUG
@@ -115,7 +116,7 @@ class CPhysX_Manager final : public CBase
//void Update_Dynamic_AllActors();
public:
- static CPhysX_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ static CPhysX_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, _uint iLevel);
virtual void Free() override;
};
diff --git a/Jusin154_Team3D/Engine/Public/Renderer.h b/Jusin154_Team3D/Engine/Public/Renderer.h
index 8ab7b3556..d26ce88e0 100644
--- a/Jusin154_Team3D/Engine/Public/Renderer.h
+++ b/Jusin154_Team3D/Engine/Public/Renderer.h
@@ -13,6 +13,7 @@ class CRenderer final : public CBase
public:
void Render();
+ RENDER Get_CurrentRenderPass();
HRESULT Add_RenderGroup(RENDER eRenderGroup, class CGameObject* pRenderObject);
void Render_PreShadow(const _float4x4& ViewMatrix, const _float4x4& ProjMatrix);
HRESULT Bind_PreShadowMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
@@ -27,6 +28,7 @@ class CRenderer final : public CBase
ID3D11DeviceContext* m_pContext = { nullptr };
class CGameInstance* m_pGameInstance = { nullptr };
list m_RenderObjects[ENUM_CLASS(RENDER::END)];
+ RENDER m_eType = RENDER::END;
#ifdef _DEBUG
CRenderEventDebugger m_AnnotationHelper = {};
@@ -69,8 +71,6 @@ class CRenderer final : public CBase
_float4x4 m_PreShadowView = {};
_float4x4 m_PreShadowProj = {};
-
-
#pragma region TunningParameters
/* TunningParam */
diff --git a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
index 6e0e50f19..29288d8e4 100644
--- a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
+++ b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
@@ -45,7 +45,7 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody
void Set_Kinematic(_bool bKinematic);
HRESULT ConvertToCCT(class CCharacter_Controller& CCTOriginal);
- void Detach_Actor();
+ void Detach_Actor(_uint iLevel);
_bool IsActive() const { return m_bActive; }
void SetActive(_bool bCondition) { m_bActive = bCondition; }
diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h
index 0d1f8cc92..3acef84c7 100644
--- a/Jusin154_Team3D/Engine/Public/State.h
+++ b/Jusin154_Team3D/Engine/Public/State.h
@@ -11,7 +11,7 @@ enum ESTATE
SPRINT,
SLIDE_START_R,SLIDE_LOOP_R,SLIDE_STOP_R,
JUMP,JUMP_JOG,JUMP_SPRINT,FALL_LOOP,
- LAND,LAND_TO_JOG,LAND_TO_SPRINT,
+ LAND,LAND_TO_JOG,LAND_TO_SPRINT,LAND_HARD,LAND_MID,LAND_SOFT,
DODGE,DODGE_BLINK, DODGE_LEFT, DODGE_RIGHT,
COMBAT, SKILL, SKILL2,
SPELL, SPELL_180_R, SPELL_90_L,
@@ -19,7 +19,7 @@ enum ESTATE
ATTACK_END,
SHUFFLE1, SHUFFLE2, SHUFFLE3, SHUFFLE4,
MAPHELP,POTION,
- ACCIO,DESCENDO,DIFFINDO,DEPULSO,LUMOS,LUMOS_STOP,DISILLUSION_ENTER,DISILLUSION_EXIT, ANCIENT_THROW,
+ ACCIO,DESCENDO,DIFFINDO,DEPULSO,LUMOS,LUMOS_STOP,DISILLUSION_ENTER,DISILLUSION_EXIT, ANCIENT_THROW, AVADA_KEDAVRA,
SPELL_FAIL, SPELL_CHARGE,
ANCIENT_LIGHTNING,
PARRY_180,PARRY2, PARRY3, PARRY4,
diff --git a/Jusin154_Team3D/Engine/Public/UIObject.h b/Jusin154_Team3D/Engine/Public/UIObject.h
index b2104dc38..019f8e113 100644
--- a/Jusin154_Team3D/Engine/Public/UIObject.h
+++ b/Jusin154_Team3D/Engine/Public/UIObject.h
@@ -76,10 +76,14 @@ typedef struct tagCurrentQeustSerectInfo
typedef struct tagSpellLearnInfo
{
- _wstring pSpellName{};
- _wstring pImageName{};
- _float fSpellSize{};
- _float2 fStartPosition{};
+ _wstring pSpellName{};
+ _wstring pImageName{};
+ _int iSpellID{};
+ _int iSpellType{};
+ _float fSpellSize{};
+ _float2 fStartPosition{};
+ _float2 fEndPosition{};
+ vector<_vector> Booster;
vector<_vector> Lines;
}SPELLLEARNINFO;
@@ -152,7 +156,7 @@ typedef struct tagSpellLearnInfo
virtual void Lerp_PosX(_float PosX);
virtual void Lerp_PosY(_float PosY);
virtual _bool Start_Lerp(_float fTimeDelta);
- virtual _bool Start_Bezier(_float fTimeDelta);
+ virtual _bool Start_Lerp_Speed(_float fTimeDelta, _float2 Mouse_Point);
virtual void Reset_Pos(_float fTimeDelta);
virtual void Start_Size_Lerp(_float fTimeDelta);
virtual void Reset_Size_Lerp(_float fTimeDelta);
@@ -190,6 +194,7 @@ typedef struct tagSpellLearnInfo
virtual void Set_FontX(_float fFontX);
virtual void Set_FontY(_float fFontY);
virtual _float2 Get_Font();
+ virtual _float2 Get_PerPosition();
protected:
_vector m_fOrigin_Position_vector{};
_float2 m_fOrigin_Position{};
@@ -246,6 +251,8 @@ typedef struct tagSpellLearnInfo
_float m_fFontX{};
_float m_fFontY{};
_float m_fFontOffSet{};
+
+ _float2 m_fPerPosition{};
protected:
virtual HRESULT Initialize_Prototype();
virtual HRESULT Initialize(void* pArg);