diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
deleted file mode 100644
index 60c0ef454..000000000
--- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ /dev/null
@@ -1,3352 +0,0 @@
-
-#include "Engine_Shader_Defines.hlsli"
-
-matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
-Texture2D g_DepthTexture;
-
-float3 g_CamaraPosition;
-
-int g_iImageCountX;
-int g_iImageCountY;
-
-uint g_iIndexU;
-uint g_iIndexV;
-uint g_iQuestType;
-int g_iSpellType;
-
-float g_fPI;
-float g_fFar;
-float g_fBlinkTime;
-float g_fTime;
-float g_fColorTime;
-float g_fFrame;
-float g_fDeltaU;
-float g_fDeltaV;
-float g_fAlpha;
-float g_fOwnerAlpha;
-float g_fCanvasAlpha;
-float g_fAngle;
-float g_fMapAngle;
-float g_fCoolTime;
-float g_fHp;
-
-float2 g_fViewport;
-float2 g_fOrigin_Size;
-float2 g_fCurrent_Size;
-float2 g_fPosition;
-float2 g_fHpBG;
-float2 g_Pos;
-float2 g_fImageSize;
-
-float4 g_fNine_Slice;
-float4 g_fImageUV;
-float4 g_fImageUV1;
-
-uint g_iArrayCount;
-float2 g_fItemPosition1;
-float2 g_fItemImageSizes1;
-float2 g_fItemPosition2;
-float2 g_fItemImageSizes2;
-float2 g_fImageSizes[4];
-float4 g_fImagesUV[4];
-
-float4 g_fImageSipos1;
-float4 g_fImageSipos2;
-float4 g_fImageSipos3;
-float4 g_fImageSipos4;
-
-Texture2D g_Texture;
-Texture2D g_Texture1;
-Texture2D g_Texture2;
-Texture2D g_Texture3;
-Texture2D g_Texture4;
-Texture2D g_Texture5;
-Texture2D g_Texture6;
-Texture2D g_DiffuseTexture;
-Texture2D g_MaskingTexture;
-
-int g_iHover;
-int g_iBoosterOn;
-int g_iBoosterOff;
-int g_iFinish;
-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;
- float2 vTexcoord : TEXCOORD0;
-};
-
-struct VS_OUT
-{
- float4 vPosition : SV_Position;
- float2 vTexcoord : TEXCOORD0;
-};
-
-VS_OUT VS_MAIN(VS_IN In)
-{
- VS_OUT Out = (VS_OUT) 0;
-
-
- matrix matWV, matWVP;
- matWV = mul(g_WorldMatrix, g_ViewMatrix);
- matWVP = mul(matWV, g_ProjMatrix);
-
- Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
- Out.vTexcoord = In.vTexcoord;
-
- return Out;
-}
-
-struct PS_IN
-{
- float4 vPosition : SV_Position;
- float2 vTexcoord : TEXCOORD0;
-};
-
-struct PS_OUT
-{
- float4 vColor : SV_Target0;
-};
-
-PS_OUT PS_MAIN(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_Texture_Color(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
- float4 Color = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
-
- tex1.rgb *= Color.rgb;
-
- tex1.a *= Alpha;
- Out.vColor = tex1;
- return Out;
-}
-
-PS_OUT PS_Logo(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha;
- float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
-
- float4 Dissolve = g_MaskingTexture.Sample(DefaultSampler, In.vTexcoord);
-
- if (g_fTime >= Dissolve.r)
- discard;
-
- if (g_fTime != 0.f)
- {
- Color.a *= Dissolve.a;
- }
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_Logo_Text(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha;
- float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
-
- Color.rgb = (Color.rgb - 0.5f) * 1.2f + 0.5f;
-
- Color.rgb = pow(clamp(Color.rgb, 0.f, 1.f), 1.25f);
-
- float luminance = dot(Color.rgb, float3(0.299f, 0.587f, 0.114f));
- float light = smoothstep(0.7f, 0.92f, luminance);
- Color.rgb *= (1.0f - light * 0.1f);
-
- Color.rgb = lerp(Color.rgb, Color.rgb * Color.rgb, 0.12f);
-
- Color.rgb *= 0.7f;
-
- Color.rgb = saturate(Color.rgb);
-
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_Logo_Glow(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
-
- float tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord).r;
- float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
- float3 Blue = float3(14.f, 180.f, 252.f) / 255.f;
-
- Color.a *= tex1;
- tex2.rgb *= Color.a * 5.f * Alpha;
- Color.rgb *= Blue;
-
- Color = lerp(Color, tex2, tex2.a);
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_AlphaBlend(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
-
- Color.rgb *= 1.5f;
-
- Color.a *= Alpha;
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_Clamp(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
-
- Color.rgb = saturate(Color.rgb * g_fTime);
-
- Color.a *= Alpha;
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_Cursor(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 Color = float4(0.f, 0.f, 0.f, 0.f);
- float4 White = float4(1.f, 1.f, 1.f, 1.f);
-
- float2 UV = In.vTexcoord;
- float2 Center = float2(0.5f, 0.5f);
-
- float CW = -g_fTime;
- float CCW = g_fTime;
-
- float2 RedCircle = UV;
- float2 RedUV = UV - Center;
-
- RedCircle.x = RedUV.x * cos(CCW) - RedUV.y * sin(CCW);
- RedCircle.y = RedUV.x * sin(CCW) + RedUV.y * cos(CCW);
- RedCircle = RedCircle + Center;
-
- float2 BlueCircle = UV;
- float2 BlueUV = UV - Center;
-
- BlueCircle.x = BlueUV.x * cos(CW) - BlueUV.y * sin(CW);
- BlueCircle.y = BlueUV.x * sin(CW) + BlueUV.y * cos(CW);
- BlueCircle = BlueCircle + Center;
-
-
- float4 Texture1 = g_Texture.Sample(ClampSampler, RedCircle);
- float4 Texture2 = g_Texture2.Sample(ClampSampler, BlueCircle);
-
- if (Texture1.r >= 0.7f)
- Color = Texture1;
-
- if (Texture2.b >= 0.7f)
- Color = Texture2;
-
- if (all(Color.rgb <= 0.5f))
- discard;
-
- Color = White;
-
- Color.a *= Alpha;
-
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_Key_Hold_Rotation(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
-
- float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
- Color = tex1;
-
- 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);
- float4 tex2 = g_Texture1.Sample(ClampSampler, Imagelocal);
- if (inside1)
- {
- float2 center = float2(0.5f, 0.5f);
- float2 dir = Imagelocal - center;
-
- float angle = atan2(dir.x, -dir.y);
- if (angle < 0)
- angle += g_fPI;
-
- float rotation = saturate(g_fTime) * g_fPI;
-
- tex2.rgb = (angle <= rotation) ? 1.0 : tex2.rgb;
-
-
- Color = lerp(Color, tex2, tex2.a);
- }
-
-
-
- float2 Imagetexpos2 = g_fImageSipos2.xy / g_fCurrent_Size;
- float2 Imagetexsize2 = g_fImageSipos2.zw / g_fCurrent_Size;
- float2 Imagelocal2 = (In.vTexcoord - Imagetexpos2) / Imagetexsize2;
- bool inside2 = all(Imagelocal2 >= 0.0f && Imagelocal2 <= 1.0f);
- if (inside2)
- {
- float2 atlasUV = g_fImageUV.xy + Imagelocal2 * (g_fImageUV.zw - g_fImageUV.xy);
- float2 safeUV = saturate(atlasUV);
- float4 tex3 = g_Texture2.Sample(ClampSampler, safeUV);
- Color = lerp(Color, tex3, tex3.a);
- }
-
- float2 Imagetexpos3 = g_fImageSipos3.xy / g_fCurrent_Size;
- float2 Imagetexsize3 = g_fImageSipos3.zw / g_fCurrent_Size;
- float2 Imagelocal3 = (In.vTexcoord - Imagetexpos3) / Imagetexsize3;
- bool inside3 = all(Imagelocal3 >= 0.0f && Imagelocal3 <= 1.0f);
- if (inside3)
- {
- float3 QuestColor = float3(253.f, 207.f, 11.f) / 255.f;
-
- float4 tex4 = g_Texture3.Sample(ClampSampler, Imagelocal3);
-
- if (g_iQuestType == 0)
- {
-
- tex4.rgb *= QuestColor;
-
- }
-
- Color = lerp(Color, tex4, tex4.a);
- }
-
- Color.a *= Alpha;
-
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_Mission(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 Color = float4(0.f, 0.f, 0.f, 0.f);
-
- float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
-
- tex1.a *= 0.5f;
-
- if (tex1.a >= 0.f)
- Color = tex1;
-
- Color = lerp(Color, tex2, tex2.a);
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_Sptire_Sheet(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(0.f, 0.f, 0.f, 0.f);
- float2 UV = In.vTexcoord;
-
- int iTotalFrame = g_iImageCountX * g_iImageCountY;
-
- uint iCurrentFrame = uint(floor(g_fTime / g_fFrame)) % iTotalFrame;
-
- int iFrameX = iCurrentFrame % g_iImageCountX;
- int iFrameY = iCurrentFrame / g_iImageCountX;
-
- float fFreamWidth = 1.0 / g_iImageCountX;
- float fFreamHeight = 1.0 / g_iImageCountY;
-
- UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth;
- UV.y = UV.y * fFreamHeight + iFrameY * fFreamHeight;
-
- float4 Texture = g_Texture.Sample(DefaultSampler, UV);
-
- Color = Texture;
-
- if (Color.r <= 0.4f)
- discard;
-
-
- Color.a *= Alpha;
-
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_QuestType(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float3 Color = float3(253.f, 207.f, 11.f) / 255.f;
- float4 Texture1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
-
- if (g_iQuestType == 0)
- {
- if (Texture1.r >= 0.3f)
- {
- Texture1.rgb = Color;
- }
- }
-
- Texture1.a *= Alpha;
- Out.vColor = Texture1;
-
- return Out;
-}
-
-PS_OUT PS_Spell_Anim(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
-
- float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
-
- Color = tex1;
-
- float2 texpos = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 texsize = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 texlocal = (In.vTexcoord - texpos) / texsize;
- bool inside = all(texlocal >= 0.0f && texlocal <= 1.0f);
- if (inside)
- {
- float4 tex2 = g_Texture1.Sample(DefaultSampler, texlocal);
- Color = lerp(Color, tex2, tex2.a);
- }
-
- Color.a *= Alpha;
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_NineSlice(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
- float2 uv = In.vTexcoord;
- float2 CurrentPixelPosition = uv * g_fCurrent_Size;
- float OriginLeft = g_fNine_Slice.x;
- float OriginRight = g_fNine_Slice.y;
- float OriginTop = g_fNine_Slice.z;
- float OriginBottom = g_fNine_Slice.w;
-
- float CurrentLeft = OriginLeft;
- float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
- float CurrentTop = OriginTop;
- float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
-
- float2 Finaluv = In.vTexcoord;
-
- if (CurrentPixelPosition.x < CurrentLeft)
- {
- Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
- }
- else if (CurrentPixelPosition.x > CurrentRight)
- {
- float dist = CurrentPixelPosition.x - CurrentRight;
- Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
- }
- else
- {
- float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
- Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
- }
-
- if (CurrentPixelPosition.y < CurrentTop)
- {
- Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
- }
- else if (CurrentPixelPosition.y > CurrentBottom)
- {
- float dist = CurrentPixelPosition.y - CurrentBottom;
- Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
- }
- else
- {
- float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
- Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
- }
-
- float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv);
- float4 tex2 = g_Texture1.Sample(ClampSampler, Finaluv);
-
- tex1.a *= 0.5f;
-
- if (tex1.a >= 0.f)
- Color = tex1;
-
- Color = lerp(Color, tex2, tex2.a);
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_Rotation(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 color = float4(0.f, 0.f, 0.f, 0.f);
-
- float2 center = float2(0.5f, 0.5f);
- float2 uv = In.vTexcoord - center;
- float2 Rotation;
- Rotation.x = uv.x * cos(g_fMapAngle) - uv.y * sin(g_fMapAngle);
- Rotation.y = uv.x * sin(g_fMapAngle) + uv.y * cos(g_fMapAngle);
- Rotation += center;
-
- float4 tex1 = g_Texture.Sample(BorderZeroLinearSampler, Rotation);
-
- if (tex1.a <= 0.f)
- discard;
-
- color = tex1;
-
- color.a *= Alpha;
-
- Out.vColor = color;
- return Out;
-
-}
-
-PS_OUT PS_Slot(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float2 center = float2(0.5f, 0.5f);
- float2 uv = In.vTexcoord - center;
- uv *= sqrt(2.0f);
- float2 Rotation = In.vTexcoord;
- 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;
-
- float4 color = g_Texture.Sample(ClampSampler, Rotation);
-
- color.a *= Alpha;
-
- Out.vColor = color;
-
- return Out;
-}
-
-PS_OUT PS_SpellAnim(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
-
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 color = float4(0.f, 0.f, 0.f, 0.f);
-
- float2 center = float2(0.5f, 0.5f);
- float2 uv = In.vTexcoord - center;
- uv *= sqrt(2.0f);
- float2 Rotation = In.vTexcoord;
- 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_Texture2.Sample(DefaultSampler, atlasUV);
-
- tex1.rgb *= 0.4f;
- color = tex1;
- tex2.rgb *= 0.3f;
-
- if (tex2.a >= 0.9f)
- color = tex2;
- float3 BGColor = float3(1.f, 1.f, 1.f);
-
- switch (g_iSpellType)
- {
- case 0:
- BGColor = float3(220.f, 165.f, 70.f) / 255.f;
- break;
- case 1:
- BGColor = float3(150.f, 120.f, 240.f) / 255.f;
- break;
- case 2:
- BGColor = float3(190.f, 46., 34.f) / 255.f;
- break;
- case 3:
- BGColor = float3(24.f, 190.f, 255.f) / 255.f;
- break;
- case 4:
- BGColor = float3(200.f, 220.f, 150.f) / 255.f;
- break;
- case 5:
- BGColor = float3(50.f, 150.f, 110.f) / 255.f;
- break;
- case 6:
- BGColor = float3(0.f, 0.f, 0.f);
- break;
- }
- float4 color1 = float4(1.f, 1.f, 1.f, 1.f);
-
- float2 OverrayUV = In.vTexcoord;
- float CoolTime = 1.f - g_fDeltaV;
- float CoolTime2 = 1.f - g_fDeltaV + 0.1f;
- atlasUV = startUV + In.vTexcoord * (endUV - startUV);
- float4 tex3 = g_Texture1.Sample(ClampSampler, OverrayUV);
- tex3.rgb *= BGColor;
- float4 tex4 = g_Texture2.Sample(DefaultSampler, atlasUV);
-
- if (tex4.a >= 0.9f)
- tex3 = tex4;
-
- color1 = tex3;
-
- float wave1 = sin(OverrayUV.x * 10.f + g_fTime) * 0.01f;
- float wave2 = sin(OverrayUV.x * 10.f + g_fTime) * 0.01f;
- float waveThreshold1 = CoolTime + wave1;
- float waveThreshold2 = CoolTime2 + wave2;
- float2 waveUV = float2(waveUV.x = OverrayUV.x * 2.f + g_fTime * 0.3f, waveUV.y = (OverrayUV.y - waveThreshold1) / (waveThreshold2 - waveThreshold1));
- waveUV = saturate(waveUV);
- float tex5 = g_Texture3.Sample(DefaultSampler, waveUV).r;
-
- if (g_fDeltaV <= 1.f)
- {
- if (OverrayUV.y >= waveThreshold1 && OverrayUV.y <= waveThreshold2)
- {
- color1.rgb += float3(1.f, 1.f, 1.f) * tex5 * g_fDeltaU;
- }
- }
-
- float waveThreshold = CoolTime + wave1;
-
- if (OverrayUV.y <= waveThreshold)
- {
- color1.a = 0.f;
- }
-
- color = lerp(color, color1, color1.a);
-
- color.a *= Alpha;
-
- Out.vColor = color;
- return Out;
-}
-
-PS_OUT PS_HpBar(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
- float4 Color1 = float4(1.f, 1.f, 1.f, 1.f);
- float2 uv = In.vTexcoord;
- float2 CurrentPixelPosition = uv * g_fCurrent_Size;
- float OriginLeft = g_fNine_Slice.x;
- float OriginRight = g_fNine_Slice.y;
- float OriginTop = g_fNine_Slice.z;
- float OriginBottom = g_fNine_Slice.w;
-
- float CurrentLeft = OriginLeft;
- float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
- float CurrentTop = OriginTop;
- float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
-
- float2 Finaluv = In.vTexcoord;
-
- if (CurrentPixelPosition.x < CurrentLeft)
- {
- Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
- }
- else if (CurrentPixelPosition.x > CurrentRight)
- {
- float dist = CurrentPixelPosition.x - CurrentRight;
- Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
- }
- else
- {
- float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
- Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
- }
-
- if (CurrentPixelPosition.y < CurrentTop)
- {
- Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
- }
- else if (CurrentPixelPosition.y > CurrentBottom)
- {
- float dist = CurrentPixelPosition.y - CurrentBottom;
- Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
- }
- else
- {
- float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
- Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
- }
-
- float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv);
- tex1.rgb = float3(255.f, 0.f, 0.f) / 255.f;
- if (g_fHp <= 0.3f)
- {
- tex1.a *= (sin(g_fBlinkTime) * 0.25f + 0.75f) * 1.5f;
- }
- else
- {
- tex1.a = 0.f;
- }
- Color = tex1;
-
- float2 BGPos = g_Pos;
- float2 BGSize = g_fImageSize;
- float2 BGPixel = Finaluv * g_fOrigin_Size;
- float2 localUV = (BGPixel - BGPos) / BGSize;
- bool inside = all(localUV >= 0.0f && localUV <= 1.0f);
-
- float4 tex2 = g_Texture1.Sample(ClampSampler, localUV);
-
- if (inside)
- Color = lerp(Color, tex2, tex2.a);
-
- float2 reversuv = In.vTexcoord;
-
- reversuv.x = 1.0f - localUV.x;
-
- float4 tex3 = g_Texture2.Sample(ClampSampler, localUV);
-
- if (reversuv.x >= g_fHp)
- {
- tex3.rgb = float3(0.f, 0.f, 0.f);
- }
-
- float3 Green = (float3(112.f, 241.f, 31.f) / 255.f) * 1.2f;
- float3 Red = (float3(255.f, 0.f, 0.f) / 255.f) * 1.2f;
-
- tex3.rgb *= lerp(Green, Red, g_fTime);
-
- if (all(Color.rgb >= float3(55.f / 255.f, 0.f / 255.f, 55.f / 255.f)))
- Color = lerp(Color, tex3, tex3.a);
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_Magic_Meter(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float3 Blue = float3(41.f, 165.f, 255.f) / 255.f;
-
- float4 color = float4(1.f, 1.f, 1.f, 1.f);
- float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord);
- float4 tex2 = g_Texture1.Sample(ClampSampler, In.vTexcoord);
-
- float2 reverseuv = 1.f - In.vTexcoord;
-
- color = tex1;
- tex2.rgb *= Blue * 1.5f;
-
- if (reverseuv.x >= g_fHp)
- {
- tex2.rgb = float3(0.f, 0.f, 0.f);
- }
-
- if (all(color.rgb >= float3(65.f / 255.f, 65.f / 255.f, 65.f / 255.f)))
- color = tex2;
-
- color.a *= Alpha;
-
- Out.vColor = color;
-
- return Out;
-}
-
-
-PS_OUT PS_Magic_Icon(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
-
- float2 center = float2(0.5f, 0.5f);
- float2 BGuv = In.vTexcoord - center;
- BGuv *= sqrt(2.0f);
- float2 Rotation = In.vTexcoord;
- Rotation.x = BGuv.x * cos(g_fAngle) - BGuv.y * sin(g_fAngle);
- Rotation.y = BGuv.x * sin(g_fAngle) + BGuv.y * cos(g_fAngle);
- Rotation += center;
-
- float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
- float4 tex2 = g_Texture1.Sample(ClampSampler, Rotation);
-
- Color = tex1;
- Color = lerp(tex1, tex2, tex2.a);
-
- float2 uv = In.vTexcoord;
- float scale = 1.2;
-
- uv = (uv - center) * scale + center;
- float4 tex3 = g_Texture2.Sample(ClampSampler, uv);
-
-
- Color = Color * (1 - tex3.a) + tex3;
-
- Color.a *= Alpha;
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_RemapUV(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
-
-
- float2 startUV = g_fImageUV.xy;
- float2 endUV = g_fImageUV.zw;
-
- float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
-
- float4 tex1 = g_Texture.Sample(DefaultSampler, atlasUV);
-
- Color = tex1;
-
- Color.a *= Alpha;
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_Revelio(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
- float2 UV = In.vTexcoord;
-
- //float2 Position[4];
- //float2 startUV[4];
- //float2 endUV[4];
-
- //float2 Atlases[4];
-
- //for (int i = 0; i < 4; ++i)
- //{
- // Position[i] = g_fPosition[i];
- // startUV[i] = g_fImagesUV[i].xy;
- // endUV[i] = g_fImagesUV[i].zw;
-
- // Atlases[i] = startUV[i] + UV * (endUV[i] - startUV[i]);
- //}
-
- //float4 tex1 = g_Texture.Sample(DefaultSampler, UV);
- //float4 tex2 = g_Texture1.Sample(DefaultSampler, Atlases[0]);
- //float4 tex3 = g_Texture1.Sample(DefaultSampler, Atlases[1]);
- //float4 tex4 = g_Texture2.Sample(DefaultSampler, Atlases[2]);
- //float4 tex5 = g_Texture2.Sample(DefaultSampler, Atlases[3]);
-
-
-
- ////float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
-
- Color.a *= Alpha;
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_Potion(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(214.f / 255.f, 225 / 255.f, 36 / 255.f, 1.f);
-
- float2 center = float2(0.5f, 0.5f);
- float2 uv = In.vTexcoord - center;
- uv *= sqrt(2.0f);
- float2 Rotation = In.vTexcoord;
- 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;
-
- float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
- Color = tex1;
-
- float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
- //Color += tex2;
- float4 tex3 = g_Texture2.Sample(ClampSampler, Rotation);
- Color = lerp(Color, tex3, tex3.a);
-
- float2 Potionuv = In.vTexcoord;
- float scale = 1.2;
-
- Potionuv = (Potionuv - center) * scale + center;
- float4 tex4 = g_Texture3.Sample(ClampSampler, Potionuv);
- Color = lerp(Color, tex4, tex4.a);
-
- float2 tex5pos = g_Pos / g_fCurrent_Size;
- float2 tex5size = g_fOrigin_Size / g_fCurrent_Size;
- float2 tex5local = (In.vTexcoord - tex5pos) / tex5size;
- bool inside = all(tex5local >= 0.0f && tex5local <= 1.0f);
- float4 tex5 = g_Texture4.Sample(ClampSampler, tex5local);
- if (inside)
- Color = lerp(Color, tex5, tex5.a);
-
- Color.a *= Alpha;
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_Magic_Item(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 color = float4(1.f, 1.f, 1.f, 1.f);
-
- float2 center = float2(0.5f, 0.5f);
- float2 uv = In.vTexcoord - center;
- uv *= sqrt(2.0f);
- float2 Rotation = In.vTexcoord;
- 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_Texture3.Sample(ClampSampler, atlasUV);
-
- tex1.rgb *= 0.4f;
- color = tex1;
- tex2.rgb *= 0.3f;
-
- if (tex2.a >= 0.9f)
- color = tex2;
- float3 BGColor = float3(1.f, 1.f, 1.f);
-
- switch (g_iSpellType)
- {
- case 0:
- BGColor = float3(50.f, 50.f, 50.f) / 255.f;
- break;
- case 1:
- BGColor = float3(89.f, 32.f, 215.f) / 255.f;
- break;
- case 2:
- BGColor = float3(190.f, 46., 34.f) / 255.f;
- break;
- case 3:
- BGColor = float3(37.f, 129.f, 162.f) / 255.f;
- break;
- case 4:
- BGColor = float3(134.f, 171.f, 78.f) / 255.f;
- break;
- }
-
- float4 color1 = float4(1.f, 1.f, 1.f, 1.f);
-
- float2 OverrayUV = In.vTexcoord;
- float CoolTime = 0.f + g_fDeltaV;
- float CoolTime2 = 0.f + g_fDeltaV + 0.1f;
- atlasUV = startUV + In.vTexcoord * (endUV - startUV);
- float4 tex3 = g_Texture1.Sample(ClampSampler, OverrayUV);
- tex3.rgb *= BGColor;
- float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV);
-
- if (g_fDeltaV <= 1.f)
- {
- if (tex4.a >= 0.9f)
- tex3 = tex4;
-
- color1 = tex3;
-
- float wave1 = sin(OverrayUV.x * 10.f + g_fTime * 2.f) * 0.01f;
- float wave2 = sin(OverrayUV.x * 10.f + g_fTime * 2.f) * 0.01f;
-
- float waveThreshold1 = CoolTime + wave1;
- float waveThreshold2 = CoolTime2 + wave2;
- float2 waveUV = float2(waveUV.x = OverrayUV.x * 2.f + g_fTime * 0.3f, waveUV.y = (OverrayUV.y - waveThreshold1) / (waveThreshold2 - waveThreshold1));
- waveUV = saturate(waveUV);
- float Mask = g_MaskingTexture.Sample(DefaultSampler, waveUV).r;
- if (g_fDeltaV <= 1.f)
- {
- if (OverrayUV.y >= waveThreshold1 && OverrayUV.y <= waveThreshold2)
- {
- color1.rgb += float3(1.f, 1.f, 1.f) * Mask * 1.f;
- }
- }
-
- float waveThreshold = CoolTime + wave1;
-
- if (OverrayUV.y <= waveThreshold)
- {
- color1.a = 0.f;
- }
-
- color = lerp(color, color1, color1.a);
- }
- else if (g_fDeltaV >= 1.f)
- color = lerp(color, tex4, tex4.a);
-
- float4 tex5 = g_Texture2.Sample(ClampSampler, Rotation);
- color = lerp(color, tex5, tex5.a);
-
- float2 texpos1 = g_fItemPosition1 / g_fCurrent_Size;
- float2 texpos2 = g_fItemPosition2 / g_fCurrent_Size;
- float2 texsize1 = g_fItemImageSizes1 / g_fCurrent_Size;
- float2 texsize2 = g_fItemImageSizes2 / g_fCurrent_Size;
- float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
- float2 texlocal2 = (In.vTexcoord - texpos2) / texsize2;
-
-
- bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
- float4 tex6 = g_Texture4.Sample(DefaultSampler, texlocal1);
-
- if (inside1)
- color = lerp(color, tex6, tex6.a);
-
- bool inside2 = all(texlocal2 >= 0.0f && texlocal2 <= 1.0f);
-
- float4 tex7 = g_Texture5.Sample(DefaultSampler, texlocal2);
- if (inside2)
- color = lerp(color, tex7, tex7.a);
-
- color.a *= Alpha;
-
- Out.vColor = color;
- return Out;
-}
-
-PS_OUT PS_Spell_Preview(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
- float2 uv = In.vTexcoord;
- float2 CurrentPixelPosition = uv * g_fCurrent_Size;
- float OriginLeft = g_fNine_Slice.x;
- float OriginRight = g_fNine_Slice.y;
- float OriginTop = g_fNine_Slice.z;
- float OriginBottom = g_fNine_Slice.w;
-
- float CurrentLeft = OriginLeft;
- float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
- float CurrentTop = OriginTop;
- float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
-
- float2 Finaluv = In.vTexcoord;
-
- if (CurrentPixelPosition.x < CurrentLeft)
- {
- Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
- }
- else if (CurrentPixelPosition.x > CurrentRight)
- {
- float dist = CurrentPixelPosition.x - CurrentRight;
- Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
- }
- else
- {
- float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
- Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
- }
-
- if (CurrentPixelPosition.y < CurrentTop)
- {
- Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
- }
- else if (CurrentPixelPosition.y > CurrentBottom)
- {
- float dist = CurrentPixelPosition.y - CurrentBottom;
- Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
- }
- else
- {
- float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
- Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
- }
-
- float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
- float4 tex3 = g_Texture2.Sample(DefaultSampler, Finaluv);
- Color = tex1;
-
- tex3.rgb = tex2.rgb;
-
- Color = lerp(Color, tex3, tex3.a);
-
- float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
- bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
- float4 tex4 = g_Texture3.Sample(DefaultSampler, Finaluv);
- if (inside1)
- {
- Color = lerp(Color, tex4, tex4.a);
- }
-
- Color.a *= Alpha;
-
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_Spell_Header(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
-
- float3 BGColor = float3(1.f, 1.f, 1.f);
-
- switch (g_iSpellType)
- {
- case 0:
- BGColor = float3(220.f, 165.f, 70.f) / 255.f;
- break;
- case 1:
- BGColor = float3(150.f, 120.f, 240.f) / 255.f;
- break;
- case 2:
- BGColor = float3(190.f, 46., 34.f) / 255.f;
- break;
- case 3:
- BGColor = float3(24.f, 190.f, 255.f) / 255.f;
- break;
- case 4:
- BGColor = float3(200.f, 220.f, 150.f) / 255.f;
- break;
- case 5:
- BGColor = float3(50.f, 150.f, 110.f) / 255.f;
- break;
- case 6:
- BGColor = float3(0.f, 0.f, 0.f);
- break;
- }
-
- float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
- Color.rgb = tex1.rgb * 0.8f;
- Color.a = tex1.a;
-
- Color.rgb *= BGColor;
-
- Color.a *= Alpha * 0.5f;
-
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_Spell_Header_Line(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
- float2 uv = In.vTexcoord;
- float2 CurrentPixelPosition = uv * g_fCurrent_Size;
- float OriginLeft = g_fNine_Slice.x;
- float OriginRight = g_fNine_Slice.y;
- float OriginTop = g_fNine_Slice.z;
- float OriginBottom = g_fNine_Slice.w;
-
- float CurrentLeft = OriginLeft;
- float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
- float CurrentTop = OriginTop;
- float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
-
- float2 Finaluv = In.vTexcoord;
-
- if (CurrentPixelPosition.x < CurrentLeft)
- {
- Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
- }
- else if (CurrentPixelPosition.x > CurrentRight)
- {
- float dist = CurrentPixelPosition.x - CurrentRight;
- Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
- }
- else
- {
- float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
- Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
- }
-
- if (CurrentPixelPosition.y < CurrentTop)
- {
- Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
- }
- else if (CurrentPixelPosition.y > CurrentBottom)
- {
- float dist = CurrentPixelPosition.y - CurrentBottom;
- Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
- }
- else
- {
- float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
- Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
- }
-
- float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
- Color = tex1;
-
- //Color.rgb = tex2.rgb;
-
- Color.a *= Alpha;
-
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_Spell_Drag(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
- float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
- float tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord).r;
- float4 tex2Color = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
-
- tex2Color.a = tex2;
- Color = lerp(tex1, tex2Color, tex2Color.a);
-
- float2 atlasUV = g_fImageUV.xy + In.vTexcoord * (g_fImageUV.zw - g_fImageUV.xy);
- //float2 center = (g_fImageUV.xy + g_fImageUV.zw) * 0.5f;
- //float2 uv = atlasUV - center;
- //uv *= 0.7f;
- //uv += center;
- float4 tex3 = g_Texture3.Sample(ClampSampler, atlasUV);
-
- Color = lerp(Color, tex3, tex3.a);
-
- Color.a *= Alpha;
-
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_Camera_LockOn(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
-
- float2 center = float2(0.5, 0.5);
- float2 uv = In.vTexcoord - center;
- float angle = -g_fTime;
- float s = sin(angle);
- float c = cos(angle);
- float2 maskuv = float2(uv.x * c - uv.y * s, uv.x * s + uv.y * c) + center;
-
- float tex1 = g_Texture.Sample(ClampSampler, maskuv).r;
-
- Color.a = tex1 * 0.3f;
-
- if (g_iHover == 0)
- {
- float4 tex2 = g_Texture1.Sample(ClampSampler, maskuv);
-
- Color.rgb += (tex2.rgb * tex2.a) * 2.f;
- }
-
- float2 UpUV = In.vTexcoord;
- UpUV.y += g_fTime;
-
- float4 tex3 = g_Texture2.Sample(DefaultSampler, UpUV);
- float tex4 = g_Texture1.Sample(ClampSampler, In.vTexcoord).r;
-
- tex3.a *= tex4;
-
- Color = lerp(Color, tex3, tex3.a);
-
- Color.a *= Alpha;
-
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_Loding_Screen(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
-
- float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
- Color = tex1;
- Color = lerp(Color, tex2, tex2.a);
-
- //float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
- //float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
- //float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
- //bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
- //if (inside1)
- //{
- // float2 uv = saturate(Imagelocal);
- // float4 tex2 = g_Texture1.Sample(DefaultSampler, uv);
-
- // Color = lerp(Color, tex2, tex2.a);
- //}
-
- Color.a *= Alpha;
-
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_Enemy_HpBer(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
-
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
- float4 Color1 = float4(1.f, 1.f, 1.f, 1.f);
- float2 uv = In.vTexcoord;
- float2 CurrentPixelPosition = uv * g_fCurrent_Size;
- float OriginLeft = g_fNine_Slice.x;
- float OriginRight = g_fNine_Slice.y;
- float OriginTop = g_fNine_Slice.z;
- float OriginBottom = g_fNine_Slice.w;
-
- float CurrentLeft = OriginLeft;
- float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
- float CurrentTop = OriginTop;
- float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
-
- float2 Finaluv = In.vTexcoord;
-
- if (CurrentPixelPosition.x < CurrentLeft)
- {
- Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
- }
- else if (CurrentPixelPosition.x > CurrentRight)
- {
- float dist = CurrentPixelPosition.x - CurrentRight;
- Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
- }
- else
- {
- float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
- Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
- }
-
- if (CurrentPixelPosition.y < CurrentTop)
- {
- Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
- }
- else if (CurrentPixelPosition.y > CurrentBottom)
- {
- float dist = CurrentPixelPosition.y - CurrentBottom;
- Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
- }
- else
- {
- float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
- Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
- }
-
- float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, Finaluv);
-
- Color = tex1;
-
- tex2.rgb *= float3(1.f, 0.f, 0.f);
-
- if (In.vTexcoord.x >= g_fHp)
- {
- tex2.rgb = float3(0.f, 0.f, 0.f);
- }
-
- Color = lerp(Color, tex2, tex2.a);
-
- if (Color.a <= 0.f)
- discard;
-
- if (g_iHover != 0)
- {
- float4 tex3 = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
-
- tex3.rgb *= float3(1.f, 0.f, 0.f);
-
- if (g_fTime >= tex3.r)
- {
- Color.a *= tex3.r;
- Color.rgb = float3(1.f, 0.f, 0.f);
- }
- }
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_Boss_HpBer(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
-
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
- float4 Color1 = float4(1.f, 1.f, 1.f, 1.f);
- float2 uv = In.vTexcoord;
- float2 CurrentPixelPosition = uv * g_fCurrent_Size;
- float OriginLeft = g_fNine_Slice.x;
- float OriginRight = g_fNine_Slice.y;
- float OriginTop = g_fNine_Slice.z;
- float OriginBottom = g_fNine_Slice.w;
-
- float CurrentLeft = OriginLeft;
- float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
- float CurrentTop = OriginTop;
- float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
-
- float2 Finaluv = In.vTexcoord;
-
- if (CurrentPixelPosition.x < CurrentLeft)
- {
- Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
- }
- else if (CurrentPixelPosition.x > CurrentRight)
- {
- float dist = CurrentPixelPosition.x - CurrentRight;
- Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
- }
- else
- {
- float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
- Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
- }
-
- if (CurrentPixelPosition.y < CurrentTop)
- {
- Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
- }
- else if (CurrentPixelPosition.y > CurrentBottom)
- {
- float dist = CurrentPixelPosition.y - CurrentBottom;
- Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
- }
- else
- {
- float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
- Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
- }
-
- float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, Finaluv);
-
- Color = tex1;
-
- tex2.rgb *= float3(1.f, 0.f, 0.f);
-
- if (In.vTexcoord.x >= g_fHp)
- {
- tex2.rgb = float3(0.f, 0.f, 0.f);
- }
-
- if (all(Color.rgb >= (float3(55.f, 55.f, 55.f) / 255.f)))
- Color = tex2;
-
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_Quest_Border(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
-
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
- float4 Color1 = float4(1.f, 1.f, 1.f, 1.f);
- float2 uv = In.vTexcoord;
- float2 CurrentPixelPosition = uv * g_fCurrent_Size;
- float OriginLeft = g_fNine_Slice.x;
- float OriginRight = g_fNine_Slice.y;
- float OriginTop = g_fNine_Slice.z;
- float OriginBottom = g_fNine_Slice.w;
-
- float CurrentLeft = OriginLeft;
- float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
- float CurrentTop = OriginTop;
- float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
-
- float2 Finaluv = In.vTexcoord;
-
- if (CurrentPixelPosition.x < CurrentLeft)
- {
- Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
- }
- else if (CurrentPixelPosition.x > CurrentRight)
- {
- float dist = CurrentPixelPosition.x - CurrentRight;
- Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
- }
- else
- {
- float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
- Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
- }
-
- if (CurrentPixelPosition.y < CurrentTop)
- {
- Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
- }
- else if (CurrentPixelPosition.y > CurrentBottom)
- {
- float dist = CurrentPixelPosition.y - CurrentBottom;
- Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
- }
- else
- {
- float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
- Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
- }
-
- float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
- Color = tex1;
-
- if (g_iColor == 1)
- Color.rgb *= float3(100.f, 0.f, 100.f) / 255.f;
-
- if (g_iColor == 2)
- {
- Color.rgb *= 0.3f;
- }
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_Quest_Info(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
-
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
- float4 Color1 = float4(1.f, 1.f, 1.f, 1.f);
- float2 uv = In.vTexcoord;
- float2 CurrentPixelPosition = uv * g_fCurrent_Size;
- float OriginLeft = g_fNine_Slice.x;
- float OriginRight = g_fNine_Slice.y;
- float OriginTop = g_fNine_Slice.z;
- float OriginBottom = g_fNine_Slice.w;
-
- float CurrentLeft = OriginLeft;
- float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
- float CurrentTop = OriginTop;
- float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
-
- float2 Finaluv = In.vTexcoord;
-
- if (CurrentPixelPosition.x < CurrentLeft)
- {
- Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
- }
- else if (CurrentPixelPosition.x > CurrentRight)
- {
- float dist = CurrentPixelPosition.x - CurrentRight;
- Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
- }
- else
- {
- float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
- Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
- }
-
- if (CurrentPixelPosition.y < CurrentTop)
- {
- Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
- }
- else if (CurrentPixelPosition.y > CurrentBottom)
- {
- float dist = CurrentPixelPosition.y - CurrentBottom;
- Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
- }
- else
- {
- float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
- Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
- }
-
- float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, Finaluv);
-
- Color = tex1;
-
- Color = lerp(Color, tex2, tex2.a);
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_Quest_Status(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
-
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
-
- if (g_iClick == 0)
- {
- if (g_iHover == 0)
- {
- float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
- tex1.rgb *= float3(60.f, 80.f, 150.f) / 255.f;
- Color = tex1;
- float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
- bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
- if (inside1)
- {
- float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy);
- float2 safeUV = saturate(atlasUV);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, safeUV);
- Color = lerp(Color, tex2, tex2.a);
- }
- }
- else
- {
- float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
- Color = tex1;
- float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
- bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
- if (inside1)
- {
- float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy);
- float2 safeUV = saturate(atlasUV);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, safeUV);
- Color = lerp(Color, tex2, tex2.a);
- }
- }
- }
- else
- {
- float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
- Color = tex1;
- float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
- bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
- if (inside1)
- {
- float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy);
- float2 safeUV = saturate(atlasUV);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, safeUV);
- Color = lerp(Color, tex2, tex2.a);
- }
- float mask = g_Texture2.Sample(DefaultSampler, In.vTexcoord).r;
- float3 glowColor = float3(1.0f, 1.0f, 1.0f);
- Color.rgb += glowColor * mask * 0.5f;
- Color.rgb *= float3(140.f, 140.f, 20.f) / 255.f;
- }
-
-
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_Broomstick(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 color = float4(1.f, 1.f, 1.f, 1.f);
-
- float2 center = float2(0.5f, 0.5f);
- float2 uv = In.vTexcoord - center;
- uv *= sqrt(2.0f);
- float2 Rotation = In.vTexcoord;
- 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;
-
- float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
- 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_fImageSipos1.xy / g_fCurrent_Size * 0.5f;
- float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size * 0.5;
- float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
- bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
- if (inside1)
- {
- float4 tex3 = g_Texture2.Sample(ClampSampler, texlocal1);
- color = lerp(color, tex3, tex3.a);
- }
-
- 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;
-
- Out.vColor = color;
- return Out;
-}
-
-
-PS_OUT PS_SpellLearn(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- 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);
- float tex1 = g_Texture1.Sample(DefaultSampler, In.vTexcoord).r;
- Color = tex;
-
- tex1 *= 0.95f;
-
- Color.a = tex1;
-
- Color.a *= Alpha;
-
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_SpellLearnColor(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- 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);
- float4 tex1 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
- Color = tex;
-
- Color.rgb *= tex1.rgb;
-
- float2 rectPos = g_fPosition - float2(256.f, 259.f);
- float2 rectSize = g_fCurrent_Size;
-
- float2 itemPos = g_fItemPosition1;
- float2 itemSize = g_fItemImageSizes1;
-
- float2 pixelPos;
- pixelPos.x = rectPos.x + In.vTexcoord.x * rectSize.x;
- pixelPos.y = rectPos.y + (1.0f - In.vTexcoord.y) * rectSize.y;
-
- 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 = (PS_OUT) 0;
- 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;
-}
-
-PS_OUT PS_NPCInteraction(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
- float2 uv = In.vTexcoord;
- float2 CurrentPixelPosition = uv * g_fCurrent_Size;
- float OriginLeft = g_fNine_Slice.x;
- float OriginRight = g_fNine_Slice.y;
- float OriginTop = g_fNine_Slice.z;
- float OriginBottom = g_fNine_Slice.w;
-
- float CurrentLeft = OriginLeft;
- float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
- float CurrentTop = OriginTop;
- float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
-
- float2 Finaluv = In.vTexcoord;
-
- if (CurrentPixelPosition.x < CurrentLeft)
- {
- Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
- }
- else if (CurrentPixelPosition.x > CurrentRight)
- {
- float dist = CurrentPixelPosition.x - CurrentRight;
- Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
- }
- else
- {
- float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
- Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
- }
-
- if (CurrentPixelPosition.y < CurrentTop)
- {
- Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
- }
- else if (CurrentPixelPosition.y > CurrentBottom)
- {
- float dist = CurrentPixelPosition.y - CurrentBottom;
- Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
- }
- else
- {
- float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
- Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
- }
-
- float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv);
-
- Color = tex1;
-
- 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 inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
- if (inside1)
- {
- float2 startUV = g_fImageUV.xy;
- float2 endUV = g_fImageUV.zw;
- float2 atlasUV = atlasUV = startUV + texlocal1 * (endUV - startUV);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, atlasUV);
- Color = lerp(Color, tex2, tex2.a);
-
- }
-
- Color.a *= Alpha;
-
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_CanvasFade(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha;
- float4 Color = float4(0.f, 0.f, 0.f, 1.f);
-
- float4 tex = g_Texture.Sample(DefaultSampler, In.vTexcoord);
-
- Color = tex;
-
- Color.a = Alpha;
-
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_FlagWave(PS_IN In)
-{
- PS_OUT Out;
- float Alpha = g_fAlpha;
- float4 Color = float4(0.f, 0.f, 0.f, 1.f);
-
- float2 uv = In.vTexcoord;
-
- float phase = uv.y * 1.5f;
-
- float waveX =
- sin(uv.y * 20.f + g_fTime * 1.0f + phase) * 0.007f;
-
- float waveY =
- sin(uv.x * 12.f + g_fTime * 0.8f) * 0.002f;
-
- uv.x += waveX;
- uv.y += waveY;
-
- float4 tex = g_Texture.Sample(ClampSampler, uv);
-
- Color = tex;
-
- if (Color.r <= 0.f)
- discard;
-
- Color.a = Alpha;
-
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_BroomCircle(PS_IN In)
-{
- PS_OUT Out;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 color = float4(0.f, 0.f, 0.f, 0.f);
-
- float2 center = float2(0.5f, 0.5f);
- float2 uv = In.vTexcoord - center;
- float2 Rotation;
- 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;
-
- float4 tex = g_Texture.Sample(BorderZeroLinearSampler, Rotation);
- color = tex;
-
- float Diffuse = g_Texture1.Sample(DefaultSampler, In.vTexcoord).r;
-
- if (g_iHover != 0)
- {
- if (g_fTime >= Diffuse)
- {
- discard;
- }
- }
-
- if (g_iFinish == 0)
- {
- float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
- bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
- if (inside1)
- {
- float4 tex1 = g_Texture2.Sample(DefaultSampler, Imagelocal1);
- color = lerp(color, tex1, tex1.a);
- }
- }
-
- color.a *= Alpha;
-
- Out.vColor = color;
- return Out;
-}
-
-PS_OUT PS_Ride_info_Key(PS_IN In)
-{
- PS_OUT Out;
-
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
-
- float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
- Color = tex1;
-
- float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
- bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
- if (inside1)
- {
- float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy);
- float2 safeUV = saturate(atlasUV);
- float4 tex2 = g_Texture1.Sample(ClampSampler, safeUV);
- Color = lerp(Color, tex2, tex2.a);
- }
-
- float2 Imagetexpos2 = g_fImageSipos2.xy / g_fCurrent_Size;
- float2 Imagetexsize2 = g_fImageSipos2.zw / g_fCurrent_Size;
- float2 Imagelocal2 = (In.vTexcoord - Imagetexpos2) / Imagetexsize2;
- bool inside2 = all(Imagelocal2 >= 0.0f && Imagelocal2 <= 1.0f);
- if (inside2)
- {
- float4 tex3 = g_Texture2.Sample(ClampSampler, Imagelocal2);
- Color = lerp(Color, tex3, tex3.a);
- }
-
- Color.a *= Alpha;
-
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_Ride_Info(PS_IN In)
-{
- PS_OUT Out;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
- float2 uv = In.vTexcoord;
- float2 CurrentPixelPosition = uv * g_fCurrent_Size;
- float OriginLeft = g_fNine_Slice.x;
- float OriginRight = g_fNine_Slice.y;
- float OriginTop = g_fNine_Slice.z;
- float OriginBottom = g_fNine_Slice.w;
-
- float CurrentLeft = OriginLeft;
- float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
- float CurrentTop = OriginTop;
- float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
-
- float2 Finaluv = In.vTexcoord;
-
- if (CurrentPixelPosition.x < CurrentLeft)
- {
- Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
- }
- else if (CurrentPixelPosition.x > CurrentRight)
- {
- float dist = CurrentPixelPosition.x - CurrentRight;
- Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
- }
- else
- {
- float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
- Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
- }
-
- if (CurrentPixelPosition.y < CurrentTop)
- {
- Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
- }
- else if (CurrentPixelPosition.y > CurrentBottom)
- {
- float dist = CurrentPixelPosition.y - CurrentBottom;
- Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
- }
- else
- {
- float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
- Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
- }
-
- float4 tex = g_Texture.Sample(ClampSampler, Finaluv);
-
- Color = tex;
-
- float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
- bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
- if (inside1)
- {
- float4 tex1 = g_Texture1.Sample(ClampSampler, Imagelocal1);
- Color = lerp(Color, tex1, tex1.a);
- }
-
- float2 Imagetexpos2 = g_fImageSipos2.xy / g_fCurrent_Size;
- float2 Imagetexsize2 = g_fImageSipos2.zw / g_fCurrent_Size;
- float2 Imagelocal2 = (In.vTexcoord - Imagetexpos2) / Imagetexsize2;
- bool inside2 = all(Imagelocal2 >= 0.0f && Imagelocal2 <= 1.0f);
- if (inside2)
- {
- float4 tex2 = g_Texture2.Sample(ClampSampler, Imagelocal2);
- Color = lerp(Color, tex2, tex2.a);
- }
-
- float2 Imagetexpos3 = g_fImageSipos3.xy / g_fCurrent_Size;
- float2 Imagetexsize3 = g_fImageSipos3.zw / g_fCurrent_Size;
- float2 Imagelocal3 = (In.vTexcoord - Imagetexpos3) / Imagetexsize3;
- bool inside3 = all(Imagelocal3 >= 0.0f && Imagelocal3 <= 1.0f);
- if (inside3)
- {
- float4 tex3 = g_Texture3.Sample(ClampSampler, Imagelocal3);
- Color = lerp(Color, tex3, tex3.a);
- }
-
- float2 Imagetexpos4 = g_fImageSipos4.xy / g_fCurrent_Size;
- float2 Imagetexsize4 = g_fImageSipos4.zw / g_fCurrent_Size;
- float2 Imagelocal4 = (In.vTexcoord - Imagetexpos4) / Imagetexsize4;
- bool inside4 = all(Imagelocal4 >= 0.0f && Imagelocal4 <= 1.0f);
- if (inside4)
- {
- float4 tex4 = g_Texture4.Sample(ClampSampler, Imagelocal4);
- Color = lerp(Color, tex4, tex4.a);
- }
-
- Color.a *= Alpha;
-
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_Ride_HpSlot(PS_IN In)
-{
- PS_OUT Out;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
-
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
-
- float2 center = float2(0.5f, 0.5f);
- float2 BGuv = In.vTexcoord - center;
- float2 Rotation = In.vTexcoord;
- BGuv *= sqrt(2.0f);
- Rotation.x = BGuv.x * cos(g_fAngle) - BGuv.y * sin(g_fAngle);
- Rotation.y = BGuv.x * sin(g_fAngle) + BGuv.y * cos(g_fAngle);
- Rotation += center;
-
- float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
- float4 tex2 = g_Texture1.Sample(ClampSampler, Rotation);
-
- Color = tex1;
- Color = lerp(tex1, tex2, tex2.a);
-
- float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
- bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
- if (inside1)
- {
- float4 tex3 = g_Texture2.Sample(ClampSampler, Imagelocal1);
- Color = lerp(Color, tex3, tex3.a);
- }
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_BoosterGauge(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
- float4 Color1 = float4(1.f, 1.f, 1.f, 1.f);
- float2 uv = In.vTexcoord;
- float2 CurrentPixelPosition = uv * g_fCurrent_Size;
- float OriginLeft = g_fNine_Slice.x;
- float OriginRight = g_fNine_Slice.y;
- float OriginTop = g_fNine_Slice.z;
- float OriginBottom = g_fNine_Slice.w;
-
- float CurrentLeft = OriginLeft;
- float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
- float CurrentTop = OriginTop;
- float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
-
- float2 Finaluv = In.vTexcoord;
-
- if (CurrentPixelPosition.x < CurrentLeft)
- {
- Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
- }
- else if (CurrentPixelPosition.x > CurrentRight)
- {
- float dist = CurrentPixelPosition.x - CurrentRight;
- Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
- }
- else
- {
- float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
- Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
- }
-
- if (CurrentPixelPosition.y < CurrentTop)
- {
- Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
- }
- else if (CurrentPixelPosition.y > CurrentBottom)
- {
- float dist = CurrentPixelPosition.y - CurrentBottom;
- Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
- }
- else
- {
- float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
- Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
- }
-
- float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv);
- if (g_iClick == 1)
- {
- tex1.rgb = float3(255.f, 255.f, 0.f) / 255.f;
- float blink = abs(sin(g_fBlinkTime));
- tex1.a = saturate(tex1.a * blink);
- }
- else if (g_iClick == 0)
- {
- tex1.a = 0.f;
- }
- Color = tex1;
-
- float2 BGPos = g_Pos;
- float2 BGSize = g_fImageSize;
- float2 BGPixel = Finaluv * g_fOrigin_Size;
- float2 localUV = (BGPixel - BGPos) / BGSize;
- bool inside = all(localUV >= 0.0f && localUV <= 1.0f);
-
- float4 tex2 = g_Texture1.Sample(ClampSampler, localUV);
-
- if (inside)
- Color = lerp(Color, tex2, tex2.a);
-
- float2 reversuv = In.vTexcoord;
-
- reversuv.x = 1.0f - localUV.x;
-
- float4 tex3 = g_Texture2.Sample(ClampSampler, localUV);
-
- if (reversuv.x >= g_fHp)
- {
- tex3.rgb *= float3(0.f, 0.f, 0.f);
- }
- else
- {
- tex3.rgb *= float3(1.f, 1.f, 0.f);
- }
- if (all(tex2.rgb >= float3(55.f / 255.f, 0.f / 255.f, 55.f / 255.f)))
- Color = lerp(Color, tex3, tex3.a);
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_BoosterHpBar(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
- float4 Color1 = float4(1.f, 1.f, 1.f, 1.f);
- float2 uv = In.vTexcoord;
- float2 CurrentPixelPosition = uv * g_fCurrent_Size;
- float OriginLeft = g_fNine_Slice.x;
- float OriginRight = g_fNine_Slice.y;
- float OriginTop = g_fNine_Slice.z;
- float OriginBottom = g_fNine_Slice.w;
-
- float CurrentLeft = OriginLeft;
- float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
- float CurrentTop = OriginTop;
- float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
-
- float2 Finaluv = In.vTexcoord;
-
- if (CurrentPixelPosition.x < CurrentLeft)
- {
- Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
- }
- else if (CurrentPixelPosition.x > CurrentRight)
- {
- float dist = CurrentPixelPosition.x - CurrentRight;
- Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
- }
- else
- {
- float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
- Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
- }
-
- if (CurrentPixelPosition.y < CurrentTop)
- {
- Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
- }
- else if (CurrentPixelPosition.y > CurrentBottom)
- {
- float dist = CurrentPixelPosition.y - CurrentBottom;
- Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
- }
- else
- {
- float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
- Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
- }
-
- float4 tex2 = g_Texture.Sample(ClampSampler, Finaluv);
- Color = tex2;
-
- float2 reversuv = In.vTexcoord;
-
- reversuv.x = 1.0f - Finaluv.x;
-
- float4 tex3 = g_Texture1.Sample(ClampSampler, Finaluv);
-
- if (reversuv.x >= g_fHp)
- {
- tex3.rgb *= float3(0.f, 0.f, 0.f);
- }
- else
- {
- tex3.rgb *= float3(0.f, 1.f, 0.f);
- }
- if (all(tex2.rgb >= float3(55.f / 255.f, 0.f / 255.f, 55.f / 255.f)))
- Color = lerp(Color, tex3, tex3.a);
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_DialogueChoice(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 0.f);
- float2 uv = In.vTexcoord;
- float2 CurrentPixelPosition = uv * g_fCurrent_Size;
- float OriginLeft = g_fNine_Slice.x;
- float OriginRight = g_fNine_Slice.y;
- float OriginTop = g_fNine_Slice.z;
- float OriginBottom = g_fNine_Slice.w;
-
- float CurrentLeft = OriginLeft;
- float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
- float CurrentTop = OriginTop;
- float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
-
- float2 Finaluv = In.vTexcoord;
-
- if (CurrentPixelPosition.x < CurrentLeft)
- {
- Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
- }
- else if (CurrentPixelPosition.x > CurrentRight)
- {
- float dist = CurrentPixelPosition.x - CurrentRight;
- Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
- }
- else
- {
- float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
- Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
- }
-
- if (CurrentPixelPosition.y < CurrentTop)
- {
- Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
- }
- else if (CurrentPixelPosition.y > CurrentBottom)
- {
- float dist = CurrentPixelPosition.y - CurrentBottom;
- Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
- }
- else
- {
- float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
- Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
- }
-
-
- if (g_iHover != 0)
- {
- float4 tex = g_Texture.Sample(ClampSampler, Finaluv);
- Color = tex;
-
- float2 ImgaePos1 = g_fImageSipos1.xy;
- float2 ImgaeSize1 = g_fImageSipos1.zw;
- float2 ImgaePixel = Finaluv * g_fOrigin_Size;
- float2 localUV = (ImgaePixel - ImgaePos1) / ImgaeSize1;
- bool inside = all(localUV >= 0.0f && localUV <= 1.0f);
- if (inside)
- {
- float4 tex2 = g_Texture1.Sample(ClampSampler, localUV);
- Color = lerp(Color, tex2, tex2.a);
- }
-
- float2 ImgaePos2 = g_fImageSipos2.xy;
- float2 ImgaeSize2 = g_fImageSipos2.zw;
- float2 ImgaePixe2 = Finaluv * g_fOrigin_Size;
- float2 ReverseUV = (ImgaePixe2 - ImgaePos2) / ImgaeSize2;
- bool inside2 = all(ReverseUV >= 0.0f && ReverseUV <= 1.0f);
- if (inside2)
- {
- ReverseUV.y = 1.f - ReverseUV.y;
- float4 tex2 = g_Texture1.Sample(ClampSampler, ReverseUV);
- Color = lerp(Color, tex2, tex2.a);
- }
- }
-
- float2 ImgaePos3 = g_fImageSipos3.xy / g_fCurrent_Size;
- float2 ImgaeSize3 = g_fImageSipos3.zw / g_fCurrent_Size;
- float2 localUV2 = (In.vTexcoord - ImgaePos3) / ImgaeSize3;
- bool inside3 = all(localUV2 >= 0.0f && localUV2 <= 1.0f);
- if (inside3)
- {
- float4 tex2 = g_Texture2.Sample(ClampSampler, localUV2);
- Color = lerp(Color, tex2, tex2.a);
- }
-
- Color.a *= Alpha;
- Out.vColor = Color;
- return Out;
-}
-
-struct VS_IN3D
-{
- float3 vPosition : POSITION;
- float2 vTexcoord : TEXCOORD0;
-};
-
-struct VS_OUT3D
-{
- float4 vPosition : SV_Position;
- float2 vTexcoord : TEXCOORD0;
-};
-
-VS_OUT3D VS_MAIN3D(VS_IN3D In)
-{
- VS_OUT3D Out;
-
- matrix matViewProj = mul(g_ViewMatrix, g_ProjMatrix);
-
- float2 Offset = In.vTexcoord - 0.5f;
- float3 worldCenter = float3(g_WorldMatrix._41, g_WorldMatrix._42, g_WorldMatrix._43);
-
-
- float3 vLook = normalize(g_CamaraPosition - worldCenter);
-
- vLook.y = 0.f;
- vLook = normalize(vLook);
-
- float3 upDir = float3(0.f, 1.f, 0.f);
-
- float3 rightDir = normalize(cross(vLook, upDir));
-
- float3 dirRight = rightDir * g_fCurrent_Size.x * Offset.x;
- float3 dirUp = upDir * g_fCurrent_Size.y * Offset.y;
-
- float3 vertexPos = worldCenter + dirRight + dirUp;
-
- float2 TexCoord = In.vTexcoord;
- TexCoord.y = 1.f - TexCoord.y;
-
- Out.vPosition = mul(float4(vertexPos, 1.f), matViewProj);
- Out.vTexcoord = TexCoord;
- return Out;
-}
-
-PS_OUT PS_Enemy_Detection(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
-
- float4 Color = float4(1.f, 1.f, 1.f, 0.f * g_fAlpha);
-
- if (g_iStep1 != 0)
- {
- float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
- bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
- if (inside1)
- {
- float4 tex3 = g_Texture1.Sample(ClampSampler, Imagelocal);
-
- float2 Imagetexpos2 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 Imagetexsize2 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 Imagelocal2 = (In.vTexcoord - Imagetexpos2) / Imagetexsize2;
-
- Color = lerp(Color, tex3, tex3.a);
-
- float4 tex4 = g_Texture2.Sample(ClampSampler, Imagelocal2);
- float4 tex5 = g_Texture3.Sample(ClampSampler, Imagelocal2);
-
- float4 Color1 = tex4;
-
- Color1 = lerp(tex4, tex5, tex5.a);
-
- Imagelocal2.y = 1.f - Imagelocal2.y;
-
- if (Imagelocal2.y >= g_fTime)
- {
- Color1.a = 0.f;
- }
-
- Color = lerp(Color, Color1, Color1.a);
-
- Color.a *= g_fAlpha;
- Out.vColor = Color;
-
- return Out;
- }
- }
- if (g_iStep2 != 0)
- {
- float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
- bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
- if (inside1)
- {
- float4 tex3 = g_Texture1.Sample(ClampSampler, Imagelocal);
-
- float2 Imagetexpos2 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 Imagetexsize2 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 Imagelocal2 = (In.vTexcoord - Imagetexpos2) / Imagetexsize2;
-
- float4 tex4 = g_Texture2.Sample(ClampSampler, Imagelocal2);
- float4 tex6 = g_Texture4.Sample(ClampSampler, Imagelocal2);
- Color = lerp(Color, tex3, tex3.a);
- float4 Color1 = tex4;
- Color1 = lerp(tex4, tex6, tex6);
- Color1.rgb *= float3(1.f, 1.f, 0.f);
- Imagelocal2.y = 1.f - Imagelocal2.y;
- if (Imagelocal2.y >= g_fTime)
- {
- Color1.a = 0.f;
- }
- Color = lerp(Color, Color1, Color1.a);
-
- Color.a *= g_fAlpha;
-
- Out.vColor = Color;
-
- return Out;
- }
- }
- if (g_iStep3 != 0)
- {
- float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
- Color = tex1;
- Color.rgb *= float3(1.f, 0.f, 0.f);
-
- float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
- bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
- if (inside1)
- {
- float4 tex7 = g_Texture5.Sample(ClampSampler, Imagelocal);
-
- Color = lerp(Color, tex7, tex7.a);
-
- Color.a *= g_fAlpha;
- Out.vColor = Color;
-
- return Out;
- }
-
- }
-
- Color.a *= g_fAlpha;
- Out.vColor = Color;
-
- return Out;
-}
-
-VS_OUT3D VS_NONESIZE3D(VS_IN3D In)
-{
- VS_OUT3D Out;
-
- float3 worldCenter = float3(
- g_WorldMatrix._41,
- g_WorldMatrix._42,
- g_WorldMatrix._43
- );
-
- float4 clipPos = mul(
- float4(worldCenter, 1.f),
- mul(g_ViewMatrix, g_ProjMatrix)
- );
-
- float w = clipPos.w;
-
- clipPos.xy /= w;
-
- float2 offset = In.vTexcoord - 0.5f;
- float2 pixelOffset = offset * g_fCurrent_Size.xy;
-
- float2 ndcOffset;
- ndcOffset.x = pixelOffset.x / g_fViewport.x * 2.f;
- ndcOffset.y = pixelOffset.y / g_fViewport.y * 2.f;
-
- clipPos.xy += ndcOffset;
-
- clipPos.xy *= w;
- clipPos.w = w;
-
- Out.vPosition = clipPos;
-
- float2 TexCoord = In.vTexcoord;
- TexCoord.y = 1.f - TexCoord.y;
- Out.vTexcoord = TexCoord;
-
- return Out;
-}
-
-PS_OUT PS_Interaction_Object(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
-
- float4 Color = float4(1.f, 1.f, 1.f, 0.f * g_fAlpha);
-
- float2 atlasUV = g_fImageUV.xy + In.vTexcoord * (g_fImageUV.zw - g_fImageUV.xy);
- float2 safeUV = saturate(atlasUV);
- float4 tex1 = g_Texture.Sample(DefaultSampler, safeUV);
-
- Color = tex1;
-
- Color.a *= g_fAlpha;
- Out.vColor = Color;
-
- return Out;
-}
-
-PS_OUT PS_Interaction_Npc(PS_IN In)
-{
- PS_OUT Out = (PS_OUT) 0;
- float Alpha = g_fAlpha;
- float4 Color = float4(1.f, 1.f, 1.f, 1.f);
- float2 uv = In.vTexcoord;
- float2 CurrentPixelPosition = uv * g_fCurrent_Size;
- float OriginLeft = g_fNine_Slice.x;
- float OriginRight = g_fNine_Slice.y;
- float OriginTop = g_fNine_Slice.z;
- float OriginBottom = g_fNine_Slice.w;
-
- float CurrentLeft = OriginLeft;
- float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
- float CurrentTop = OriginTop;
- float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
-
- float2 Finaluv = In.vTexcoord;
-
- if (CurrentPixelPosition.x < CurrentLeft)
- {
- Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
- }
- else if (CurrentPixelPosition.x > CurrentRight)
- {
- float dist = CurrentPixelPosition.x - CurrentRight;
- Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
- }
- else
- {
- float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
- Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
- }
-
- if (CurrentPixelPosition.y < CurrentTop)
- {
- Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
- }
- else if (CurrentPixelPosition.y > CurrentBottom)
- {
- float dist = CurrentPixelPosition.y - CurrentBottom;
- Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
- }
- else
- {
- float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
- Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
- }
-
- float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv);
-
- Color = tex1;
-
- float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
- bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
- if (inside1)
- {
- float2 startUV = g_fImageUV.xy;
- float2 endUV = g_fImageUV.zw;
- float2 atlasUV = atlasUV = startUV + texlocal1 * (endUV - startUV);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, atlasUV);
- Color = lerp(Color, tex2, tex2.a);
-
- }
-
-
- Color.a *= Alpha;
-
- Out.vColor = Color;
- return Out;
-}
-
-PS_OUT PS_BroomGateTarget(PS_IN In)
-{
- PS_OUT Out;
-
- float4 Color = float4(1.f, 1.f, 1.f, 0.f * g_fAlpha);
-
- float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
-
- Color = tex1;
-
- Color.a *= g_fAlpha;
- Out.vColor = Color;
-
- return Out;
-}
-
-technique11 PosTexTechnique11
-{
- pass Default //0
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_MAIN();
- }
-
- pass Texture_Color
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Texture_Color();
- }
-
- pass Logo
- {
- SetRasterizerState(RS_Default);
- SetDepthStencilState(DSS_Default, 0);
- SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
- VertexShader = compile vs_5_0 VS_MAIN();
-
- PixelShader = compile ps_5_0 PS_Logo();
- }
-
- pass Logo_Text
- {
- SetRasterizerState(RS_Default);
- SetDepthStencilState(DSS_Default, 0);
- SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
- VertexShader = compile vs_5_0 VS_MAIN();
-
- PixelShader = compile ps_5_0 PS_Logo_Text();
- }
-
- pass Logo_Glow
- {
- SetRasterizerState(RS_Default);
- SetDepthStencilState(DSS_Default, 0);
- SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
- VertexShader = compile vs_5_0 VS_MAIN();
-
- PixelShader = compile ps_5_0 PS_Logo_Glow();
- }
-
- pass AlphaBlend
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_AlphaBlend();
- }
-
- pass TextureClamp
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Clamp();
- }
-
- pass Mouse_Cursor
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Cursor();
- }
-
- pass Sptire_Sheet
- {
- SetRasterizerState(RS_Default);
- SetDepthStencilState(DSS_Default, 0);
- SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
- VertexShader = compile vs_5_0 VS_MAIN();
-
- PixelShader = compile ps_5_0 PS_Sptire_Sheet();
- }
-
- pass Key_Hold_Rotation // 9
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Key_Hold_Rotation();
- }
-
- pass Mission
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Mission();
- }
-
- pass QuestType
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_QuestType();
- }
-
- pass Spell_Anim
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Spell_Anim();
- }
-
- pass NineSlice
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_NineSlice();
- }
-
- pass Rotation
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Rotation();
- }
-
- pass Slot //15
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Slot();
- }
-
- pass SpellAnim
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_SpellAnim();
- }
- pass HpBar
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_HpBar();
- }
- pass Magic_Meter
- {
- SetRasterizerState(RS_Default);
- SetDepthStencilState(DSS_Default, 0);
- SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
- VertexShader = compile vs_5_0 VS_MAIN();
-
- PixelShader = compile ps_5_0 PS_Magic_Meter();
- }
-
- pass Magic_Icon
- {
- SetRasterizerState(RS_Default);
- SetDepthStencilState(DSS_Default, 0);
- SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
- VertexShader = compile vs_5_0 VS_MAIN();
-
- PixelShader = compile ps_5_0 PS_Magic_Icon();
- }
-
- pass RemapUV //20
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_RemapUV();
- }
-
- pass Revelio
- {
- SetRasterizerState(RS_Default);
- SetDepthStencilState(DSS_Default, 0);
- SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
- VertexShader = compile vs_5_0 VS_MAIN();
-
- PixelShader = compile ps_5_0 PS_Revelio();
- }
-
- pass Potion
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Potion();
- }
-
- pass Magic_Item
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Magic_Item();
- }
-
- pass Spell_Preview
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Spell_Preview();
- }
-
- pass Spell_Header //25
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Spell_Header();
- }
-
- pass Spell_Header_Line
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Spell_Header_Line();
- }
-
- pass Spell_Drag
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Spell_Drag();
- }
-
- pass Camera_LockOn
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Camera_LockOn();
- }
-
- pass Loding_Screen
- {
- SetRasterizerState(RS_Default);
- SetDepthStencilState(DSS_Default, 0);
- SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
- VertexShader = compile vs_5_0 VS_MAIN();
-
- PixelShader = compile ps_5_0 PS_Loding_Screen();
- }
-
- pass Enemy_HpBer //30
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Enemy_HpBer();
- }
-
- pass Boss_HpBer
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Boss_HpBer();
- }
-
- pass Quest_Border
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Quest_Border();
- }
-
- pass Quest_Info
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Quest_Info();
- }
-
- pass Quest_Status
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Quest_Status();
- }
-
- pass Broomstick //35
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Broomstick();
- }
-
- pass SpellLearn
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_SpellLearn();
- }
-
- pass SpellLearnColor
- {
- 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();
-
- 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();
-
- PixelShader = compile ps_5_0 PS_SpellLearnBooster();
- }
-
- pass NPCInteraction
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_NPCInteraction();
- }
-
- pass CanvasFade //40
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_CanvasFade();
- }
-
- pass FlagWave
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_FlagWave();
- }
-
- pass BroomCircle
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_BroomCircle();
- }
-
- pass Ride_info_Key
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Ride_info_Key();
- }
-
- pass Ride_Info
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Ride_Info();
- }
-
- pass Ride_HpSlot //45
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_Ride_HpSlot();
- }
-
- pass BoosterGauge
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_BoosterGauge();
- }
-
- pass BoosterHpBar
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_BoosterHpBar();
- }
-
- pass DialogueChoice
- {
- 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();
-
- PixelShader = compile ps_5_0 PS_DialogueChoice();
- }
-
- pass Enemy_Detection
- {
- 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_MAIN3D();
-
- PixelShader = compile ps_5_0 PS_Enemy_Detection();
- }
-
- pass Interaction_Object
- {
- SetRasterizerState(RS_Nocull);
- SetDepthStencilState(DSS_None, 0);
- SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
- VertexShader = compile vs_5_0 VS_NONESIZE3D();
-
- PixelShader = compile ps_5_0 PS_Interaction_Object();
- }
-
- pass Interaction_Npc
- {
- SetRasterizerState(RS_Nocull);
- SetDepthStencilState(DSS_None, 0);
- SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
- VertexShader = compile vs_5_0 VS_NONESIZE3D();
-
- PixelShader = compile ps_5_0 PS_Interaction_Npc();
- }
-
- pass BroomGateTarget //51
- {
- SetRasterizerState(RS_Nocull);
- SetDepthStencilState(DSS_None, 0);
- SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
- VertexShader = compile vs_5_0 VS_NONESIZE3D();
-
- PixelShader = compile ps_5_0 PS_BroomGateTarget();
- }
-}
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index a5b45464d..ce34ea5ec 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -163,6 +163,7 @@ call Update_Resources.bat
+
@@ -215,8 +216,6 @@ call Update_Resources.bat
-
-
@@ -472,6 +471,7 @@ call Update_Resources.bat
+
@@ -505,7 +505,6 @@ call Update_Resources.bat
-
@@ -526,7 +525,6 @@ call Update_Resources.bat
-
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 54c53ea0a..8f5a6c450 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -400,7 +400,6 @@
02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Mage
-
02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector
@@ -440,9 +439,6 @@
02.GameObjects\Environment\03.MapElement\Lake
-
- 02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior
-
02.GameObjects\Effect\MonsterEffect\Goblin_Protego
@@ -743,12 +739,6 @@
02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Point
-
- 02.GameObjects\Player
-
-
- 02.GameObjects\Player\Robe
-
02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Assassin
@@ -911,9 +901,6 @@
02.GameObjects\Effect\MonsterEffect\Goblin_Protego\Goblin_ProtegoHit
-
- 02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit
-
02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop
@@ -950,6 +937,15 @@
02.GameObjects\Effect\MonsterEffect\Troll_Self_Hit
+
+
+ 02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D
+
+
+ 02.GameObjects\NPC\Ally\Elf
@@ -1387,9 +1383,6 @@
{e666a8b4-c92e-48ee-b63b-40d852b27b06}
-
- {14ad0431-680b-4c8b-93d7-601aee5ce435}
-
{1d1dc743-5cf2-4b8f-a80e-16b16437c7aa}
@@ -1597,9 +1590,6 @@
{a94e24d2-0f61-4263-b834-bfdf9f6c06ae}
-
- {f3c7cf8d-2b83-49d3-85da-fe135e376a11}
-
{af9f5cf6-151a-49bc-9af4-28ba0bde1d37}
@@ -1959,6 +1949,9 @@
{c276c050-7000-441e-bb53-30ec3c20c6f5}
+
+
+ {9263815e-9651-4ba2-813f-c2a7f207522d}
@@ -2665,9 +2658,6 @@
04.Mechanic\State\Movement\Dash
-
- 02.GameObjects\Player\Robe
-
02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector\Goblin_Warrior_Spector
@@ -2758,9 +2748,6 @@
02.GameObjects\NPC\Hostile\Human_Duelist
-
- 02.GameObjects\Player\Robe
-
02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Rush
@@ -2833,7 +2820,8 @@
02.GameObjects\Effect\Effects\Stupefy\StupefySide
-
+
+
04.Mechanic\State\State_Combat\State_Parry
@@ -2861,6 +2849,12 @@
02.GameObjects\Effect\MonsterEffect\Troll_Self_Hit
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D
+
+
+ 02.GameObjects\NPC\Ally\Elf
diff --git a/Jusin154_Team3D/Client/Private/Accio.cpp b/Jusin154_Team3D/Client/Private/Accio.cpp
index 399e0b884..834213de4 100644
--- a/Jusin154_Team3D/Client/Private/Accio.cpp
+++ b/Jusin154_Team3D/Client/Private/Accio.cpp
@@ -162,9 +162,16 @@ void CAccio::Late_Update(_float fTimeDelta)
if (false == m_bHit) {
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
- ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
- OnCollision(this , &CollisionInfo);
+ if (false == m_bHit) {
+ _vector vStartPos = XMLoadFloat4(&m_vStartPos);
+ _vector vEndPos = XMLoadFloat4(&m_vEndPos);
+ if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
+ {
+ ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
+ OnCollision(this, &CollisionInfo);
+ }
+ }
}
diff --git a/Jusin154_Team3D/Client/Private/Avadakedavra.cpp b/Jusin154_Team3D/Client/Private/Avadakedavra.cpp
index 80c05ab5d..8450f9a04 100644
--- a/Jusin154_Team3D/Client/Private/Avadakedavra.cpp
+++ b/Jusin154_Team3D/Client/Private/Avadakedavra.cpp
@@ -79,13 +79,15 @@ void CAvadakedavra::Late_Update(_float fTimeDelta)
_vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos);
-
+
if (false == m_bHit) {
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
- ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
-
- OnCollision(this, &CollisionInfo);
+ if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
+ {
+ ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
+ OnCollision(this, &CollisionInfo);
+ }
}
}
diff --git a/Jusin154_Team3D/Client/Private/Bombard.cpp b/Jusin154_Team3D/Client/Private/Bombard.cpp
index 49c57d782..251347135 100644
--- a/Jusin154_Team3D/Client/Private/Bombard.cpp
+++ b/Jusin154_Team3D/Client/Private/Bombard.cpp
@@ -99,9 +99,16 @@ void CBombard::Late_Update(_float fTimeDelta)
if (false == m_bHit) {
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
- ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f , true);
- OnCollision(this, &CollisionInfo);
+ if (false == m_bHit) {
+ _vector vStartPos = XMLoadFloat4(&m_vStartPos);
+ _vector vEndPos = XMLoadFloat4(&m_vEndPos);
+ if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
+ {
+ ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f, true);
+ OnCollision(this, &CollisionInfo);
+ }
+ }
}
}
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
index d50693a07..a16c9ed45 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
@@ -455,7 +455,7 @@ CCamPosition_Shoulder* CCamPosition_Shoulder::Create(ID3D11Device* pDevice, ID3D
}
CCamPosition_Shoulder* CCamPosition_Shoulder::Clone(void* pArg, class CGameObject* pOWner)
{
- CCamPosition_Shoulder* pInstance = new CCamPosition_Shoulder(*this);
+ CCamPosition_Shoulder* pInstance = new CCamPosition_Shoulder(*this);
pInstance->m_pOwner = pOWner;
if (FAILED(pInstance->Initialize(pArg)))
{
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp
index dd8799a7d..d7289191b 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp
@@ -44,7 +44,7 @@ void CCamPosition_Target::Set_WorldPostion(_vector vPos)
_bool CCamPosition_Target::IsStalking()
{
- return nullptr == m_pStalkingTarget;
+ return nullptr != m_pStalkingTarget;
}
void CCamPosition_Target::Stalking_Target(CUnit* pStalkingTarget, const _float4x4* pTargetSocketMatrix)
@@ -58,6 +58,12 @@ void CCamPosition_Target::Stalking_Target(CUnit* pStalkingTarget, const _float4x
void CCamPosition_Target::Stop_Stalking()
{
SAFE_RELEASE(m_pStalkingTarget);
+ m_pTargetSocketMatrix = nullptr;
+}
+
+_matrix CCamPosition_Target::Get_XMWorldMatrix()
+{
+ return m_pTransformCom->Get_XMWorldMatrix();
}
HRESULT CCamPosition_Target::Initialize_Prototype()
diff --git a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
index 22cbcd485..57ced80fd 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
@@ -12,17 +12,6 @@ CCamera_Cinematic::CCamera_Cinematic(const CCamera_Cinematic& rhs) : CCamera(rhs
void CCamera_Cinematic::Priority_Update(_float fTimeDelta)
{
-#ifdef _DEBUG
- if (m_pGameInstance->Key_Pressing(DIK_HOME)) {
- if (m_pGameInstance->Key_Up(DIK_END)) {
- _string strCutSceneName = "RanrokIntro";
- m_pInfoInstance->Active_Event(strCutSceneName);
- }
- }
-#endif // _DEBUG
- if (false == m_bActive) {
- return;
- }
if (false == m_bIsCurrentTransition) {
m_pLookTargetPart->Priority_Update(fTimeDelta);
m_pFollowTargetPart->Priority_Update(fTimeDelta);
@@ -32,8 +21,11 @@ void CCamera_Cinematic::Priority_Update(_float fTimeDelta)
else {
Transition(fTimeDelta);
}
- m_bActive = true;
Update_LerpTimer(fTimeDelta);
+ if (false == m_bActive) {
+ return;
+ }
+
__super::Bind_Matrices();
}
@@ -49,10 +41,62 @@ void CCamera_Cinematic::Update(_float fTimeDelta)
void CCamera_Cinematic::Late_Update(_float fTimeDelta)
{
if (false == m_bActive) {
+#ifdef _DEBUG
+ m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this);
+#endif // _DEBUG
return;
}
+ else {
+ }
}
-HRESULT CCamera_Cinematic::Render() { return S_OK; }
+HRESULT CCamera_Cinematic::Render() {
+#ifdef _DEBUG
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+
+ RENDER eType = m_pGameInstance->Get_CurrentRenderPass();
+ if (RENDER::NONBLEND == eType) {
+ _uint iNumMeshes = m_pModelCom->Get_NumMeshes();
+
+ for (_uint i = 0; i < iNumMeshes; i++)
+ {
+ if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::WIREFRAME)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+ }
+ }
+ else if (RENDER::NONLIGHT == eType) {
+
+ m_Batch->Begin();
+
+ _matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
+ _matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
+
+ _vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x0000ff, 1.f);
+ m_pSubShape->Draw(m_pLookTargetPart->Get_XMWorldMatrix(), ViewMatrix, ProjMatrix, vColor, nullptr, true);
+ vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x00ff00, 1.f);
+ m_pSubShape->Draw(m_pFollowTargetPart->Get_XMWorldMatrix(), ViewMatrix, ProjMatrix, vColor, nullptr, true);
+
+ m_Batch->End();
+
+
+
+ }
+#endif // _DEBUG
+ return S_OK;
+}
+
+
void CCamera_Cinematic::Active_Camera(pair<_float4, _float3>& pairTransitionInfo)
{
if (true == m_bEnable_TransitionLerp) {
@@ -70,12 +114,12 @@ void CCamera_Cinematic::Active_Camera(pair<_float4, _float3>& pairTransitionInfo
void CCamera_Cinematic::Update_LerpTimer(_float fTimeDelta)
{
- if (false == m_bActive) {
- return;
- }
Lerp_Translation(fTimeDelta);
Lerp_Rotation(fTimeDelta);
Lerp_FovY(fTimeDelta);
+ if (false == m_bActive) {
+ return;
+ }
}
void CCamera_Cinematic::Set_Priority(_uint iPriority)
@@ -101,6 +145,13 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
case TIMESOCKET_FUNC::BIND_CAMERA:
m_pGameInstance->Bind_Camera(NEXT_LEVEL, pContents->wstrKeyName, true);
break;
+ case TIMESOCKET_FUNC::TELEPORTATION:
+ {
+ m_pTransformCom->Set_WorldMatrix(pContents->pxTransform);
+ m_pFollowTargetPart->Set_WorldPostion(m_pTransformCom->Get_State(STATE::POSITION));
+ m_pLookTargetPart->Set_WorldPostion(m_pTransformCom->Get_State(STATE::POSITION) + m_pTransformCom->Get_State(STATE::LOOK));
+ Clear_Lerp_Translation();
+ } break;
case TIMESOCKET_FUNC::TRANSLATION:
{
m_pFollowTargetPart->Set_WorldPostion(XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f));
@@ -123,13 +174,22 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
case TIMESOCKET_FUNC::LOOK_AT:
{
CUnit* pUnit = (CUnit*)pContents->pOtherTarget;
- Set_LookTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str()));
- //Set_LookTarget(pUnit, nullptr);
+ Set_LookTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str()));
}break;
case TIMESOCKET_FUNC::DONT_LOOK_AT:
+ {
+ m_pLookTargetPart->Stop_Stalking();
+ }break;
+ case TIMESOCKET_FUNC::FOLLOW:
{
CUnit* pUnit = (CUnit*)pContents->pOtherTarget;
- Set_FollowTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str()));
+ const _char* pName = pContents->vParam_12.c_str();
+ const _float4x4* pSocketMatrix = pUnit->Get_SocketMatrixPtr(pName);
+ Set_FollowTarget(pUnit, pSocketMatrix);
+ }break;
+ case TIMESOCKET_FUNC::DONT_FOLLOW:
+ {
+ m_pFollowTargetPart->Stop_Stalking();
}break;
case TIMESOCKET_FUNC::ZOOM_IN:
{
@@ -172,6 +232,12 @@ HRESULT CCamera_Cinematic::Initialize(void* pArg)
return E_FAIL;
}
+
+#ifdef _DEBUG
+ m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 0.25f, 12, false, false));
+
+ m_Batch = make_unique>(m_pContext);
+#endif // _DEBUG
return S_OK;
}
HRESULT CCamera_Cinematic::Ready_Components(void* pArg)
@@ -179,7 +245,18 @@ HRESULT CCamera_Cinematic::Ready_Components(void* pArg)
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
+#ifdef _DEBUG
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Camera_Model"),
+ reinterpret_cast(&m_pModelCom)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
+ reinterpret_cast(&m_pShaderCom)))) {
+ return E_FAIL;
+ }
+#endif // _DEBUG
return S_OK;
}
@@ -198,7 +275,22 @@ HRESULT CCamera_Cinematic::Ready_SubPart()
HRESULT CCamera_Cinematic::Bind_ShaderResources()
{
+#ifdef _DEBUG
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
+ return E_FAIL;
+ }
+#endif // _DEBUG
return S_OK;
+
}
void CCamera_Cinematic::Lerp_Translation(_float fTimeDelta)
{
@@ -351,7 +443,10 @@ CGameObject* CCamera_Cinematic::Clone(void* pArg, CGameObject* pOwner)
void CCamera_Cinematic::Free()
{
__super::Free();
-
+#ifdef _DEBUG
+ SAFE_RELEASE(m_pModelCom);
+ SAFE_RELEASE(m_pShaderCom);
+#endif // _DEBUG
SAFE_RELEASE(m_pLookTargetPart);
SAFE_RELEASE(m_pFollowTargetPart);
}
@@ -361,11 +456,21 @@ void CCamera_Cinematic::Free()
void CCamera_Cinematic::Describe_Entity()
{
GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG);
+ _int iPriority = m_iPriority;
+ size_t iAddress = (size_t)this;
+ _string strHeader = "CINEMATIC_CAMERA_Priority##" + to_string(iAddress);
+ if (GUI::SliderInt(strHeader.c_str(), &iPriority, 45, 60)) {
+ m_iPriority = iPriority;
+ }
if (GUI::CollapsingHeader("Camera_Cinematic_Describe")) {
if (GUI::SmallButton("Trigger_RanrokIntro")) {
_string strCutSceneName = "RanrokIntro";
m_pInfoInstance->Active_Event(strCutSceneName);
}
+ if (GUI::SmallButton("Trigger_CarriageIntro")) {
+ _string strCutSceneName = "CarriageIntro";
+ m_pInfoInstance->Active_Event(strCutSceneName);
+ }
m_pTransformCom->Describe_Entity();
GUI::Text("LOOK_SRC %.2f, %.2f, %.2f", m_vLookPos_Src.x, m_vLookPos_Src.y, m_vLookPos_Src.z);
GUI::Text("LOOK_DST %.2f, %.2f, %.2f", m_vLookPos_Dest.x, m_vLookPos_Dest.y, m_vLookPos_Dest.z);
diff --git a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
index 78e8930ea..17ab6c973 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
@@ -197,6 +197,12 @@ void CCamera_Debug::Describe_Entity()
}
GUI::End();
GUI::Begin("CAMERA");
+ _int iPriority = m_iPriority;
+ size_t iAddress = (size_t)this;
+ _string strHeader = "DEBUG_CAMERA_Priority##" + to_string(iAddress);
+ if (GUI::SliderInt(strHeader.c_str(), &iPriority, 45, 60)) {
+ m_iPriority = iPriority;
+ }
if (GUI::CollapsingHeader("DebugCamera")){
m_pTransformCom->Describe_Entity();
}
diff --git a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
index a36b464d9..184c98758 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
@@ -247,6 +247,12 @@ void CCamera_Gaze::Free()
void CCamera_Gaze::Describe_Entity()
{
GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG);
+ _int iPriority = m_iPriority;
+ size_t iAddress = (size_t)this;
+ _string strHeader = "GAZE_CAMERA_Priority##" + to_string(iAddress);
+ if (GUI::SliderInt(strHeader.c_str(), &iPriority, 45, 60)) {
+ m_iPriority = iPriority;
+ }
if (GUI::CollapsingHeader("Camera_Gaze_Describe")) {
m_pTransformCom->Describe_Entity();
GUI::Text("LOOK_SRC %.2f, %.2f, %.2f", m_vLookPos_Src.x, m_vLookPos_Src.y, m_vLookPos_Src.z);
diff --git a/Jusin154_Team3D/Client/Private/Camera_Model.cpp b/Jusin154_Team3D/Client/Private/Camera_Model.cpp
index 8399307da..5c7a52e09 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Model.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Model.cpp
@@ -94,26 +94,9 @@ HRESULT CCamera_Model::Render()
#ifdef _DEBUG
m_Batch->Begin();
- _vector vRight = m_pTransformCom->Get_State(STATE::RIGHT);
- _vector vUp = m_pTransformCom->Get_State(STATE::UP);
- _vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
- _vector vPosition = m_pTransformCom->Get_State(STATE::POSITION);
_matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
_matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
- static _float fLength = 1.f;
- GUI::DragFloat("Length", &fLength, 0.1f, 0.1f, 10.f, "%.1f");
- m_Batch->DrawLine(
- VertexPositionColor(vPosition, DirectX::Colors::GhostWhite),
- VertexPositionColor(vPosition + vRight * fLength, DirectX::Colors::Green)
- );
- m_Batch->DrawLine(
- VertexPositionColor(vPosition, DirectX::Colors::GhostWhite),
- VertexPositionColor(vPosition + vUp * fLength, DirectX::Colors::Red)
- );
- m_Batch->DrawLine(
- VertexPositionColor(vPosition, DirectX::Colors::GhostWhite),
- VertexPositionColor(vPosition + vLook * fLength, DirectX::Colors::Blue)
- );
+
_vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0xff0000, 1.f);
_matrix WorldMatrix;
WorldMatrix = XMLoadFloat4x4(m_CtrlCam);
diff --git a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
index 57383a131..0870fa0bb 100644
--- a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
@@ -9,6 +9,7 @@
#include "TimeSocket.h"
#include "Camera_Cinematic.h"
#include "Ranrok.h"
+#include "ThestralCarriage.h"
CCutSceneInfo::CCutSceneInfo()
{
@@ -22,7 +23,7 @@ void CCutSceneInfo::Update(_float fTimeDelta)
Update_ActiveEvents(fTimeDelta);
}
-void CCutSceneInfo::Change_Level()
+void CCutSceneInfo::Load_CutScenes()
{
LEVEL eLevel = (LEVEL)m_pGameInstance->Get_NextLevelID();
switch (eLevel)
@@ -33,7 +34,7 @@ void CCutSceneInfo::Change_Level()
break;
case LEVEL::FIELD:
Clear_AllEvents();
- Ready_GameplayCutScenes();
+ Ready_FieldCutScenes();
break;
default:
Clear_ActiveEvents();
@@ -169,6 +170,9 @@ HRESULT CCutSceneInfo::Clear_AllEvents()
}
HRESULT CCutSceneInfo::Ready_GameplayCutScenes()
{
+ {
+ Load_CutSceneXML("../Bin/Resources/Data/CutScene/CarriageIntro.xml");
+ }
return S_OK;
}
HRESULT CCutSceneInfo::Ready_FieldCutScenes()
@@ -353,7 +357,7 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
}
TimeLine* pTimeLine = new TimeLine();
- tinyxml2::XMLElement* pContentsNode = doc.FirstChildElement("RanrokIntro");
+ tinyxml2::XMLElement* pContentsNode = doc.FirstChildElement();
if (!pContentsNode) {
return;
}
@@ -368,11 +372,13 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
{
SOCKETCONTENTS SocketContents = {};
+ _float fStartPosition = 0.f;
SocketContents.fRatio = 0.f;
- _float fStartPosition = 0;
pSocketNode->QueryFloatAttribute("fStartPosition", &fStartPosition);
SocketContents.fRatio = CMyTools::Saturate(fStartPosition / pTimeLine->m_vTimer.y);
+
// Info
+ _bool bUseSystem = false;
tinyxml2::XMLElement* pInfoNode = pSocketNode->FirstChildElement("Info");
if (pInfoNode != nullptr)
{
@@ -422,9 +428,28 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
SocketContents.pEventTarget = pEventTarget;
SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
}
+ else if (strcmp(pTargetText, "ACTOR_CARRIAGE") == 0)
+ {
+ CThestralCarriage* pEventTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_ITEM)->Get_Object();
+ SocketContents.pEventTarget = pEventTarget;
+ SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
+ }
+ else if (strcmp(pTargetText, "SYSTEM") == 0)
+ {
+ bUseSystem = true;
+ }
+ assert((nullptr != SocketContents.pEventTarget) || bUseSystem);
+ assert((nullptr != SocketContents.funcEvent) || bUseSystem);
}
}
+ // -------- vFlags / Param_10 / Param_11 / Param_12 ----------
+ ReadFlags16(pSocketNode->FirstChildElement("vFlags"), SocketContents.vFlags);
+ ReadUInt4(pSocketNode->FirstChildElement("Param_10"), SocketContents.vParam_10);
+ ReadFloat4(pSocketNode->FirstChildElement("Param_11"), SocketContents.vParam_11);
+ const _char* pStringParma = pSocketNode->FirstChildElement("Param_12")->FirstChildElement("string")->Attribute("tag");
+ SocketContents.vParam_12 = pStringParma;
+
// -------- Param_0 ----------
tinyxml2::XMLElement* pParam0Node = pSocketNode->FirstChildElement("Param_0");
if (nullptr != pParam0Node)
@@ -445,10 +470,17 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
SocketContents.wstrLayerName = CMyTools::ToWstring(pLayerNameText);
SocketContents.wstrKeyName = CMyTools::ToWstring(pTypeIdText);
- if (string_view(pTypeIdText) == "Ranrok")
+ if (string_view(pTypeIdText) == "ACTOR_RANROK")
{
- SocketContents.pOtherTarget =
- m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object();
+ SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object();
+ }
+ else if (string_view(pTypeIdText) == "ACTOR_PLAYER")
+ {
+ SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object();
+ }
+ else if (string_view(pTypeIdText) == "ACTOR_CARRIAGE")
+ {
+ SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object();
}
else if (string_view(pTypeIdText) == "CAMERA_CINEMATIC")
{
@@ -458,28 +490,49 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
{
SocketContents.pOtherTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_SHOULDER);
}
-
- break;
- }
-
+ assert(nullptr != SocketContents.pOtherTarget);
+ }break;
case TIMESOCKET_PARAM::TRANSFORM:
{
tinyxml2::XMLElement* pTransformNode = pParam0Node->FirstChildElement("Transform");
ReadPxTransform(pTransformNode, SocketContents.pxTransform);
- break;
- }
+
+ }break;
+ case TIMESOCKET_PARAM::NOT_USE:
+ {
+ if (true == bUseSystem) {
+ switch (SocketContents.eTypeFunc)
+ {
+ case TIMESOCKET_FUNC::STOP_CINEMATIC:
+ SocketContents.funcEvent = [&](CTimeSocket& Socket) { m_pInfoInstance->DeActive_ActiveEvent(Socket.m_Contents.vParam_12); };
+ break;
+ case TIMESOCKET_FUNC::RESET_ENVIRONMENT:
+ SocketContents.funcEvent = [&](CTimeSocket& Socket) { m_pGameInstance->ResetLevel_Environment(); };
+ break;
+ case TIMESOCKET_FUNC::SET_VOLUMETRIC:
+ {
+ tinyxml2::XMLElement* pTransformNode = pParam0Node->FirstChildElement("Transform");
+ ReadPxTransform(pTransformNode, SocketContents.pxTransform);
+ SocketContents.funcEvent = [&](CTimeSocket& Socket) {
+ if (Socket.m_Contents.vFlags.b[0]) {
+ m_pGameInstance->Setting_Volumetirc(
+ Socket.m_Contents.pxTransform.q.x, Socket.m_Contents.pxTransform.q.y, Socket.m_Contents.pxTransform.q.z, Socket.m_Contents.pxTransform.q.w,
+ Socket.m_Contents.pxTransform.p.x);
+ }
+ };
+ }break;
+ default:
+ break;
+ }
+ assert(nullptr != SocketContents.funcEvent);
+ }
+ }break;
case TIMESOCKET_PARAM::END:
default:
break;
}
}
- // -------- vFlags / Param_10 / Param_11 / Param_12 ----------
- ReadFlags16(pSocketNode->FirstChildElement("vFlags"), SocketContents.vFlags);
- ReadUInt4(pSocketNode->FirstChildElement("Param_10"), SocketContents.vParam_10);
- ReadFloat4(pSocketNode->FirstChildElement("Param_11"), SocketContents.vParam_11);
- const _char* pStringParma = pSocketNode->FirstChildElement("Param_12")->FirstChildElement("string")->Attribute("tag");
- SocketContents.vParam_12 = pStringParma;
CTimeSocket* pSocket = CTimeSocket::Create(&SocketContents);
if (!pSocket) {
continue;
@@ -494,7 +547,7 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
pTriggerNode->QueryFloatAttribute("X", &Desc.vPosition_Radius.x);
pTriggerNode->QueryFloatAttribute("Y", &Desc.vPosition_Radius.y);
pTriggerNode->QueryFloatAttribute("Z", &Desc.vPosition_Radius.z);
- pTimeLine->m_pTriggerBox = CTriggerBox::Create(&Desc);
+ pTimeLine->m_pTriggerBox = CTriggerBox::Create(m_pDevice, m_pContext, &Desc);
}
}
diff --git a/Jusin154_Team3D/Client/Private/Decendo.cpp b/Jusin154_Team3D/Client/Private/Decendo.cpp
index 8c2793906..0247ff623 100644
--- a/Jusin154_Team3D/Client/Private/Decendo.cpp
+++ b/Jusin154_Team3D/Client/Private/Decendo.cpp
@@ -105,9 +105,16 @@ void CDecendo::Late_Update(_float fTimeDelta)
if (false == m_bHit) {
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
- ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
- OnCollision(this, &CollisionInfo);
+ if (false == m_bHit) {
+ _vector vStartPos = XMLoadFloat4(&m_vStartPos);
+ _vector vEndPos = XMLoadFloat4(&m_vEndPos);
+ if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
+ {
+ ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
+ OnCollision(this, &CollisionInfo);
+ }
+ }
}
__super::Late_Update(fTimeDelta);
@@ -250,11 +257,11 @@ CGameObject* CDecendo::Clone(void* pArg, CGameObject* pOwner)
void CDecendo::OnCollision(CGameObject* pOther, void* pDesc)
{
-
-
if (m_bHit == false)
return;
+ dynamic_cast(m_pOwner->Get_Owner())->Set_SpellHit(true);
+
ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
_vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp
index cfebe4404..d9650d8d3 100644
--- a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp
@@ -146,7 +146,7 @@ void CDialogue_Panel::Change_Map()
CLayer* pDuelistLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_DUELIST);
if (nullptr != pDuelistLayer) {
CHuman_Duelist* pDuelist = pDuelistLayer->Get_Object();
- pDuelist->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1016.f, 1.f));
+ pDuelist->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1015.f, 1.f));
pDuelist->Set_Battle(true);
}
@@ -154,9 +154,10 @@ void CDialogue_Panel::Change_Map()
if (nullptr != pLayer) {
CHuman_Duelist* pDuelist = pDuelistLayer->Get_Object();
CPlayer* pPlayer = pLayer->Get_Object();
- pPlayer->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1008.f, 1.f));
+ _vector vOriginPos = pPlayer->Get_Component()->Get_Position();
+ pPlayer->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1010.f, 1.f));
pPlayer->Set_Battle(true);
-
+ pPlayer->Set_OriginPos(vOriginPos);
_vector vPos = pPlayer->Get_WorldPostion();
_vector vForward = XMVectorSet(0.f, 0.f, 1.f, 0.f);
@@ -180,7 +181,6 @@ void CDialogue_Panel::Change_Map()
}
}
#endif // Bin
-
}
void CDialogue_Panel::Priority_Update(_float fTimeDelta)
diff --git a/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp b/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp
index 505c1e6ea..8c019cd6e 100644
--- a/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp
+++ b/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp
@@ -92,9 +92,16 @@ void CDuelist_Levioso::Late_Update(_float fTimeDelta)
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
- ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.002f);
- OnCollision(this, &CollisionInfo);
+ if (false == m_bHit) {
+ _vector vStartPos = XMLoadFloat4(&m_vStartPos);
+ _vector vEndPos = XMLoadFloat4(&m_vEndPos);
+ if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
+ {
+ ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.02f);
+ OnCollision(this, &CollisionInfo);
+ }
+ }
}
__super::Late_Update(fTimeDelta);
diff --git a/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp b/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp
index 033f89984..1169c6e4b 100644
--- a/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp
+++ b/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp
@@ -129,9 +129,19 @@ void CDuelist_NormalJap::Late_Update(_float fTimeDelta)
if (false == m_bHit) {
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = m_pProjectile->Get_WorldPostion();
- ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.02f);
- OnCollision(this, &CollisionInfo);
+ if (false == m_bHit) {
+ _vector vStartPos = XMLoadFloat4(&m_vStartPos);
+ _vector vEndPos = XMLoadFloat4(&m_vEndPos);
+ if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
+ {
+ ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.02f);
+ OnCollision(this, &CollisionInfo);
+ }
+ else {
+ int a = 0;
+ }
+ }
}
__super::Late_Update(fTimeDelta);
diff --git a/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp b/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp
index 8259220b0..bc7c74009 100644
--- a/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp
+++ b/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp
@@ -62,8 +62,9 @@ void CDuelist_Protego::Priority_Update(_float fTimeDelta)
void CDuelist_Protego::Update(_float fTimeDelta)
{
- if (m_bVisible == false)
+ if (m_bVisible == false) {
return;
+ }
m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
@@ -101,6 +102,12 @@ void CDuelist_Protego::Late_Update(_float fTimeDelta)
}
+void CDuelist_Protego::Set_Visible(_bool bVisible)
+{
+ m_bVisible = true;
+ m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), CURRENT_LEVEL);
+}
+
HRESULT CDuelist_Protego::Pre_Setting(CGameObject* pObject, void* pArg)
{
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
@@ -196,11 +203,13 @@ void CDuelist_Protego::OnCollision(CGameObject* pOther, void* pDesc)
{
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
m_pOwner->OnCollision(pOther, CollisionDesc);
+ m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
m_bVisible = false;
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
break;
case ENUM_CLASS(SKILL_TYPE::STUPEFY):
m_pOwner->OnCollision(pOther, CollisionDesc);
+ m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
m_bVisible = false;
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
break;
diff --git a/Jusin154_Team3D/Client/Private/EffectObject.cpp b/Jusin154_Team3D/Client/Private/EffectObject.cpp
index 416db96f1..a39378b13 100644
--- a/Jusin154_Team3D/Client/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectObject.cpp
@@ -180,7 +180,7 @@ void CEffectObject::FollowParents(const _float4x4* pParentsMat,const _float4x4*
m_pParentMatrix = pParentsMat;
}
- m_bVisible = true;
+ Set_Visible(true);
}
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 82faeb7a5..074631315 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -97,6 +97,8 @@ HRESULT CEffectPool::Initialize(void* pArg)
if (FAILED(Ready_Components())) {
return E_FAIL;
}
+ m_isActiveEffectCreate = true;
+ m_isActiveMonsterEffectCreate = true;
// 디버그 모드일 때
#ifdef _DEBUG
#ifdef gimch
@@ -120,31 +122,6 @@ HRESULT CEffectPool::Initialize(void* pArg)
m_isActiveMonsterEffectCreate = false;
#endif //
#endif
- //// 디버그 모드가 아닐 때, 릴리즈모드에
-#ifndef _DEBUG
-#ifdef gimch
- m_isActiveEffectCreate = true;
- m_isActiveMonsterEffectCreate = true;
-#endif // gimch
-#ifdef Bin
- m_isActiveEffectCreate = true;
- m_isActiveMonsterEffectCreate = true;
-#endif //
-#ifdef 진우
- m_isActiveEffectCreate = true;
- m_isActiveMonsterEffectCreate = true;
-#endif //
-#ifdef 기무리
- m_isActiveEffectCreate = true;
- m_isActiveMonsterEffectCreate = true;
-#endif //
-#ifdef 나
- m_isActiveEffectCreate = true;
- m_isActiveMonsterEffectCreate = true;
-#endif //
-#endif // !_DEBUG
-
-
if (m_isActiveEffectCreate)
{
if (FAILED(Ready_Effect()))
diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
index 89f5f376a..0490cc895 100644
--- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
@@ -565,7 +565,7 @@ HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject, void* pArg)
m_fAccTime = 0.f;
m_fPreAccTime = 0.f;
- m_bVisible = true;
+ Set_Visible(true);
m_isCollisionEnter = false;
m_bHit = false;
diff --git a/Jusin154_Team3D/Client/Private/Elf.cpp b/Jusin154_Team3D/Client/Private/Elf.cpp
new file mode 100644
index 000000000..b0414f746
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Elf.cpp
@@ -0,0 +1,628 @@
+#include "pch.h"
+#include "Elf.h"
+
+#include "GameInstance.h"
+#include "InfoInstance.h"
+#include "Player.h"
+#include "NPCInteraction.h"
+#include "CallBack_NonPlayable_Behavior.h"
+#include "CallBack_NonPlayable_HitReport.h"
+#include "Layer.h"
+
+CElf::CElf(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CUnit(pDevice, pContext)
+{
+}
+
+CElf::CElf(const CElf& Prototype)
+ : CUnit(Prototype),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CElf::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CElf::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg))) {
+ return E_FAIL;
+ }
+
+ ELFDESC* pDesc = static_cast(pArg);
+
+ if (FAILED(Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ Load_AnimXML("../Bin/Resources/Data/AnimList/Elf.xml");
+
+ Load_ElfPos("../Bin/Resources/Data/ElfPos/ElfPos.xml");
+
+ _vector vPos = XMLoadFloat4(&pDesc->vPos);
+ m_pTransformCom->Set_State(STATE::POSITION, vPos);
+ m_pCharacter_Controller->Set_Position(vPos);
+ m_pTransformCom->Rotation(XMLoadFloat4(&pDesc->vRotQ));
+
+ m_pModelCom->Set_AnimationIndex(m_Anims[m_iCurrentFlow].AnimIndex, false);
+
+ m_pCallBack_Behavior->Initialize(m_pCharacter_Controller);
+ m_pCallBack_HitReport->Initialize(m_pCharacter_Controller);
+
+ return S_OK;
+}
+
+void CElf::Priority_Update(_float fTimeDelta)
+{
+ m_pTransformCom->RewindMomentum();
+ m_iEntered -= 1;
+ if (m_iEntered < 0) {
+ m_iEntered = 0;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CElf::Update(_float fTimeDelta)
+{
+ MoveTo(fTimeDelta);
+
+ Set_Anim();
+
+ m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
+
+ __super::Update(fTimeDelta);
+#ifdef _DEBUG
+ Describe_Entity();
+#endif // _DEBUG
+ { // 세트
+ m_pCallBack_HitReport->BeginFrame();
+ m_pCharacter_Controller->Move(fTimeDelta);
+ m_pCallBack_HitReport->Set_CurrentSlop();
+ }
+
+ m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true);
+
+ _vector vCurrentPos = Get_WorldPostion();
+ pair pairTarget = m_pInfoInstance->Get_NearestPlayerAlly(vCurrentPos);
+ if (nullptr != pairTarget.first) {
+ Set_Target(*pairTarget.first, *pairTarget.second);
+ }
+ if (nullptr != m_pTarget && m_pTarget->isDead()) {
+ SAFE_RELEASE(m_pTarget);
+ m_fTargetDistance = { FLT_MAX };
+ }
+}
+
+void CElf::Late_Update(_float fTimeDelta)
+{
+ m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
+
+ m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true);
+
+ 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);
+}
+
+HRESULT CElf::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(Bind_ShaderParameters(i))) {
+ 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 CElf::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_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) {
+ 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 CElf::OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos)
+{
+ CPlayer* pPlayer = dynamic_cast(pCaster);
+ if (nullptr == pPlayer) {
+ return;
+ }
+ if (fDistance < m_fEncounterDistance) {
+ m_iEntered = 4;
+ }
+}
+
+_wstring CElf::Get_Name()
+{
+ return m_pNpcStat->Get_Stat().pNpc_Name;
+}
+
+_wstring CElf::Get_NpcName()
+{
+ return m_pNpcStat->Get_Stat().pName;
+}
+
+void CElf::Set_Target(CUnit& pTarget, CTransform& pTransform)
+{
+ SAFE_RELEASE(m_pTarget);
+ m_pTarget = &pTarget;
+ SAFE_ADDREF(m_pTarget);
+
+ _vector vTargetPos = pTransform.Get_State(STATE::POSITION);
+ _vector vToTargetDir = vTargetPos - Get_WorldPostion();
+ XMStoreFloat4(&m_vTargetPos, vTargetPos);
+ XMStoreFloat3(&m_vToTargetDir, XMVector3Normalize(vToTargetDir));
+ m_fTargetDistance = XMVectorGetX(XMVector3Length(vToTargetDir));
+}
+
+
+HRESULT CElf::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 CElf::Bind_ShaderParameters(_uint iMeshOrder)
+{
+ _bool bUseColorMixer = false;
+
+ _uint iColorParam = { UINT_MAX };
+ _float fMixerFactor = { FLT_MAX };
+ _uint iColorMixerMethod = { 0 };
+
+ switch (m_pModelCom->Get_UsingPass(iMeshOrder, m_pShaderCom))
+ {
+ case 23:
+ {
+ bUseColorMixer = true;
+ iColorParam = 0x2E2E2E;
+ fMixerFactor = 0.9f;
+ iColorMixerMethod = 1;
+ }
+ break;
+ }
+ if (true == bUseColorMixer) {
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iPackedBlendColor", &iColorParam, sizeof(_uint)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fMixerFactor", &fMixerFactor, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iColorMixerMethod", &iColorMixerMethod, sizeof(_uint)))) {
+ return E_FAIL;
+ }
+ }
+ return S_OK;
+}
+
+void CElf::MoveTo(_float fTimeDelta)
+{
+ if (m_Points.empty())
+ return;
+
+ if (m_iCurrentFlow > m_Points.size())
+ {
+ return;
+ }
+
+ _vector Target = XMLoadFloat4(&m_Points[m_iCurrentFlow]);
+
+ _vector CurPos = m_pCharacter_Controller->Get_Position();
+ _vector vLook = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
+
+
+ _vector toTarget = Target - CurPos;
+ _float fDist = XMVectorGetX(XMVector3Length(toTarget));
+
+ if (fDist < 3.f)
+ {
+ if (m_iCurrentFlow + 1 < m_Points.size())
+ {
+ if (m_pModelCom->IsFinishedAnim() && m_Anims[m_iCurrentFlow].Trigger == ENUM_CLASS(FLOW_TRIGGER::ARRIVE_POS)) {
+ m_iCurrentFlow++;
+ }
+ }
+ }
+
+ m_pTransformCom->LookAt_Horizontal_Lerp(Target, fTimeDelta, 5.f);
+}
+
+void CElf::Set_Anim()
+{
+ if (m_Anims[m_iCurrentFlow].Trigger == ENUM_CLASS(FLOW_TRIGGER::ANIM_END))
+ {
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ m_iCurrentFlow++;
+ }
+ }
+
+ _bool bRootBone = true;
+
+ m_pairAnimInfo = m_Anims[m_iCurrentFlow];
+ if (m_pairAnimInfo.AnimIndex == 1)
+ {
+ bRootBone = false;
+ }
+ m_pModelCom->Set_AnimationIndex(m_pairAnimInfo.AnimIndex, m_pairAnimInfo.Loop, 1.f, false, 1.f, bRootBone);
+}
+
+
+void CElf::Load_AnimXML(const string& path)
+{
+ tinyxml2::XMLDocument doc;
+ if (doc.LoadFile(path.c_str()) != tinyxml2::XML_SUCCESS)
+ return;
+
+ tinyxml2::XMLElement* pDialogue = doc.FirstChildElement("Dialogue");
+ if (!pDialogue)
+ return;
+
+ for (tinyxml2::XMLElement* pName = pDialogue->FirstChildElement("Name");
+ pName;
+ pName = pName->NextSiblingElement("Name"))
+ {
+ _int flow = pName->IntAttribute("Flow");
+
+ pName->QueryIntAttribute("Flow", &flow);
+
+ auto* pAnim = pName->FirstChildElement("Anim");
+ if (!pAnim) continue;
+
+ const char* stateStr = pAnim->Attribute("state");
+ if (!stateStr)
+ continue;
+
+ DialogueAnim Anim = {};
+
+ STATEANIM::ESTATE State = StringToStateAnim(stateStr);
+
+ Anim.AnimIndex = pAnim->IntAttribute("index");
+ Anim.Loop = pAnim->BoolAttribute("loop");
+
+ const char* trig = pName->Attribute("Trigger");
+
+ if (!strcmp(trig, "DIALOGUE_END"))
+ Anim.Trigger = ENUM_CLASS(FLOW_TRIGGER::DIALOGUE_END);
+ else if (!strcmp(trig, "ARRIVE_POS"))
+ Anim.Trigger = ENUM_CLASS(FLOW_TRIGGER::ARRIVE_POS);
+ else if (!strcmp(trig, "ANIM_END"))
+ Anim.Trigger = ENUM_CLASS(FLOW_TRIGGER::ANIM_END);
+
+
+ m_Anims[flow] = Anim;
+
+ m_Animation[State] = { Anim.AnimIndex, Anim.Loop };
+ }
+}
+
+HRESULT CElf::Load_ElfPos(const _char* pFilePath)
+{
+ tinyxml2::XMLDocument doc;
+ if (doc.LoadFile(pFilePath) != tinyxml2::XML_SUCCESS)
+ return E_FAIL;
+
+ auto* pElfPosInfo = doc.FirstChildElement("ElfPosInfo");
+ if (!pElfPosInfo) return E_FAIL;
+
+ auto* pElfPosData = pElfPosInfo->FirstChildElement("ElfPosData");
+ if (!pElfPosData) return E_FAIL;
+
+ for (auto* pName = pElfPosData->FirstChildElement("Name");
+ pName;
+ pName = pName->NextSiblingElement("Name"))
+ {
+ int flow = -1;
+ pName->QueryIntAttribute("Flow", &flow);
+
+ auto* pPosition = pName->FirstChildElement("Position");
+ if (!pPosition) continue;
+
+ auto* pPos = pPosition->FirstChildElement("Pos");
+ if (!pPos) continue;
+
+ _float x{}, y{}, z{};
+ pPos->QueryFloatAttribute("x", &x);
+ pPos->QueryFloatAttribute("y", &y);
+ pPos->QueryFloatAttribute("z", &z);
+
+ m_Points[flow] = { x, y, z, 1.f };
+ }
+
+ return S_OK;
+}
+
+
+HRESULT CElf::Ready_Components(void* pArg)
+{
+ CTransform::TRANSFORM_DESC Desc = {};
+
+ Desc.fSpeedPerSec = 10.f;
+ Desc.fRotationPerSec = XMConvertToRadians(180.0f);
+ Desc.fRadius = 10.f;
+
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pTransformCom, pArg))) {
+ return E_FAIL;
+ }
+
+ /* Com_Model */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Elf_Model"),
+ reinterpret_cast(&m_pModelCom)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("ELF"), (CComponent**)&m_pNpcStat))) {
+ return E_FAIL;
+ }
+
+ /* Com_Shader */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
+ reinterpret_cast(&m_pShaderCom)))) {
+ 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.2f;
+ Desc.fHeight = 0.3f;
+ 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);
+ }
+ { // DO
+ CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::OLLIVANDER);
+ Desc.bAutoOwnerTranslation = false;
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_NPC_HITBOX"), (CComponent**)&m_pRigidBody, &Desc))) {
+ return E_FAIL;
+ }
+ }
+
+ return S_OK;
+}
+
+CElf* CElf::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CElf* pInstance = new CElf(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CElf");
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+CGameObject* CElf::Clone(void* pArg, CGameObject* pOwner)
+{
+ CElf* pInstance = new CElf(*this);
+
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CElf");
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CElf::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pCharacter_Controller);
+ SAFE_RELEASE(m_pNpcStat);
+ SAFE_RELEASE(m_pRigidBody);
+ SAFE_RELEASE(m_pTarget);
+ 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 CElf::Describe_Entity()
+{
+ if (m_Anims[m_iCurrentFlow].Trigger == ENUM_CLASS(FLOW_TRIGGER::DIALOGUE_END))
+ {
+ GUI::InputInt("Flow", &m_iCurrentFlow);
+ }
+
+ _float3 Pos;
+ XMStoreFloat3(&Pos, Get_WorldPostion());
+
+ if (GUI::DragFloat3("Pos", (_float*)&Pos, 0.01f))
+ {
+ m_pCharacter_Controller->Set_Position(
+ XMVectorSet(Pos.x, Pos.y, Pos.z, 1.f));
+ }
+
+ _float4 vMomentum = {};
+ XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
+ GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
+
+ if (GUI::Button("Move To Player"))
+ {
+ CPlayer* pPlayer =
+ m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object();
+ m_pCharacter_Controller->Set_Position(pPlayer->Get_WorldPostion());
+
+ _vector vCurPos = m_pCharacter_Controller->Get_Position();
+ _float4 vPos;
+ XMStoreFloat4(&vPos, vCurPos);
+
+ char buf[128];
+ sprintf_s(buf,
+ "",
+ vPos.x, vPos.y, vPos.z);
+
+ GUI::SetClipboardText(buf);
+ }
+
+ GUI::Separator();
+
+ if (GUI::TreeNode("Points"))
+ {
+ GUI::Text("Total Count : %d", (_int)m_Points.size());
+
+ for (auto it = m_Points.begin(); it != m_Points.end(); )
+ {
+ _int index = it->first;
+ _float4& p = it->second;
+
+ GUI::PushID(index);
+
+ GUI::Text("[%d] (%.2f, %.2f, %.2f)", index, p.x, p.y, p.z);
+ GUI::SameLine();
+
+ if (GUI::SmallButton("Move"))
+ {
+ m_pCharacter_Controller->Set_Position(
+ XMVectorSet(p.x, p.y, p.z, 1.f));
+ }
+
+ GUI::SameLine();
+
+ if (GUI::SmallButton("Copy"))
+ {
+ _vector vCurPos = m_pCharacter_Controller->Get_Position();
+ XMStoreFloat4(&p, vCurPos);
+
+ char buf[128];
+ sprintf_s(buf,
+ "",
+ p.x, p.y, p.z);
+
+ GUI::SetClipboardText(buf);
+ }
+
+ GUI::SameLine();
+
+ if (GUI::SmallButton("X"))
+ {
+ it = m_Points.erase(it);
+ GUI::PopID();
+ continue;
+ }
+
+ GUI::PopID();
+ ++it;
+ }
+
+ if (GUI::SmallButton("Clear All"))
+ {
+ m_Points.clear();
+ }
+
+ GUI::TreePop();
+ }
+
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp b/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp
index abae5f8ce..6c770e327 100644
--- a/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp
@@ -62,6 +62,10 @@ void CEnemy_Panel::Update_Target()
static_cast(m_pEnemy_Info)->Set_FadeOut();
return;
}
+
+ CStat* pStat = m_pInfoInstance->Get_TargetMonster()->Get_Stat();
+ if (pStat == nullptr)
+ return;
if (m_pInfoInstance->Get_TargetMonster()->Get_Stat()->Get_Stat().bBoss == true)
{
static_cast(m_pBoss_HpBar)->Update_Target();
diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp
index 214eb3e41..dd1139d24 100644
--- a/Jusin154_Team3D/Client/Private/Goblin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin.cpp
@@ -393,8 +393,11 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
if (pEffect_Container != nullptr)
{
_uint iSkillType = pEffect_Container->Get_SkillType();
+
+
damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
+
switch (iSkillType)
{
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
@@ -440,7 +443,6 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
}
}
-
m_DamageInfo.fDamage = damagePair.first;
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
if (0 == damagePair.second) {
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
index 7e4506566..4b80f2b91 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
@@ -406,7 +406,12 @@ void CGoblin_Assassin::OnCollision(CGameObject* pOther, void* pDesc)
if (pEffect_Container != nullptr)
{
_uint iSkillType = pEffect_Container->Get_SkillType();
- //damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
+
+#ifndef Bin
+ damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
+#endif // !Bin
+
+
switch (iSkillType)
{
@@ -453,16 +458,16 @@ void CGoblin_Assassin::OnCollision(CGameObject* pOther, void* pDesc)
}
}
-
- /*m_DamageInfo.fDamage = damagePair.first;
+#ifndef Bin
+ m_DamageInfo.fDamage = damagePair.first;
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
if (0 == damagePair.second) {
m_pFSM->Change_State(FSMSTATE::DEAD);
_int ID = m_pStat->Get_Stat().iObjectID;
m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID);
return;
- }*/
-
+ }
+#endif // !Bin
m_pFSM->Change_State(FSMSTATE::HIT);
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp
index d4bd1a5bf..e136496cc 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp
@@ -102,6 +102,12 @@ void CGoblin_Protego::Late_Update(_float fTimeDelta)
}
+void CGoblin_Protego::Set_Visible(_bool bVisible)
+{
+ m_bVisible = true;
+ m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), CURRENT_LEVEL);
+}
+
HRESULT CGoblin_Protego::Pre_Setting(CGameObject* pObject, void* pArg)
{
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
@@ -197,16 +203,19 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc)
{
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
m_pOwner->OnCollision(pOther, CollisionDesc);
+ m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
m_bVisible = false;
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
break;
case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA):
m_pOwner->OnCollision(pOther, CollisionDesc);
+ m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
m_bVisible = false;
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
break;
case ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC):
m_pOwner->OnCollision(pOther, CollisionDesc);
+ m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
m_bVisible = false;
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
break;
@@ -218,7 +227,7 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc)
if (pProps != nullptr)
{
m_pOwner->OnCollision(pOther, CollisionDesc);
- m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
+ m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
m_bVisible = false;
}
}
diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp
index e8f82652e..63f22ab9e 100644
--- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp
+++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp
@@ -11,6 +11,7 @@
#include "Layer.h"
#include "Wand.h"
#include "Mesh.h"
+#include "Player.h"
CHuman_Duelist::CHuman_Duelist(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CMonster(pDevice, pContext)
@@ -67,6 +68,7 @@ HRESULT CHuman_Duelist::Initialize(void* pArg)
_vector vRotQ = XMLoadFloat4(&pDesc->vRotQ);
m_pCharacter_Controller->Set_Position(vPos);
m_pTransformCom->Set_State(STATE::POSITION, vPos);
+ m_OriginPos = pDesc->vPos;
m_pTransformCom->Rotation(vRotQ);
}
@@ -93,8 +95,7 @@ void CHuman_Duelist::Update(_float fTimeDelta)
Play_Event();
-
-
+ Check_BattleLose();
__super::Update(fTimeDelta);
#ifdef _DEBUG
@@ -109,8 +110,6 @@ void CHuman_Duelist::Update(_float fTimeDelta)
for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++)
m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta);
-
-
}
void CHuman_Duelist::Late_Update(_float fTimeDelta)
@@ -481,80 +480,21 @@ HRESULT CHuman_Duelist::Bind_ShaderParameters(_uint iMeshOrder)
_float fMixerFactor = { FLT_MAX };
_uint iColorMixerMethod = { 0 };
- switch (PLAYER_MESH_ORDER(iMeshOrder))
+ switch (CPlayer::PLAYER_MESH_ORDER(iMeshOrder))
{
- case PLAYER_MESH_ORDER::HAIR_MAIN:
- case PLAYER_MESH_ORDER::HEAD_EYELASH:
- case PLAYER_MESH_ORDER::HAIR_SUB:
+ case CPlayer::PLAYER_MESH_ORDER::HAIR_MAIN:
+ case CPlayer::PLAYER_MESH_ORDER::EYELASH:
bUseColorMixer = true;
iColorParam = 0x2E2E2E;
fMixerFactor = 0.9f;
iColorMixerMethod = 1;
break;
- case PLAYER_MESH_ORDER::LOWER:
+ case CPlayer::PLAYER_MESH_ORDER::CLOTH:
bUseColorMixer = true;
iColorParam = 0x292557;
fMixerFactor = 0.5f;
iColorMixerMethod = 1;
break;
- case PLAYER_MESH_ORDER::SHOES:
- bUseColorMixer = true;
- iColorParam = 0x614242;
- fMixerFactor = 0.5f;
- iColorMixerMethod = 1;
- break;
- case PLAYER_MESH_ORDER::UPPER:
- bUseColorMixer = true;
- iColorParam = 0xBFAC29;
- fMixerFactor = 0.658333f;
- iColorMixerMethod = 1;
- break;
-#ifdef 기무리
-
- //case PLAYER_MESH_ORDER::ROBE_CLOTH:
- //{
- // CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH));
- // _uint MeshBoneCount = pMesh->Get_NumBone();
-
- // for (_uint i = 0; i < MeshBoneCount; ++i)
- // {
- // XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity());
- // }
-
- // _uint temp = 0;
- // vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH));
- // vector<_int> boneIndices = pMesh->Get_BoneIndices();
-
- // for (_uint i = 0; i < MeshBoneCount; ++i)
- // {
- // _uint global = boneIndices[i];
- // if (global == 38)
- // continue;
- // if (globalMask[global] == 1)
- // {
- // SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++);
- // }
- // }
-
- // GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f);
-
- // if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) {
- // return E_FAIL;
- // }
-
-
- // if (FAILED(m_pShaderCom->Bind_Matrices(
- // "g_BoneMatrices",
- // SkinMatrices.data(),
- // (_int)SkinMatrices.size()
- // )))
- // {
- // return E_FAIL;
- // }
- //}
- //break;
-#endif // _DEBUG
-
default:
break;
}
@@ -574,6 +514,29 @@ HRESULT CHuman_Duelist::Bind_ShaderParameters(_uint iMeshOrder)
return S_OK;
}
+void CHuman_Duelist::Check_BattleLose()
+{
+ if (!m_bBattle)
+ return;
+
+ _float vPosY = XMVectorGetY(m_pCharacter_Controller->Get_Position());
+
+ if (m_OriginPos.y > vPosY)
+ {
+ if (true == m_pCharacter_Controller->IsOnGround())
+ {
+ m_pEffectPool->Use_Skill(SKILL_TYPE::BOX_SPLESH, this);
+ m_bBattle = false;
+ CPlayer* pPlayer = dynamic_cast(m_pInfoInstance->Get_NearestPlayerAlly(Get_WorldPostion()).first);
+
+ if (pPlayer == nullptr)
+ return;
+
+ pPlayer->ExitBattle();
+ }
+ }
+}
+
_matrix CHuman_Duelist::Get_WandPos()
{
diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp
index 42cb3e79b..3b46ee80f 100644
--- a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp
@@ -35,11 +35,15 @@ void CHuman_Duelist::Behavior_IdleEnter()
HRESULT CHuman_Duelist::Behavior_IdleExitCheck(_float fTimeDelta)
{
- if (m_bBattle) {
- m_pFSM->Change_State(FSMSTATE::CUTSCENE);
- return E_FAIL;
+ if (false == m_pFSM->IsEnable_Previous(FSMSTATE::COMBAT))
+ {
+ if (m_bBattle) {
+ m_pFSM->Change_State(FSMSTATE::CUTSCENE);
+ return E_FAIL;
+ }
}
+
if (m_fTargetDistance <= 20.f) {
for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++)
{
@@ -263,6 +267,7 @@ void CHuman_Duelist::Behavior_HitEnter()
{
pair<_uint, _bool> pairAnimInfo;
m_bLookAt = false;
+ m_bCameraShake = true;
switch (m_eHitSpell)
{
@@ -278,11 +283,8 @@ void CHuman_Duelist::Behavior_HitEnter()
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
break;
case ENUM_CLASS(SKILL_TYPE::STUPEFY):
- if (m_eHitState != ENUM_CLASS(HIT_STATE::END)) {
- return;
- }
pairAnimInfo = m_Animation[STATEANIM::DAZED_START];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.3f);
Add_Event(pairAnimInfo.first,
[this]() {
pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::DAZED_LOOP];
@@ -343,6 +345,15 @@ void CHuman_Duelist::Behavior_HitEnter()
HRESULT CHuman_Duelist::Behavior_HitExitCheck(_float fTimeDelta)
{
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+
+ if (iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first ||
+ iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_FWD_SPLT].first)
+ {
+ if (true == m_pCharacter_Controller->IsOnGround() && m_bCameraShake) {
+ CameraShake(10.f, 1.f, 2.f, 0.3f);
+ m_bCameraShake = false;
+ }
+ }
Hit_Levioso(fTimeDelta);
@@ -387,7 +398,7 @@ HRESULT CHuman_Duelist::Behavior_CutSceneExitCheck(_float fTimeDelta)
void CHuman_Duelist::Behavior_CutSceneExit()
{
m_pFSM->Disable_State(FSMSTATE::CUTSCENE);
- m_bBattle = false;
+ //m_bBattle = false;
}
void CHuman_Duelist::Hit_Levioso(_float fTimeDelta)
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index 746bb26ca..43f940805 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -42,7 +42,7 @@ void CInfoInstance::Change_Level()
m_pInteractiveInfo->Change_Level();
m_pEffectInfo->Change_Level();
// UI_Event.clear();
- m_pCutSceneInfo->Change_Level();
+ m_pCutSceneInfo->Load_CutScenes();
}
CStat* CInfoInstance::Get_PlayerStatPtr()
@@ -176,6 +176,10 @@ HRESULT CInfoInstance::Load_DADA_INT()
{
return m_pMapInfo->Load_DADA_INT();
}
+HRESULT CInfoInstance::Load_Npc()
+{
+ return m_pMapInfo->Load_Npc();
+}
#pragma endregion
#pragma region EFFECT_INFO
@@ -541,6 +545,11 @@ HRESULT CInfoInstance::NPC_FileLoad(const _char* pDirectoryPath)
return S_OK;
}
+void CInfoInstance::Load_CutScenes()
+{
+ m_pCutSceneInfo->Load_CutScenes();
+}
+
void CInfoInstance::Release_Information()
{
UI_Event.clear();
diff --git a/Jusin154_Team3D/Client/Private/Level_Field.cpp b/Jusin154_Team3D/Client/Private/Level_Field.cpp
index 965056526..d49249dc7 100644
--- a/Jusin154_Team3D/Client/Private/Level_Field.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_Field.cpp
@@ -63,6 +63,9 @@ HRESULT CLevel_Field::Initialize(void* pArg)
if (FAILED(Ready_Layer_Monster())) {
return E_FAIL;
}
+
+ m_pInfoInstance->Load_CutScenes();
+
m_bLevel = true;
m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
@@ -152,8 +155,6 @@ HRESULT CLevel_Field::Render()
HRESULT CLevel_Field::Ready_Lights()
{
- CLight_Main* pLight = { nullptr };
-
LIGHT_DESC Desc = {};
if (m_isDay)
{
@@ -169,7 +170,7 @@ HRESULT CLevel_Field::Ready_Lights()
}
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, &Desc, nullptr, &pLight))) {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, &Desc, nullptr, &m_pLight))) {
return E_FAIL;
}
@@ -184,9 +185,7 @@ HRESULT CLevel_Field::Ready_Lights()
#endif // gimch
-
-
- pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular);
+ m_pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular);
return S_OK;
@@ -237,7 +236,7 @@ HRESULT CLevel_Field::Ready_Camera()
Camera_Desc.fNear = 0.1f;
Camera_Desc.fFar = 500.f;
Camera_Desc.pCameraKey = CAMERA_CINEMATIC;
- Camera_Desc.iPriority = 65;
+ Camera_Desc.iPriority = 52;
Camera_Desc.bEnableTransitionLerp = false;
Camera_Desc.bEnableLookLerp = false;
Camera_Desc.bEnableFollowLerp = false;
@@ -369,6 +368,10 @@ HRESULT CLevel_Field::Reday_Layer_EffectPool()
return S_OK;
}
+void CLevel_Field::ResetLevel_Environment()
+{
+}
+
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 1fcb92ee2..66c817771 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -5,7 +5,6 @@
#include "Light_Main.h"
#include "Camera_Debug.h"
#include "InfoInstance.h"
-#include "Camera_Model.h"
#include "UI_Manager.h"
#include "Layer.h"
#include "SkyBox.h"
@@ -21,6 +20,7 @@
#include "BroomRaceManager.h"
#include "ReparoObject.h"
#include "ThestralCarriage.h"
+#include "Camera_Cinematic.h"
#pragma region ACTOR
#include "Player.h"
@@ -35,6 +35,7 @@
#include "BroomRacerAI.h"
#include "Ranrok.h"
#include "RandomNpc.h"
+#include "Elf.h"
#pragma endregion
@@ -109,9 +110,9 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
return E_FAIL;
}
- //if (FAILED(Ready_Layer_ReparoObject(TEXT("Layer_ReparoObject")))) {
- // return E_FAIL;
- //}
+ if (FAILED(Ready_Layer_ReparoObject(TEXT("Layer_ReparoObject")))) {
+ return E_FAIL;
+ }
if (FAILED(Ready_Layer_SkyBox(TEXT("Layer_SkyBox")))) {
return E_FAIL;
@@ -121,8 +122,23 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
return E_FAIL;
}
- if (FAILED(Ready_Layer_RacerAI(LAYER_RACERAI))) {
- return E_FAIL;
+ _bool bLoadNPC = { true };
+#ifdef _DEBUG
+#ifdef 기무리
+ bLoadNPC = false;
+#endif
+#endif // _DEBUG
+ if (true == bLoadNPC) {
+ if (FAILED(Ready_Layer_RacerAI(LAYER_RACERAI))) {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Layer_Duelist())) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Ready_Layer_Npc())) {
+ return E_FAIL;
+ }
}
@@ -130,21 +146,13 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
return E_FAIL;
}
- if (FAILED(Ready_Layer_Duelist())) {
- return E_FAIL;
- }
-
- if (FAILED(Ready_Layer_Npc())) {
- return E_FAIL;
- }
-
-
if (FAILED(m_pInfoInstance->Late_Initialize()))
return E_FAIL;
m_bLevel = true;
m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
+
return S_OK;
}
@@ -240,7 +248,7 @@ HRESULT CLevel_GamePlay::Ready_Lights()
Desc.vSpecular = _float4(0.0f, 0.0f, 0.0f, 0.0f);
}
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, &Desc))) {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, &Desc, nullptr, &m_pLight))) {
return E_FAIL;
}
@@ -333,8 +341,8 @@ HRESULT CLevel_GamePlay::Ready_Background()
isReady_Hogwart = false;
#endif //
#ifdef 기무리
- isReady_Background = true;
- isReady_Hogsmeade = true;
+ isReady_Background = false;
+ isReady_Hogsmeade = false;
isReady_Hogwart = false;
#endif //
#ifdef 나
@@ -898,29 +906,31 @@ HRESULT CLevel_GamePlay::Ready_Layer_Camera()
m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_DEBUG);
}
- {
- CCamera_Model::CAMERA_MODEL_DESC Camera_Desc{};
- Camera_Desc.fSpeedPerSec = 5.f;
- Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f);
- Camera_Desc.fFovy = XMConvertToRadians(60.0f);
- Camera_Desc.fNear = 0.1f;
- Camera_Desc.fFar = 500.f;
- Camera_Desc.pCameraKey = CAMERA_MODEL;
- Camera_Desc.iPriority = 49;
- Camera_Desc.pFollowTarget = { nullptr };
- Camera_Desc.pLookTarget = { nullptr };
-
- CCamera_Model* pCamera = { nullptr };
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) {
- return E_FAIL;
- }
- m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_MODEL);
-
- }
-
#endif // _DEBUG
+ {
+ CCamera_Cinematic::Camera_Cinematic_DESC Camera_Desc{};
+ Camera_Desc.fSpeedPerSec = 5.f;
+ Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f);
+ Camera_Desc.fFovy = XMConvertToRadians(60.0f);
+ Camera_Desc.fNear = 0.3f;
+ Camera_Desc.fFar = 500.f;
+ Camera_Desc.pCameraKey = CAMERA_CINEMATIC;
+ Camera_Desc.iPriority = 52;
+ Camera_Desc.bEnableTransitionLerp = false;
+ Camera_Desc.bEnableLookLerp = false;
+ Camera_Desc.bEnableFollowLerp = false;
+ Camera_Desc.vTransitionTime.y = 1.f;
+ Camera_Desc.pFollowTarget = { nullptr };
+ Camera_Desc.pLookTarget = { nullptr };
+
+ CCamera_Cinematic* pCamera = { nullptr };
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) {
+ return E_FAIL;
+ }
+ m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_CINEMATIC);
+ }
if (FAILED(m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_SHOULDER, true))) {
return E_FAIL;
}
@@ -1093,11 +1103,12 @@ HRESULT CLevel_GamePlay::Ready_Layer_Duelist()
{
CHuman_Duelist::DUELISTDESC DuelistDesc = {};
- DuelistDesc.vPos = _float4(1007.f, 6.f, 1016.f, 1.f);
+ DuelistDesc.vPos = _float4(1007.23f, 1.775f, 1015.f, 1.f);
DuelistDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_DUELIST, &DuelistDesc))) {
return E_FAIL;
}
+
return S_OK;
}
@@ -1105,18 +1116,20 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
{
_bool isLoad_NPC = { true };
_bool isLoad_RandomNPC = { true };
+ _bool isRandomPosition = { false };
#ifdef _DEBUG
#ifdef gimch
- isLoad_NPC = false;
- isLoad_RandomNPC = false;
+ isLoad_NPC = true;
+ isLoad_RandomNPC = true;
+ isRandomPosition = false;
#endif // gimch
#ifdef 진우
isLoad_RandomNPC = false;
isLoad_NPC = false;
#endif //
#ifdef 기무리
- isLoad_NPC = true;
- isLoad_RandomNPC = true;
+ isLoad_NPC = false;
+ isLoad_RandomNPC = false;
#endif //
#ifdef 나
isLoad_RandomNPC = true;
@@ -1145,12 +1158,22 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
return E_FAIL;
}
}
+ {
+ CElf::ELFDESC ElfDesc{};
+ ElfDesc.vPos = _float4(-84.20f, -30.98f, -60.13f, 1.f);
+ ElfDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_NPC, &ElfDesc))) {
+ return E_FAIL;
+ }
+ }
}
if (true == isLoad_RandomNPC)
{
- for (_uint i = 0; i < 11; i++)
+ if(isRandomPosition)
{
+ for (_uint i = 0; i < 10; i++)
{
CRandomNpc::NPCDESC NPCDesc{};
_float X = m_pGameInstance->Real_Random_Float(22.f, 29.f);
@@ -1163,10 +1186,33 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
}
}
}
+ else
+ m_pInfoInstance->Load_Npc();
}
return S_OK;
}
+void CLevel_GamePlay::ResetLevel_Environment()
+{
+ Ready_Volumetric();
+ _float4 vDiffuse;
+ _float4 vAmbient;
+ _float4 vSpecular;
+ if (m_isDay)
+ {
+ vDiffuse = _float4(0.6529f, 0.6157f, 0.7843f, 1.0f);
+ vAmbient = _float4(0.6275f, 0.6275f, 0.6275f, 0.0314f);
+ vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.05f);
+ }
+ else
+ {
+ vDiffuse = _float4(0.0471f, 0.0745f, 0.1294f, 0.2549f);
+ vAmbient = _float4(0.1686f, 0.1765f, 0.1373f, 0.0f);
+ vSpecular = _float4(0.0f, 0.0f, 0.0f, 0.0f);
+ }
+ m_pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular);
+}
+
pair> CLevel_GamePlay::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg)
{
CLevel_GamePlay* pInstance = new CLevel_GamePlay(pDevice, pContext, eLevelID);
@@ -1177,7 +1223,8 @@ pair> CLevel_GamePlay::Create(ID3D11Device* pDevice, I
SAFE_RELEASE(pInstance);
}
- return { pInstance, [pInstance]() { pInstance->Ready_Layer_Camera(); pInstance->Ready_Layer_Sound(); } };
+ return { pInstance, [=]() { pInstance->Ready_Layer_Camera(); pInstance->Ready_Layer_Sound();
+ pInstance->m_pInfoInstance->Load_CutScenes(); } };
}
void CLevel_GamePlay::Free()
diff --git a/Jusin154_Team3D/Client/Private/Level_Loading.cpp b/Jusin154_Team3D/Client/Private/Level_Loading.cpp
index ac72eb3bd..0cef5f61a 100644
--- a/Jusin154_Team3D/Client/Private/Level_Loading.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_Loading.cpp
@@ -25,7 +25,7 @@ HRESULT CLevel_Loading::Initialize(LEVEL eNextLevelID)
if (nullptr == m_pLoader) {
return E_FAIL;
}
-
+
if (FAILED(Ready_Layer_BackGround(LAYER_UI))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Client/Private/Levioso.cpp b/Jusin154_Team3D/Client/Private/Levioso.cpp
index 2368577a6..ec346f614 100644
--- a/Jusin154_Team3D/Client/Private/Levioso.cpp
+++ b/Jusin154_Team3D/Client/Private/Levioso.cpp
@@ -92,9 +92,16 @@ void CLevioso::Late_Update(_float fTimeDelta)
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
- ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
- OnCollision(this, &CollisionInfo);
+ if (false == m_bHit) {
+ _vector vStartPos = XMLoadFloat4(&m_vStartPos);
+ _vector vEndPos = XMLoadFloat4(&m_vEndPos);
+ if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
+ {
+ ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
+ OnCollision(this, &CollisionInfo);
+ }
+ }
}
__super::Late_Update(fTimeDelta);
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 93555fdba..8190256a0 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -33,7 +33,7 @@
#include "Player.h"
#include "Human_Duelist.h"
-#include "PlayerRobe.h"
+//#include "PlayerRobe.h"
#include "Goblin.h"
#include "Goblin_Mage.h"
#include "Goblin_Assassin.h"
@@ -45,11 +45,7 @@
#include "BroomRacerAI.h"
#include "Ranrok.h"
#include "RandomNpc.h"
-
-#ifdef _DEBUG
-#include "Camera_Model.h"
-#endif // _DEBUG
-
+#include "Elf.h"
#pragma endregion
@@ -308,7 +304,7 @@ unsigned int APIENTRY LoadingMain(void* pArg)
HRESULT CLoader::Initialize(LEVEL eNextLevelID)
{
m_eNextLevelID = eNextLevelID;
-
+////
m_pGameInstance->EnqueueJob(&LoadingMain, this);
return S_OK;
@@ -488,7 +484,7 @@ HRESULT CLoader::Loading_For_GamePlay()
isLoad_Background = true;
isLoad_Hogwart = false;
isLoad_UI_SEQUANTIAL = false;
- isLoad_NPC = true;
+ isLoad_NPC = false;
isLoad_Monster = true;
#endif //
#ifdef 나
@@ -506,6 +502,7 @@ HRESULT CLoader::Loading_For_GamePlay()
#pragma region MAP_MODELS
vector*>> jobMapModels;
+ vector*>> jobCharacterModels = {};
vector*>> jobMapShaders;
{
{ /* Terrain */
@@ -1140,6 +1137,204 @@ HRESULT CLoader::Loading_For_GamePlay()
}
}
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixIdentity(),
+ TEXT("Prototype_Component_Box")
+ ));
+
+#pragma region ACTOR
+
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(),
+ TEXT("Prototype_Component_Playable_Model")
+ ));
+ if (true == isLoad_NPC) {
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Npc_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ 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(),
+ TEXT("Prototype_Component_GerboldOlivander_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Professor_EleazarFig_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_VictorRookWood_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_ChiyoKogawa_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_MatildaWeasely_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_SatyavatiShah_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Ghost_Peeves_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_M_Student_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_PhineasBlack_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_F_Student_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Elf_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Kitchen_Female_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_BaiHowin_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_GeorgeOsric_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_DinahHecat_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_MudiwaOnai_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ 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(),
+ TEXT("Prototype_Component_GerboldOlivander_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(),
+ TEXT("Prototype_Component_Professor_EleazarFig_Model")
+ ));
+ }
+ if (true == isLoad_Monster) {
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Goblin_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin_Mage/GoblinMage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Goblin_Mage_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Goblin_Spector_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Goblin_Assassin_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Troll_Model")
+ ));
+ jobCharacterModels.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_Ranrok_Model")
+ ));
+ }
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/Camera.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Camera_Model")
+ ));
+#pragma endregion
+
+#pragma region ITEM
+
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/SK_Wands_Amit.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Wand_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::NONANIM, "../Bin/Resources/Models/Object/Potion/SM_Bottle_EmptyCapOff.bin", XMMatrixIdentity(),
+ TEXT("Prototype_Component_Potion_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::NONANIM, "../Bin/Resources/Models/Object/RaceRing/SM_BRR_RaceRing_01.bin", XMMatrixRotationX(XMConvertToRadians(90.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_RaceRing_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Broom_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/MoonTrimmerBroom/SK_MoonTrimmerBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_SK_MoonTrimmerBroom_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_DarkWizardBroom_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/WildFireBroom/WildFireBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_WildFireBroom_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Troll_Weapon_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::NONANIM, "../Bin/Resources/Models/Object/Troll_Rock/VFX_SM_Rock_01.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Troll_Rock_Big_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Dagger/SK_WPN_GOB_SmallSword.bin", XMMatrixIdentity(),
+ TEXT("Prototype_Component_Goblin_Dagger_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword_L.bin", XMMatrixIdentity(),
+ TEXT("Prototype_Component_Goblin_Sword_L_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword_R.bin", XMMatrixIdentity(),
+ TEXT("Prototype_Component_Goblin_Sword_R_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_BattleAxe/SK_WPN_GOB_BattleAxe01.bin", XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Goblin_BattleAxe_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity(),
+ TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity(),
+ TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin", XMMatrixIdentity(),
+ TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_ThestralCarriage_Model")
+ ));
+ jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.bin", XMMatrixIdentity(),
+ TEXT("Prototype_Component_SkyboxModel")
+ ));
+
+#pragma endregion
+
#ifndef 진우
#pragma region SHADER
@@ -1176,8 +1371,21 @@ HRESULT CLoader::Loading_For_GamePlay()
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements));
}
+ {
+ m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
+ _uint iIndex = 0;
+ for (auto& JobMapShader : jobMapShaders)
+ {
+ pair<_wstring, CShader*>* pOut = JobMapShader.get();
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) {
+ return E_FAIL;
+ }
+ Safe_Delete(pOut);
+ }
+ }
#pragma endregion
#endif
+
/* LAND_MODEL */
{
/* For.Prototype_Component_South_Hogwart_Land_LOD1 */
@@ -2230,7 +2438,7 @@ HRESULT CLoader::Loading_For_GamePlay()
Desc1.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
Desc1.vMatInfo = { 0.5f, 0.5f, 0.6f };
Desc1.fContactOffset = { 0.05f };
- Desc1.vhalfGeometryInfo = { 2.f, 2.f, 2.f };
+ Desc1.vhalfGeometryInfo = { 2.34f, 2.34f, 2.34f };
Desc1.fDensity = 1.f;
Desc1.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
Desc1.eLockFlag = {};
@@ -2309,252 +2517,19 @@ HRESULT CLoader::Loading_For_GamePlay()
Desc.vMatInfo = { 0.5f, 0.5f, 0.1f };
Desc.fContactOffset = { 0.05f };
Desc.vhalfGeometryInfo = { 0.5f, 1.f, 0.01f };
- Desc.fDensity = 100.f;
+ Desc.fDensity = 10.f;
PSX::PxTransform pxPivotTransform = PSX::PxTransform(PSX::PxVec3(0.f, 1.f, 0.f));
Desc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
Desc.vLocalTranslation = { 0.5f, 1.375f, 0.f };
Desc.pxMassCenter = pxPivotTransform;
- Desc.vAutoDamping = { 10.f, 10.f };
+ Desc.vAutoDamping = { 5.f, 5.f };
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_DOOR"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
return E_FAIL;
}
}
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Box"),
- CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
-#pragma region ACTOR
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
- return E_FAIL;
- }
- if (true == isLoad_NPC) {
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Npc_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- 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)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Professor_EleazarFig_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VictorRookWood_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_ChiyoKogawa_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_MatildaWeasely_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_SatyavatiShah_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ghost_Peeves_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_PhineasBlack_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_Student_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_F_Student_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Elf_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Kitchen_Female_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_BaiHowin_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GeorgeOsric_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_DinahHecat_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_MudiwaOnai_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
- }
- if (true == isLoad_Monster) {
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Mage_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin_Mage/GoblinMage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Spector_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
- return E_FAIL;
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
- 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)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Professor_EleazarFig_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ghost_Peeves_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Spector_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
- return E_FAIL;
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_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;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Camera_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/Camera.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
- }
-#pragma endregion
-
-#pragma region ITEM
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Wand_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/SK_Wands_Amit.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Potion_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Potion/SM_Bottle_EmptyCapOff.bin", XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_RaceRing_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/RaceRing/SM_BRR_RaceRing_01.bin", XMMatrixRotationX(XMConvertToRadians(90.f)) * XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Broom_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_SK_MoonTrimmerBroom_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/MoonTrimmerBroom/SK_MoonTrimmerBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_DarkWizardBroom_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_WildFireBroom_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/WildFireBroom/WildFireBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Weapon_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Rock_Big_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Troll_Rock/VFX_SM_Rock_01.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Dagger_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Dagger/SK_WPN_GOB_SmallSword.bin", XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Sword_L_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword_L.bin", XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Sword_R_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword_R.bin", XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_BattleAxe_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_BattleAxe/SK_WPN_GOB_BattleAxe01.bin", XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin", XMMatrixIdentity()))))
- return E_FAIL;
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_ThestralCarriage_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
- return E_FAIL;
-
-
-#pragma endregion
-
- if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CPlayerRobe::Create(m_pDevice, m_pContext)))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_CCL_CameraRig.001_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/CCL_CameraRig.001.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
- return E_FAIL;
-
- /* For.Prototype_Component_SkyboxModel */
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SkyboxModel"),
- CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.bin", XMMatrixIdentity()))))
- return E_FAIL;
-
-
m_strMessage = TEXT("이펙트를(을) 로딩 중 입니다.");
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTrail::Create(m_pDevice, m_pContext)))) {
@@ -3647,7 +3622,7 @@ HRESULT CLoader::Loading_For_GamePlay()
/* For.Prototype_Component_FloatingBalloon */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_FloatingBalloon"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.bin"))))
+ CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.bin"))))
return E_FAIL;
/* For.Prototype_Component_Hogwart_Lake */
@@ -3809,13 +3784,10 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
-#ifdef _DEBUG
- if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamera_Model::Create(m_pDevice, m_pContext)))) {
+ /* For.Prototype_GameObject_Elf */
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CElf::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
-#endif // _DEBUG
-
-
#pragma endregion
@@ -3908,11 +3880,7 @@ HRESULT CLoader::Loading_For_GamePlay()
}
-
-/* 쉐이더 로딩 종료 이후 로딩*/
-
#pragma region RECEIVE_THREAD
-
{ // MapModels
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
_uint iIndex = 0;
@@ -3937,20 +3905,18 @@ HRESULT CLoader::Loading_For_GamePlay()
}
}
-
{
- m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
- _uint iIndex = 0;
- for (auto& JobMapShader : jobMapShaders)
- {
- pair<_wstring, CShader*>* pOut = JobMapShader.get();
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) {
+ for (auto& job : jobCharacterModels) {
+ pair<_wstring, CModel*>* pResult = job.get();
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pResult->first, pResult->second))) {
+ assert(false);
return E_FAIL;
}
- Safe_Delete(pOut);
+ Safe_Delete(pResult);
}
}
+
#pragma endregion
m_strMessage = TEXT("정보를 불러오는 중입니다.");
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Chest_Lid.cpp b/Jusin154_Team3D/Client/Private/MapElement_Chest_Lid.cpp
index 3f90bbb64..cd1d54fd5 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Chest_Lid.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Chest_Lid.cpp
@@ -36,7 +36,7 @@ HRESULT CMapElement_Chest_Lid::Initialize(void* pArg)
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
- m_fOpenDuration = 0.1f;
+ m_fOpenDuration = 0.3f;
m_fRotationAngle = pDesc->fRotaitionAngle;
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vLid_Offset), 1.f));
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Door.cpp b/Jusin154_Team3D/Client/Private/MapElement_Door.cpp
index e539ed59b..1c8c4e357 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Door.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Door.cpp
@@ -271,7 +271,7 @@ void CMapElement_Door::Free()
#ifdef _DEBUG
void CMapElement_Door::Describe_Entity()
{
- GUI::Begin("PhysX");
+ GUI::Begin("PhysX", 0, IMGUI_GLOBAL_BEGIN_FLAG);
if (GUI::CollapsingHeader("Door")) {
GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
GUI::Text("m_vKinematicTimer %.3f", m_vKinematicTimer.x);
diff --git a/Jusin154_Team3D/Client/Private/MapInfo.cpp b/Jusin154_Team3D/Client/Private/MapInfo.cpp
index 33f3553c6..1aca396d4 100644
--- a/Jusin154_Team3D/Client/Private/MapInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/MapInfo.cpp
@@ -18,6 +18,7 @@
#include "InstancedProp_Light.h"
#include "Layer.h"
#include "EffectParts.h"
+#include "RandomNpc.h"
CMapInfo::CMapInfo()
{
@@ -853,6 +854,47 @@ HRESULT CMapInfo::Load_DADA_INT()
return S_OK;
}
+HRESULT CMapInfo::Load_Npc()
+{
+ tinyxml2::XMLDocument xmlDoc;
+
+ string strPath = "../Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml";
+
+ if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
+ return E_FAIL;
+
+ tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("NPC");
+
+ if (nullptr == root)
+ {
+ MSG_BOX("Failed to Find root");
+ return S_OK;
+ }
+
+ for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
+ {
+ CRandomNpc::NPCDESC NPCDesc{};
+ Object->QueryIntAttribute("Index", &NPCDesc.iIndex);
+ /* Transform */
+ auto* Position = Object->FirstChildElement("Position");
+ Position->QueryFloatAttribute("x", &NPCDesc.vPos.x);
+ Position->QueryFloatAttribute("y", &NPCDesc.vPos.y);
+ Position->QueryFloatAttribute("z", &NPCDesc.vPos.z);
+ NPCDesc.vPos.w = 1.f;
+
+ auto* Rotation = Object->FirstChildElement("Rotation");
+ Rotation->QueryFloatAttribute("x", &NPCDesc.vRotQ.x);
+ Rotation->QueryFloatAttribute("y", &NPCDesc.vRotQ.y);
+ Rotation->QueryFloatAttribute("z", &NPCDesc.vRotQ.z);
+ NPCDesc.vRotQ.w = 1.f;
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_NPC, &NPCDesc))) {
+ return E_FAIL;
+ }
+ }
+
+ return S_OK;
+}
+
HRESULT CMapInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
{
m_pGameInstance = CGameInstance::GetInstance();
diff --git a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp
index c2232d956..1621040f8 100644
--- a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp
@@ -147,9 +147,15 @@ HRESULT CMonsterInfo::Refresh_LockOnMonsters()
{
// (카메라의 룩)과 (카메라 -> 몬스터 방향 벡터)를 내적해서 가장 큰 크기가 나온 몬스타가 락온 대상
CMonster* pMonster = (*iter);
- if (pMonster->Get_Hp().x <= 0) {
- continue;
+
+ CStat*pStat = pMonster->Get_Component();
+
+ if (pStat != nullptr) {
+ if (pMonster->Get_Hp().x <= 0) {
+ continue;
+ }
}
+
vMonsterPos = pMonster->Get_LockOnPos();
vToMonsterDir = vMonsterPos - vCameraPos;
if (40.f <= XMVectorGetX(XMVector4Length(vToMonsterDir))) {
diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp
index 9456e9d98..e4b3106b1 100644
--- a/Jusin154_Team3D/Client/Private/NomalJap.cpp
+++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp
@@ -130,9 +130,16 @@ void CNomalJap::Late_Update(_float fTimeDelta)
if (false == m_bHit) {
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = m_pProjectile->Get_WorldPostion();
- ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
- OnCollision(this, &CollisionInfo);
+ if (false == m_bHit) {
+ _vector vStartPos = XMLoadFloat4(&m_vStartPos);
+ _vector vEndPos = XMLoadFloat4(&m_vEndPos);
+ if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
+ {
+ ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
+ OnCollision(this, &CollisionInfo);
+ }
+ }
}
__super::Late_Update(fTimeDelta);
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index 2ac3e9fd3..5113f46d7 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -15,7 +15,6 @@
#include "MapElement_Interactable.h"
#include "Monster.h"
#include "TimeSocket.h"
-#include "PlayerRobe.h"
#include "RaceRing.h"
#include "Wand.h"
#include "Mesh.h"
@@ -255,7 +254,9 @@ HRESULT CPlayer::Render()
}
}
#ifdef _DEBUG
- Render_CameraCoordinateSystem();
+#ifdef 기무리
+ //Render_CameraCoordinateSystem();
+#endif // 기무리
//m_pCharacter_Controller->Render();
#endif // _DEBUG
@@ -394,6 +395,12 @@ void CPlayer::Set_Interaction(_bool bInteraction)
m_bCurrentInteraction = bInteraction;
}
+void CPlayer::ExitBattle()
+{
+ m_bDuel_ZOnlyMove = false;
+ m_pCharacter_Controller->Set_Position(XMLoadFloat4(&m_OriginPos));
+}
+
HRESULT CPlayer::Render_Shadow(SHADOW eType)
{
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
@@ -419,16 +426,8 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType)
if (FAILED(Bind_ShaderParameters(i))) {
return E_FAIL;
}
- if (i == ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)) {
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW_LEGACY)))) {
- return E_FAIL;
- }
-
- }
- else {
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) {
- return E_FAIL;
- }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) {
+ return E_FAIL;
}
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
@@ -513,14 +512,29 @@ void CPlayer::Trigger(CTimeSocket& Socket)
m_pCharacter_Controller->Set_Position(vNewPos);
m_pTransformCom->RotationQ(pContents->pxTransform.q);
m_pTransformCom->RewindMomentum();
- }
- break;
+ } break;
case TIMESOCKET_FUNC::TRANSLATION_LERP:
{
} break;
case TIMESOCKET_FUNC::SET_ANIMSTATE:
{
+ } break;
+ case TIMESOCKET_FUNC::SET_FSMSTATE:
+ {
+ if (pContents->vFlags.b[0]) {
+ m_pFSM->Change_State(FSMSTATE::CUTSCENE);
+ }
+ else if (pContents->vFlags.b[1]) {
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ }
+ } break;
+ case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX:
+ {
+
+ } break;
+ case TIMESOCKET_FUNC::UNBIND_SOCKET_MATRIX:
+ {
} break;
default:
@@ -631,6 +645,10 @@ HRESULT CPlayer::Ready_Components()
return E_FAIL;
}
m_pCharacter_Controller->SetGravity(false);
+ m_pCharacter_Controller->Set_GravityAmount(1.2f);
+#ifdef _DEBUG
+ m_pCharacter_Controller->Set_Name("CCT_PLAYER");
+#endif // _DEBUG
}
{ // DO
@@ -734,80 +752,21 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
_float fMixerFactor = { FLT_MAX };
_uint iColorMixerMethod = { 0 };
- switch (PLAYER_MESH_ORDER(iMeshOrder))
+ switch (CPlayer::PLAYER_MESH_ORDER(iMeshOrder))
{
- case PLAYER_MESH_ORDER::HAIR_MAIN:
- case PLAYER_MESH_ORDER::HEAD_EYELASH:
- case PLAYER_MESH_ORDER::HAIR_SUB:
+ case CPlayer::PLAYER_MESH_ORDER::HAIR_MAIN:
+ case CPlayer::PLAYER_MESH_ORDER::EYELASH:
bUseColorMixer = true;
iColorParam = 0x2E2E2E;
fMixerFactor = 0.9f;
iColorMixerMethod = 1;
break;
- case PLAYER_MESH_ORDER::LOWER:
+ case CPlayer::PLAYER_MESH_ORDER::CLOTH:
bUseColorMixer = true;
iColorParam = 0x292557;
fMixerFactor = 0.5f;
iColorMixerMethod = 1;
break;
- case PLAYER_MESH_ORDER::SHOES:
- bUseColorMixer = true;
- iColorParam = 0x614242;
- fMixerFactor = 0.5f;
- iColorMixerMethod = 1;
- break;
- case PLAYER_MESH_ORDER::UPPER:
- bUseColorMixer = true;
- iColorParam = 0xBFAC29;
- fMixerFactor = 0.658333f;
- iColorMixerMethod = 1;
- break;
-//#ifdef 기무리
-//
-// case PLAYER_MESH_ORDER::ROBE_CLOTH:
-// {
-// CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH));
-// _uint MeshBoneCount = pMesh->Get_NumBone();
-//
-// for (_uint i = 0; i < MeshBoneCount; ++i)
-// {
-// XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity());
-// }
-//
-// _uint temp = 0;
-// vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH));
-// vector<_int> boneIndices = pMesh->Get_BoneIndices();
-//
-// for (_uint i = 0; i < MeshBoneCount; ++i)
-// {
-// _uint global = boneIndices[i];
-// if (global == 38)
-// continue;
-// if (globalMask[global] == 1)
-// {
-// SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++);
-// }
-// }
-//
-// GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f);
-//
-// if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) {
-// return E_FAIL;
-// }
-//
-//
-// if (FAILED(m_pShaderCom->Bind_Matrices(
-// "g_BoneMatrices",
-// SkinMatrices.data(),
-// (_int)SkinMatrices.size()
-// )))
-// {
-// return E_FAIL;
-// }
-// }
-// break;
-//#endif // _DEBUG
-
default:
break;
}
@@ -976,7 +935,7 @@ void CPlayer::Free()
{
__super::Free();
- SAFE_RELEASE(m_pRobePart);
+ //SAFE_RELEASE(m_pRobePart);
SAFE_RELEASE(m_pGrapInteractive);
if (nullptr != m_pInfoInstance) {
@@ -1155,12 +1114,9 @@ void CPlayer::Describe_Entity()
m_pLightCom->Describe_Entity();
- for (_int i = 0; i < m_pModelCom->Get_AnimSize(); i++)
- {
- if (GUI::Button(m_pModelCom->Get_AnimList(i)))
- {
- m_pModelCom->Set_AnimationIndex(i);
- }
+ if (GUI::TreeNode("PLAYER_ANIMLIST")) {
+ m_pModelCom->Describe_Entity();
+ GUI::TreePop();
}
}
GUI::End();
diff --git a/Jusin154_Team3D/Client/Private/PlayerRobe.cpp b/Jusin154_Team3D/Client/Private/PlayerRobe.cpp
index 9e0897e11..70e741d78 100644
--- a/Jusin154_Team3D/Client/Private/PlayerRobe.cpp
+++ b/Jusin154_Team3D/Client/Private/PlayerRobe.cpp
@@ -345,7 +345,7 @@ HRESULT CPlayerRobe::Update_RobeJoints()
void CPlayerRobe::Describe_Entity()
{
- GUI::Begin("PhysX");
+ GUI::Begin("PhysX", 0, IMGUI_GLOBAL_BEGIN_FLAG);
if (GUI::CollapsingHeader("Robe")) {
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_ORDER::END); ++i) {
_uint iActor0 = i;
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index ea61ec1d1..6c7430f83 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -9,6 +9,7 @@
#include "CamPosition_Arm.h"
#include "State_CutScene.h"
#include "Wand.h"
+#include "ThestralCarriage.h"
#include "Item_Potion.h"
#include "Character_Controller.h"
#include "MapElement_Interactable.h"
@@ -382,7 +383,7 @@ void CPlayer::Behavior_CutSceneEnter()
m_bSprintToggle = false;
m_bWalkToggle = false;
- pairAnimInfo = m_Animation[STATEANIM::CUTSCENE_OPENINGINTRO2];
+ pairAnimInfo = m_Animation[STATEANIM::CUTSCENE_OPENINGINTRO1];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_bOpeningCutScene = true;
}
@@ -391,16 +392,11 @@ HRESULT CPlayer::Behavior_CutSceneExitCheck(_float fTimeDelta)
{
if (m_bOpeningCutScene)
{
- //_vector Offset = XMVectorSet(1.820f, 0.44f, 0.f, 0.f);
- //m_pTransformCom->Set_WorldMatrix(m_pCarriage->Get_Component()->Get_XMWorldMatrix());
- m_pCharacter_Controller->Set_Position(m_pCarriage->Get_WorldPostion() /*+ Offset*/);
+ m_pTransformCom->Set_State(STATE::POSITION, m_pCarriage->Get_SocketWorldMatrix(CThestralCarriage::CARRIAGE_SOCKET::FRONT_RIGHT).r[3]);
+ m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION));
+ m_pTransformCom->RotationQ(XMQuaternionRotationAxis(XMVectorSet(0.f, -1.f, 0.f, 0.f), XMConvertToRadians(90.f)));
}
- /*if (m_pCarriage->Get_Component()->IsFinishedAnim())
- {
- m_pFSM->Change_State(FSMSTATE::IDLE);
- return E_FAIL;
- }*/
return S_OK;
}
@@ -1120,7 +1116,6 @@ void CPlayer::Behavior_CombatEnter()
0.1f);
}
}
-
}
HRESULT CPlayer::Behavior_CombatExitCheck()
@@ -1473,8 +1468,7 @@ void CPlayer::Behavior_SpellEnter()
0.01f);
}
Add_SpellEvent(pairAnimInfo.first, fRatio);
- if (m_eSpell != ENUM_CLASS(SKILL_TYPE::LUMOS) &&
- m_eSpell != ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA))
+ if (!m_bStartSpellAnim)
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, fAnimSpeed);
}
@@ -1482,8 +1476,7 @@ void CPlayer::Behavior_SpellEnter()
fRatio = 0.2f;
pairAnimInfo = m_Animation[STATEANIM::SPELL];
Add_SpellEvent(pairAnimInfo.first, fRatio);
- if (m_eSpell != ENUM_CLASS(SKILL_TYPE::LUMOS) &&
- m_eSpell !=ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA))
+ if (!m_bStartSpellAnim)
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
}
@@ -1505,7 +1498,7 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
_uint iIndex = m_pModelCom->Get_AnimIndex();
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
- if (SUCCEEDED(InputSpell()) && !m_bSpellHit)
+ if (SUCCEEDED(InputSpell()) && !m_bSpellHit && iIndex != m_Animation[STATEANIM::AVADA_KEDAVRA].first)
{
_uint iCurr = m_pModelCom->Get_AnimIndex();
_uint iStart = m_Animation[STATEANIM::SPELL].first;
@@ -1625,7 +1618,7 @@ void CPlayer::Behavior_SpellExit()
Reset_Event();
m_bLookAt = false;
m_bSpellHit = false;
-
+ m_bStartSpellAnim = false;
}
void CPlayer::Behavior_AncientSpellEnter()
@@ -2885,6 +2878,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
switch (m_eSpell)
{
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
+ m_bStartSpellAnim = false;
Add_Event(AnimIndex,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this); }, /* 임시로 바꿔놓음 */
fRatio);
@@ -2896,6 +2890,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
break;
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
+ m_bStartSpellAnim = false;
Add_Event(AnimIndex,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO, Get_PartObject()); },
fRatio);
@@ -2907,6 +2902,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
break;
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
+ m_bStartSpellAnim = false;
Add_Event(AnimIndex,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this); },
fRatio);
@@ -2918,7 +2914,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
break;
case ENUM_CLASS(SKILL_TYPE::ACCIO):
-
+ m_bStartSpellAnim = false;
Add_Event(AnimIndex,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::ACCIO, this); },
fRatio);
@@ -2931,6 +2927,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
break;
case ENUM_CLASS(SKILL_TYPE::TRANSFORMATION):
+ m_bStartSpellAnim = false;
Add_Event(AnimIndex,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::TRANSFORMATION, this); },
fRatio);
@@ -2941,19 +2938,8 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
Info.pText = TEXT("베라베르토!");
m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
break;
-
- case ENUM_CLASS(SKILL_TYPE::DIFFINDO):
- pairAnimInfo = m_Animation[STATEANIM::DIFFINDO];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
- Info.pText = TEXT("디핀도!");
- m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
- 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::AVADAKEDAVRA):
+ m_bStartSpellAnim = true;
m_pInfoInstance->Set_SearchLockOnFlag(false);
pairAnimInfo = m_Animation[STATEANIM::AVADA_KEDAVRA];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false,1.f,true);
@@ -2975,6 +2961,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
break;
case ENUM_CLASS(SKILL_TYPE::REPARO):
{
+ m_bStartSpellAnim = true;
pairAnimInfo = m_Animation[STATEANIM::REPARO_START];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
@@ -2992,6 +2979,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
}
break;
case ENUM_CLASS(SKILL_TYPE::LUMOS):
+ m_bStartSpellAnim = true;
if (m_pModelCom->Get_SecondAnimIndex() != m_Animation[STATEANIM::LUMOS].first)
{
if (SUCCEEDED(InputMove()))
@@ -3038,6 +3026,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
}
break;
default:
+ m_bStartSpellAnim = true;
pairAnimInfo = m_Animation[STATEANIM::SPELL_FAIL];
Add_Event(AnimIndex,
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::WAND_END, Get_PartObject()); },
diff --git a/Jusin154_Team3D/Client/Private/Protego.cpp b/Jusin154_Team3D/Client/Private/Protego.cpp
index 851ee14c1..0ab2b647d 100644
--- a/Jusin154_Team3D/Client/Private/Protego.cpp
+++ b/Jusin154_Team3D/Client/Private/Protego.cpp
@@ -131,6 +131,12 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
return S_OK;
}
+void CProtego::Set_Visible(_bool bVisible)
+{
+ m_bVisible = true;
+ m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), CURRENT_LEVEL);
+}
+
HRESULT CProtego::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
@@ -199,8 +205,7 @@ void CProtego::OnCollision(CGameObject* pOther, void* pDesc)
static_cast(m_pOwner)->Start_CameraShake(0.3f, 2.f);
- m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
-
+ m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
m_bVisible = false;
}
diff --git a/Jusin154_Team3D/Client/Private/RandomNpc.cpp b/Jusin154_Team3D/Client/Private/RandomNpc.cpp
index 4f7fd24f7..ea10874a5 100644
--- a/Jusin154_Team3D/Client/Private/RandomNpc.cpp
+++ b/Jusin154_Team3D/Client/Private/RandomNpc.cpp
@@ -40,9 +40,10 @@ HRESULT CRandomNpc::Initialize(void* pArg)
_vector vPos = XMLoadFloat4(&pDesc->vPos);
m_pTransformCom->Set_State(STATE::POSITION, vPos);
m_pCharacter_Controller->Set_Position(vPos);
- m_pTransformCom->Rotation(XMLoadFloat4(&pDesc->vRotQ));
+ m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotQ.x), XMConvertToRadians(pDesc->vRotQ.y), XMConvertToRadians(pDesc->vRotQ.z));
- m_pModelCom->Set_AnimationIndex(0, true);
+ _int iRandom = m_pGameInstance->Real_Random_Int(0, 12);
+ m_pModelCom->Set_AnimationIndex(iRandom, false);
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller);
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller);
m_bNpc = true;
@@ -67,8 +68,18 @@ void CRandomNpc::Update(_float fTimeDelta)
if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) {
return;
}
+
BattleObserve_Anim();
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ if (false == m_bBattle)
+ {
+ _int iRandom = m_pGameInstance->Real_Random_Int(0, 12);
+ m_pModelCom->Set_AnimationIndex(iRandom, false, 1.f, false, 1.f, false);
+ }
+ }
+
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
__super::Update(fTimeDelta);
#ifdef _DEBUG
@@ -91,28 +102,6 @@ void CRandomNpc::Update(_float fTimeDelta)
SAFE_RELEASE(m_pTarget);
m_fTargetDistance = { FLT_MAX };
}
-
- /*if (m_fTargetDistance <= 5.f && m_bInteract == false)
- {
- m_pInfoInstance->Event_CallBack(TEXT("NPCDialogue"), m_pNpcStat);
- m_bInteract = true;
- }
-
- if (m_bInteract != m_bPreviousInteract)
- {
- m_bPreviousInteract = m_bInteract;
- m_fInteractTime = 0.f;
- }
- else
- {
- m_fInteractTime += fTimeDelta;
- }
-
- if (m_fInteractTime >= 5.f)
- {
- m_bInteract = false;
- m_fInteractTime = 0.f;
- }*/
}
void CRandomNpc::Late_Update(_float fTimeDelta)
@@ -320,7 +309,7 @@ HRESULT CRandomNpc::Ready_Components(void* pArg)
Desc.fRotationPerSec = XMConvertToRadians(180.0f);
Desc.fRadius = 10.f;
- if (FAILED(Add_Component(g_iStaticLevel, &m_pTransformCom, pArg))) {
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pTransformCom, &Desc))) {
return E_FAIL;
}
@@ -363,33 +352,27 @@ HRESULT CRandomNpc::Ready_Components(void* pArg)
return E_FAIL;
}
m_bBattleObserve_Npc = true;
- break;
+ break;
case 6:
- m_strModelPrototypeTag = TEXT("Prototype_Component_Elf_Model");
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("ELF"), (CComponent**)&m_pNpcStat))) {
- return E_FAIL;
- }
- break;
- case 7:
m_strModelPrototypeTag = TEXT("Prototype_Component_BaiHowin_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("BAIHOWIN"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
- case 8:
+ case 7:
m_strModelPrototypeTag = TEXT("Prototype_Component_GeorgeOsric_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("GEORGEOSRIC"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
m_bBattleObserve_Npc = true;
break;
- case 9:
+ case 8:
m_strModelPrototypeTag = TEXT("Prototype_Component_DinahHecat_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("DINAHHECAT"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
- case 10:
+ case 9:
m_strModelPrototypeTag = TEXT("Prototype_Component_MudiwaOnai_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("MUDIWAONAI"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
@@ -450,15 +433,15 @@ void CRandomNpc::BattleObserve_Anim()
_float fRandX = 0.f;
if (iRand == 0)
{
- fRandX = m_pGameInstance->Real_Random_Float(1002.f, 1004.f);
+ fRandX = m_pGameInstance->Real_Random_Float(1003.f, 1005.f);
}
else {
- fRandX = m_pGameInstance->Real_Random_Float(1010.f, 1012.f);
+ fRandX = m_pGameInstance->Real_Random_Float(1009.f, 1011.f);
}
- _float fRandY = m_pGameInstance->Real_Random_Float(1008.f, 1016.f);
+ _float fRandZ = m_pGameInstance->Real_Random_Float(1008.f, 1016.f);
- m_pCharacter_Controller->Set_Position(XMVectorSet(fRandX, 2.f, fRandY, 1.f));
+ m_pCharacter_Controller->Set_Position(XMVectorSet(fRandX, 2.f, fRandZ, 1.f));
_vector vPos = Get_WorldPostion();
_vector vForward = XMVectorZero();
@@ -469,6 +452,8 @@ void CRandomNpc::BattleObserve_Anim()
vForward = XMVectorSet(-1.f, 0.f, 0.f, 0.f);
}
+ _int iRandIndex = m_pGameInstance->Real_Random_Int(14, 21);
+ m_pModelCom->Set_AnimationIndex(iRandIndex, false, 1.f, false, 1.f, false);
m_pTransformCom->LookAt(vPos + vForward);
@@ -480,7 +465,7 @@ void CRandomNpc::BattleObserve_Anim()
if (m_pModelCom->IsFinishedAnim())
{
_int iRand = m_pGameInstance->Real_Random_Int(14, 21);
- m_pModelCom->Set_AnimationIndex(iRand, false,1.f,false,1.f,false);
+ m_pModelCom->Set_AnimationIndex(iRand, false, 1.f, false, 1.f, false);
}
}
}
diff --git a/Jusin154_Team3D/Client/Private/ReparoObject.cpp b/Jusin154_Team3D/Client/Private/ReparoObject.cpp
index 94fef5cff..4d4282f25 100644
--- a/Jusin154_Team3D/Client/Private/ReparoObject.cpp
+++ b/Jusin154_Team3D/Client/Private/ReparoObject.cpp
@@ -8,13 +8,12 @@
#include "EffectParts.h"
CReparoObject::CReparoObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
- : CUnit(pDevice, pContext)
+ : CMonster(pDevice, pContext)
{
}
CReparoObject::CReparoObject(const CReparoObject& Prototype)
- : CUnit(Prototype),
- m_pInfoInstance(CInfoInstance::GetInstance())
+ : CMonster(Prototype)
{
}
@@ -39,6 +38,7 @@ HRESULT CReparoObject::Initialize(void* pArg)
m_pModelCom->Set_AnimationIndex(0);
+
return S_OK;
}
@@ -79,6 +79,10 @@ HRESULT CReparoObject::Render()
}
_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);
+ }
for (_uint i = 0; i < iNumMeshes; i++)
{
@@ -107,6 +111,78 @@ HRESULT CReparoObject::Render()
}
}
+ if (m_bDrawOutLine) {
+ Render_OutLine();
+ }
+
+ return S_OK;
+}
+
+HRESULT CReparoObject::Render_OutLine()
+{
+ m_bDrawOutLine = false;
+ if (FAILED(Bind_ShaderResources())) {
+ 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;
+ }
+
+ Compute_Depth();
+ _float fCamFar = *m_pGameInstance->Get_CurrentCameraFar();
+ _float fRatio = CMyTools::Saturate((m_fCamDepth / (fCamFar * fCamFar)));
+ m_fOutLineThickness = CMyTools::Lerp_f1D(0.024f, 0.5f, fRatio);
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vOutLineColor", &m_vOutLineColor, sizeof(_float3)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineThickness", &m_fOutLineThickness, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineScale", &m_fOutLineScale, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLinePower", &m_fOutLinePower, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) {
+ 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_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_READ)))) {
+ 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;
+ }
+ }
return S_OK;
}
@@ -118,7 +194,9 @@ HRESULT CReparoObject::Ready_Components()
Desc.fRotationPerSec = XMConvertToRadians(180.0f);
Desc.fRadius = 10.f;
- __super::Ready_Components(&Desc);
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pTransformCom, &Desc))) {
+ return E_FAIL;
+ }
/* Com_Model */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"),
@@ -132,7 +210,6 @@ HRESULT CReparoObject::Ready_Components()
return E_FAIL;
}
-
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Stupefy.cpp b/Jusin154_Team3D/Client/Private/Stupefy.cpp
index 400a2ee64..75a9bf618 100644
--- a/Jusin154_Team3D/Client/Private/Stupefy.cpp
+++ b/Jusin154_Team3D/Client/Private/Stupefy.cpp
@@ -94,9 +94,16 @@ void CStupefy::Late_Update(_float fTimeDelta)
if (false == m_bHit) {
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
- ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
- OnCollision(this, &CollisionInfo);
+ if (false == m_bHit) {
+ _vector vStartPos = XMLoadFloat4(&m_vStartPos);
+ _vector vEndPos = XMLoadFloat4(&m_vEndPos);
+ if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
+ {
+ ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
+ OnCollision(this, &CollisionInfo);
+ }
+ }
}
}
diff --git a/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp b/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp
index 251cb3500..7a595e639 100644
--- a/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp
+++ b/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp
@@ -5,12 +5,12 @@
#include "InfoInstance.h"
CThestralCarriage::CThestralCarriage(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
- : CGameObject(pDevice, pContext)
+ : CUnit(pDevice, pContext)
{
}
CThestralCarriage::CThestralCarriage(const CThestralCarriage& Prototype)
- : CGameObject(Prototype),
+ : CUnit(Prototype),
m_pInfoInstance(CInfoInstance::GetInstance())
{
}
@@ -31,8 +31,23 @@ HRESULT CThestralCarriage::Initialize(void* pArg)
return E_FAIL;
}
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-21.f, -5.759f, -14.f, 1.f));
+#ifdef _DEBUG
+ D3D11_RASTERIZER_DESC RSS_Desc = {};
+ RSS_Desc.FillMode = D3D11_FILL_WIREFRAME;
+ RSS_Desc.CullMode = D3D11_CULL_BACK;
+ RSS_Desc.FrontCounterClockwise = FALSE;
+ RSS_Desc.DepthClipEnable = TRUE;
+ RSS_Desc.AntialiasedLineEnable = TRUE;
+
+ m_pDevice->CreateRasterizerState(&RSS_Desc, &m_pRSS);
+
+
+#endif // _DEBUG
+
+
+ m_iAnimationIndex = 2;
+ m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
//vector> chain =
//{
// { 0, false },
@@ -42,7 +57,8 @@ HRESULT CThestralCarriage::Initialize(void* pArg)
//for (auto& anim : chain)
// m_pModelCom->Set_ChainAnimation(anim);
- m_pModelCom->Set_AnimationIndex(0);
+ m_iAnimationIndex = 0;
+ m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
m_pModelCom->IsRootBone(false);
//
//m_pModelCom->Start_ChainAnimation();
@@ -58,38 +74,8 @@ void CThestralCarriage::Priority_Update(_float fTimeDelta)
void CThestralCarriage::Update(_float fTimeDelta)
{
__super::Update(fTimeDelta);
-
- if (m_pGameInstance->Key_Up(DIK_U))
- {
- m_pModelCom->Set_AnimationIndex(1);
- m_pModelCom->IsRootBone(false);
- }
-
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
- //m_pModelCom->Update_ChainAnimation();
-
- _float4 RootMomentum = m_pModelCom->Get_RootBoneMomentum();
- _vector RootDelta = XMLoadFloat4(&RootMomentum);
-
- _vector vRight = m_pTransformCom->Get_State(STATE::RIGHT);
- _vector vUp = m_pTransformCom->Get_State(STATE::UP);
- _vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
-
-
- _float dx = XMVectorGetX(RootDelta);
- _float dy = XMVectorGetY(RootDelta);
- _float dz = XMVectorGetZ(RootDelta);
-
- _vector vWorldDelta =
- vRight * dx +
- vUp * dy +
- vLook * dz;
-
- _vector vPos = m_pTransformCom->Get_State(STATE::POSITION);
- m_pTransformCom->Set_State(STATE::POSITION, vPos + vWorldDelta);
-
-
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
@@ -101,7 +87,7 @@ void CThestralCarriage::Late_Update(_float fTimeDelta)
__super::Late_Update(fTimeDelta);
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
-
+ m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
}
HRESULT CThestralCarriage::Render()
@@ -113,37 +99,176 @@ HRESULT CThestralCarriage::Render()
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
+#ifdef _DEBUG
+ ID3D11RasterizerState* pOriginalRSS = { nullptr };
+ if (m_bRender_WireFrame) {
+ m_pContext->RSGetState(&pOriginalRSS);
+ }
+#endif // _DEBUG
+ RENDER ePass = m_pGameInstance->Get_CurrentRenderPass();
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
+ if (RENDER::NONBLEND == ePass) {
+ for (_uint i = 0; i < iNumMeshes; i++)
+ {
+ if (i == ENUM_CLASS(CARRIAGE_MESH_ORDER::WINDOWS)) {
+ continue;
+ }
+ if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
- for (_uint i = 0; i < iNumMeshes; i++)
- {
- if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ 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;
+ }
+#ifdef _DEBUG
+ if (m_bRender_WireFrame) {
+ m_pContext->RSSetState(m_pRSS);
+ }
+#endif // _DEBUG
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+ }
+ }
+ else if (RENDER::BLEND == ePass) {
+ if (FAILED(m_pModelCom->Bind_Material(1, m_pShaderCom))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrices(
"g_OffsetMatrix",
- m_pModelCom->Get_OffsetMatrix(i).data(),
- (_int)m_pModelCom->Get_OffsetMatrix(i).size()
+ m_pModelCom->Get_OffsetMatrix(1).data(),
+ (_int)m_pModelCom->Get_OffsetMatrix(1).size()
)))
{
return E_FAIL;
}
- if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
+ if (FAILED(m_pModelCom->Begin(1, m_pShaderCom))) {
return E_FAIL;
}
-
+#ifdef _DEBUG
+ if (m_bRender_WireFrame) {
+ m_pContext->RSSetState(m_pRSS);
+ }
+#endif // _DEBUG
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
- if (FAILED(m_pModelCom->Render(i))) {
+ if (FAILED(m_pModelCom->Render(1))) {
return E_FAIL;
}
}
+#ifdef _DEBUG
+ if (m_bRender_WireFrame) {
+ m_pContext->RSSetState(pOriginalRSS);
+ SAFE_RELEASE(pOriginalRSS);
+ }
+#endif // _DEBUG
+
return S_OK;
}
+void CThestralCarriage::Trigger(CTimeSocket& Socket)
+{
+ SOCKETCONTENTS* pContents = &Socket.m_Contents;
+ switch (pContents->eTypeFunc)
+ {
+ case TIMESOCKET_FUNC::TELEPORTATION:
+ {
+ m_pTransformCom->Set_WorldMatrix(pContents->pxTransform);
+ } break;
+ case TIMESOCKET_FUNC::TRANSLATION:
+ {
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f));
+ } break;
+ case TIMESOCKET_FUNC::TRANSLATION_LERP:
+ {
+
+ } break;
+ case TIMESOCKET_FUNC::SET_ANIMSTATE:
+ {
+
+ } break;
+ case TIMESOCKET_FUNC::SET_FSMSTATE:
+ {
+ // if (pContents->vFlags.b[0]) {
+ // m_iAnimationIndex = 0;
+ // m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
+ // m_pModelCom->IsRootBone(false);
+ // }
+ // else if (pContents->vFlags.b[1]) {
+ // m_iAnimationIndex = 1;
+ // m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
+ // m_pModelCom->IsRootBone(false);
+ // }
+ // else if (pContents->vFlags.b[2]) {
+ // m_iAnimationIndex = 2;
+ // m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
+ // m_pModelCom->IsRootBone(false);
+ // }
+ } break;
+ case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX:
+ {
+
+ } break;
+ case TIMESOCKET_FUNC::UNBIND_SOCKET_MATRIX:
+ {
+
+ } break;
+ default:
+ break;
+ }
+}
+
+_vector CThestralCarriage::Get_WorldPostion()
+{
+ return (XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_front_left")) * m_pTransformCom->Get_XMWorldMatrix()).r[3];
+}
+
+_matrix CThestralCarriage::Get_SeatMatrix()
+{
+ return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_front_left")) * m_pTransformCom->Get_XMWorldMatrix();
+}
+
+_matrix CThestralCarriage::Get_SocketWorldMatrix(CARRIAGE_SOCKET eSocket)
+{
+ switch (eSocket)
+ {
+ case CThestralCarriage::CARRIAGE_SOCKET::BACK:
+ return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("backSeat")) * m_pTransformCom->Get_XMWorldMatrix();
+ break;
+ case CThestralCarriage::CARRIAGE_SOCKET::BACK_LEFT:
+ return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_back_left")) * m_pTransformCom->Get_XMWorldMatrix();
+ break;
+ case CThestralCarriage::CARRIAGE_SOCKET::BACK_RIGHT:
+ return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_back_right")) * m_pTransformCom->Get_XMWorldMatrix();
+ break;
+ case CThestralCarriage::CARRIAGE_SOCKET::FRONT:
+ return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("frontSeat")) * m_pTransformCom->Get_XMWorldMatrix();
+ break;
+ case CThestralCarriage::CARRIAGE_SOCKET::FRONT_LEFT:
+ return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_front_left")) * m_pTransformCom->Get_XMWorldMatrix();
+ break;
+ case CThestralCarriage::CARRIAGE_SOCKET::FRONT_RIGHT:
+ return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_front_right")) * m_pTransformCom->Get_XMWorldMatrix();
+ break;
+ default:
+ return XMMatrixIdentity();
+ break;
+ }
+}
+
HRESULT CThestralCarriage::Ready_Components()
{
CTransform::TRANSFORM_DESC Desc = {};
@@ -192,7 +317,6 @@ HRESULT CThestralCarriage::Bind_ShaderResources()
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;
}
@@ -230,6 +354,9 @@ void CThestralCarriage::Free()
{
__super::Free();
+#ifdef _DEBUG
+ SAFE_RELEASE(m_pRSS);
+#endif // _DEBUG
SAFE_RELEASE(m_pModelCom);
SAFE_RELEASE(m_pShaderCom);
}
@@ -239,6 +366,8 @@ void CThestralCarriage::Describe_Entity()
{
GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
if (GUI::CollapsingHeader("Carriage")) {
+ m_pTransformCom->Describe_Entity();
+ m_pShaderCom->Describe_Entity();
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
GUI::Text(AnimList.c_str());
GUI::Text("AnimIndex %d", m_pModelCom->Get_AnimIndex());
@@ -251,6 +380,7 @@ void CThestralCarriage::Describe_Entity()
float Pos3[3] = { Pos.x, Pos.y, Pos.z };
GUI::DragFloat3("Pos", Pos3);
+ GUI::Checkbox("WireFrame", &m_bRender_WireFrame);
_float RotR, RotU, RotL;
RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT));
@@ -264,6 +394,7 @@ void CThestralCarriage::Describe_Entity()
{
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(m_pGameInstance->Get_CamPosition()->x, m_pGameInstance->Get_CamPosition()->y, m_pGameInstance->Get_CamPosition()->z, 1.f));
}
+ m_pModelCom->Describe_Entity();
}
GUI::End();
}
diff --git a/Jusin154_Team3D/Client/Private/Transformation.cpp b/Jusin154_Team3D/Client/Private/Transformation.cpp
index 200b7c895..38e694493 100644
--- a/Jusin154_Team3D/Client/Private/Transformation.cpp
+++ b/Jusin154_Team3D/Client/Private/Transformation.cpp
@@ -92,9 +92,16 @@ void CTransformation::Late_Update(_float fTimeDelta)
if (false == m_bHit) {
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
- ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
- OnCollision(this, &CollisionInfo);
+ if (false == m_bHit) {
+ _vector vStartPos = XMLoadFloat4(&m_vStartPos);
+ _vector vEndPos = XMLoadFloat4(&m_vEndPos);
+ if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
+ {
+ ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
+ OnCollision(this, &CollisionInfo);
+ }
+ }
}
}
diff --git a/Jusin154_Team3D/Client/Private/TriggerBox.cpp b/Jusin154_Team3D/Client/Private/TriggerBox.cpp
index 265b815b9..eb45ffbf4 100644
--- a/Jusin154_Team3D/Client/Private/TriggerBox.cpp
+++ b/Jusin154_Team3D/Client/Private/TriggerBox.cpp
@@ -1,86 +1,160 @@
#include "pch.h"
#include "TriggerBox.h"
+#include "Layer.h"
+#include "Player.h"
-CTriggerBox::CTriggerBox():
- m_pGameInstance(CGameInstance::GetInstance())
+CTriggerBox::CTriggerBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CGameObject(pDevice, pContext)
+{
+}
+
+CTriggerBox::CTriggerBox(const CTriggerBox& rhs)
+ : CGameObject(rhs)
{
- SAFE_ADDREF(m_pGameInstance);
}
HRESULT CTriggerBox::TryScanArea(_float fTimeDelta)
{
+#ifdef _DEBUG
+ if (false == m_bRender) {
+ m_bRender = true;
+ m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this);
+ }
+#endif // _DEBUG
m_vScanTimer.x += fTimeDelta;
if (m_vScanTimer.x > m_vScanTimer.y) {
- m_vScanTimer.x = m_vScanTimer.y;
+ m_vScanTimer.x = 0.f;
return Scan();
}
return E_FAIL;
}
+HRESULT CTriggerBox::Render()
+{
+#ifdef _DEBUG
+ m_Batch->Begin();
+
+ _matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
+ _matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
+ _vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0xff0f0f, CMyTools::Saturate(m_vScanTimer.x / m_vScanTimer.y + 0.1f));
+ m_pSubShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), ViewMatrix, ProjMatrix, vColor, nullptr, true);
+
+ m_Batch->End();
+ m_bRender = false;
+#endif // _DEBUG
+
+ return S_OK;
+}
+
HRESULT CTriggerBox::Initialize(TRIGGERBOX_DESC* pDesc)
{
- m_fRadius = pDesc->vPosition_Radius.w;
- m_vPosition = { pDesc->vPosition_Radius.x, pDesc->vPosition_Radius.y, pDesc->vPosition_Radius.z, 1.f };
+ CTransform::TRANSFORM_DESC Desc{};
+ Desc.fRadius = pDesc->vPosition_Radius.w;
+ Desc.fRotationPerSec = 0;
+ Desc.fSpeedPerSec = 0;
+ if (FAILED(__super::Ready_Components(&Desc))) {
+ return E_FAIL;
+ }
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat4(&pDesc->vPosition_Radius), 1.f));
+
+ m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, m_pTransformCom->Get_Radius() * 2.f, 12, false, false));
+ m_Batch = make_unique>(m_pContext);
+
+ m_vScanTimer.y += m_pGameInstance->Real_Random_Float(0.f, 0.2f);
+
return S_OK;
}
HRESULT CTriggerBox::Scan()
{
- PSX::PxSweepBuffer pxBuffer = {};
- _bool bHit = m_pGameInstance->SphereCast(m_fRadius, XMLoadFloat4(&m_vPosition), XMVectorSet(0.f, 1.f, 0.f, 0.f), 0.1f,
- PSX::PxHitFlag::ePOSITION, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
+ _float fRadius = m_pTransformCom->Get_Radius();
+
+ PSX::PxSweepHit hitBuffer[32];
+ PSX::PxSweepBuffer pxBuffer(hitBuffer, 32);
+ _bool bHit = m_pGameInstance->SphereCast(fRadius, m_pTransformCom->Get_State(STATE::POSITION), XMVectorSet(0.f, 1.f, 0.f, 0.f), 0.1f,
+ PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
const PSX::PxSweepHit & hit = pxBuffer.block;
PSX::PxRigidActor* pActor = hit.actor;
+ _uint iHitCount = pxBuffer.getNbAnyHits();
+ HRESULT hr = E_FAIL;
if (bHit) {
- if (nullptr != pActor && nullptr != pActor->userData)
- {
- PHYSX_USERDATA* pUserData = static_cast(pActor->userData);
- switch (pUserData->eKind)
- {
- case PHYSX_KIND::BODY_DYNAMIC:
- {
- switch (PXOBJECT(pUserData->iSubKind))
- {
- case PXOBJECT::PLAYER:
- {
- return S_OK;
- }break;
- default:
- break;
- }
- }break;
- case PHYSX_KIND::CCTActor:
- {
- switch (PXOBJECT(pUserData->iSubKind))
- {
- case PXOBJECT::PLAYER: {
- return S_OK;
- } break;
- default:
+ hr = CheckPlayerHit(pActor);
+ if (FAILED(hr)) {
+ for (_uint i = 0; i < iHitCount; ++i) {
+ PSX::PxSweepHit* pHit = &pxBuffer.touches[i];
+ hr = CheckPlayerHit(pHit->actor);
+ if (SUCCEEDED(hr)) {
break;
}
+ }
+ }
+ }
+ return hr;
+}
+
+HRESULT CTriggerBox::CheckPlayerHit(PSX::PxActor* pActor)
+{
+ if (nullptr != pActor && nullptr != pActor->userData)
+ {
+ PHYSX_USERDATA* pUserData = static_cast(pActor->userData);
+ switch (pUserData->eKind)
+ {
+ case PHYSX_KIND::BODY_DYNAMIC:
+ {
+ switch (PXOBJECT(pUserData->iSubKind))
+ {
+ case PXOBJECT::PLAYER:
+ {
+ return S_OK;
+ }break;
+ default:
+ break;
+ }
+ }break;
+ case PHYSX_KIND::CCTActor:
+ {
+ switch (PXOBJECT(pUserData->iSubKind))
+ {
+ case PXOBJECT::PLAYER: {
+ return S_OK;
} break;
default:
break;
}
+ } break;
+ default:
+ break;
}
}
- return E_FAIL;
+ return E_FAIL;
}
-CTriggerBox* CTriggerBox::Create(TRIGGERBOX_DESC* Desc)
+CTriggerBox* CTriggerBox::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, TRIGGERBOX_DESC* Desc)
{
- CTriggerBox* pInstance = new CTriggerBox();
-
- if (FAILED(pInstance->Initialize(Desc))) {
- SAFE_RELEASE(pInstance);
- }
- return pInstance;
+ CTriggerBox* pInstance = new CTriggerBox(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize(Desc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
}
void CTriggerBox::Free()
{
__super::Free();
- SAFE_RELEASE(m_pGameInstance);
+}
+
+HRESULT CTriggerBox::Bind_ShaderResources()
+{
+ return E_NOTIMPL;
+}
+
+CGameObject* CTriggerBox::Clone(void* pArg, CGameObject* pOwner)
+{
+ return nullptr;
+}
+
+void CTriggerBox::Describe_Entity()
+{
}
diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
index 9cde886a1..06dad9149 100644
--- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp
+++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
@@ -86,7 +86,10 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
static_cast(m_pDialogue_Canvas)->Visible(false);
static_cast(m_pInteraction_Key)->Set_Visible(true);
static_cast(m_pNPCInteraction)->Set_Visible(true);
+#ifndef 기무리
static_cast(m_pBroom_TargetGate)->Set_Visible(false);
+#endif // 기무리
+
break;
case UI_STATE::SPELL:
diff --git a/Jusin154_Team3D/Client/Private/Wand.cpp b/Jusin154_Team3D/Client/Private/Wand.cpp
index 8678ec167..86ac3c640 100644
--- a/Jusin154_Team3D/Client/Private/Wand.cpp
+++ b/Jusin154_Team3D/Client/Private/Wand.cpp
@@ -44,7 +44,7 @@ HRESULT CWand::Initialize(void* pArg)
void CWand::Priority_Update(_float fTimeDelta)
{
-
+ m_pModelCom->Combined_BoneMatrix();
#ifdef _DEBUG
Describe_Entity();
@@ -59,7 +59,7 @@ void CWand::Update(_float fTimeDelta)
void CWand::Late_Update(_float fTimeDelta)
{
- m_pModelCom->Combined_BoneMatrix();
+
_matrix socketMatrix = {};
socketMatrix = XMLoadFloat4x4(m_pSocketMatrices);
diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Target.h b/Jusin154_Team3D/Client/Public/CamPosition_Target.h
index 4a9c25aa9..39de6c30f 100644
--- a/Jusin154_Team3D/Client/Public/CamPosition_Target.h
+++ b/Jusin154_Team3D/Client/Public/CamPosition_Target.h
@@ -29,6 +29,8 @@ class CCamPosition_Target final : public CCamPosition
virtual void Stalking_Target(CUnit* pStalkingTarget, const _float4x4* pTargetSocketMatrix);
virtual void Stop_Stalking();
+ _matrix Get_XMWorldMatrix();
+
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
diff --git a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
index 629a5217f..0366b791a 100644
--- a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
+++ b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
@@ -66,6 +66,8 @@ class CCamera_Cinematic final : public CCamera
CCamPosition_Target* m_pLookTargetPart = { nullptr };
CCamPosition_Target* m_pFollowTargetPart = { nullptr };
+
+
_bool m_bLerpTranslation = { false };
_float2 m_vLerpTranslationTimer = {};
@@ -80,6 +82,12 @@ class CCamera_Cinematic final : public CCamera
_bool m_bLerpFovY = { false };
_float2 m_vFovYLerp = { 60.f, 60.f };
_float2 m_vLerpFovYTimer = { };
+#ifdef _DEBUG
+ unique_ptr m_pSubShape = { nullptr };
+ unique_ptr> m_Batch;
+ class CModel* m_pModelCom = { nullptr };
+ class CShader* m_pShaderCom = { nullptr };
+#endif // _DEBUG
public:
static CCamera_Cinematic* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/CutSceneInfo.h b/Jusin154_Team3D/Client/Public/CutSceneInfo.h
index f1fce59bd..59324c1b3 100644
--- a/Jusin154_Team3D/Client/Public/CutSceneInfo.h
+++ b/Jusin154_Team3D/Client/Public/CutSceneInfo.h
@@ -19,7 +19,7 @@ class CCutSceneInfo final : public CBase
public:
void Update(_float fTimeDelta);
- void Change_Level();
+ void Load_CutScenes();
public:
void Active_Event(_string& strKey);
diff --git a/Jusin154_Team3D/Client/Public/Duelist_Protego.h b/Jusin154_Team3D/Client/Public/Duelist_Protego.h
index 6b0d78be1..6e33f77e9 100644
--- a/Jusin154_Team3D/Client/Public/Duelist_Protego.h
+++ b/Jusin154_Team3D/Client/Public/Duelist_Protego.h
@@ -16,6 +16,7 @@ class CDuelist_Protego final : public CEffect_Container
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
+ virtual void Set_Visible(_bool bVisible)override;
public:
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
diff --git a/Jusin154_Team3D/Client/Public/Elf.h b/Jusin154_Team3D/Client/Public/Elf.h
new file mode 100644
index 000000000..d5c70750f
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Elf.h
@@ -0,0 +1,114 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Unit.h"
+
+NS_BEGIN(Client)
+
+class CElf final : public CUnit
+{
+public:
+ typedef struct tagNpcInitDesc {
+ _float4 vPos;
+ _float4 vRotQ;
+ }ELFDESC;
+
+
+ enum class FLOW_TRIGGER
+ {
+ NONE, // Idle 대기
+ ANIM_END, // 애니메이션 끝나면 Flow++
+ DIALOGUE_END, // 대화 끝나면 Flow++
+ ARRIVE_POS, // 위치 도착하면 Flow++
+ END
+ };
+
+ struct DialogueAnim
+ {
+ _uint AnimIndex = {};
+ _bool Loop = {};
+
+ _int Trigger = {};
+ };
+
+ enum class ELF_STATE
+ {
+ IDLE,
+ MOVE,
+ OBSERVE,
+ END
+ };
+
+private:
+ CElf(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CElf(const CElf& Prototype);
+ virtual ~CElf() = 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;
+ virtual void OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos)override;
+
+ virtual _wstring Get_Name() override;
+ virtual _wstring Get_NpcName() override;
+ void Set_NpcState(_int iState) { m_eNpcState = iState; }
+ void Set_Target(CUnit& pTarget, CTransform& pTransform);
+protected:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+ CCharacter_Controller* m_pCharacter_Controller = { nullptr };
+ CRigidBody_Dynamic* m_pRigidBody = { nullptr };
+ class CCallBack_NonPlayable_Behavior* m_pCallBack_Behavior = { nullptr };
+ class CCallBack_NonPlayable_HitReport* m_pCallBack_HitReport = { nullptr };
+ CUnit* m_pPlayerAllyUnit = { nullptr };
+
+ CUnit* m_pTarget = { nullptr };
+ _float4 m_vTargetPos = { };
+ _float3 m_vToTargetDir = { };
+ _float m_fTargetDistance = { FLT_MAX };
+
+ CNPCStat* m_pNpcStat = { nullptr };
+ _int m_iEntered = { 0 };
+ _float2 m_vEnteringTimer = { 0.f, 1.f };
+ _float m_fEncounterDistance = { 8.f };
+
+
+ _bool m_bInteract = { false };
+ _bool m_bPreviousInteract = { false };
+ _float m_fInteractTime{};
+ _int m_eNpcState = ENUM_CLASS(ELF_STATE::END);
+
+ unordered_map<_int, _float4> m_Points;
+
+
+ unordered_map<_int, DialogueAnim> m_Anims;
+
+ _int m_iCurrentFlow = 0;
+
+ DialogueAnim m_pairAnimInfo;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ HRESULT Ready_Components(void* pArg);
+ HRESULT Bind_ShaderResources() override;
+ HRESULT Bind_ShaderParameters(_uint iMeshOrder);
+ void MoveTo(_float fTimeDelta);
+ void Set_Anim();
+ virtual void Load_AnimXML(const string& path) override;
+ HRESULT Load_ElfPos(const _char* pFilePath);
+
+
+public:
+ static CElf* 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/Goblin_Protego.h b/Jusin154_Team3D/Client/Public/Goblin_Protego.h
index 516b45285..b9825ec02 100644
--- a/Jusin154_Team3D/Client/Public/Goblin_Protego.h
+++ b/Jusin154_Team3D/Client/Public/Goblin_Protego.h
@@ -19,6 +19,7 @@ class CGoblin_Protego final : public CEffect_Container
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
+ virtual void Set_Visible(_bool bVisible)override;
public:
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
diff --git a/Jusin154_Team3D/Client/Public/Human_Duelist.h b/Jusin154_Team3D/Client/Public/Human_Duelist.h
index 5629f187f..f436358ba 100644
--- a/Jusin154_Team3D/Client/Public/Human_Duelist.h
+++ b/Jusin154_Team3D/Client/Public/Human_Duelist.h
@@ -2,7 +2,6 @@
#include "Client_Define.h"
#include "Monster.h"
-#include "Player_ENUM.h"
NS_BEGIN(Client)
@@ -55,6 +54,7 @@ class CHuman_Duelist final : public CMonster
HRESULT Ready_Parts();
HRESULT Bind_ShaderResources();
HRESULT Bind_ShaderParameters(_uint iMeshOrder);
+ void Check_BattleLose();
public:
static CHuman_Duelist* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -78,6 +78,8 @@ class CHuman_Duelist final : public CMonster
_float m_fHitTimer = {};
_bool m_bHitJap = {};
_bool m_bBattle = {};
+ _bool m_bCameraShake = { };
+ _float4 m_OriginPos = { };
_float m_fSkillCoolTime[ENUM_CLASS(SKILL::END)] = {};
diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h
index ccb5cbbad..df14842c6 100644
--- a/Jusin154_Team3D/Client/Public/InfoInstance.h
+++ b/Jusin154_Team3D/Client/Public/InfoInstance.h
@@ -24,6 +24,8 @@ DECLARE_SINGLETON(CInfoInstance)
public:
HRESULT Initialize_Information(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
HRESULT Late_Initialize(); // GamePlay Initialize 할 때
+
+ void Load_CutScenes();
void Release_Information();
LEVEL Get_RestartLevel();
_bool Get_SearchLockonFloag() { return m_bSearchLockOnTarget; }
@@ -62,6 +64,7 @@ DECLARE_SINGLETON(CInfoInstance)
HRESULT Load_PointLights(const _char* pFileName, const _wchar* pLayerTag);
HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath);
HRESULT Load_DADA_INT();
+ HRESULT Load_Npc();
#pragma endregion
#pragma region Spell_INFO
HRESULT Load_SpellInfo(const _char* pFilePath);
diff --git a/Jusin154_Team3D/Client/Public/Level_Field.h b/Jusin154_Team3D/Client/Public/Level_Field.h
index e2da71716..ee55be50f 100644
--- a/Jusin154_Team3D/Client/Public/Level_Field.h
+++ b/Jusin154_Team3D/Client/Public/Level_Field.h
@@ -22,7 +22,7 @@ class CLevel_Field final : public CLevel
_bool m_isDay = { true };
private:
class CInfoInstance* m_pInfoInstance = { nullptr };
-
+ class CLight_Main* m_pLight = { nullptr };
_bool m_bLevel = { false };
_bool m_bCurrentLevel = { false };
@@ -42,6 +42,7 @@ class CLevel_Field final : public CLevel
HRESULT Ready_Layer_Effect(const _wstring& strLayerTag);
HRESULT Ready_Layer_Monster();
HRESULT Reday_Layer_EffectPool();
+ void ResetLevel_Environment();
public:
static pair> Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg);
diff --git a/Jusin154_Team3D/Client/Public/Level_GamePlay.h b/Jusin154_Team3D/Client/Public/Level_GamePlay.h
index 89188103b..d0148d6a7 100644
--- a/Jusin154_Team3D/Client/Public/Level_GamePlay.h
+++ b/Jusin154_Team3D/Client/Public/Level_GamePlay.h
@@ -15,10 +15,10 @@ class CLevel_GamePlay final : public CLevel
virtual void Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
-
private:
class CInfoInstance* m_pInfoInstance = { nullptr };
class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
+ class CLight_Main* m_pLight = { nullptr };
_bool m_isDay = { true };
@@ -49,6 +49,7 @@ class CLevel_GamePlay final : public CLevel
HRESULT Reday_Layer_EffectPool();
HRESULT Ready_Layer_Duelist();
HRESULT Ready_Layer_Npc();
+ void ResetLevel_Environment();
HRESULT Bind_InstanceProp(map<_string, class CLand*>* Lands, class CInstancedProp* pInstnace, const _char* LandTag);
public:
diff --git a/Jusin154_Team3D/Client/Public/Level_Loading.h b/Jusin154_Team3D/Client/Public/Level_Loading.h
index e56a4945d..dbd418e20 100644
--- a/Jusin154_Team3D/Client/Public/Level_Loading.h
+++ b/Jusin154_Team3D/Client/Public/Level_Loading.h
@@ -29,6 +29,7 @@ class CLevel_Loading final : public CLevel
virtual HRESULT Initialize(LEVEL eNextLevelID);
HRESULT Initialize() override;
HRESULT Ready_Layer_BackGround(const _wstring& strLayerTag);
+ void ResetLevel_Environment() {};
public:
static CLevel_Loading* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, LEVEL eNextLevelID);
diff --git a/Jusin154_Team3D/Client/Public/Level_Logo.h b/Jusin154_Team3D/Client/Public/Level_Logo.h
index 7ace4888a..be4931f48 100644
--- a/Jusin154_Team3D/Client/Public/Level_Logo.h
+++ b/Jusin154_Team3D/Client/Public/Level_Logo.h
@@ -21,6 +21,8 @@ class CLevel_Logo final : public CLevel
private:
virtual HRESULT Initialize() override;
HRESULT Ready_Layer_UI(const _wstring& strLayerTag);
+ void ResetLevel_Environment() {};
+
public:
diff --git a/Jusin154_Team3D/Client/Public/Level_Restart.h b/Jusin154_Team3D/Client/Public/Level_Restart.h
index 793136e29..32cc6a945 100644
--- a/Jusin154_Team3D/Client/Public/Level_Restart.h
+++ b/Jusin154_Team3D/Client/Public/Level_Restart.h
@@ -21,6 +21,7 @@ class CLevel_Restart final : public CLevel
private:
virtual HRESULT Initialize() override;
+ void ResetLevel_Environment() {};
private:
LEVEL m_eNextLevel = {};
diff --git a/Jusin154_Team3D/Client/Public/MapInfo.h b/Jusin154_Team3D/Client/Public/MapInfo.h
index 781163186..076549aa4 100644
--- a/Jusin154_Team3D/Client/Public/MapInfo.h
+++ b/Jusin154_Team3D/Client/Public/MapInfo.h
@@ -32,6 +32,7 @@ class CMapInfo final : public CBase
HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath);
HRESULT Load_DADA_INT();
+ HRESULT Load_Npc();
private:
CGameInstance* m_pGameInstance = { nullptr };
diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h
index a7ffe0f57..779db23c5 100644
--- a/Jusin154_Team3D/Client/Public/Player.h
+++ b/Jusin154_Team3D/Client/Public/Player.h
@@ -2,13 +2,25 @@
#include "Client_Define.h"
#include "Unit.h"
-#include "Player_ENUM.h"
NS_BEGIN(Client)
class CPlayer final : public CUnit
{
public:
+ enum PLAYER_MESH_ORDER {
+ CLOTH_SIM
+ , HAIR_MAIN
+ , CLOTH
+ , EYELASH
+ , TEETH
+ , BODY
+ , HEAD_EYE_OCC
+ , HEAD_EYES
+ , FLOWERS
+ , END
+ };
+
typedef struct tagPlayerInitDesc {
_float4 vPos;
_float4 vRotQ;
@@ -45,6 +57,8 @@ class CPlayer final : public CUnit
HRESULT Update_RaycastElements();
void Set_Battle(_bool bBattle) { m_bDuel_ZOnlyMove = bBattle; }
void Set_Interaction(_bool bInteraction);
+ void ExitBattle();
+ void Set_OriginPos(_vector vPos) { XMStoreFloat4(&m_OriginPos, vPos); }
#ifdef _DEBUG
void Render_CameraCoordinateSystem();
#endif // _DEBUG
@@ -90,7 +104,7 @@ class CPlayer final : public CUnit
class CTransform* m_pBroomTransform = { nullptr };
class CBroom* m_pBroom = { nullptr };
CStat* m_pStat = { nullptr };
- class CPlayerRobe* m_pRobePart = { nullptr };
+ //class CPlayerRobe* m_pRobePart = { nullptr };
class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
@@ -143,6 +157,7 @@ class CPlayer final : public CUnit
function m_InputAction = nullptr;
_int m_eUIState = { };
+ const _float4x4* m_pCinematicSocketMatrix = { nullptr };
_float3 m_OffsetPos = {};
_float m_fAmount = { 1.f };
_float m_fInputTime = {};
@@ -177,6 +192,8 @@ class CPlayer final : public CUnit
_float m_fDegree = {};
_bool m_bGuarding = {};
_float m_fParryTimer = {};
+ _bool m_bStartSpellAnim = {};
+ _float4 m_OriginPos = {};
/* 무적 불 변수*/
diff --git a/Jusin154_Team3D/Client/Public/Player_ENUM.h b/Jusin154_Team3D/Client/Public/Player_ENUM.h
deleted file mode 100644
index 73fa76841..000000000
--- a/Jusin154_Team3D/Client/Public/Player_ENUM.h
+++ /dev/null
@@ -1,194 +0,0 @@
-#pragma once
-#include "Client_Define.h"
-
-NS_BEGIN(Client)
-
-enum class PLAYER_MESH_ORDER {
- HEAD_EYE_OCC,
- HEAD_FACE,
- HEAD_TEETH,
- HEAD_EYELASH,
- HEAD_EYES,
- BODY_ARMS,
- HAIR_MAIN,
- HAIR_MAIN_CLOTH,
- LOWER,
- SHOES,
- UPPER,
- HAIR_SUB,
- HAIR_SUB_CLOTH,
- ROBE_SKIRT,
- ROBE_FUR,
- ROBE_CLOTH,
- END
-};
-
-static const _char* PLAYER_JOINT_BONE_NAMES[16] = {
- "RightUpLeg_Cloth"
- , "RightLeg_Cloth"
- , "RightDownLeg_Cloth"
-
- , "LeftUpLeg_Cloth"
- , "LeftLeg_Cloth"
- , "LeftDownLeg_Cloth"
-
- , "TailUp_Cloth"
- , "Tail_Cloth"
- , "TailLeftDown_Cloth"
- , "TailRightDown_Cloth"
-
- , "RightSideUpLeg_Cloth"
- , "RightSideLeg_Cloth"
- , "RightDownSideLeg_Cloth"
-
- , "LeftSideUpLeg_Cloth"
- , "LeftSideLeg_Cloth"
- , "LeftDownSideLeg_Cloth"
-};
-
-enum class PLAYER_JOINT_BONE_ORDER {
- RIGHTUP
- , RIGHT
- , RIGHTDOWN
-
- , LEFTUP
- , LEFT
- , LEFTDOWN
-
- , TAILUP
- , TAIL
- , TAILLEFTDOWN
- , TAILRIGHTDOWN
-
- , RIGHTSIDEUP
- , RIGHTSIDE
- , RIGHTDOWNSIDE
-
- , LEFTSIDEUP
- , LEFTSIDE
- , LEFTDOWNSIDE
-
- , END
-};
-
-enum class PLAYER_JOINT_HORIZONTAL_ORDER {
-
-#pragma region UP_HORIZONTAL
- UP_R_RS_START
- , UP_R_RS_END
- , UP_RS_T_START
- , UP_RS_T_END
- , UP_T_LS_START
- , UP_T_LS_END
- , UP_LS_L_START
- , UP_LS_L_END
-#pragma endregion
-#pragma region MIDDLE_HORIZONTAL
- , MIDDLE_R_RS_START
- , MIDDLE_R_RS_END
- , MIDDLE_RS_T_START
- , MIDDLE_RS_T_END
- , MIDDLE_T_LS_START
- , MIDDLE_T_LS_END
- , MIDDLE_LS_L_START
- , MIDDLE_LS_L_END
-#pragma endregion
-#pragma region DOWN_HORIZONTAL
- , DOWN_R_RS_START
- , DOWN_R_RS_END
- , DOWN_RS_T_START
- , DOWN_RS_T_END
- , DOWN_T_LS_START
- , DOWN_T_LS_END
- , DOWN_LS_L_START
- , DOWN_LS_L_END
-#pragma endregion
- , END
-};
-enum class PLAYER_JOINT_ORDER {
-#pragma region ORIGIN_TO_UP
- ORIGIN_TO_RUP_START
- , ORIGIN_TO_RUP_END
-
- , ORIGIN_TO_TUP_START
- , ORIGIN_TO_TUP_END
-
- , ORIGIN_TO_LUP_START
- , ORIGIN_TO_LUP_END
-
- , ORIGIN_TO_RSIDEUP_START
- , ORIGIN_TO_RSIDEUP_END
-
- , ORIGIN_TO_LSIDEUP_START
- , ORIGIN_TO_LSIDEUP_END
-#pragma endregion
-#pragma region UP_TO_MIDDLE
- , RUP_TO_RMIDDLE_START
- , RUP_TO_RMIDDLE_END
-
- , TUP_TO_TMIDDLE_START
- , TUP_TO_TMIDDLE_END
-
- , LUP_TO_LMIDDLE_START
- , LUP_TO_LMIDDLE_END
-
- , RSIDEUP_TO_RSIDE_START
- , RSIDEUP_TO_RSIDE_END
-
- , LSIDEUP_TO_LSIDE_START
- , LSIDEUP_TO_LSIDE_END
-#pragma endregion
-#pragma region MIDDLE_TO_BOTTOM
- , RMIDDLE_TO_RR_START
- , RMIDDLE_TO_RR_END
-
- , TMIDDLE_TO_TR_START
- , TMIDDLE_TO_TR_END
-
- , TMIDDLE_TO_TL_START
- , TMIDDLE_TO_TL_END
-
- , LMIDDLE_TO_LL_START
- , LMIDDLE_TO_LL_END
-
- , RSIDE_TO_R_START
- , RSIDE_TO_R_END
-
- , LSIDE_TO_L_START
- , LSIDE_TO_L_END
-#pragma endregion
- , END
-};
-
-enum class PLAYER_ROUTE_HORIZONTAL_ORDER {
- da,
- END
-};
-
-enum class PLAYER_ROUTE_VERTICAL_ORDER {
- ORIGIN_TO_RUP
- , ORIGIN_TO_TUP
- , ORIGIN_TO_LUP
- , ORIGIN_TO_RSIDEUP
- , ORIGIN_TO_LSIDEUP
-
- , RUP_TO_RMIDDLE
- , TUP_TO_TMIDDLE
- , LUP_TO_LMIDDLE
-
- , RSIDEUP_TO_RSIDE
- , LSIDEUP_TO_LSIDE
-
- , RMIDDLE_TO_RR
- , TMIDDLE_TO_TR
- , TMIDDLE_TO_TL
- , LMIDDLE_TO_LL
-
- , RSIDE_TO_R
- , LSIDE_TO_L
-
- , END
-};
-
-
-NS_END
diff --git a/Jusin154_Team3D/Client/Public/Protego.h b/Jusin154_Team3D/Client/Public/Protego.h
index cc5c8d79d..1fc7646cf 100644
--- a/Jusin154_Team3D/Client/Public/Protego.h
+++ b/Jusin154_Team3D/Client/Public/Protego.h
@@ -19,6 +19,7 @@ class CProtego final : public CEffect_Container
public:
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+ virtual void Set_Visible(_bool bVisible)override;
private:
virtual HRESULT Initialize_Prototype() override;
diff --git a/Jusin154_Team3D/Client/Public/RandomNpc.h b/Jusin154_Team3D/Client/Public/RandomNpc.h
index 0cca76157..e2debcfa4 100644
--- a/Jusin154_Team3D/Client/Public/RandomNpc.h
+++ b/Jusin154_Team3D/Client/Public/RandomNpc.h
@@ -71,6 +71,7 @@ class CRandomNpc final : public CUnit
_bool m_bBattleObserve_Npc = {};
_bool m_bBattle = {};
_int m_eNpcState = ENUM_CLASS(NPC_STATE::END);
+ _bool m_bBroomRacer = {};
protected:
virtual HRESULT Initialize_Prototype() override;
diff --git a/Jusin154_Team3D/Client/Public/ReparoObject.h b/Jusin154_Team3D/Client/Public/ReparoObject.h
index 239045e52..663d18dd5 100644
--- a/Jusin154_Team3D/Client/Public/ReparoObject.h
+++ b/Jusin154_Team3D/Client/Public/ReparoObject.h
@@ -1,11 +1,11 @@
#pragma once
#include "Client_Define.h"
-#include "Unit.h"
+#include "Monster.h"
NS_BEGIN(Client)
-class CReparoObject final : public CUnit
+class CReparoObject final : public CMonster
{
private:
CReparoObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -20,12 +20,10 @@ class CReparoObject final : public CUnit
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
-private:
- CInfoInstance* m_pInfoInstance = { nullptr };
-
private:
HRESULT Ready_Components();
HRESULT Bind_ShaderResources();
+ HRESULT Render_OutLine();
public:
static CReparoObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/ThestralCarriage.h b/Jusin154_Team3D/Client/Public/ThestralCarriage.h
index 80c714a99..3af332df3 100644
--- a/Jusin154_Team3D/Client/Public/ThestralCarriage.h
+++ b/Jusin154_Team3D/Client/Public/ThestralCarriage.h
@@ -2,6 +2,7 @@
#include "Client_Define.h"
#include "Unit.h"
+#include "TimeSocket.h"
NS_BEGIN(Engine)
class CModel;
class CShader;
@@ -9,8 +10,23 @@ NS_END
NS_BEGIN(Client)
-class CThestralCarriage final : public CGameObject
-{
+class CThestralCarriage final : public CUnit
+{
+public:
+ enum class CARRIAGE_MESH_ORDER {
+ CARRIAGE
+ , WINDOWS
+ };
+
+ enum class CARRIAGE_SOCKET {
+ BACK,
+ BACK_LEFT,
+ BACK_RIGHT,
+ FRONT,
+ FRONT_LEFT,
+ FRONT_RIGHT,
+ END
+ };
private:
CThestralCarriage(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CThestralCarriage(const CThestralCarriage& Prototype);
@@ -23,11 +39,19 @@ class CThestralCarriage final : public CGameObject
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
+ virtual void Trigger(CTimeSocket& Socket)override;
+ virtual _vector Get_WorldPostion()override;
+ _matrix Get_SeatMatrix();
+ _matrix Get_SocketWorldMatrix(CARRIAGE_SOCKET eSocket);
private:
- CModel* m_pModelCom = { nullptr };
- CShader* m_pShaderCom = { nullptr };
CInfoInstance* m_pInfoInstance = { nullptr };
+ _uint m_iAnimationIndex = 0;
+#ifdef _DEBUG
+ _bool m_bRender_WireFrame = { false };
+ ID3D11RasterizerState* m_pRSS = { nullptr };
+#endif // _DEBUG
+
private:
HRESULT Ready_Components();
HRESULT Bind_ShaderResources();
diff --git a/Jusin154_Team3D/Client/Public/TriggerBox.h b/Jusin154_Team3D/Client/Public/TriggerBox.h
index da243b7c4..e058df699 100644
--- a/Jusin154_Team3D/Client/Public/TriggerBox.h
+++ b/Jusin154_Team3D/Client/Public/TriggerBox.h
@@ -9,32 +9,42 @@ NS_END
NS_BEGIN(Client)
-class CTriggerBox final : public CBase
+class CTriggerBox final : public CGameObject
{
public:
typedef struct tagTriggerDesc {
_float4 vPosition_Radius = { 0.f, 0.f, 0.f, 1.f };
}TRIGGERBOX_DESC;
private:
- CTriggerBox();
+ CTriggerBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CTriggerBox(const CTriggerBox& rhs);
virtual ~CTriggerBox() = default;
public:
HRESULT TryScanArea(_float fTimeDelta);
-
+ virtual HRESULT Render()override;
+ HRESULT Bind_ShaderResources() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+ void Describe_Entity() override;
private:
HRESULT Initialize(TRIGGERBOX_DESC*);
HRESULT Scan();
+ HRESULT CheckPlayerHit(PSX::PxActor* pActor);
+
+
private:
- CGameInstance* m_pGameInstance = { nullptr };
- _float4 m_vPosition = { };
- _float m_fRadius = {};
- _float2 m_vScanTimer = { 0.f, 0.5f };
+ _float2 m_vScanTimer = { 0.f, 0.8f };
+#ifdef _DEBUG
+ _bool m_bRender = false;
+ unique_ptr m_pSubShape = { nullptr };
+ unique_ptr> m_Batch;
+#endif // _DEBUG
public:
- static CTriggerBox* Create(TRIGGERBOX_DESC* Desc);
+ static CTriggerBox* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, TRIGGERBOX_DESC* Desc);
virtual void Free() override;
+
};
NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Elf.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Elf.xml
new file mode 100644
index 000000000..64257f128
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Elf.xml
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml
index 109c05c93..2231ff266 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml
@@ -58,11 +58,11 @@
-
-
-
-
-
+
+
+
+
+
@@ -121,27 +121,27 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
+
+
@@ -180,15 +180,13 @@
-
-
-
-
-
+
+
+
+
+
-
+
-
-
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml
new file mode 100644
index 000000000..b04416f77
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml
@@ -0,0 +1,743 @@
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml
index 1cf13754e..54e57e647 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml
@@ -1,4 +1,152 @@
-
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
@@ -37,12 +185,12 @@
-
+
-
-
+
+
@@ -67,19 +215,19 @@
-
+
-
+
-
-
+
+
@@ -104,16 +252,164 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -147,7 +443,7 @@
-
+
@@ -184,7 +480,7 @@
-
+
@@ -221,7 +517,7 @@
-
+
@@ -258,7 +554,7 @@
-
+
@@ -295,7 +591,7 @@
-
+
@@ -332,7 +628,7 @@
-
+
@@ -369,7 +665,7 @@
-
+
@@ -406,7 +702,7 @@
-
+
@@ -443,7 +739,7 @@
-
+
@@ -480,7 +776,7 @@
-
+
@@ -517,7 +813,7 @@
-
+
@@ -554,7 +850,7 @@
-
+
@@ -591,7 +887,7 @@
-
+
@@ -628,7 +924,7 @@
-
+
@@ -665,7 +961,7 @@
-
+
@@ -702,5 +998,5 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/ElfPos/ElfPos.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/ElfPos/ElfPos.xml
new file mode 100644
index 000000000..209d22039
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/ElfPos/ElfPos.xml
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hiden/Element_Chest_Info.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hiden/Element_Chest_Info.xml
index 2c8094a41..efd1cf784 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hiden/Element_Chest_Info.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hiden/Element_Chest_Info.xml
@@ -16,7 +16,7 @@
Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod1
Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod2
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml
new file mode 100644
index 000000000..ec37e8f45
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.bin
index a1a1073ca..76f4be2ad 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:1db07c9f76accbd123a54079fada22e054faeb39de5d139a0e118a217c473256
+oid sha256:60418f73bd70edfc1b1fe1eb83e586a92eb7c640942838cb1518069509afb1f0
size 67108864
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds
index 917cf4f16..df19cee74 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_HeightMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_HeightMap.bin
index c7b23053b..a7cccdc60 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_HeightMap.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_HeightMap.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:bf3f9ae0a13102dda45fda801e0bfd162db42eca532822d996f5a9a1707f1949
+oid sha256:85c57a64abb162ca99cb60df9d0ca9bdb54033edc1caa0aaa523c08af3c016be
size 1052676
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin
index 4c4cd33c2..7a20c3f8a 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b4537af094f35c37594e1728cfaf4c83b99154a2e0eadc47a3cdf3fc0ed18571
-size 5470363
+oid sha256:8618870bafa4bc447cfe8be5a51e89034f9053c4c880ffc55a741912ac46dda8
+size 5470370
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml
index ebf93bda8..450e4cb0d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml
@@ -120,7 +120,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin
index d5074a218..e1a8aa76b 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:27d59d8e1e45ebefe1cea5864e26e62c768568155113352a77ed5127224e90b4
-size 6367437
+oid sha256:93e5154ae1315dbfafbe75be9786145fb560148fb7de843166ae758ee4aa6741
+size 6367444
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.xml
index 0867dd322..6ce6c416b 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.xml
@@ -158,7 +158,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Broom.bin
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Anim.bin
rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Broom.bin
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Broom.fbx
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Anim.fbx
rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Broom.fbx
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.bin
new file mode 100644
index 000000000..b71e1e6ab
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8e9691e6d2a1ccbb6ee51fecc5c0c72184142d9dc309c44afb6c5809d36b07e2
+size 11428035
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.fbx
new file mode 100644
index 000000000..22833d1b3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:572505a0129c40238dbea2a5671246b55ad90ecb46e65eaeca2b25c7fd8cc560
+size 6891660
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin
index 0d25ab517..ac84877d8 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:623c97a3f54a1654a0ea8de829aae7e89a6e97a16885c2dbd1845e40c1ba8aee
-size 5245096
+oid sha256:ed87fd0d054c598ec602e5837032c53dfb8dfd0c79c6345b160470e46fc6425f
+size 5245079
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml
index f26ec6f27..245e99c91 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml
@@ -32,7 +32,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin
index afd1d0a80..e8992b936 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3105f242284fd06024b2f92a482b7a644c17b7c99f476b289f24cadfcefc7741
-size 7419042
+oid sha256:3985f772c7a609cf89b08c4ab59a872a8cdea3597859cedb4a160e0754b7d44c
+size 7419049
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.xml
index c41c58940..9e69917af 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.xml
@@ -30,7 +30,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.bin
index b8eb32a35..7759156dc 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0b168ac5991ac9c38501245fa2a85b11b142fa3f6551f6c965da140c4a43a1c2
-size 2941521
+oid sha256:6604b5124987e2c5141ea72c55a47c43345a12898925d294f589887270d68a58
+size 2941528
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.xml
index 9818428f0..2afcad975 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.xml
@@ -124,7 +124,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf_Browse.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf_Browse.bin
new file mode 100644
index 000000000..e06511082
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf_Browse.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0fff452d336e6a414428faf1d4fe59d76f344b642d606483fdde4de53e5ae6fd
+size 3654110
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf_Browse.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf_Browse.fbx
new file mode 100644
index 000000000..0eba4d16c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf_Browse.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1941bc7345a60f3a79397b24fa9a31b7759f59f4d2483c16782be345d204d639
+size 2925276
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin
index 07752bfbe..77de22ac0 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:393283aa17ffe0bdc2d027a4450fd01cc9c110233e2d64744bcc5a650fac4d4b
-size 3539229
+oid sha256:7dcf7af2b05e77d79fa11b77a2975cf437e1ef8a71deba21dc78a988f37eee89
+size 3539236
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.xml
index dc3e0656f..ddc59f7e7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.xml
@@ -32,7 +32,7 @@
-
+
@@ -155,7 +155,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin
index 764e00b1c..1c6018e77 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:9a9946c448139e5828004d645648abbd7b4d3c79e37f57ed2e2371fc7a43cdd9
-size 5707513
+oid sha256:546ac9bc9b60de76644f9f38247c3550b824917195e157831c366f208d4b5f5a
+size 5707520
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.xml
index d4369e505..2d2a03dc7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.xml
@@ -61,7 +61,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.bin
index 585a7a3f5..1f96872a4 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b6971e29e39aea90c3854034ffdc3d0fce25a76315de1f0b442b19291330b1a3
-size 11118807
+oid sha256:1c0559c473cd3edae1fc77c5e393066e87c43567e106bded0199f82efe76807f
+size 11118814
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.xml
index 1c5a26e8b..1d7bfcb15 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.xml
@@ -209,7 +209,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin
index 15462d0e6..adf3570c4 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a4eec1f603dd420163bc9ce268fccbdb0998ea28b9bfa395cf870d097c5712ff
-size 6700660
+oid sha256:1d5a81ea309184fe42aa3ea392df4a006181379c47ee5ae7ec93337776d5e218
+size 6700667
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml
index 20b532718..a6b895a9c 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml
@@ -94,7 +94,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/T_Poltergeist_Eye_E.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 704035228..dbf58505e 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:93816fc5a683892c7619312ac2ea43b255efd70cbf30141fa615eb5480f3397e
-size 6556632
+oid sha256:be7818f616f1d46a8ee108d21dff00b98d18eddac10cc73cef58e4c13e2b505b
+size 6556639
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml
index 41dace815..e20748e3e 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml
@@ -59,7 +59,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin
index c2ed6fdf9..1d24712c5 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:67ff0dfb4171ae863c571cf232259562042bb1af80b5ee412d34c4727d4bf1e1
+oid sha256:1b306098af99cdcc76b3fa6111d596fabd2212fb2548f1c30528a7eaf759c99c
size 6592747
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml
index 7e0ac1d9e..3d4916e6b 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml
@@ -206,7 +206,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds
index 6886922fb..798944162 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin
index 9d9cbd9c7..a2c6b176c 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:7188bce54066811777cbeeb38cda81beb6b160fc2699eaf10fc8385b0c21dce8
-size 5294885
+oid sha256:5c94ea66f05603164f6dc6158e55ec2866d35442c81f6bde3b8c538ea277ba9e
+size 5294892
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.xml
index 6d3f40e55..576ef32d2 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.xml
@@ -187,7 +187,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin
index f911850ab..3027781b9 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:afe1d6c2a3ba7373f85e7f03929f54d94847fdd0c43009c42687a1222ad9c7a5
-size 6144388
+oid sha256:aff3b610c3896ed178425c4e25f9c9d37c898a64955811c6fe4c5eac045bf778
+size 6144395
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.xml
index f347eb6e8..9e994a700 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.xml
@@ -216,7 +216,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin
index d7a3ff1c7..b5e2e4dc4 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:9303673c5394730795152c520acb5b69137b4a75658db0066fbff868224e60e0
-size 6344060
+oid sha256:b37e5e5cf4a004e6cfa35a07f4dedb9c5ec21245a45e605f86d06fdbce8174b9
+size 6344067
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.xml
index 2a8ae173b..179f8cb73 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.xml
@@ -94,7 +94,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin
index 2eb91d69c..aab82c01d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:11f2c5bb62b72f94660bb3ea535998d05f4412f9db984d63d0eceb7eb759b25a
-size 7617689
+oid sha256:e176eb96c7922c0d38f0561fda632355e6e33b91f855514b2674f9cabe629afc
+size 7617696
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.xml
index b605ef655..a75fb6d97 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.xml
@@ -94,7 +94,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin
index 4ee84e2bb..b12d12bb7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:8071bf7e7535294dd159e85c107ce3a5c604d184ca45f8b8593f969abea05401
-size 6854890
+oid sha256:3eceb2b72b31a7b752ca6fd2b14803dfdc07cde1c938a3b69ed082d922e84504
+size 6854897
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml
index f17406835..0d195e908 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml
@@ -89,7 +89,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin
index 815ffe2ce..58e47ea43 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6b0f967bd7e9d56641cede84d6987d9dcf7db01959fe2c0d75c1320e008d0741
-size 18597563
+oid sha256:dadf2a75a4895b392e8047c175e81bedc20bb823c9c180afa82ff83c9831c097
+size 18597570
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.fbx
index a07942f86..344c15789 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4390d66420dfc1d0a879c34c353f5f8b9bbc0fd21410b0feffbe3af042ebedff
-size 59379612
+oid sha256:f93df0eaf0e1e666222763579ab1a8a76b0156163fcb60ff015917d6b87c1ec6
+size 2346732
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.xml
index e84e860b1..e1f24b5ec 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.xml
@@ -117,7 +117,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.bin
new file mode 100644
index 000000000..f8566ee4d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:09167faeffc4ce2aaca9bd535d0037fb23a886ef86100327e3744cdfa690fee7
+size 18595333
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.fbx
new file mode 100644
index 000000000..ad46e614a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1fdbed43c0f548645a6cee610839a58cd113dff238a54c288046600d04bc2c3b
+size 59382940
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.bin
new file mode 100644
index 000000000..b23f894ac
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6bb38c87bcecffb91edce5fe3f291dc585c96ad50a822618c4ec54f7ca440816
+size 23283166
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.fbx
new file mode 100644
index 000000000..8f4272649
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d26c4d2d1e40d20438e21e0cb0b0ec8e6a4e797f7cca5e995c9929e8cd091704
+size 18785180
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/BaseFlattenNormalMap.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/BaseFlattenNormalMap.png
deleted file mode 100644
index d8e1fd944..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/BaseFlattenNormalMap.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Garlick.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Garlick.xml
deleted file mode 100644
index 40219b073..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Garlick.xml
+++ /dev/null
@@ -1,269 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable.fbx
deleted file mode 100644
index 1cbbfcf54..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:d24d145654626e331561cf6c6e4c7fab915e4fe6090772d6e19eb3cc42792dd4
-size 5151308
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_AvadaKedavra.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_AvadaKedavra.fbx
deleted file mode 100644
index 029022ca5..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_AvadaKedavra.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:d782323b6137402401929e733f1a0a629cd014735ad6499dd9cfa02f554692af
-size 6018332
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Bm.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Bm.fbx
deleted file mode 100644
index cf80a9c65..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Bm.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:0c9a4ec2aa1cd1a7c20fd712c6a9a4ea4e2995d2a98fabec55f50f26d312665b
-size 544959468
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Broom.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Broom.fbx
deleted file mode 100644
index 500acecd4..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Broom.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:455c61941119a4bb6ee17556b90a03eddbb69f92d93b7eb4633f9d5105cfc02a
-size 263553308
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Cmbt.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Cmbt.fbx
deleted file mode 100644
index 26c354f6f..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Cmbt.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:4faa5b5e258bd49ab1ac863834148d0438c37d90c6c526e26bec2af2defa4568
-size 205155228
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Lightning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Lightning.fbx
deleted file mode 100644
index 52bdb410f..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Lightning.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:5749bbf9655647b055f5510e0671b9b0cd6c164b12e820078e4ada1fb3a4e484
-size 6061772
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_OpenDoor.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_OpenDoor.fbx
deleted file mode 100644
index be47c045e..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_OpenDoor.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:774826245ec2bb5d6fbd5a61e3ccab4e5819f246e7630fd51ec6abb3529f29d9
-size 7446620
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Protego.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Protego.fbx
deleted file mode 100644
index abb775b2b..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Protego.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:c1806d30cd95dfd51a6438842a911bf028663cad71b8ff77b591a89e20e90350
-size 11262300
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Rct.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Rct.fbx
deleted file mode 100644
index 794174dd5..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Rct.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:953f8acd1848aa105b34ae2cf37866073238d13f9e3f7cb0a7ab08f67b0d8562
-size 177046556
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Sneak.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Sneak.fbx
deleted file mode 100644
index 341033f4d..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Sneak.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:bfcc6d4630c85c8ce147f3d008e1d0b7c1e791a9bf624a39e168446f3094c2c4
-size 45475004
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spawn.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spawn.fbx
deleted file mode 100644
index 1a87a2bd3..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spawn.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:e3de5a415eceb50826dae12de16dca671e12253dba50edfdb96594d246c2f471
-size 13704236
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spell_Learning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spell_Learning.fbx
deleted file mode 100644
index 5fbd59379..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spell_Learning.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:ff98efacb24e1d672c677e333dd4fa5cfe67c81432eb4276030ef239a6bba6a3
-size 9410716
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_TrollIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_TrollIntro.fbx
deleted file mode 100644
index 9355fdb26..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_TrollIntro.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:85fff4ac811ede1d50d66f9f551ea9a72ac5fda80b19d57558c6be7f914b2b71
-size 13735708
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_DefaultGrey_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_DefaultGrey_D.png
deleted file mode 100644
index b414d5691..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_DefaultGrey_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Iris_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Iris_D.png
deleted file mode 100644
index 4bf9d62f9..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Iris_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Sclera_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Sclera_D.png
deleted file mode 100644
index 6e082532d..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Sclera_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_D.dds
deleted file mode 100644
index 24effbef3..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_D.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_N.dds
deleted file mode 100644
index 4d226e763..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_N.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_SRXO.dds
deleted file mode 100644
index a404651ed..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_SRXO.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin
index a4c4758f5..8e45f5aaa 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:87c758a2826671b83278e10f317fa5da1f6d9e5f95d18a354e0462b434dd003c
-size 10396801
+oid sha256:dfb7b5a94effd49e12f0d76e8405c6fe79b6ba9c9dfce717676fe6864bc99309
+size 11099434
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx
index 88b0a2068..f679e8ae1 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0c60471f86afa6082edad8e88d7fce13458fd0531c7b9edec2e34a8eaf8ce028
-size 5782684
+oid sha256:c06e56becb5cef0fb979bfd924f953b85dd524647ad7f628d3ed3a9f15944351
+size 5428780
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml
index 9bf7fcb9c..1d7bfcb15 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml
@@ -1,210 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -231,110 +28,24 @@
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+
-
+
-
+
@@ -346,10 +57,159 @@
-
-
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -375,5 +235,35 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin
index 145551226..a9d210e4b 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:cef9657058c92da3fc1f2c7412d9af109e96010656df8cbf0349f3b6cbca0266
-size 10764837
+oid sha256:4800a4b86ccd46b3e775304c7eb8d466c1ee86d240654b454b9d833f3db81cf7
+size 11476055
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx
index 4f05ed3fb..4d643b85c 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ae6a589175d1caf8e7af70da9770df080bf35b0a5e7bd708cfc13a86b1fa8c2d
-size 6579564
+oid sha256:f1d96efae5490a8c6b2c3515ce8a476537e6fa7506d8c21254ad1f616aa321b4
+size 6295836
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin
index c8a0c23da..1945ac29e 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f59cee6bc84723fa5f30927fee1d2862bacd47f6151f540189d9efa11c9b88fb
-size 172123989
+oid sha256:5fdfefc88607a7aa4cf411a7c0e1281e3573d85e4cfab2e1d45be1d0876735bd
+size 175364307
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx
index 43cca3160..842b9cf86 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:9d7dce07f39d918046f053943ac20a7b8417ee2d8434aca79ce4aedb76ff238f
-size 496494956
+oid sha256:99e08bf4dac172d613ce77c59a100ede038d2915816a89afb8be855ad13e8233
+size 545293484
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin
index 6313624b7..3c92971a8 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:aa216c1dda899129e21beba4f22b48d5ae83f26dc9ce26948788720214f55c89
-size 23181890
+oid sha256:2f4164eb3ae3cd019264267233333f34d100938f8805bb5b4b27a47749294186
+size 24388626
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx
index 56fd36b23..0a0856337 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c39f3648a774fde3a3ca0374048cf98c2585ea1c6ce575200791122be7882316
-size 58614012
+oid sha256:7705c6ae161ee2cf8820afd83e851d5e4a975ad71ed54b45df44c257c5341b32
+size 63939356
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin
index 05f9d2a95..3d1c22ecd 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:5736c3c8c007604120bfbc582d88c03831331ae24f3af892d58640d802024335
-size 69519408
+oid sha256:f821ca53633652768ed20ef4bfc27e27601264da330a7e7e37ec97a959456254
+size 71148916
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx
index 78f8de90b..c4027ddfe 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:2b05741a3bd8e858c9e2bcbfaf18602a31c5dcdd81697db2810469e35fe7b37c
-size 187635116
+oid sha256:d48330316764ad8ff7e7ca5723d0a74214f1f32f235b810fd24512bc326a26fe
+size 205459948
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin
index 068e0e499..f0351365f 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:82113f663532392550e084df2e2a64136cfb2e44c20eadc2052c323a280e94e4
-size 10845926
+oid sha256:b6d22175f6544a52eda70682a727dccf2f1361b7011ff46fddc87ecdc293ede3
+size 11551488
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx
index 0dd59d3e3..0cf7a5683 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:5de6f2efcdc609dbdbec795746d336e4809a3e211ddc92e8d6ffeb3e25d61129
-size 6623820
+oid sha256:894b0993b69ebd1cafc09023b27211f1b05740a082cf9ca80e47db74d13b9034
+size 6339964
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin
index 864a8893d..2f30a9a3f 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4d05b034196df340038c767a70317f3a4391c913a9f5c10518c1da3963f1ceb6
-size 10837383
+oid sha256:f1db772c9e548bb4febe7393c9d6fc13c09e4aa09a7edf969d892895bff32f68
+size 11546673
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx
index d414a061a..0508e8013 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b98ecbd4e8441c101dc28c59c1926f4f4ba288331bde0138b0b07490bd802dc7
-size 7862876
+oid sha256:b54584364e98b55a9a59d34d71e93f5f36daa31311a184fe3be207702f3f87be
+size 7723468
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.bin
index 09b9ad9cd..8df802a3f 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:7e623f16ede3e52cf8c666e1868c2e8fd7a877f7d17c26884cfe2563f531d539
-size 12062732
+oid sha256:98c7435971d33a369133691e09deff33deaf4944992fc6bc7f69caa7496a057b
+size 12207094
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.fbx
index 16b5c6422..ef10d899d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ae5d4a53b0ceca05f477bd3603903b7bc2c7d5a0edc7fa8b89d627a14c4fc7ff
-size 8118684
+oid sha256:2403e0e808dcfeb8954ba614733b3ea26c057b0d330bdf0d0b65f491e08af740
+size 6553084
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin
index 77204598d..6e2a8414d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4f63a9b11fff81794e700c2ffbce3ba5de77043bdfd9ef147bd95ff32c2ddda5
-size 11605392
+oid sha256:9a9e90b902d4da9e360216b4c96513555e12f4dadb99d4389878089efafd70f8
+size 12323872
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx
index daee529ae..559f366ef 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:93cad5fc47ba8715e94c226fbf5209b69948b99131a8e2d86e2348fa1ceab614
-size 11317884
+oid sha256:938483f504331e0b5ca0e9ce29fa9e395d59dff8abec407aa93a334853747ab9
+size 11539404
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin
index 45a33f247..5d04a040d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:697745c7628aff20a58c7889620cad2ad044d0327963fe52ba21cab05eea8c93
-size 60877918
+oid sha256:a7308edf5d56b9ac91ce7403d6f6f98ea62cd4c319c3835e52aae1067cda7dfb
+size 62592578
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx
index a3bfcc9e0..4220d1739 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:d98f52f20ecd4445c3e11cdcc0225d5f9c9bef744b80371a79d4da45029d75af
-size 162110172
+oid sha256:001d8a1d5be729122c757a16315b8193c1ab47685fb7fa2d40faad1e6cb4d715
+size 177441692
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin
index 6973b43df..6ded131bb 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:eeabb9187a67e6cb52b0ab83c0373a3aabae3087cfcac6ba7615235c4b800ee0
-size 19558977
+oid sha256:53dfee0b7195c0869d932455b16f352fc61f72b90d56db67f670cd5a7747d7bf
+size 20519009
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx
index 592a12504..108b3d42d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:1365b28033d92c5b89d0bc349f9ed6e37f76f9251a38baa8f3bc3df58c6c4784
-size 42318124
+oid sha256:897b61454db9071830bee04c7f8210c23bacb9fb63c574917a6ac727701e5a37
+size 45753868
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin
index 43f5406c5..844767a1e 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:deaf609ed71e00e5d72ace1d0f3b9a6f64e459aabc10c5a4c9129d9787c354e2
-size 15538505
+oid sha256:9576acdcb743233d97ed831dc74096967077ae28bb19b4eb2223a0646c63839c
+size 16364903
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx
index 47e449856..bb729b88a 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b46e87261c87183d1d732217560577eb05283a6444ac07db6fefb4aec9693ef2
-size 13645916
+oid sha256:4de90d200508da6673585231d01b06f800c10dad3b7ea808bbedc0ab64a75e4a
+size 13980236
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin
index 0bab1f105..fd5029a68 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6f6947410dfd4b5db8d9790eacd4e065bf71a539da23a6fb4231dd4da76f56cf
-size 12250323
+oid sha256:e3ca34547838ec9e3e8f0cef1a3817de282c0da75768ed389de4c6aa0219a8b4
+size 12963289
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx
index b50257389..5b1e71bfa 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:17e4c94bcc64d1d3b52bb061a57f6bf00e2b21cf1ecdd009b504f14787919ca9
-size 9683740
+oid sha256:ab0ecb2ae4fe28e94b5af27f5c46c7758b29259ff34d0cffa7d9c3b86d6d7026
+size 9688732
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin
index a9107932e..18b29bd66 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b84350fba6f577232280266810e71ec6d642e71976d5535e2ab83a268bbada15
-size 10529725
+oid sha256:2a2da149003960e5b6a0e4a1d5efa0d67b4ae89a8988ad7aae7353130eb5f6a7
+size 14701126
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx
index ad0b3270a..391766576 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f0a58fd18e9d37dfa15675a867aac05b5eab0d300afe8c361efbf5628c7aba20
-size 6321564
+oid sha256:0a9758a48bbed331345770dc11fc511e8b84082bc45321f47d730e9605b12c06
+size 14012572
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory02_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory02_D.png
deleted file mode 100644
index 0d51ee046..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory02_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory02_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory02_N.dds
deleted file mode 100644
index 3163e2e02..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory02_N.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory_SRXO.dds
deleted file mode 100644
index 096e38ffc..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory_SRXO.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MIrabelGarlick_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Head_MIrabelGarlick_N.dds
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MIrabelGarlick_N.dds
rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Head_MIrabelGarlick_N.dds
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Head_MirabelGarlick_D.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_D.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Head_MirabelGarlick_D.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Head_MirabelGarlick_SRXO.dds
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_SRXO.dds
rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Head_MirabelGarlick_SRXO.dds
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank2_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Blank2_MSK.dds
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank2_MSK.dds
rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Blank2_MSK.dds
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Blank_N.dds
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank_N.dds
rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Blank_N.dds
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Cav_Spid_ThickWeb_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Cav_Spid_ThickWeb_N.dds
deleted file mode 100644
index 4a77ba948..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Cav_Spid_ThickWeb_N.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eye_IrisTint_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eye_IrisTint_MSK.dds
deleted file mode 100644
index ab2620bf1..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eye_IrisTint_MSK.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Eye_Iris_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eye_Iris_D.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Eye_Iris_D.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eye_Iris_D.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eyelash_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eyelash_A.dds
deleted file mode 100644
index f138faf0d..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eyelash_A.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_DAO_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Garlick_Hair_DAO_MSK.dds
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_DAO_MSK.dds
rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Garlick_Hair_DAO_MSK.dds
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_THV_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Garlick_Hair_THV_MSK.dds
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_THV_MSK.dds
rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Garlick_Hair_THV_MSK.dds
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_D.dds
deleted file mode 100644
index 4e9bdabae..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_D.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_DAO_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_DAO_MSK.dds
deleted file mode 100644
index 4de9830a5..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_DAO_MSK.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_Rainbow_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_Rainbow_D.dds
deleted file mode 100644
index f3ab80d81..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_Rainbow_D.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_THV_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_THV_MSK.dds
deleted file mode 100644
index 8a210875e..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_THV_MSK.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_TVOA_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_TVOA_MSK.dds
deleted file mode 100644
index aa9cfad79..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_TVOA_MSK.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_D.dds
deleted file mode 100644
index 830c0922b..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_D.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_N.dds
deleted file mode 100644
index 4bf3e4537..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_N.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_SRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_SRO.dds
deleted file mode 100644
index a0d2e0b54..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_SRO.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_D.dds
deleted file mode 100644
index 68e3b3514..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_D.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_N.dds
deleted file mode 100644
index d30473e87..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_N.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_SRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_SRO.dds
deleted file mode 100644
index 7fe6c2d27..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_SRO.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_D.dds
deleted file mode 100644
index 0f81f12af..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_D.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_N.dds
deleted file mode 100644
index 6395c9cc8..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_N.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_SRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_SRO.dds
deleted file mode 100644
index 3bb71ecde..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_SRO.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_Head_EyeShadow_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_Head_EyeShadow_A.dds
deleted file mode 100644
index 0aaa725e1..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_Head_EyeShadow_A.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_D.dds
deleted file mode 100644
index 6e3639535..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_D.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_Fur_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_Fur_D.png
deleted file mode 100644
index fb2900230..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_Fur_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_Glow_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_Glow_MSK.dds
deleted file mode 100644
index cec891d0c..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_Glow_MSK.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_MRO.dds
deleted file mode 100644
index 371a6bda7..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_MRO.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_N.dds
deleted file mode 100644
index f1271ca8c..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_N.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_MirabelGarlick_D.dds
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_D.dds
rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_MirabelGarlick_D.dds
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_MirabelGarlick_MRO.dds
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_MRO.dds
rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_MirabelGarlick_MRO.dds
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_MirabelGarlick_N.dds
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_N.dds
rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_MirabelGarlick_N.dds
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_D.dds
deleted file mode 100644
index 9cefbede6..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_D.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds
index 6886922fb..798944162 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_MRO.dds
deleted file mode 100644
index 8dd44d423..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_MRO.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_YF_HeadBase02_Ivory_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_YF_HeadBase02_Ivory_SRXO.dds
deleted file mode 100644
index 324f72cc5..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_YF_HeadBase02_Ivory_SRXO.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Young_F_Head_Generic00_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Young_F_Head_Generic00_N.dds
deleted file mode 100644
index 2c9251211..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Young_F_Head_Generic00_N.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Young_F_Head_Ivory_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Young_F_Head_Ivory_D.png
deleted file mode 100644
index 588f23307..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Young_F_Head_Ivory_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/VFX_T_SkinBurn_Emiss_BPF_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/VFX_T_SkinBurn_Emiss_BPF_D.dds
deleted file mode 100644
index 4136a9832..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/VFX_T_SkinBurn_Emiss_BPF_D.dds and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin
index 8c5a78cca..1c2b00445 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:1d0ce3e6476d9637d26dbff6df00873b28d976705f6cb4e29b2f02a8314f768b
-size 91768265
+oid sha256:aa3e95035ff4c49f22edc7e9b59c06f7aadf9e20f739e6f725b14a76a8724da0
+size 91768272
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.xml
index e1905d26d..f372ca06d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.xml
@@ -30,7 +30,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/T_Poltergeist_Eye_E.dds
new file mode 100644
index 000000000..798944162
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/T_Poltergeist_Eye_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin
index db6d0011c..d8517eaf0 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a1096c9b3670edcac0ab9a9dab03ba62e56409260a5dd35ddfb64eeb0f63e62d
-size 3104615
+oid sha256:5d53a8ca1dda4cfe6fc341f2e15ded05e5f26663525f572614c7e64458698510
+size 3320395
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin
index 62040dc7f..abaf01430 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e0f3bb296fa75aae17191189774440990f98687ea28e3a20cefaca3ec5efcfd0
-size 3845100
+oid sha256:93136ab26d5b2139f8e5b9ec10eb65ef89d66c42acefc3eacf6a80edcd054329
+size 4088859
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin
index c2fa679c5..85653bdc6 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:8ee8d4bdde7a13a58a5c12a968be689bd37e8f7ddacd47a7d4c3b570730653e7
-size 6914714
+oid sha256:0be67eadf211e8afc7bd556edf6dccea40fc46f46d84c931e61cd8a396a965b5
+size 6914734
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.fbx
index ba38f5695..4de7894d7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:943e19a56f9fc364fdf15d94ef8676ed56eeb95c5256c8b56a9bee3f58735faf
-size 2720396
+oid sha256:58d057893050d6542ac8ae2aea1448108ab3acb1ae17ca8ed019a870a3361d2e
+size 2781292
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.xml
index efb16c354..972c717df 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.xml
@@ -30,15 +30,15 @@
-
-
+
+
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage_Anim.fbx
index 6e90af9e6..aacbf45db 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage_Anim.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage_Anim.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:7816274846a7d905a5d01fbad48d186f07e1b855dfdc141d04338378205f322d
-size 4961324
+oid sha256:7ac89955d09f6637f2f14a4ab0d65a8c872da6044c71f057f3bf5b8f3fccc6c2
+size 3823948
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx
index 4855fb9cd..625ac5e89 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4d7813f0c76d9c94ab480f6583a3d94f8ce20cc903d4eaedeb104b055f555b98
-size 45100
+oid sha256:34c2a8fea0adb88622742c6c840879d36ca6a09dc66d1099c22fdf661544622c
+size 44988
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 ad6342569..2e08ae843 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
@@ -829,7 +829,7 @@ PS_OUT PS_UPPER_DMRON_ToMRO(PS_IN In)
return Out;
}
-PS_OUT PS_GLASSES_DMRON_ToMRO(PS_IN In)
+PS_OUT PS_GLASSES_DSRON_ToSRO(PS_IN In)
{
PS_OUT Out = (PS_OUT) 0;
@@ -840,22 +840,22 @@ PS_OUT PS_GLASSES_DMRON_ToMRO(PS_IN In)
vDiffuse = ApplyDissolve(g_DeadDisolveTexture, g_fDisolveRatio, g_fDisolveAmount, g_fDisolveEdgeWidth, vBurnColor, vDiffuse, In.vTexcoord);
}
- clip(vDiffuse.a - 0.2f);
-
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);
+ float4 vSRO_Mask = g_SpecularTexture.Sample(DefaultSampler, In.vTexcoord);
+ float fAlpha = 1.f - vSRO_Mask.b - 0.3f;
- Out.vAlbedo = vDiffuse;
+ Out.vAlbedo = vDiffuse.rgba;
+ Out.vAlbedo.a = vSRO_Mask.b;
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),
+ (In.vProjPos.w / g_fFar),
+ (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(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f);
+ Out.vSurface = float4(vSRO_Mask.r, vSRO_Mask.g, vSRO_Mask.b, 0.f);
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
// SRO
return Out;
@@ -1474,10 +1474,10 @@ technique11 DefaultTechnique
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
- SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
- PixelShader = compile ps_5_0 PS_GLASSES_DMRON_ToMRO();
+ PixelShader = compile ps_5_0 PS_GLASSES_DSRON_ToSRO();
}
pass EmissiveMetalness_DENMRO_ToMRO // 10
{
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index 02d4560de..1f280176e 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -193,6 +193,7 @@ call Update_Shaders.bat
+
@@ -233,6 +234,7 @@ call Update_Shaders.bat
+
@@ -482,6 +484,7 @@ call Update_Shaders.bat
+
@@ -524,6 +527,7 @@ call Update_Shaders.bat
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index e0174c4b1..6ceddf134 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -801,6 +801,12 @@
{9b246a74-cf6e-4f02-86fb-0a499cb39d4e}
+
+
+ {aa6ef154-b82d-42eb-82a7-f8b7f6631a1e}
+
+
+ {29bd6d08-5bfd-48ca-bd32-40824c276032}
@@ -1622,6 +1628,12 @@
02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Troll_Rush
+
+
+ 02.GameObjects\Dummys\DummyNPC
+
+
+ 02.GameObjects\ReparoObject
@@ -2451,6 +2463,12 @@
02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Troll_Rush
+
+
+ 02.GameObjects\Dummys\DummyNPC
+
+
+ 02.GameObjects\ReparoObject
diff --git a/Jusin154_Team3D/Editor/Private/AlphaMap.cpp b/Jusin154_Team3D/Editor/Private/AlphaMap.cpp
index 8cbaf5acc..c2647ebca 100644
--- a/Jusin154_Team3D/Editor/Private/AlphaMap.cpp
+++ b/Jusin154_Team3D/Editor/Private/AlphaMap.cpp
@@ -162,7 +162,6 @@ void CAlphaMap::Load_ToFile(const _char* pFilePath)
in.read(reinterpret_cast<_char*>(&m_pPixels[i]), sizeof(_float4));
}
-
in.close();
D3D11_MAPPED_SUBRESOURCE SubResource{};
@@ -175,8 +174,8 @@ void CAlphaMap::Load_ToFile(const _char* pFilePath)
m_pContext->Unmap(m_pTexture2D, 0);
- /*if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, L"../Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds")))
- return;*/
+ if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, L"../Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds")))
+ return;
}
void CAlphaMap::Save_DDS(const _char* pFilePath)
diff --git a/Jusin154_Team3D/Editor/Private/DummyNPC.cpp b/Jusin154_Team3D/Editor/Private/DummyNPC.cpp
new file mode 100644
index 000000000..682ca5ea7
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/DummyNPC.cpp
@@ -0,0 +1,236 @@
+#include "pch.h"
+#include "DummyNPC.h"
+
+#include "GameInstance.h"
+
+
+CDummyNPC::CDummyNPC(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CGameObject{ pDevice, pContext }
+{
+}
+
+CDummyNPC::CDummyNPC(const CDummyNPC& rhs)
+ : CGameObject(rhs)
+{
+}
+
+HRESULT CDummyNPC::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CDummyNPC::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+ m_fUsingSurfaceParams = PBR_MRO;
+
+ _float fMaxScale = 1.f;
+ m_iID = 0;
+
+ if (nullptr != pArg)
+ {
+ DUMMY_NPC_DESC* pDesc = static_cast(pArg);
+ m_iID = pDesc->iID;
+ m_pTransformCom->Set_Scale(pDesc->vScale);
+ m_pTransformCom->Set_Rotation(pDesc->vRotation);
+ m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
+ }
+
+ return S_OK;
+}
+
+void CDummyNPC::Priority_Update(_float fTimeDelta)
+{
+
+}
+
+void CDummyNPC::Update(_float fTimeDelta)
+{
+}
+
+void CDummyNPC::Late_Update(_float fTimeDelta)
+{
+ m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+}
+
+HRESULT CDummyNPC::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+
+ _uint iNumMesh = m_pModelCom->Get_NumMeshes();
+
+ for (_uint i = 0; i < iNumMesh; i++)
+ {
+ if (FAILED(m_pShaderCom->Bind_SRV("g_DiffuseTexture", m_pDiffuseTextureCom->Get_SRV(0)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_SRV("g_NormalTexture", m_pNormalTextureCom->Get_SRV(0)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_SRV("g_SurfaceParamsTexture", m_pSurfaceTextureCom->Get_SRV(0)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+ }
+
+ return S_OK;
+}
+
+HRESULT CDummyNPC::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ /* Com_Texture */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("DUMMY_NPC_Diffuse"),
+ reinterpret_cast(&m_pDiffuseTextureCom))))
+ return E_FAIL;
+ /* Com_Texture */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("DUMMY_NPC_Normal"),
+ reinterpret_cast(&m_pNormalTextureCom))))
+ return E_FAIL;
+ /* Com_Texture */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Base_MRO"),
+ reinterpret_cast(&m_pSurfaceTextureCom))))
+ return E_FAIL;
+
+ /* Com_Model */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Model_DummyNpc"),
+ reinterpret_cast(&m_pModelCom))))
+ return E_FAIL;
+
+ /* Com_Shader */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
+ reinterpret_cast(&m_pShaderCom))))
+ return E_FAIL;
+
+ return S_OK;
+}
+
+HRESULT CDummyNPC::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CDummyNPC* CDummyNPC::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CDummyNPC* pInstance = new CDummyNPC(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CDummyNPC");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CDummyNPC::Clone(void* pArg, CGameObject* pOwner)
+{
+ CDummyNPC* pInstance = new CDummyNPC(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CDummyNPC");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CDummyNPC::Free()
+{
+ __super::Free();
+
+
+ SAFE_RELEASE(m_pDiffuseTextureCom);
+ SAFE_RELEASE(m_pNormalTextureCom);
+ SAFE_RELEASE(m_pSurfaceTextureCom);
+ SAFE_RELEASE(m_pModelCom);
+ SAFE_RELEASE(m_pShaderCom);
+}
+
+void CDummyNPC::Describe_Entity()
+{
+ GUI::InputInt("ID", (_int*)(&m_iID));
+ m_pTransformCom->Describe_Entity();
+
+ if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT))
+ {
+ _float3 vPosition = {};
+ if (m_pGameInstance->isPicking(&vPosition))
+ {
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&vPosition), 1.f));
+ }
+ }
+
+}
+
+HRESULT CDummyNPC::Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root)
+{
+ tinyxml2::XMLElement* object = doc.NewElement("Object");
+ object->SetAttribute("ID", m_iID);
+ root->InsertEndChild(object);
+
+
+#pragma region TRANSFORM
+ _float3 vPosition = {};
+ XMStoreFloat3(&vPosition, m_pTransformCom->Get_State(STATE::POSITION));
+
+ _float3 vScale = m_pTransformCom->Get_Scale();
+
+ _float3 vRotation = m_pTransformCom->Get_Rotation();
+
+ tinyxml2::XMLElement* Position = doc.NewElement("Position");
+ Position->SetAttribute("x", vPosition.x);
+ Position->SetAttribute("y", vPosition.y);
+ Position->SetAttribute("z", vPosition.z);
+ object->InsertEndChild(Position);
+
+ tinyxml2::XMLElement* Scale = doc.NewElement("Scale");
+ Scale->SetAttribute("x", vScale.x);
+ Scale->SetAttribute("y", vScale.y);
+ Scale->SetAttribute("z", vScale.z);
+ object->InsertEndChild(Scale);
+
+ tinyxml2::XMLElement* Rotation = doc.NewElement("Rotation");
+ Rotation->SetAttribute("x", vRotation.x);
+ Rotation->SetAttribute("y", vRotation.y);
+ Rotation->SetAttribute("z", vRotation.z);
+ object->InsertEndChild(Rotation);
+
+#pragma endregion
+
+ return S_OK;
+}
diff --git a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp
index ce750c002..08d4721c6 100644
--- a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp
@@ -20,6 +20,7 @@
#include "DummyDecal.h"
#include "EffectPool.h"
#include "InstancedProp_Light.h"
+#include "ReparoObject.h"
CLevel_MapViewer::CLevel_MapViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
@@ -138,7 +139,8 @@ HRESULT CLevel_MapViewer::Ready_Layer_Background(const _wstring& strLayerTag)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
return E_FAIL;
-
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
+ return E_FAIL;
return S_OK;
}
@@ -634,7 +636,7 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
- Desc.bEditMode = true;
+ Desc.bEditMode = false;
Desc.isShake = false;
Desc.iShaderPassIndex = 4;
Desc.vRadius = _float2(0.f, 0.f);
diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
index 05ea5f8be..193623c16 100644
--- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
@@ -19,6 +19,7 @@
#include "Player.h"
#include "Goblin.h"
#include "Broom.h"
+#include "ReparoObject.h"
CLevel_ObjectViewer::CLevel_ObjectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
{
@@ -777,6 +778,9 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_Dummy(const _wstring& strLayerTag)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE)))
return E_FAIL;
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
+ return E_FAIL;
+
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index ab07bf208..218e3b7f6 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -184,6 +184,7 @@
#include "LightSpawner.h"
#include "RaceRing.h"
#include "MapElement_Balloon.h"
+#include "DummyNPC.h"
#pragma endregion
@@ -241,6 +242,7 @@
#include "Ranrok_DeadSplash.h"
#include "Ranrok_DeadImpact.h"
#include "Ranrok_Prop.h"
+#include "ReparoObject.h"
#pragma endregion
@@ -2886,6 +2888,9 @@ HRESULT CLoader::Loading_For_MapViewer()
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext))))
return E_FAIL;
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CReparoObject::Create(m_pDevice, m_pContext))))
+ return E_FAIL;
#pragma endregion
@@ -3056,6 +3061,24 @@ HRESULT CLoader::Loading_For_MapViewer()
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Effect/Decal/DecalBox.fbx", XMMatrixIdentity()))))
return E_FAIL;
+#pragma region DUMMY_NPC
+ /* DUMMY_NPC_Diffuse */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("DUMMY_NPC_Diffuse"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment/Sanctum_Dungeon/Textures/Props/T_AgedTombProtector_Grunt_A_D.dds"), 0)))) {
+ return E_FAIL;
+ }
+ /* DUMMY_NPC_Normal */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("DUMMY_NPC_Normal"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment/Sanctum_Dungeon/Textures/Props/T_AgedTombProtector_Grunt_A_N.dds"), 0)))) {
+ return E_FAIL;
+ }
+
+ /* For.Prototype_Component_Model_DummyNpc */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Model_DummyNpc"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "C:/MeshTable/Game/Environment/DummyNpc.fbx", XMMatrixRotationY(XMConvertToRadians(180.f))))))
+ return E_FAIL;
+#pragma endregion
+
#pragma region MAP_LANDS
/* For.Prototype_Component_Hogsmead_Land */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_Land"),
@@ -3135,7 +3158,7 @@ HRESULT CLoader::Loading_For_MapViewer()
/* For.Prototype_Component_FloatingBalloon */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_FloatingBalloon"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.fbx"))))
+ CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.bin"))))
return E_FAIL;
/* For.Prototype_Component_Hogwart_Lake */
@@ -3442,7 +3465,7 @@ _bool bLoadHogsmeade = true;
}
#pragma region HOGWART
-_bool bHogwartLoad = { true };
+_bool bHogwartLoad = { false };
/* Hogwart LOD */
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD",
@@ -3778,7 +3801,7 @@ vector> jobFutures;
_uint iLoadCount = 44;
vector*> Contents(iLoadCount);
-_bool isLoad_Map = { false };
+_bool isLoad_Map = { true };
if(isLoad_Map)
{
{ /* Terrain */
@@ -4411,6 +4434,9 @@ if(isLoad_Map)
/* For.Prototype_GameObject_RaceRing */
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRaceRing::Create(m_pDevice, m_pContext))))
return E_FAIL;
+ /* For.Prototype_GameObject_DummyNPC */
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummyNPC::Create(m_pDevice, m_pContext))))
+ return E_FAIL;
/* For.Prototype_GameObject_MapObject_Manager */
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapObject_Manager::Create(m_pDevice, m_pContext, ModelPrototypeTags, ModelPrototypePath))))
diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
index 925132d1d..4d40a3377 100644
--- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
@@ -25,6 +25,7 @@
#include "CamPosition_Shoulder.h"
#include "CamPosition_Arm.h"
#include "Wand.h"
+#include "ReparoObject.h"
#pragma endregion
@@ -70,6 +71,19 @@ HRESULT CLoader::Loading_For_ObjectViewer()
vector*>> futures = {};
#pragma region MONSTER
+#ifndef 기무리
+ /* For.Prototype_Component_Hogsmead_NorthLakeShallow */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\VFX\\Meshes\\Animated\\HM_Troll_OLI_Reparo\\VFX_SK_OLI_TrollFight_BlockerA\\VFX_SK_OLI_TrollFight_BlockerA.fbx", XMMatrixIdentity()))))
+ return E_FAIL;
+
+ /* For.Prototype_Component_Hogsmead_NorthLakeShallow */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\VFX\\Meshes\\Animated\\HM_Troll_OLI_Reparo\\VFX_SK_OLI_TrollFight_BlockerB\\VFX_SK_OLI_TrollFight_BlockerB.fbx", XMMatrixIdentity()))))
+ return E_FAIL;
+#endif // 기무리
+
+
futures.emplace_back(Deferred_ModelLoad(
MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
@@ -249,9 +263,9 @@ HRESULT CLoader::Loading_For_ObjectViewer()
// TEXT("Prototype_Component_Playable_Model")
//));
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
- return E_FAIL;
+ //if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
+ // CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
+ // return E_FAIL;
#pragma region NPC
@@ -315,7 +329,6 @@ HRESULT CLoader::Loading_For_ObjectViewer()
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
TEXT("Prototype_Component_Elf_Model")
));
-
futures.emplace_back(Deferred_ModelLoad(
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
@@ -347,6 +360,8 @@ HRESULT CLoader::Loading_For_ObjectViewer()
TEXT("Prototype_Component_MudiwaOnai_Model")
));
+ ///////////////////////////////
+
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx", XMMatrixIdentity(),
@@ -364,10 +379,15 @@ HRESULT CLoader::Loading_For_ObjectViewer()
//));
//futures.emplace_back(Deferred_ModelLoad(
- // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
- // TEXT("Prototype_Component_Playable_Model")
+ // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.fbx", XMMatrixIdentity(),
+ // TEXT("Prototype_Component_Student_Cmbt_Model")
//));
+ futures.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Playable_Model")
+ ));
+
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Student_Cmbt_Model")
@@ -453,6 +473,10 @@ HRESULT CLoader::Loading_For_ObjectViewer()
//if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTerrain::Create(m_pDevice, m_pContext))))
// return E_FAIL;
+ /* For.Prototype_Component_FSM */
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CReparoObject::Create(m_pDevice, m_pContext))))
+ return E_FAIL;
+
/* For.Prototype_Component_FSM */
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext))))
return E_FAIL;
diff --git a/Jusin154_Team3D/Editor/Private/MapElement_Balloon.cpp b/Jusin154_Team3D/Editor/Private/MapElement_Balloon.cpp
index 8749a3521..1643513f0 100644
--- a/Jusin154_Team3D/Editor/Private/MapElement_Balloon.cpp
+++ b/Jusin154_Team3D/Editor/Private/MapElement_Balloon.cpp
@@ -47,8 +47,8 @@ HRESULT CMapElement_Balloon::Initialize(void* pArg)
m_isFloating = false;
m_iDiffuseIndex = 0;
m_vPosition = _float3(0.f, 0.f, 0.f);
- m_vScale = _float3(0.f, 0.f, 0.f);
- m_vRotation = _float3(1.f, 1.f, 1.f);
+ m_vScale = _float3(1.f, 1.f, 1.f);
+ m_vRotation = _float3(0.f, 0.f, 0.f);
}
memcpy(&m_vOriginPosition, &m_vPosition, sizeof(_float3));
diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp
index 4632a649f..50ee77b0e 100644
--- a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp
+++ b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp
@@ -19,6 +19,7 @@
#include "InstancedProp_Light.h"
#include "EditEffect.h"
#include "MapElement_Balloon.h"
+#include "DummyNPC.h"
CMapObject_Manager::CMapObject_Manager(ID3D11Device * pDevice, ID3D11DeviceContext * pContext)
: CGameObject(pDevice, pContext), m_pInfoInstance{CInfoInstance::GetInstance()}
@@ -87,8 +88,8 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
// return E_FAIL;
#pragma region HOGSMEADE
- /* if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
- return E_FAIL;*/
+ if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
+ return E_FAIL;
#pragma endregion
#pragma region DUNGEON
@@ -99,10 +100,10 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
#pragma endregion
#pragma region HOGWART
- if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
- return E_FAIL;
- if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
- return E_FAIL;
+ //if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
+ // return E_FAIL;
+ //if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
+ // return E_FAIL;
#pragma endregion
#pragma region Light
@@ -129,8 +130,8 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
if (FAILED(Load_RaceRing("RaceRing_Data")))
return E_FAIL;
- if (FAILED(Load_Balloons("Ballon_Data")))
- return E_FAIL;
+ /*if (FAILED(Load_Balloons("Ballon_Data")))
+ return E_FAIL;*/
#pragma endregion
#pragma region EFFECT_PART
@@ -159,10 +160,8 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
//if (FAILED(Load_EffectParts("Rotate_Rock_Large2_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large2")))
// return E_FAIL;
-
//if (FAILED(Load_EffectParts("Bon_Fire_Data", "../Bin/Resources/Data/Effect/MapEffect/Bon_Fire")))
// return E_FAIL;
-
#pragma endregion
@@ -278,9 +277,9 @@ void CMapObject_Manager::Update(_float fTimeDelta)
//Update_LightSpawer();
//Update_Decal();
//Update_RaceRing();
- //Update_Balloon();
//Update_EffectParts();
//Update_Balloon();
+ Update_DummyNpc();
Update_Unified();
@@ -2102,7 +2101,6 @@ HRESULT CMapObject_Manager::Load_RaceRing(const _char* pFileName)
return E_FAIL;
}
-
return S_OK;
}
@@ -2114,14 +2112,14 @@ HRESULT CMapObject_Manager::Save_Balloons(const _char* pFileName)
return S_OK;
tinyxml2::XMLDocument doc;
- string strPath = "../Bin/Resources/Data/Map/Balloon/" + string(pFileName) + ".xml";
+ string strPath = "../Bin/Resources/Data/Map/NPC/" + string(pFileName) + ".xml";
tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str());
doc.Clear();
doc.InsertFirstChild(doc.NewDeclaration());
- tinyxml2::XMLElement* root = doc.NewElement("Balloon");
+ tinyxml2::XMLElement* root = doc.NewElement("NPC");
doc.InsertEndChild(root);
if (nullptr != pLayer)
@@ -2330,6 +2328,51 @@ HRESULT CMapObject_Manager::Load_EffectParts(const _char* pFileName, const _char
return S_OK;
}
+HRESULT CMapObject_Manager::Save_DummyNpc(const _char* pFileName)
+{
+ CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Npc"));
+
+ if (nullptr == pLayer)
+ return S_OK;
+
+ tinyxml2::XMLDocument doc;
+ string strPath = "../Bin/Resources/Data/Map/NPC/" + string(pFileName) + ".xml";
+
+ tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str());
+
+ doc.Clear();
+ doc.InsertFirstChild(doc.NewDeclaration());
+
+ tinyxml2::XMLElement* root = doc.NewElement("NPC");
+ doc.InsertEndChild(root);
+
+ if (nullptr != pLayer)
+ {
+ const list* pList = pLayer->Get_Objects();
+
+ for (auto pGamObject : *pList)
+ {
+ CDummyNPC* pNpc = dynamic_cast(pGamObject);
+
+ if (nullptr == pNpc)
+ return E_FAIL;
+
+ if (FAILED(pNpc->Save_XML(doc, root)))
+ return E_FAIL;
+ }
+ }
+
+ if (doc.SaveFile(strPath.c_str()) != tinyxml2::XML_SUCCESS) {
+ MSG_BOX("Failed to Save File");
+ }
+ else
+ {
+ MSG_BOX("Succeed to Save CDummyNPC");
+ }
+
+ return S_OK;
+}
+
void CMapObject_Manager::Update_PrototypeList()
{
GUI::Begin("Model Prototype List");
@@ -2750,11 +2793,11 @@ void CMapObject_Manager::Update_Balloon()
GUI::Begin("Ballon Editor");
if (GUI::Button("Save Ballon"))
{
- Save_Balloons("Ballon_Data");
+ Save_Balloons("DummyNPC_Data");
}
if (GUI::Button("Load Ballon"))
{
- Load_Balloons("Ballon_Data");
+ Load_Balloons("DummyNPC_Data");
}
if (GUI::Button("Add Ballon"))
{
@@ -2781,6 +2824,42 @@ void CMapObject_Manager::Update_Balloon()
GUI::End();
}
+void CMapObject_Manager::Update_DummyNpc()
+{
+ GUI::Begin("DummyNpc Editor");
+ if (GUI::Button("Save DummyNpc"))
+ {
+ Save_DummyNpc("DummyNPC_Data");
+ }
+ if (GUI::Button("Load DummyNpc"))
+ {
+ //Load_Balloons("DummyNPC_Data");
+ }
+ if (GUI::Button("Add DummyNpc"))
+ {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Npc"))))
+ {
+ }
+ }
+
+ GUI::InputInt("Index : ", (_int*)&m_iSelectedIndex);
+ CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Npc"));
+
+ if (nullptr != pLayer)
+ {
+ _uint iIndex = {};
+ for (auto& pObject : *pLayer->Get_Objects())
+ {
+ if (m_iSelectedIndex == iIndex)
+ pObject->Describe_Entity();
+
+ ++iIndex;
+ }
+ }
+
+ GUI::End();
+}
+
void CMapObject_Manager::Create_PartObject(_wstring& strPrototypeTag)
{
vector<_uint> LodModelIndices;
diff --git a/Jusin154_Team3D/Editor/Private/ReparoObject.cpp b/Jusin154_Team3D/Editor/Private/ReparoObject.cpp
new file mode 100644
index 000000000..e1d904971
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/ReparoObject.cpp
@@ -0,0 +1,329 @@
+#include "pch.h"
+#include "ReparoObject.h"
+
+#include "GameInstance.h"
+#include "InfoInstance.h"
+#include "Unit.h"
+#include "PartObject.h"
+
+CReparoObject::CReparoObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CMonster(pDevice, pContext)
+{
+}
+
+CReparoObject::CReparoObject(const CReparoObject& Prototype)
+ : CMonster(Prototype)
+{
+}
+
+HRESULT CReparoObject::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CReparoObject::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(Ready_Components())) {
+ return E_FAIL;
+ }
+
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
+
+ m_pModelCom->Set_AnimationIndex(0);
+
+
+
+ return S_OK;
+}
+
+void CReparoObject::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CReparoObject::Update(_float fTimeDelta)
+{
+ __super::Update(fTimeDelta);
+
+ m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
+
+#ifdef _DEBUG
+ Describe_Entity();
+#endif // _DEBUG
+
+
+}
+
+void CReparoObject::Late_Update(_float fTimeDelta)
+{
+ __super::Late_Update(fTimeDelta);
+
+ m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+
+}
+
+HRESULT CReparoObject::Render()
+{
+ if (!m_pModelCom) {
+ 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);
+ }
+
+ for (_uint i = 0; i < iNumMeshes; i++)
+ {
+ if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+
+ 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_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);
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_bDrawOutLine) {
+ Render_OutLine();
+ }
+
+ return S_OK;
+}
+
+HRESULT CReparoObject::Render_OutLine()
+{
+ m_bDrawOutLine = false;
+ if (FAILED(Bind_ShaderResources())) {
+ 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;
+ }
+
+ Compute_Depth();
+ _float fCamFar = *m_pGameInstance->Get_CurrentCameraFar();
+ _float fRatio = CMyTools::Saturate((m_fCamDepth / (fCamFar * fCamFar)));
+ m_fOutLineThickness = CMyTools::Lerp_f1D(0.024f, 0.5f, fRatio);
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vOutLineColor", &m_vOutLineColor, sizeof(_float3)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineThickness", &m_fOutLineThickness, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineScale", &m_fOutLineScale, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLinePower", &m_fOutLinePower, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) {
+ 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_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_READ)))) {
+ 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;
+ }
+ }
+ return S_OK;
+}
+
+HRESULT CReparoObject::Ready_Components()
+{
+ CTransform::TRANSFORM_DESC Desc = {};
+
+ Desc.fSpeedPerSec = 10.f;
+ Desc.fRotationPerSec = XMConvertToRadians(180.0f);
+ Desc.fRadius = 10.f;
+
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pTransformCom, &Desc))) {
+ return E_FAIL;
+ }
+
+ /* Com_Model */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"),
+ 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;
+ }
+
+ return S_OK;
+}
+
+HRESULT CReparoObject::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;
+}
+
+CReparoObject* CReparoObject::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CReparoObject* pInstance = new CReparoObject(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CReparoObject");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CReparoObject::Clone(void* pArg, CGameObject* pOwner)
+{
+ CReparoObject* pInstance = new CReparoObject(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CReparoObject");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CReparoObject::Free()
+{
+ __super::Free();
+
+}
+#ifdef _DEBUG
+
+void CReparoObject::Describe_Entity()
+{
+ GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
+
+ if (m_pModelCom->Get_AnimSize() <= 0)
+ return;
+
+ if (GUI::BeginTabBar("Anim_List"))
+ {
+ if (GUI::BeginTabItem("ReparoObject"))
+ {
+ for (_uint i = 0; i < m_pModelCom->Get_AnimSize(); i++)
+ {
+ if (GUI::Button(m_pModelCom->Get_AnimList(i)))
+ {
+ m_pModelCom->Set_AnimationIndex(i);
+ }
+ }
+
+ GUI::EndTabItem();
+ }
+ GUI::EndTabBar();
+ }
+
+ _char label[24];
+
+ sprintf_s(label, "%s %d", "AnimIndex", m_pModelCom->Get_AnimIndex());
+
+ GUI::Text(label);
+
+ _float AnimTrack = m_pModelCom->Get_CurrentTrackPosition();
+ if (GUI::DragFloat("AnimTrack", &AnimTrack))
+ {
+ if (AnimTrack >= 0.f)
+ m_pModelCom->Set_CurrentTrackPosition(AnimTrack);
+ }
+
+ _float AnimRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
+ GUI::DragFloat("AnimRatio", &AnimRatio);
+
+ _float AnimSpeed = m_pModelCom->Get_AnimSpeed();
+ GUI::DragFloat("AnimSpeed", &AnimSpeed, 0.1f);
+ m_pModelCom->Set_AnimSpeed(AnimSpeed);
+
+ _bool bPlayAnim = m_pModelCom->Get_PlayAnim();
+ if (GUI::Checkbox("Play Anim", &bPlayAnim))
+ {
+ m_pModelCom->Set_PlayAnim(bPlayAnim);
+ }
+
+ GUI::End();
+}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Editor/Private/Terrain.cpp b/Jusin154_Team3D/Editor/Private/Terrain.cpp
index 479672b13..754c44c23 100644
--- a/Jusin154_Team3D/Editor/Private/Terrain.cpp
+++ b/Jusin154_Team3D/Editor/Private/Terrain.cpp
@@ -306,35 +306,35 @@ void CTerrain::Describe_Entity()
GUI::Begin("Terrain");
#pragma region ALPHA_MAP
- //GUI::InputInt("Color", &m_iColorIndex);
- //m_iColorIndex = max(0, min(4, m_iColorIndex));
-
+ GUI::InputInt("Color", &m_iColorIndex);
+ m_iColorIndex = max(0, min(4, m_iColorIndex));
+ //GUI::Checkbox("Flat", &m_isFlat);
GUI::InputInt("Rnage", (_int*)(&m_iMaskRange));
- //GUI::DragFloat("Value", &m_fMaskValue, 0.01f, -1.0f, 1.f);
- //if (GUI::Button("Save", ImVec2(100.f, 30.f)))
- //{
- // m_pAlphaMap->Save_ToFile("Hogwart_AlphaMap.bin");
- //}
- //if (GUI::Button("Load", ImVec2(100.f, 30.f)))
- //{
- // m_pAlphaMap->Load_ToFile("Hogwart_AlphaMap.bin");
- //}
+ GUI::DragFloat("Value", &m_fMaskValue, 0.01f, -1.0f, 1.f);
+ if (GUI::Button("Save", ImVec2(100.f, 30.f)))
+ {
+ m_pAlphaMap->Save_ToFile("Hogsmeade_AlphaMap.bin");
+ }
+ if (GUI::Button("Load", ImVec2(100.f, 30.f)))
+ {
+ m_pAlphaMap->Load_ToFile("Hogsmeade_AlphaMap.bin");
+ }
m_iMaskRange = max(0, m_iMaskRange);
GUI::InputFloat("Up Value", &m_fUpValue, 0.001f, 0.1f);
-
+ GUI::InputFloat3("Picking Pos", (_float*)(&m_vPickingPosition));
if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON))
{
if (m_pGameInstance->isPicking(&m_vPickingPosition))
- {
+ {/*
if (m_pGameInstance->Key_Pressing(DIK_PERIOD))
- m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue, m_vPickingPosition, m_iMaskRange);
+ m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue , m_vPickingPosition, m_iMaskRange, m_isFlat);
if (m_pGameInstance->Key_Pressing(DIK_COMMA))
- m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue * -1.f, m_vPickingPosition, m_iMaskRange);
+ m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue, m_vPickingPosition, m_iMaskRange, m_isFlat);*/
- //XMStoreFloat3(&m_vPickingPosition, XMVector3TransformCoord(XMLoadFloat3(&m_vPickingPosition), m_pTransformCom->Get_WorldMatrixInv()));
- //if(m_pGameInstance->Key_Pressing(DIK_M))
- // m_pAlphaMap->Update(m_vPickingPosition, m_iColorIndex, m_fMaskValue, m_iMaskRange);
+ XMStoreFloat3(&m_vPickingPosition, XMVector3TransformCoord(XMLoadFloat3(&m_vPickingPosition), m_pTransformCom->Get_WorldMatrixInv()));
+ if(m_pGameInstance->Key_Pressing(DIK_M))
+ m_pAlphaMap->Update(m_vPickingPosition, m_iColorIndex, m_fMaskValue, m_iMaskRange);
}
}
diff --git a/Jusin154_Team3D/Editor/Public/DummyNPC.h b/Jusin154_Team3D/Editor/Public/DummyNPC.h
new file mode 100644
index 000000000..1894b5bcd
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/DummyNPC.h
@@ -0,0 +1,59 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "GameObject.h"
+
+NS_BEGIN(Engine)
+class CModel;
+class CShader;
+NS_END
+
+NS_BEGIN(Editor)
+
+class CDummyNPC final : public CGameObject
+{
+public:
+ typedef struct tagDummyNpcDesc
+ {
+ _uint iID = {};
+ _float3 vPosition = {};
+ _float3 vRotation = {};
+ _float3 vScale = { 1.f, 1.f, 1.f };
+ }DUMMY_NPC_DESC;
+private:
+ CDummyNPC(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CDummyNPC(const CDummyNPC& rhs);
+ virtual ~CDummyNPC() = 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;
+
+private:
+ CShader* m_pShaderCom = { nullptr };
+ CModel* m_pModelCom = { nullptr };
+
+ CTexture* m_pNormalTextureCom = { nullptr };
+ CTexture* m_pSurfaceTextureCom = { nullptr };
+ CTexture* m_pDiffuseTextureCom = { nullptr };
+
+ _uint m_iID = {};
+ _float m_fUsingSurfaceParams = {};
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Bind_ShaderResources() override;
+
+public:
+ static CDummyNPC* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+ HRESULT Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root);
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Level_BloomViewer.h b/Jusin154_Team3D/Editor/Public/Level_BloomViewer.h
index 028c7e1a8..cc01c5ffb 100644
--- a/Jusin154_Team3D/Editor/Public/Level_BloomViewer.h
+++ b/Jusin154_Team3D/Editor/Public/Level_BloomViewer.h
@@ -22,6 +22,7 @@ class CLevel_BloomViewer final : public CLevel
HRESULT Ready_Layer_Light();
HRESULT Ready_Layer_UI(const _wstring& strLayerTag);
HRESULT Ready_Layer_Effect(const _wstring& strLayerTag);
+ void ResetLevel_Environment() {};
public:
static CLevel_BloomViewer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID);
diff --git a/Jusin154_Team3D/Editor/Public/Level_EffectViewer.h b/Jusin154_Team3D/Editor/Public/Level_EffectViewer.h
index 7e411a32e..9e0325ca5 100644
--- a/Jusin154_Team3D/Editor/Public/Level_EffectViewer.h
+++ b/Jusin154_Team3D/Editor/Public/Level_EffectViewer.h
@@ -24,6 +24,7 @@ class CLevel_EffectViewer final : public CLevel
HRESULT Ready_Layer_Effect(const _wstring& strLayerTag);
HRESULT Ready_Layer_PhysX(const _wstring& strLayerTag);
HRESULT Ready_Layer_BackGround(const _wstring& strLayerTag);
+ void ResetLevel_Environment() {};
PHYSX_USERDATA m_PlaneData = {};
class CInfoInstance* m_pInfoInstance = { nullptr };
diff --git a/Jusin154_Team3D/Editor/Public/Level_Loading.h b/Jusin154_Team3D/Editor/Public/Level_Loading.h
index f378bc23e..6b495785d 100644
--- a/Jusin154_Team3D/Editor/Public/Level_Loading.h
+++ b/Jusin154_Team3D/Editor/Public/Level_Loading.h
@@ -31,6 +31,7 @@ class CLevel_Loading final : public CLevel
virtual HRESULT Initialize(LEVEL eNextLevelID);
HRESULT Initialize() override;
HRESULT Ready_Layer_BackGround(const _wstring& strLayerTag);
+ void ResetLevel_Environment() {};
public:
static CLevel_Loading* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, LEVEL eNextLevelID);
virtual void Free() override;
diff --git a/Jusin154_Team3D/Editor/Public/Level_Logo.h b/Jusin154_Team3D/Editor/Public/Level_Logo.h
index 612f5685f..d95b83910 100644
--- a/Jusin154_Team3D/Editor/Public/Level_Logo.h
+++ b/Jusin154_Team3D/Editor/Public/Level_Logo.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "Editor_Define.h"
#include "Level.h"
@@ -16,15 +16,15 @@ class CLevel_Logo final : public CLevel
virtual HRESULT Render() override;
private:
- /* ÀÌ ·¹º§¿¡¼ ¾²±âÀ§ÇÑ °´üµéÀ» »ý¼ºÇѴÙ. */
+ /* 이 레벨에서 쓰기위한 객체들을 생성한다. */
virtual HRESULT Initialize() override;
HRESULT Ready_Layer_Camera(const _wstring& strLayerTag);
HRESULT Ready_Layer_UI(const _wstring& strLayerTag);
-
+ void ResetLevel_Environment() {};
public:
static CLevel_Logo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID);
virtual void Free() override;
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Level_MapViewer.h b/Jusin154_Team3D/Editor/Public/Level_MapViewer.h
index 5f70680e4..c4236cb0d 100644
--- a/Jusin154_Team3D/Editor/Public/Level_MapViewer.h
+++ b/Jusin154_Team3D/Editor/Public/Level_MapViewer.h
@@ -29,6 +29,7 @@ class CLevel_MapViewer final : public CLevel
HRESULT Ready_Layer_Chest(const _wstring& strLayerTag);
HRESULT Ready_Layer_MapObjectManager(const _wstring& strLayerTag);
HRESULT Ready_Layer_Player_And_Ranrok();
+ void ResetLevel_Environment() {};
diff --git a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h
index 795f6c545..c012eb67d 100644
--- a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h
+++ b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h
@@ -41,6 +41,7 @@ class CLevel_ObjectViewer final : public CLevel
void Load_KeyFrame(const _char* Name);
void Find_Anim();
void Save_KeyFrame();
+ void ResetLevel_Environment() {};
private:
vector m_Objects;
diff --git a/Jusin154_Team3D/Editor/Public/Level_PhysXLab.h b/Jusin154_Team3D/Editor/Public/Level_PhysXLab.h
index 277feddd1..40ce15d8a 100644
--- a/Jusin154_Team3D/Editor/Public/Level_PhysXLab.h
+++ b/Jusin154_Team3D/Editor/Public/Level_PhysXLab.h
@@ -20,6 +20,7 @@ class CLevel_PhysXLab final : public CLevel
HRESULT Ready_Layer_Light();
HRESULT Ready_Layer_Camera(const _wstring& strLayerTag);
HRESULT Ready_Layer_PhysXObjects(const _wstring& strLayerTag);
+ void ResetLevel_Environment() {};
diff --git a/Jusin154_Team3D/Editor/Public/Level_UI.h b/Jusin154_Team3D/Editor/Public/Level_UI.h
index 91b37c2a8..0f5398c4a 100644
--- a/Jusin154_Team3D/Editor/Public/Level_UI.h
+++ b/Jusin154_Team3D/Editor/Public/Level_UI.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "Editor_Define.h"
#include "Level.h"
@@ -16,11 +16,12 @@ class CLevel_UI final : public CLevel
virtual HRESULT Render() override;
private:
- /* ÀÌ ·¹º§¿¡¼ ¾²±âÀ§ÇÑ °´üµéÀ» »ý¼ºÇѴÙ. */
+ /* 이 레벨에서 쓰기위한 객체들을 생성한다. */
virtual HRESULT Initialize() override;
HRESULT Ready_Layer_Camera(const _wstring& strLayerTag);
HRESULT Ready_Layer_UI(const _wstring& strLayerTag);
HRESULT Ready_Layer_Cursor(const _wstring& strLayerTag);
+ void ResetLevel_Environment() {};
public:
@@ -28,4 +29,4 @@ class CLevel_UI final : public CLevel
virtual void Free() override;
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/MapObject_Manager.h b/Jusin154_Team3D/Editor/Public/MapObject_Manager.h
index 72757078b..c4e5eae40 100644
--- a/Jusin154_Team3D/Editor/Public/MapObject_Manager.h
+++ b/Jusin154_Team3D/Editor/Public/MapObject_Manager.h
@@ -95,6 +95,8 @@ class CMapObject_Manager final : public CGameObject
HRESULT Save_EffectParts(const _char* pFileName);
HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath);
+
+ HRESULT Save_DummyNpc(const _char* pFileName);
#pragma endregion
void Update_PrototypeList();
@@ -107,6 +109,7 @@ class CMapObject_Manager final : public CGameObject
void Update_RaceRing();
void Update_EffectParts();
void Update_Balloon();
+ void Update_DummyNpc();
void Create_PartObject(_wstring& strPrototypeTag);
void Create_Elemnt(_wstring& strPrototypeTag);
diff --git a/Jusin154_Team3D/Editor/Public/ReparoObject.h b/Jusin154_Team3D/Editor/Public/ReparoObject.h
new file mode 100644
index 000000000..8bc3135fa
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/ReparoObject.h
@@ -0,0 +1,45 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "Monster.h"
+
+NS_BEGIN(Editor)
+
+class CReparoObject final : public CMonster
+{
+private:
+ CReparoObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CReparoObject(const CReparoObject& Prototype);
+ virtual ~CReparoObject() = default;
+
+public:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+ virtual HRESULT Render() override;
+
+private:
+ _float4 m_vOutLineColor = CMyTools::ColorRGBA_HEXtoFLOAT4(0xfefefe00);
+ _float m_fOutLineThickness = { 5.f };
+ _float m_fOutLineScale = { 2.f };
+ _float m_fOutLinePower = { 2.f };
+
+private:
+ HRESULT Ready_Components();
+ HRESULT Bind_ShaderResources();
+ HRESULT Render_OutLine();
+
+
+public:
+ static CReparoObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ virtual void Describe_Entity() override;
+#endif // _DEBUG
+
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Terrain.h b/Jusin154_Team3D/Editor/Public/Terrain.h
index 56f9b979d..d0f9c49a7 100644
--- a/Jusin154_Team3D/Editor/Public/Terrain.h
+++ b/Jusin154_Team3D/Editor/Public/Terrain.h
@@ -50,6 +50,7 @@ class CTerrain final : public CGameObject
_bool m_bUsePsx = { false };
_bool m_isEdit = {};
+ _bool m_isFlat = {};
_float m_fUsingSurfaceParams = {};
_float m_fHeightRatio = {1.f};
diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
index 7a353902f..80ad1e4e2 100644
--- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
+++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
@@ -61,6 +61,10 @@ HRESULT CCharacter_Controller::Render()
}
return S_OK;
}
+void CCharacter_Controller::Set_Name(const _char* pName)
+{
+ m_pController->getActor()->setName(pName);
+}
#endif // _DEBUG
PSX::PxRigidDynamic* CCharacter_Controller::Get_Actor()
{
diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp
index eb3b004cb..7d84edbeb 100644
--- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp
+++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp
@@ -52,9 +52,7 @@ HRESULT CGameInstance::Initialize_Engine(const ENGINE_DESC& EngineDesc, ID3D11De
}
}
#ifdef _DEBUG
-#ifdef 기무리
- m_pThreadHolder = CThreadHolder::Create(8);
-#elif Bin
+#ifdef Bin
m_pThreadHolder = CThreadHolder::Create(8);
#else
m_pThreadHolder = CThreadHolder::Create(6);
@@ -65,9 +63,6 @@ HRESULT CGameInstance::Initialize_Engine(const ENGINE_DESC& EngineDesc, ID3D11De
m_pThreadHolder = CThreadHolder::Create(12);
#endif // !_DEBUG
-
-
-
if (nullptr == m_pThreadHolder) {
return E_FAIL;
}
@@ -679,6 +674,11 @@ void CGameInstance::Set_LevelToChange()
return m_pLevel_Manager->Set_LevelToChange();
}
+void CGameInstance::ResetLevel_Environment()
+{
+ return m_pLevel_Manager->ResetLevel_Environment();
+}
+
CComponent* CGameInstance::Clone_Asset_Prototype(_uint iTargetLevel, const _wstring& strPrototypeTag, void* pArg, CGameObject* pOwner)
{
return m_pPrototype_Manager->Clone_Asset_Prototype(iTargetLevel, strPrototypeTag, pArg, pOwner);
diff --git a/Jusin154_Team3D/Engine/Private/Level_Manager.cpp b/Jusin154_Team3D/Engine/Private/Level_Manager.cpp
index dc68d6d3a..08f6bd0cd 100644
--- a/Jusin154_Team3D/Engine/Private/Level_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/Level_Manager.cpp
@@ -42,6 +42,11 @@ _uint CLevel_Manager::Get_Current_LevelID()
return m_pCurrentLevel->Get_LevelID();
}
+void CLevel_Manager::ResetLevel_Environment()
+{
+ m_pCurrentLevel->ResetLevel_Environment();
+}
+
_uint CLevel_Manager::Get_NextLevelID()
{
if (m_pCurrentLevel == nullptr) {
diff --git a/Jusin154_Team3D/Engine/Private/TimeSocket.cpp b/Jusin154_Team3D/Engine/Private/TimeSocket.cpp
index 3b932b5df..dd003dba2 100644
--- a/Jusin154_Team3D/Engine/Private/TimeSocket.cpp
+++ b/Jusin154_Team3D/Engine/Private/TimeSocket.cpp
@@ -21,6 +21,7 @@ HRESULT CTimeSocket::Initialize(void* pArg)
SOCKETCONTENTS* pDesc = static_cast(pArg);
m_Contents.fRatio = pDesc->fRatio;
+ m_Contents.pxTransform = pDesc->pxTransform;
m_Contents.bTriggerred = pDesc->bTriggerred;
m_Contents.pEventTarget = pDesc->pEventTarget;
m_Contents.strEventName = pDesc->strEventName;
@@ -43,7 +44,6 @@ HRESULT CTimeSocket::Initialize(void* pArg)
m_Contents.pxTransform = pDesc->pxTransform;
break;
case TIMESOCKET_PARAM::NOT_USE:
- m_Contents.pOtherTarget = nullptr;
break;
default:
m_Contents.pOtherTarget = nullptr;
diff --git a/Jusin154_Team3D/Engine/Private/Transform.cpp b/Jusin154_Team3D/Engine/Private/Transform.cpp
index d95985a45..e6910695a 100644
--- a/Jusin154_Team3D/Engine/Private/Transform.cpp
+++ b/Jusin154_Team3D/Engine/Private/Transform.cpp
@@ -656,7 +656,20 @@ void CTransform::Describe_Entity()
GUI::InputFloat("Y##Rotation", &m_vRotation.y, 1.f, 15.f);
GUI::InputFloat("Z##Rotation", &m_vRotation.z, 1.f, 15.f);
+#ifndef 기무리
Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
+#endif // 기무리
+#ifdef 기무리
+ _float3 vRot = {};
+ XMStoreFloat3(&vRot, Get_RollPitchYawVector());
+ GUI::Text("R : %.2f", XMConvertToDegrees(vRot.x)); GUI::SameLine();
+ GUI::Text("\tY : %.2f", XMConvertToDegrees(vRot.y)); GUI::SameLine();
+ GUI::Text("\tP : %.2f", XMConvertToDegrees(vRot.z));
+ if (GUI::SmallButton("ApplyRotation")) {
+ Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
+ }
+#endif // 기무리
+
_float3 vScale = Get_Scale();
diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp
index a3e252f7d..c050dcc35 100644
--- a/Jusin154_Team3D/Engine/Private/Unit.cpp
+++ b/Jusin154_Team3D/Engine/Private/Unit.cpp
@@ -280,6 +280,9 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s)
// SPRINT
{ "SPRINT", SPRINT },
+ // CROUCH
+ { "CROUCH", CROUCH },
+
// SLIDE
{ "SLIDE_START_R", SLIDE_START_R },
{ "SLIDE_LOOP_R", SLIDE_LOOP_R },
@@ -546,6 +549,11 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s)
{ "BROOM_FLY_UP_B", BROOM_FLY_UP_B },
{ "BROOM_FLY_B", BROOM_FLY_B },
{ "BROOM_ADD", BROOM_ADD },
+
+ { "HELLO", HELLO },{ "PLEASE", PLEASE },
+ { "BROWSE_START", BROWSE_START },{ "BROWSE_END", BROWSE_END },
+ { "FINGERSNAP", FINGERSNAP }, { "CROUCHALERT", CROUCHALERT }
+
};
diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp
index 0c3f1443f..d2acec133 100644
--- a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp
+++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp
@@ -455,7 +455,7 @@ void CVIBuffer_Terrain::Culling(_fmatrix WorldMatrix)
m_iNumIndices = iNumIndices;
}
-void CVIBuffer_Terrain::FitY(_fmatrix WorldMatrix, _float fY, _float3 vPickingPos, _uint iRange)
+void CVIBuffer_Terrain::FitY(_fmatrix WorldMatrix, _float fY, _float3 vPickingPos, _uint iRange, _bool isFlat)
{
m_pGameInstance->Transform_Frustum_ToLocalSpace(XMMatrixInverse(nullptr, WorldMatrix));
@@ -492,8 +492,11 @@ void CVIBuffer_Terrain::FitY(_fmatrix WorldMatrix, _float fY, _float3 vPickingPo
D3D11_MAPPED_SUBRESOURCE SubResource{};
m_pContext->Map(m_pVB, 0, D3D11_MAP_READ_WRITE, 0, &SubResource);
VTXNORTEX* pVertices = static_cast(SubResource.pData);
- Add_Y(pVertices, iIndex, fY);
- Add_NeighborY(pVertices, static_cast<_uint>(vLocalPosition.x), static_cast<_uint>(vLocalPosition.z), fY, iRange);
+ //Add_Y(pVertices, iIndex, fY);
+ if (isFlat)
+ Flat_NeighborY(pVertices, static_cast<_uint>(vLocalPosition.x), static_cast<_uint>(vLocalPosition.z), fY, iRange);
+ else
+ Add_NeighborY(pVertices, static_cast<_uint>(vLocalPosition.x), static_cast<_uint>(vLocalPosition.z), fY, iRange);
m_pContext->Unmap(m_pVB, 0);
}
@@ -525,6 +528,32 @@ void CVIBuffer_Terrain::Add_NeighborY(VTXNORTEX* pVertices, _uint iX, _uint iZ,
}
+void CVIBuffer_Terrain::Flat_NeighborY(VTXNORTEX* pVertices, _uint iX, _uint iZ, _float fY, _uint iRange)
+{
+ _int Range = iRange; // 이웃 범위 설정
+
+ for (_int dz = -Range; dz <= Range; ++dz)
+ {
+ for (_int dx = -Range; dx <= Range; ++dx)
+ {
+ _int nx = iX + dx;
+ _int nz = iZ + dz;
+
+ // 범위 체크 (0 ~ m_iNumVerticesX/Z-1)
+ if (nx < 0 || nz < 0 ||
+ nx >= (_int)m_iNumVerticesX ||
+ nz >= (_int)m_iNumVerticesZ)
+ continue;
+
+ _uint iNeighborIndex =
+ static_cast<_uint>(nx) +
+ static_cast<_uint>(nz) * m_iNumVerticesX;
+
+ Flat(pVertices, iNeighborIndex, fY);
+ }
+ }
+}
+
void CVIBuffer_Terrain::Add_Y(VTXNORTEX* pVertices, _uint iIndex, _float fY)
{
_uint iIndices[4] = {
@@ -555,6 +584,36 @@ void CVIBuffer_Terrain::Add_Y(VTXNORTEX* pVertices, _uint iIndex, _float fY)
}
}
+void CVIBuffer_Terrain::Flat(VTXNORTEX* pVertices, _uint iIndex, _float fY)
+{
+ _uint iIndices[4] = {
+ iIndex + m_iNumVerticesX,
+ iIndex + m_iNumVerticesX + 1,
+ iIndex + 1,
+ iIndex
+ };
+
+ for (_uint i = 0; i < 4; i++)
+ {
+ if (0 > iIndices[i] || m_iNumVertices <= iIndices[i])
+ return;
+ }
+ _float fHieght = { };
+ _float fAvgHieght = { };
+ for (_uint i = 0; i < 4; i++)
+ {
+ fHieght += pVertices[iIndices[i]].vPosition.y;
+ }
+
+ fAvgHieght = fHieght / 4.f;
+
+ for (_uint i = 0; i < 4; i++)
+ {
+ pVertices[iIndices[i]].vPosition.y = fY;
+ memcpy(&m_pVertexPositions[iIndices[i]], &pVertices[iIndices[i]].vPosition, sizeof(_float3));
+ }
+}
+
HRESULT CVIBuffer_Terrain::Load_HeightMap(const _char* pFilePath)
{
diff --git a/Jusin154_Team3D/Engine/Public/Character_Controller.h b/Jusin154_Team3D/Engine/Public/Character_Controller.h
index 08118b0ba..1572d270c 100644
--- a/Jusin154_Team3D/Engine/Public/Character_Controller.h
+++ b/Jusin154_Team3D/Engine/Public/Character_Controller.h
@@ -49,6 +49,7 @@ class ENGINE_DLL CCharacter_Controller final :
public:
#ifdef _DEBUG
virtual HRESULT Render() override;
+ virtual void Set_Name(const _char* pName);
#endif
PSX::PxRigidDynamic* Get_Actor();
PSX::PxController* Get_Controller();
diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h
index 21b7bebd4..796b7ba1a 100644
--- a/Jusin154_Team3D/Engine/Public/GameInstance.h
+++ b/Jusin154_Team3D/Engine/Public/GameInstance.h
@@ -51,6 +51,7 @@ class ENGINE_DLL CGameInstance final : public CBase
_uint Get_NextLevelID();
_bool Check_LevelShouldChange();
void Set_LevelToChange();
+ void ResetLevel_Environment();
#pragma endregion
#pragma region PROTOTYPE_MANAGER
diff --git a/Jusin154_Team3D/Engine/Public/GameObject.h b/Jusin154_Team3D/Engine/Public/GameObject.h
index 9f508e946..d46d46a67 100644
--- a/Jusin154_Team3D/Engine/Public/GameObject.h
+++ b/Jusin154_Team3D/Engine/Public/GameObject.h
@@ -18,6 +18,7 @@ class ENGINE_DLL CGameObject abstract
virtual void Priority_Update(_float fTimeDelta);
virtual void Update(_float fTimeDelta);
virtual void Late_Update(_float fTimeDelta);
+ virtual void Trigger(class CTimeSocket& Socket) {};
virtual HRESULT Render();
virtual HRESULT Render_Shadow(SHADOW eType) { return S_OK; }
@@ -39,8 +40,8 @@ class ENGINE_DLL CGameObject abstract
_uint Get_ObjectTag() const { return m_iObjectTag; }
_uint Get_CollisionID() const { return m_iCollisionID; }
- _bool Get_Visible() const { return m_bVisible; }
- void Set_Visible(_bool bValue) { m_bVisible = bValue; }
+ virtual _bool Get_Visible() const { return m_bVisible; }
+ virtual void Set_Visible(_bool bValue) { m_bVisible = bValue; }
CGameObject* Get_Owner() const { return m_pOwner; }
public:
diff --git a/Jusin154_Team3D/Engine/Public/Level.h b/Jusin154_Team3D/Engine/Public/Level.h
index a57c7a65f..9e806fdfe 100644
--- a/Jusin154_Team3D/Engine/Public/Level.h
+++ b/Jusin154_Team3D/Engine/Public/Level.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "Base.h"
@@ -13,9 +13,10 @@ class ENGINE_DLL CLevel abstract
public:
_uint Get_LevelID() const { return m_iID; }
- virtual _uint Get_NextLevelID() { return m_iID; } // ·εù·¹º§ÀÏ ¶§¸¸ Àǹ̰¡ ÀÖÀ½
+ virtual _uint Get_NextLevelID() { return m_iID; } // 로딩레벨일 때만 의미가 있음
virtual void Update(_float fTimeDelta)PURE;
virtual HRESULT Render()PURE;
+ virtual void ResetLevel_Environment()PURE;
protected:
class CGameInstance* m_pGameInstance = { nullptr };
ID3D11Device* m_pDevice = { nullptr };
@@ -29,4 +30,4 @@ class ENGINE_DLL CLevel abstract
virtual void Free() override;
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Engine/Public/Level_Manager.h b/Jusin154_Team3D/Engine/Public/Level_Manager.h
index 57894a47a..7e5533a69 100644
--- a/Jusin154_Team3D/Engine/Public/Level_Manager.h
+++ b/Jusin154_Team3D/Engine/Public/Level_Manager.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
#include "Base.h"
@@ -16,6 +16,7 @@ class CLevel_Manager final
_bool Check_LevelShouldChange() const;
void Set_LevelToChange();
_uint Get_Current_LevelID();
+ void ResetLevel_Environment();
_uint Get_NextLevelID();
void Update(_float fTimeDelta);
HRESULT Render();
@@ -30,4 +31,4 @@ class CLevel_Manager final
virtual void Free() override;
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Engine/Public/PhysX/PxQueryReport.h b/Jusin154_Team3D/Engine/Public/PhysX/PxQueryReport.h
index 06e66e6dd..6a40552a1 100644
--- a/Jusin154_Team3D/Engine/Public/PhysX/PxQueryReport.h
+++ b/Jusin154_Team3D/Engine/Public/PhysX/PxQueryReport.h
@@ -1,4 +1,4 @@
-// Redistribution and use in source and binary forms, with or without
+// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h
index b1640edb8..da2c532f4 100644
--- a/Jusin154_Team3D/Engine/Public/State.h
+++ b/Jusin154_Team3D/Engine/Public/State.h
@@ -9,7 +9,8 @@ enum ESTATE
WALK, WALK_FWD,WALK_RIGHT,WALK_LEFT, WALK_BWD,WALK_START, WALK_STOP,WALK_STOP_L, WALK_STOP_R,
JOG,JOG_START, JOG_FWD, JOG_RIGHT, JOG_LEFT, JOG_BWD, JOG_STOP, JOG_AIM_LEFT, JOG_AIM_RIGHT, JOG_AIM_BWD, JOG_AIM_STOP_L, JOG_AIM_STOP_R, JOG_AIM_STOP_BWD,JOG_LEFT_TURN,JOG_RIGHT_TURN,JOG_112_L,JOG_112_R,JOG_90_L,JOG_90_R,
SPRINT,
- SLIDE_START_R,SLIDE_LOOP_R,SLIDE_STOP_R,
+ SLIDE_START_R,SLIDE_LOOP_R,SLIDE_STOP_R,
+ CROUCH,
JUMP,JUMP_JOG,JUMP_SPRINT,FALL_LOOP,
LAND,LAND_TO_JOG,LAND_TO_SPRINT,LAND_HARD,LAND_MID,LAND_SOFT,
DODGE,DODGE_BLINK, DODGE_LEFT, DODGE_RIGHT,DODGE_ATTACK,
@@ -57,6 +58,11 @@ enum ESTATE
#pragma region CUTSCENE
CUTSCENE_TROLLINTRO,CUTSCENE_OPENINGINTRO1, CUTSCENE_OPENINGINTRO2, CUTSCENE_OPENINGINTRO3,CUTSCENE_DUEL,
#pragma endregion
+
+#pragma region ELF
+ HELLO,PLEASE, BROWSE_START, BROWSE_END, FINGERSNAP, CROUCHALERT,
+#pragma endregion
+
END
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/TimeSocket.h b/Jusin154_Team3D/Engine/Public/TimeSocket.h
index 4970cb129..2b3da839d 100644
--- a/Jusin154_Team3D/Engine/Public/TimeSocket.h
+++ b/Jusin154_Team3D/Engine/Public/TimeSocket.h
@@ -22,6 +22,7 @@ static constexpr pair g_SocketParamTypeTable[ENUM
typedef enum class typeTimeSocket_Func {
// COMMON
+ TELEPORTATION,
TRANSLATION,
TRANSLATION_LERP,
ROTATION,
@@ -29,6 +30,7 @@ typedef enum class typeTimeSocket_Func {
TOGGLE_FLAGS,
// CAMERA
+ SETTING_CAMERA,
BIND_CAMERA,
ZOOM_IN,
ZOOM_OUT,
@@ -46,23 +48,36 @@ typedef enum class typeTimeSocket_Func {
// CHARACTER
SET_ANIMSTATE,
SET_FSMSTATE,
+ BIND_SOCKET_MATRIX,
+ UNBIND_SOCKET_MATRIX,
// EFFECT
// SOUND
// TRIGGER
+ SET_CAMERA_ENVIRONMENT,
+
+ //SYSTEM
+ STOP_CINEMATIC,
+ RESET_ENVIRONMENT,
+ SET_VOLUMETRIC,
+
END
}TIMESOCKET_FUNC;
static constexpr pair g_SocketFuncTypeTable[ENUM_CLASS(TIMESOCKET_FUNC::END) + 1] =
{
+ // COMMON
+ {"TELEPORTATION", TIMESOCKET_FUNC::TELEPORTATION},
{"TRANSLATION", TIMESOCKET_FUNC::TRANSLATION},
{"TRANSLATION_LERP", TIMESOCKET_FUNC::TRANSLATION_LERP},
{"ROTATION", TIMESOCKET_FUNC::ROTATION},
{"ROTATION_LERP", TIMESOCKET_FUNC::ROTATION_LERP},
{"TOGGLE_FLAGS", TIMESOCKET_FUNC::TOGGLE_FLAGS},
+ // CAMERA
+ {"SETTING_CAMERA", TIMESOCKET_FUNC::SETTING_CAMERA},
{"BIND_CAMERA", TIMESOCKET_FUNC::BIND_CAMERA},
{"ZOOM_IN", TIMESOCKET_FUNC::ZOOM_IN},
{"ZOOM_OUT", TIMESOCKET_FUNC::ZOOM_OUT},
@@ -75,9 +90,25 @@ static constexpr pair g_SocketFuncTypeTable[ENUM_C
{"DONT_LOOK_AT", TIMESOCKET_FUNC::DONT_LOOK_AT},
{"FOLLOW", TIMESOCKET_FUNC::FOLLOW},
{"DONT_FOLLOW", TIMESOCKET_FUNC::DONT_FOLLOW},
+ {"SHAKE", TIMESOCKET_FUNC::SHAKE},
+ // CHARACTER
{"SET_ANIMSTATE", TIMESOCKET_FUNC::SET_ANIMSTATE},
{"SET_FSMSTATE", TIMESOCKET_FUNC::SET_FSMSTATE},
+ {"BIND_SOCKET_MATRIX", TIMESOCKET_FUNC::BIND_SOCKET_MATRIX},
+ {"UNBIND_SOCKET_MATRIX",TIMESOCKET_FUNC::UNBIND_SOCKET_MATRIX},
+
+ // EFFECT
+
+ // SOUND
+
+ // TRIGGER
+ {"SET_CAMERA_ENVIRONMENT", TIMESOCKET_FUNC::SET_CAMERA_ENVIRONMENT},
+
+ //SYSTEM
+ {"STOP_CINEMATIC", TIMESOCKET_FUNC::STOP_CINEMATIC},
+ {"RESET_ENVIRONMENT", TIMESOCKET_FUNC::RESET_ENVIRONMENT},
+ {"SET_VOLUMETRIC", TIMESOCKET_FUNC::SET_VOLUMETRIC},
{"END", TIMESOCKET_FUNC::END},
};
diff --git a/Jusin154_Team3D/Engine/Public/Unit.h b/Jusin154_Team3D/Engine/Public/Unit.h
index 15bb39876..79aa7f827 100644
--- a/Jusin154_Team3D/Engine/Public/Unit.h
+++ b/Jusin154_Team3D/Engine/Public/Unit.h
@@ -32,7 +32,6 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
- virtual void Trigger(class CTimeSocket& Socket) {};
virtual const _float4x4* Get_SocketMatrixPtr(const _char* pSocketName);
_wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; }
_bool IsAI() { return m_bAI; }
@@ -104,7 +103,7 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
void Add_Event(_uint AnimIndex, function Callback, _float fRatio = 0.f, _bool bKeep = false);
void Reset_Event();
void Check_HitAngle(_vector ProjectileDir);
- void Load_AnimXML(const string& path);
+ virtual void Load_AnimXML(const string& path);
STATEANIM::ESTATE StringToStateAnim(const string& s);
public:
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)PURE;
diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h b/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h
index a31f25905..2cf973207 100644
--- a/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h
+++ b/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h
@@ -28,9 +28,11 @@ class ENGINE_DLL CVIBuffer_Terrain final : public CVIBuffer
_bool Picking(_fmatrix WorldMatrix, _float3* pOut);
void Culling(_fmatrix WorldMatrix);
- void FitY(_fmatrix WorldMatrix, _float fY, _float3 vPickingPos, _uint iRange);
+ void FitY(_fmatrix WorldMatrix, _float fY, _float3 vPickingPos, _uint iRange, _bool isFlat);
void Add_NeighborY(VTXNORTEX* pVertices, _uint iX, _uint iZ, _float fY, _uint iRange);
+ void Flat_NeighborY(VTXNORTEX* pVertices, _uint iX, _uint iZ, _float fY, _uint iRange);
void Add_Y(VTXNORTEX* pVertices, _uint iIndex, _float fY);
+ void Flat(VTXNORTEX* pVertices, _uint iIndex, _float fY);
HRESULT Load_HeightMap(const _char* pFilePath);
#ifdef EDITOR_PROJECT