diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl index 6e5d2ad4c..38eea62d7 100644 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl +++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl @@ -19,8 +19,11 @@ float g_fSpotOuterAngle; vector g_vLightDir; vector g_vLightPos; +vector g_vLightPosOffset; + vector g_vCamPosition; + Texture2D g_NormalTexture; Texture2D g_DiffuseTexture; Texture2D g_ShadeTexture; @@ -156,7 +159,7 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In) vPosition = mul(vPosition, g_invmatProj); vPosition = mul(vPosition, g_invMatView); - vector vLightDir = vPosition - g_vLightPos; + vector vLightDir = vPosition - (g_vLightPos + g_vLightPosOffset); float fDistance = length(vLightDir); float fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); if (fAttenuation <= 0.f) diff --git a/Jusin154_Team3D/Client/Public/Client_Macro.h b/Jusin154_Team3D/Client/Public/Client_Macro.h index a869c2e0a..a9e42a633 100644 --- a/Jusin154_Team3D/Client/Public/Client_Macro.h +++ b/Jusin154_Team3D/Client/Public/Client_Macro.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once namespace Client { #ifndef __TEXT diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos.bin new file mode 100644 index 000000000..27d02c179 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LumosTest.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LumosTest.bin new file mode 100644 index 000000000..8e9cc3146 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LumosTest.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/ContainerTest.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/ContainerTest.xml index 210855c23..be5a6a1a1 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/ContainerTest.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/ContainerTest.xml @@ -1,24 +1,663 @@ - + - - Prototype_GameObject_SM_HW_GH_ArchSmall - Prototype_GameObject_SM_HW_GH_ArchSmall_Lod1 - Prototype_GameObject_SM_HW_GH_ArchSmall_Lod2 - - - - - - Prototype_GameObject_SM_HW_GH_ArchSmall - Prototype_GameObject_SM_HW_GH_ArchSmall_Lod1 - Prototype_GameObject_SM_HW_GH_ArchSmall_Lod2 + + Prototype_GameObject_SM_HM_PlazaMain_A + + Prototype_GameObject_SM_HM_PlazaMain_B + + + + + + Prototype_GameObject_SM_HM_PlazaMain_C + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_AA_COL + Prototype_GameObject_SM_HM_Streets_Plaza_AA_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_BB_COL + Prototype_GameObject_SM_HM_Streets_Plaza_BB_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_CC_COL + Prototype_GameObject_SM_HM_Streets_Plaza_CC_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_DD_COL + Prototype_GameObject_SM_HM_Streets_Plaza_DD_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_EE_COL + Prototype_GameObject_SM_HM_Streets_Plaza_EE_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_FF_COL + Prototype_GameObject_SM_HM_Streets_Plaza_FF_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_HH_COL + Prototype_GameObject_SM_HM_Streets_Plaza_HH_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_Streets_Hogshead + + + + + + Prototype_GameObject_SM_HM_Streets_A + + + + + + Prototype_GameObject_SM_HM_Streets_B + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_A + Prototype_GameObject_SM_HM_Streets_SideStreet_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_B + Prototype_GameObject_SM_HM_Streets_SideStreet_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_C + Prototype_GameObject_SM_HM_Streets_SideStreet_C_Lod1 + + + + + + Prototype_GameObject_SM_HM_Stairwalls_3Broomsticks + + + + + + Prototype_GameObject_SM_HM_LowerHiStreet_Zonkos + + + + + + Prototype_GameObject_SM_HM_Streets_AA_COL + Prototype_GameObject_SM_HM_Streets_AA_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_BB_COL + Prototype_GameObject_SM_HM_Streets_BB_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_CC_COL + Prototype_GameObject_SM_HM_Streets_CC_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_DD_COL + Prototype_GameObject_SM_HM_Streets_DD_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_EE_COL + Prototype_GameObject_SM_HM_Streets_EE_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_FF_COL + Prototype_GameObject_SM_HM_Streets_FF_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_GG_COL + Prototype_GameObject_SM_HM_Streets_GG_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_HH_COL + Prototype_GameObject_SM_HM_Streets_HH_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_A_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_A_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_B_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_B_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_C_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_C_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_D_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_D_COL_Lod1 + + + + + + Prototype_GameObject_SM_HW_Streets_SideStreet_E_COL + Prototype_GameObject_SM_HW_Streets_SideStreet_E_COL_Lod1 + + + + + + Prototype_GameObject_SM_HW_Streets_SideStreet_F_COL + Prototype_GameObject_SM_HW_Streets_SideStreet_F_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_OutsideStairPlatform + Prototype_GameObject_SM_HM_OutsideStairPlatform_Lod1 + Prototype_GameObject_SM_HM_OutsideStairPlatform_Lod2 + Prototype_GameObject_SM_HM_OutsideStairPlatform_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Bay_Window_Blocker + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Bay_Window_Display + Prototype_GameObject_SM_HM_TScrolls_Ext_Bay_Window_Display_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Bay_Window_Display + Prototype_GameObject_SM_HM_TScrolls_Ext_Bay_Window_Display_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys_Lod1 + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys_Lod2 + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_decals + Prototype_GameObject_SM_HM_TScrolls_ext_decals_Lod1 + Prototype_GameObject_SM_HM_TScrolls_ext_decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_entrance + Prototype_GameObject_SM_HM_TScrolls_ext_entrance_Lod1 + Prototype_GameObject_SM_HM_TScrolls_ext_entrance_Lod2 + Prototype_GameObject_SM_HM_TScrolls_ext_entrance_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Front_Door_Surrounds + Prototype_GameObject_SM_HM_TScrolls_Ext_Front_Door_Surrounds_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Front_Door_Surrounds_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim_Lod2 + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Steps_Base + Prototype_GameObject_SM_HM_TScrolls_Ext_Steps_Base_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim_Lod2 + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Walls + Prototype_GameObject_SM_HM_TScrolls_Ext_Walls_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Windows + Prototype_GameObject_SM_HM_TScrolls_Ext_Windows_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_window_glass + Prototype_GameObject_SM_HM_TScrolls_ext_window_glass_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Wood_Caps + Prototype_GameObject_SM_HM_TScrolls_Ext_Wood_Caps_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Sign_Base + Prototype_GameObject_SM_HM_TScrolls_Sign_Base_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Sign_Base_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Sign_Anchor + Prototype_GameObject_SM_HM_TScrolls_Sign_Anchor_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Sign_Anchor_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_APL_COL + Prototype_GameObject_SM_HM_TScrolls_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_A_PL_COL + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_B_PL_COL + Prototype_GameObject_SM_HM_TScrolls_EXT_B_PL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_C_PL_COL + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_Platform_PL_COL + + + + + + Prototype_GameObject_SM_HM_Tscrolls_EXT_Stairs_COL + + + + + + + + + + + Prototype_GameObject_SM_HM_3Broom_DoorFrame + Prototype_GameObject_SM_HM_3Broom_DoorFrame_Lod1 + Prototype_GameObject_SM_HM_3Broom_DoorFrame_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_Door_L + Prototype_GameObject_SM_HM_3Broom_Door_L_Lod1 + Prototype_GameObject_SM_HM_3Broom_Door_L_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_Door_R + Prototype_GameObject_SM_HM_3Broom_Door_R_Lod1 + Prototype_GameObject_SM_HM_3Broom_Door_R_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim + Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim_Lod1 + Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim_Lod2 + Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_barrels + Prototype_GameObject_SM_HM_3Broom_ext_barrels_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_barrels_Lod2 + Prototype_GameObject_SM_HM_3Broom_ext_barrels_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_barrels_sign + Prototype_GameObject_SM_HM_3Broom_ext_barrels_sign_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_barrel_stands + Prototype_GameObject_SM_HM_3Broom_ext_barrel_stands_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_barrel_stands_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B + Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B_Lod2 + Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_decals + Prototype_GameObject_SM_HM_3Broom_ext_decals_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_Decals_A + Prototype_GameObject_SM_HM_3Broom_ext_Decals_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_Ext_DoorFrameSide + Prototype_GameObject_SM_HM_3Broom_Ext_DoorFrameSide_Lod1 + Prototype_GameObject_SM_HM_3Broom_Ext_DoorFrameSide_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_Dormer_Wood_Slats + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_roof + Prototype_GameObject_SM_HM_3Broom_ext_roof_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_roof_copper_tops + Prototype_GameObject_SM_HM_3Broom_ext_roof_copper_tops_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_roof_copper_tops_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_roof_decals + Prototype_GameObject_SM_HM_3Broom_ext_roof_decals_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_side_garden_box + Prototype_GameObject_SM_HM_3Broom_ext_side_garden_box_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_side_garden_box_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_trim + Prototype_GameObject_SM_HM_3Broom_ext_trim_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_trim_Lod2 + Prototype_GameObject_SM_HM_3Broom_ext_trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_trim_stone + Prototype_GameObject_SM_HM_3Broom_ext_trim_stone_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_trim_stone_Lod2 + Prototype_GameObject_SM_HM_3Broom_ext_trim_stone_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_walls + Prototype_GameObject_SM_HM_3Broom_ext_walls_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_wood_Corbels + Prototype_GameObject_SM_HM_3Broom_ext_wood_Corbels_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_Window_Glass + Prototype_GameObject_SM_HM_3Broom_Window_Glass_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_RoundedWindow + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod1 + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_RoundedWindow + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod1 + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_RoundedWindow + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod1 + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_RectangurWindowPlain + Prototype_GameObject_SM_HM_3Broom_RectangurWindowPlain_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_Stone + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_Stone_Lod1 + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_Stone_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_StoneB + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_StoneB_Lod1 + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_StoneB_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_CrossBeam + + + + + + Prototype_GameObject_SM_HM_3Broom_CrossBeam + + + + + + Prototype_GameObject_SM_HM_3Broom_EXT_APL_COL + Prototype_GameObject_SM_HM_3Broom_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_EXT_B_PL_COL_2 + + + + + + Prototype_GameObject_SM_HM_3Broom_EXT_PL_COL + Prototype_GameObject_SM_HM_3Broom_EXT_PL_COL_Lod1 + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Map1114.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Map1114.xml new file mode 100644 index 000000000..4f511827d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Map1114.xml @@ -0,0 +1,334 @@ + + + + + + + + Prototype_GameObject_SM_HM_OutsideStairPlatform + Prototype_GameObject_SM_HM_OutsideStairPlatform_Lod1 + Prototype_GameObject_SM_HM_OutsideStairPlatform_Lod2 + Prototype_GameObject_SM_HM_OutsideStairPlatform_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_entrance + Prototype_GameObject_SM_HM_TScrolls_ext_entrance_Lod1 + Prototype_GameObject_SM_HM_TScrolls_ext_entrance_Lod2 + Prototype_GameObject_SM_HM_TScrolls_ext_entrance_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Bay_Window_Blocker + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys_Lod1 + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys_Lod2 + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Front_Door_Surrounds + Prototype_GameObject_SM_HM_TScrolls_Ext_Front_Door_Surrounds_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Front_Door_Surrounds_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Bay_Window_Display + Prototype_GameObject_SM_HM_TScrolls_Ext_Bay_Window_Display_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_decals + Prototype_GameObject_SM_HM_TScrolls_ext_decals_Lod1 + Prototype_GameObject_SM_HM_TScrolls_ext_decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim_Lod2 + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Steps_Base + Prototype_GameObject_SM_HM_TScrolls_Ext_Steps_Base_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim_Lod2 + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Walls + Prototype_GameObject_SM_HM_TScrolls_Ext_Walls_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Windows + Prototype_GameObject_SM_HM_TScrolls_Ext_Windows_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_window_glass + Prototype_GameObject_SM_HM_TScrolls_ext_window_glass_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Wood_Caps + Prototype_GameObject_SM_HM_TScrolls_Ext_Wood_Caps_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Sign_Base + Prototype_GameObject_SM_HM_TScrolls_Sign_Base_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Sign_Base_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Sign_Anchor + Prototype_GameObject_SM_HM_TScrolls_Sign_Anchor_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Sign_Anchor_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_APL_COL + Prototype_GameObject_SM_HM_TScrolls_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_A_PL_COL + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_B_PL_COL + Prototype_GameObject_SM_HM_TScrolls_EXT_B_PL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_C_PL_COL + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_Platform_PL_COL + + + + + + Prototype_GameObject_SM_HM_Tscrolls_EXT_Stairs_COL + + + + + + + + + + + Prototype_GameObject_SM_HM_Streets_Hogshead + + + + + + Prototype_GameObject_SM_HM_LowerHiStreet_Zonkos + + + + + + Prototype_GameObject_SM_HM_Streets_A + + + + + + Prototype_GameObject_SM_HM_Streets_B + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_A + Prototype_GameObject_SM_HM_Streets_SideStreet_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_B + Prototype_GameObject_SM_HM_Streets_SideStreet_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_C + Prototype_GameObject_SM_HM_Streets_SideStreet_C_Lod1 + + + + + + Prototype_GameObject_SM_HM_Stairwalls_3Broomsticks + + + + + + Prototype_GameObject_SM_HM_Streets_AA_COL + Prototype_GameObject_SM_HM_Streets_AA_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_BB_COL + Prototype_GameObject_SM_HM_Streets_BB_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_CC_COL + Prototype_GameObject_SM_HM_Streets_CC_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_DD_COL + Prototype_GameObject_SM_HM_Streets_DD_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_EE_COL + Prototype_GameObject_SM_HM_Streets_EE_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_FF_COL + Prototype_GameObject_SM_HM_Streets_FF_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_GG_COL + Prototype_GameObject_SM_HM_Streets_GG_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_HH_COL + Prototype_GameObject_SM_HM_Streets_HH_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_A_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_A_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_B_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_B_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_C_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_C_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_D_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_D_COL_Lod1 + + + + + + Prototype_GameObject_SM_HW_Streets_SideStreet_E_COL + Prototype_GameObject_SM_HW_Streets_SideStreet_E_COL_Lod1 + + + + + + Prototype_GameObject_SM_HW_Streets_SideStreet_F_COL + Prototype_GameObject_SM_HW_Streets_SideStreet_F_COL_Lod1 + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/DummyPlane.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/DummyPlane.bin new file mode 100644 index 000000000..c50ee846f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/DummyPlane.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/DummyPlane.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/DummyPlane.fbx new file mode 100644 index 000000000..8b7d31df5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/DummyPlane.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c8a8ff5d822a7a6cff559c7a70a8d69aaadea6a661096d3c313ad9c232bd3a5 +size 22060 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/New Piskel.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/New Piskel.png new file mode 100644 index 000000000..67a6facc0 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/New Piskel.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/F_Head.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/F_Head.bin new file mode 100644 index 000000000..5f6bb7145 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/F_Head.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/F_Head.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/F_Head.fbx new file mode 100644 index 000000000..0a92c2be3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/F_Head.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37ef52901ab93e847caa7b3abb8ab5fa99aa20a1ad8874f61b76c1f941d5ef84 +size 196338204 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/F_Head1.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/F_Head1.fbx new file mode 100644 index 000000000..cdd002766 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/F_Head1.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc3a3ca772857bfc135eb2d8677f0af400eedbcb86825a84242d564efdef654b +size 196443948 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/Head.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/Head.bin new file mode 100644 index 000000000..124849aa8 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/Head.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_Eye_Sclera_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_Eye_Sclera_D.png new file mode 100644 index 000000000..9ec24c5e5 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_Eye_Sclera_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_Eyelash_A.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_Eyelash_A.png new file mode 100644 index 000000000..1d74d35e2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_Eyelash_A.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_HUM_Head_Teeth_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_HUM_Head_Teeth_D.png new file mode 100644 index 000000000..c26cb50d5 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_HUM_Head_Teeth_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_HUM_Head_Teeth_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_HUM_Head_Teeth_N.png new file mode 100644 index 000000000..6a0eefc05 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_HUM_Head_Teeth_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_Poltergeist_Eye_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_Poltergeist_Eye_D.png new file mode 100644 index 000000000..15a19a42c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_Poltergeist_Eye_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_Poltergeist_Eye_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_Poltergeist_Eye_E.png new file mode 100644 index 000000000..af36de4f0 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_Poltergeist_Eye_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_YF_HeadBase02_Ivory_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_YF_HeadBase02_Ivory_D.png new file mode 100644 index 000000000..9ee402d7f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_YF_HeadBase02_Ivory_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_YF_HeadBase02_Ivory_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_YF_HeadBase02_Ivory_N.png new file mode 100644 index 000000000..aa18da9c5 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/FeMale/T_YF_HeadBase02_Ivory_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/M_Head.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/M_Head.bin new file mode 100644 index 000000000..7d078d1d9 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/M_Head.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/M_Head.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/M_Head.fbx new file mode 100644 index 000000000..4cbeb0859 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/M_Head.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:797ab2e33f60f4fa0805ad9dd3eecd7487a1a2f14fa50de4cd1b1144698b3c00 +size 402344396 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_Eyelash_A.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_Eyelash_A.png new file mode 100644 index 000000000..1d74d35e2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_Eyelash_A.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_HUM_Head_Teeth_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_HUM_Head_Teeth_D.png new file mode 100644 index 000000000..c26cb50d5 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_HUM_Head_Teeth_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_HUM_Head_Teeth_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_HUM_Head_Teeth_N.png new file mode 100644 index 000000000..6a0eefc05 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_HUM_Head_Teeth_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_Poltergeist_Eye_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_Poltergeist_Eye_D.png new file mode 100644 index 000000000..15a19a42c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_Poltergeist_Eye_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_Poltergeist_Eye_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_Poltergeist_Eye_E.png new file mode 100644 index 000000000..af36de4f0 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_Poltergeist_Eye_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_Young_M_Head_Ivory_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_Young_M_Head_Ivory_D.png new file mode 100644 index 000000000..b4ef295a6 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_Young_M_Head_Ivory_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_Young_M_Head_Ivory_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_Young_M_Head_Ivory_N.png new file mode 100644 index 000000000..136bb7cf6 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Male/T_Young_M_Head_Ivory_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl index 6e5d2ad4c..38eea62d7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl @@ -19,8 +19,11 @@ float g_fSpotOuterAngle; vector g_vLightDir; vector g_vLightPos; +vector g_vLightPosOffset; + vector g_vCamPosition; + Texture2D g_NormalTexture; Texture2D g_DiffuseTexture; Texture2D g_ShadeTexture; @@ -156,7 +159,7 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In) vPosition = mul(vPosition, g_invmatProj); vPosition = mul(vPosition, g_invMatView); - vector vLightDir = vPosition - g_vLightPos; + vector vLightDir = vPosition - (g_vLightPos + g_vLightPosOffset); float fDistance = length(vLightDir); float fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); if (fAttenuation <= 0.f) diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl index 3cded6ce1..a6d171f8d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl @@ -304,6 +304,37 @@ PS_OUT PS_MAIN_TEST(PS_IN In) return Out; } +PS_OUT PS_EYELASH(PS_IN In) +{ + PS_OUT Out; + + vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + if (vMtrlDiffuse.a < 0.4f) + { + discard; + } + + vector vNormalDesc = g_NormalTexture.Sample(MirrorSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); + + float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix); + + if (true == g_bRimLight) + { + float fRimLight = GetRimLight(g_vCamPosition.xyz, In.vWorldPos.xyz, vNormal, g_fRimPower, g_fRimStrength); + vMtrlDiffuse.xyz = (vMtrlDiffuse.xyz * (1 - fRimLight)) + g_vRimColor * fRimLight; + } + + + Out.vDiffuse = float4(vMtrlDiffuse.rgb, vMtrlDiffuse.g); + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f); + + + return Out; +} + + technique11 DefaultTechnique { pass Default @@ -354,4 +385,14 @@ technique11 DefaultTechnique GeometryShader = NULL; PixelShader = compile ps_5_0 PS_MAIN_TEST(); } + + pass EyeLashPass + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_EYELASH(); + } } diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl index 816786437..4a503675a 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl @@ -23,6 +23,7 @@ Texture2D g_MaskingTexture; Texture2D g_ClippingTexture; Texture2D g_DisolveTexture; Texture2D g_NormalTexture; +Texture2D g_GlowTexture; struct VS_IN { @@ -176,7 +177,7 @@ PS_OUT PS_MAIN(PS_IN In) Out.vDiffuse = vMtrlDiffuse; Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); - Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / 500.f, 0.0f, 1.f); + Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f); return Out; } @@ -201,6 +202,25 @@ PS_OUT PS_MAIN_SELECT(PS_IN In) return Out; } +PS_OUT PS_GLASS(PS_IN In) +{ + PS_OUT Out; + + vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + vector vMtrlGlow = g_GlowTexture.Sample(DefaultSampler, In.vTexcoord); + + vector vNormalDesc = g_NormalTexture.Sample(MirrorSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); + + float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix); + + Out.vDiffuse = lerp(vMtrlDiffuse, vMtrlGlow, vMtrlDiffuse.a); + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f); + + return Out; +} + struct PS_IN_SHADOW { float4 vPosition : SV_POSITION; @@ -449,4 +469,14 @@ technique11 MeshTechnique11 GeometryShader = NULL; PixelShader = compile ps_5_0 PS_MAIN_SELECT(); } + + pass GlassPass // 12 + { + SetRasterizerState(RS_Nocull); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_GLASS(); + } } diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl index cdfff192f..da2552728 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl @@ -29,6 +29,7 @@ Texture2D g_NormalTexture : register(t1); Texture2D g_MaskingTexture : register(t2); Texture2D g_DissolveTexture : register(t3); Texture2D g_NoiseTexture : register(t4); +Texture2D g_EmissiveTexture : register(t6); StructuredBuffer g_ParticleValue : register(t5); @@ -65,6 +66,7 @@ bool g_isDiffuse; bool g_isMasking; bool g_isDissolve; bool g_isNoise; +bool g_isEmissive; bool g_isDiffuseUVMove; bool g_isMaskUVMove; @@ -323,8 +325,16 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In) Out.vDiffuse = vMtrlDiffuse; // 색깔 추가할 처리 (ì�´ë¯¸ì‹œë¸Œ) + + float4 vEmissiveMtrl; + + if (g_isEmissive == true) + { + vEmissiveMtrl = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord); + } + if (vMtrlDiffuse.a >= g_fEmissiveCutAlpha) - Out.vColorTarget = vector(g_vEmissive.rgb, g_fColorOption / 10.f); + Out.vColorTarget = vector(g_vEmissive.rgb + vEmissiveMtrl.rgb, g_fColorOption / 10.f); else Out.vColorTarget = vector(0.f, 0.f, 0.f, 0.f); diff --git a/Jusin154_Team3D/Editor/Default/.bin b/Jusin154_Team3D/Editor/Default/.bin new file mode 100644 index 000000000..052ff3eb0 Binary files /dev/null and b/Jusin154_Team3D/Editor/Default/.bin differ diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj index a6fd1e42b..ba99dc222 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj @@ -167,6 +167,7 @@ + @@ -188,8 +189,8 @@ - + @@ -233,6 +234,7 @@ + @@ -254,8 +256,8 @@ - + diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index 56da316d4..d382b78cd 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -199,6 +199,9 @@ {a9360a97-5ef2-476a-9f12-f4e06c28290c} + + {6872c5bc-5eac-46a1-b6d8-3ec0f4fb2cd5} + @@ -360,7 +363,7 @@ 02.GameObjects\Env\02.MapObject - + 02.GameObjects\Env\02.MapObject\Static @@ -375,9 +378,6 @@ 02.GameObjects\Env\02.MapObject - - 02.GameObjects\Env\02.MapObject\Static - 02.GameObjects\Env\02.MapObject\LOD @@ -402,6 +402,9 @@ 02.GameObjects\MainLight + + 02.GameObjects\Layer_Effect\Dummy_Plane + @@ -559,7 +562,7 @@ 02.GameObjects\Env\02.MapObject - + 02.GameObjects\Env\02.MapObject\Static @@ -574,9 +577,6 @@ 02.GameObjects\Env\02.MapObject - - 02.GameObjects\Env\02.MapObject\Static - 02.GameObjects\Env\02.MapObject\LOD @@ -601,6 +601,9 @@ 02.GameObjects\MainLight + + 02.GameObjects\Layer_Effect\Dummy_Plane + diff --git a/Jusin154_Team3D/Editor/Private/Active_Icon.cpp b/Jusin154_Team3D/Editor/Private/Active_Icon.cpp index 70f50f563..947238618 100644 --- a/Jusin154_Team3D/Editor/Private/Active_Icon.cpp +++ b/Jusin154_Team3D/Editor/Private/Active_Icon.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Active_Icon.h" #include "GameInstance.h" diff --git a/Jusin154_Team3D/Editor/Private/BuildingContainer.cpp b/Jusin154_Team3D/Editor/Private/BuildingContainer.cpp index 30dd371fc..4387692d0 100644 --- a/Jusin154_Team3D/Editor/Private/BuildingContainer.cpp +++ b/Jusin154_Team3D/Editor/Private/BuildingContainer.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "BuildingContainer.h" #include "PartObject.h" #include "Terrain.h" @@ -20,12 +20,18 @@ void CBuildingContainer::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); + for (auto& pCollisiton : m_ColiisonPartObjects) + pCollisiton->Priority_Update(fTimeDelta); + m_bSelected = false; } void CBuildingContainer::Update(_float fTimeDelta) { __super::Update(fTimeDelta); + + for (auto& pCollisiton : m_ColiisonPartObjects) + pCollisiton->Update(fTimeDelta); } void CBuildingContainer::Late_Update(_float fTimeDelta) @@ -38,6 +44,9 @@ void CBuildingContainer::Late_Update(_float fTimeDelta) } __super::Late_Update(fTimeDelta); + + for (auto& pCollisiton : m_ColiisonPartObjects) + pCollisiton->Late_Update(fTimeDelta); } HRESULT CBuildingContainer::Render() @@ -118,6 +127,9 @@ CGameObject* CBuildingContainer::Clone(void* pArg, CGameObject* pOwner) void CBuildingContainer::Free() { __super::Free(); + + for (auto& pCollision : m_ColiisonPartObjects) + SAFE_RELEASE(pCollision); } void CBuildingContainer::Describe_Entity() diff --git a/Jusin154_Team3D/Editor/Private/DummyObject.cpp b/Jusin154_Team3D/Editor/Private/DummyObject.cpp index a133c2c29..585113288 100644 --- a/Jusin154_Team3D/Editor/Private/DummyObject.cpp +++ b/Jusin154_Team3D/Editor/Private/DummyObject.cpp @@ -44,7 +44,7 @@ void CDummyObject::Priority_Update(_float fTimeDelta) void CDummyObject::Update(_float fTimeDelta) { - m_pModelCom->Play_Animation(fTimeDelta); + m_pModelCom->Play_Animation(fTimeDelta,m_pTransformCom); } void CDummyObject::Late_Update(_float fTimeDelta) diff --git a/Jusin154_Team3D/Editor/Private/DummyRect.cpp b/Jusin154_Team3D/Editor/Private/DummyRect.cpp index ee738796a..c44593cb5 100644 --- a/Jusin154_Team3D/Editor/Private/DummyRect.cpp +++ b/Jusin154_Team3D/Editor/Private/DummyRect.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "DummyRect.h" #include "GameInstance.h" diff --git a/Jusin154_Team3D/Editor/Private/DummySkyBox.cpp b/Jusin154_Team3D/Editor/Private/DummySkyBox.cpp index 2b65039ea..c26f369f4 100644 --- a/Jusin154_Team3D/Editor/Private/DummySkyBox.cpp +++ b/Jusin154_Team3D/Editor/Private/DummySkyBox.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "DummySkyBox.h" #include "GameInstance.h" diff --git a/Jusin154_Team3D/Editor/Private/Dummy_Cube.cpp b/Jusin154_Team3D/Editor/Private/Dummy_Cube.cpp index 9a2b40964..68094526d 100644 --- a/Jusin154_Team3D/Editor/Private/Dummy_Cube.cpp +++ b/Jusin154_Team3D/Editor/Private/Dummy_Cube.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Dummy_Cube.h" #include "GameInstance.h" diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp index b7abf064a..7d0fa8754 100644 --- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp +++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Dummy_PhysXMesh.h" #include "GameInstance.h" diff --git a/Jusin154_Team3D/Editor/Private/Dummy_Plane.cpp b/Jusin154_Team3D/Editor/Private/Dummy_Plane.cpp new file mode 100644 index 000000000..f4febcb11 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Dummy_Plane.cpp @@ -0,0 +1,160 @@ +#include "pch.h" +#include "Dummy_Plane.h" + +#include "GameInstance.h" + + +CDummy_Plane::CDummy_Plane(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CGameObject{ pDevice, pContext } +{ +} + +CDummy_Plane::CDummy_Plane(const CDummy_Plane& rhs) + : CGameObject(rhs) +{ +} + +HRESULT CDummy_Plane::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CDummy_Plane::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, -10.f, 0.f, 1.f)); + + + return S_OK; +} + +void CDummy_Plane::Priority_Update(_float fTimeDelta) +{ + +} + +void CDummy_Plane::Update(_float fTimeDelta) +{ +} + +void CDummy_Plane::Late_Update(_float fTimeDelta) +{ + _float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]); + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this, *vPos, m_pTransformCom->Get_Radius()); +} + +HRESULT CDummy_Plane::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { + return E_FAIL; + } + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 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 CDummy_Plane::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + ///* Com_Model */ + //if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_GoblinBody_Model"), + // reinterpret_cast(&m_pModelCom)))) + // return E_FAIL; + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Model_DummyPlane"), + 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 CDummy_Plane::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + return S_OK; +} + +CDummy_Plane* CDummy_Plane::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CDummy_Plane* pInstance = new CDummy_Plane(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CDummy_Plane"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CDummy_Plane::Clone(void* pArg, CGameObject* pOwner) +{ + CDummy_Plane* pInstance = new CDummy_Plane(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CDummy_Plane"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CDummy_Plane::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pModelCom); + SAFE_RELEASE(m_pShaderCom); +} + +void CDummy_Plane::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp index 99b568249..5dfc34132 100644 --- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp +++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "EditEffect.h" #include "GameInstance.h" @@ -41,7 +41,7 @@ void CEditEffect::Update(_float fTimeDelta) - if (m_isBillboard) + if (m_EffectInfo.isBillboard) m_pGameInstance->BillBoard(m_pTransformCom); if (m_pInstance_ModelCom == nullptr) @@ -61,15 +61,16 @@ void CEditEffect::Late_Update(_float fTimeDelta) _float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]); - if (m_isBlur == true) + if (m_EffectInfo.isBlur == true) m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this, *vPos, m_pTransformCom->Get_Radius()); - m_pGameInstance->Add_RenderGroup(m_eRenderOrder, this, *vPos, m_pTransformCom->Get_Radius()); + m_pGameInstance->Add_RenderGroup(m_EffectInfo.eRenderOrder, this, *vPos, m_pTransformCom->Get_Radius()); } void CEditEffect::Reference_Mat_For_EditEffect() { + string strName = {}; const char* pCompute[] = { "DIFFUSE" , "MASK", "NOISE", "DISSOLVE" }; @@ -79,16 +80,37 @@ void CEditEffect::Reference_Mat_For_EditEffect() switch (m_iSelectTextureNum) { case 0: - dynamic_cast(m_pOwner)->Reference_Mat_For_EditEffect((CComponent**)&m_pDiffuse_TextureCom, this); + strName = dynamic_cast(m_pOwner)->Reference_Mat_For_EditEffect((CComponent**)&m_pDiffuse_TextureCom, this); + + if (strName != "") + { + m_strDiffuseName = strName; + } break; case 1: - dynamic_cast(m_pOwner)->Reference_Mat_For_EditEffect((CComponent**)&m_pMasking_TextureCom, this); + strName =dynamic_cast(m_pOwner)->Reference_Mat_For_EditEffect((CComponent**)&m_pMasking_TextureCom, this); + + if (strName != "") + { + m_strMaskingName = strName; + } break; case 2: - dynamic_cast(m_pOwner)->Reference_Mat_For_EditEffect((CComponent**)&m_pNoise_TextureCom, this); + strName = dynamic_cast(m_pOwner)->Reference_Mat_For_EditEffect((CComponent**)&m_pNoise_TextureCom, this); + + if (strName != "") + { + m_strNoiseName = strName; + } break; case 3: - dynamic_cast(m_pOwner)->Reference_Mat_For_EditEffect((CComponent**)&m_pDissolve_TextureCom, this); + strName = dynamic_cast(m_pOwner)->Reference_Mat_For_EditEffect((CComponent**)&m_pDissolve_TextureCom, this); + + if (strName != "") + { + m_strDissolveName = strName; + } + break; default: break; @@ -97,6 +119,145 @@ void CEditEffect::Reference_Mat_For_EditEffect() } +HRESULT CEditEffect::Save_Effect(const _char* pPath) +{ + + _string strPerfectFilePath = pPath; + strPerfectFilePath += ".bin"; + + HANDLE hFile = CreateFile(CMyTools::ToWstring(strPerfectFilePath).c_str(), + GENERIC_WRITE, + FILE_SHARE_READ | FILE_SHARE_WRITE, + NULL, CREATE_ALWAYS, + FILE_ATTRIBUTE_NORMAL, NULL + ); + + + if (hFile == INVALID_HANDLE_VALUE) { + MessageBox(NULL, L"오브ì �트 저장 실패", L"System Message", MB_OK); + return E_FAIL; + } + + + + DWORD dwByte(0); + + if (m_pLightCom != nullptr) + { + m_EffectInfo.LightDesc = *m_pLightCom->Get_LightDesc(); + } + + + if (!WriteFile(hFile, &m_EffectInfo, sizeof(EFFECT_INFO), &dwByte, nullptr)) { + return E_FAIL; + } + + if (m_EffectInfo.isDiffuse) + { + size_t iComponentLength = m_strDiffuseName.length(); + const _char* pFileComponentPath = m_strDiffuseName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + } + + if (m_EffectInfo.isNoise) + { + size_t iComponentLength = m_strNoiseName.length(); + const _char* pFileComponentPath = m_strNoiseName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + } + + if (m_EffectInfo.isMasking) + { + size_t iComponentLength = m_strMaskingName.length(); + const _char* pFileComponentPath = m_strMaskingName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + } + + if (m_EffectInfo.isDissolve) + { + size_t iComponentLength = m_strDissolveName.length(); + const _char* pFileComponentPath = m_strDissolveName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + } + + if (m_EffectInfo.isEmissive) + { + size_t iComponentLength = m_strEmissiveName.length(); + const _char* pFileComponentPath = m_strEmissiveName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + } + + size_t iComponentLength = m_strModelName.length(); + const _char* pFileComponentPath = m_strModelName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + + m_pInstance_ModelCom->Save_InstanceModel(hFile); + + CloseHandle(hFile); + + return S_OK; +} + HRESULT CEditEffect::Ready_Components(void* pArg) { if (FAILED(__super::Ready_Components(pArg))) @@ -146,32 +307,32 @@ void CEditEffect::Free() void CEditEffect::Describe_Entity() { - //¿©±â¼­ ¸ðµ¨, ÅØ½ºÃÄ, ¼±ÅÃÇÒ ¼ö ÀÖµµ·Ï ÇÔ + //여기서 모ë�¸, í…�스ì³�, ì„ íƒ�í•  수 있ë�„ë¡� 함 const char* pLerp[] = { "Linear" , "EaseInQuad", "EaseOutQuad", "EaseInCubic" , "EaseOutCubic" , "EaseInOutSin" , "EaseInBack" , "Expo" , "Circle" }; const char* pRenderNames[] = { "PRIORITY" , "SHADOW", "NONBLEND", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" , "UI" }; - _int iCurrentItem = static_cast<_int>(m_eRenderOrder); + _int iCurrentItem = static_cast<_int>(m_EffectInfo.eRenderOrder); if (ImGui::Combo("Render Order", &iCurrentItem, pRenderNames, ENUM_CLASS(RENDER::END))) { - m_eRenderOrder = static_cast(iCurrentItem); + m_EffectInfo.eRenderOrder = static_cast(iCurrentItem); } m_pTransformCom->Describe_Entity(); - GUI::Checkbox("Diffuse", &m_isDiffuse); - GUI::Checkbox("Masking", &m_isMasking); - GUI::Checkbox("Dissolve", &m_isDissolve); - GUI::Checkbox("Noise", &m_isNoise); + GUI::Checkbox("Diffuse", &m_EffectInfo.isDiffuse); + GUI::Checkbox("Masking", &m_EffectInfo.isMasking); + GUI::Checkbox("Dissolve", &m_EffectInfo.isDissolve); + GUI::Checkbox("Noise", &m_EffectInfo.isNoise); - if (GUI::Checkbox("Billboard", &m_isBillboard)) + if (GUI::Checkbox("Billboard", &m_EffectInfo.isBillboard)) { m_pTransformCom->Rotation(0.f, 0.f, 0.f); } - GUI::ColorEdit4("MixColor", (_float*)&m_vColor); + GUI::ColorEdit4("MixColor", (_float*)&m_EffectInfo.vColor); ImGui::PushItemWidth(80); @@ -181,11 +342,11 @@ void CEditEffect::Describe_Entity() if (GUI::TreeNode("BLUR")) { - GUI::Checkbox("Blur", &m_isBlur); + GUI::Checkbox("Blur", &m_EffectInfo.isBlur); ImGui::PushItemWidth(80); - GUI::DragFloat("BlurIntensity", &m_fBlurIntensity, 0.005f, 0.f, 1.f); - GUI::DragInt("BlurWeight", &m_iBlurWeight, 1.f, 0, 32); + GUI::DragFloat("BlurIntensity", &m_EffectInfo.fBlurIntensity, 0.005f, 0.f, 1.f); + GUI::DragInt("BlurWeight", &m_EffectInfo.iBlurWeight, 1.f, 0, 32); ImGui::PopItemWidth(); @@ -198,24 +359,73 @@ void CEditEffect::Describe_Entity() { const char* pCompute[] = {"NONE", "DIV" , "PLUS", "SUBSTRACT", "MULTY" , "EQUL" }; - _int iColorOption = (_int)m_fColorOption; + _int iColorOption = (_int)m_EffectInfo.fColorOption; if (ImGui::Combo("OPTION", &iColorOption, pCompute , 6)) { - m_fColorOption = (_float)iColorOption; + m_EffectInfo.fColorOption = (_float)iColorOption; } ImGui::PushItemWidth(80); - GUI::DragFloat("EmissiveCutAlpha", &m_fEmissiveCutAlpha, 0.005f, 0.f, 1.f); + GUI::DragFloat("EmissiveCutAlpha", &m_EffectInfo.fEmissiveCutAlpha, 0.005f, 0.f, 1.f); ImGui::PopItemWidth(); - GUI::ColorEdit4("Emissive", (_float*)&m_vEmissive); + GUI::ColorEdit4("Emissive", (_float*)&m_EffectInfo.vEmissive); + + GUI::Checkbox("EmissiveTex", &m_EffectInfo.isEmissive); + + if (m_EffectInfo.isEmissive) + { + if (GUI::TreeNode("EMISSIVE_TEX")) + { + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "EMISSIVE_TEXTURE", (CComponent**)&m_pEmissive_TextureCom, nullptr, this); + + if (strName != "") { + m_strEmissiveName = strName; + } + + + GUI::TreePop(); + } + } GUI::TreePop(); } + if (GUI::TreeNode("LIGHT")) + { + if (GUI::Button("ADD LIGHT")) + { + if (m_pLightCom != nullptr) + { + GUI::TreePop(); + return; + } + LIGHT_DESC LightDesc{}; + LightDesc.eType = LIGHT::POINT; + LightDesc.vDiffuse = _float4(0.0f, 0.0f, 0.0f, 0.f); + LightDesc.vAmbient = _float4(0.0f, 0.0f, 0.0f, 0.f); + LightDesc.vSpecular = _float4(0.f, 0.f, 0.f, 0.f); + LightDesc.pPosition = m_pTransformCom->Get_StatePtr(STATE::POSITION); + LightDesc.iLevel = NEXT_LEVEL; + + /* Com_Light*/ + if (FAILED(Add_Component(g_iStaticLevel, &m_pLightCom, &LightDesc))) + { + GUI::TreePop(); + return; + } + } + + if (m_pLightCom != nullptr) + { + m_pLightCom->Describe_Entity(); + } + + GUI::TreePop(); + } if (GUI::TreeNode("MODEL")) { @@ -224,7 +434,11 @@ void CEditEffect::Describe_Entity() if (m_pInstance_ModelCom != nullptr) InstanceDesc = m_pInstance_ModelCom->Get_EffectValue(); - m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "INSTANCE_MODEL", (CComponent**)&m_pInstance_ModelCom, &InstanceDesc, this); + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "INSTANCE_MODEL", (CComponent**)&m_pInstance_ModelCom, &InstanceDesc, this); + + if (strName != "") { + m_strModelName = strName; + } if (m_pInstance_ModelCom != nullptr) { @@ -235,27 +449,30 @@ void CEditEffect::Describe_Entity() } - if (m_isDiffuse == true) + + + + if (m_EffectInfo.isDiffuse == true) { if (GUI::TreeNode("DIFFUSE")) { ImGui::PushItemWidth(80); - GUI::Checkbox("DiffuseUVMove", &m_isDiffuseUVMove); - GUI::InputFloat2("DiffuseUVCutting", (_float*)&m_vUVCutting); + GUI::Checkbox("DiffuseUVMove", &m_EffectInfo.isDiffuseUVMove); + GUI::InputFloat2("DiffuseUVCutting", (_float*)&m_EffectInfo.vUVCutting); GUI::Spacing(); - GUI::DragFloat2("DiffuseUVGainAmount", (_float*)&m_vDiffuseUVGainAmount, 0.01f); + GUI::DragFloat2("DiffuseUVGainAmount", (_float*)&m_EffectInfo.vDiffuseUVGainAmount, 0.01f); - _int iDiffuseMoveLerpOption = (_int)m_iDiffuseMoveLerpOption; + _int iDiffuseMoveLerpOption = (_int)m_EffectInfo.iDiffuseMoveLerpOption; if (ImGui::Combo("Lerp DiffuseMove Option", &iDiffuseMoveLerpOption, pLerp, 9)) { - m_iDiffuseMoveLerpOption = iDiffuseMoveLerpOption; + m_EffectInfo.iDiffuseMoveLerpOption = iDiffuseMoveLerpOption; } GUI::Spacing(); @@ -264,7 +481,13 @@ void CEditEffect::Describe_Entity() if (GUI::TreeNode("DIFFUSE_TEX")) { - m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DIFFUSE_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this); + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DIFFUSE_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this); + + if (strName != "") { + m_strDiffuseName = strName; + } + + GUI::TreePop(); } @@ -275,27 +498,27 @@ void CEditEffect::Describe_Entity() } - if (m_isMasking == true) + if (m_EffectInfo.isMasking == true) { if (GUI::TreeNode("MASKING")) { - GUI::InputFloat2("MaskUVCutting", (_float*)&m_vUVMaskCutting); - GUI::Checkbox("MaskUVMove", &m_isMaskUVMove); + GUI::InputFloat2("MaskUVCutting", (_float*)&m_EffectInfo.vUVMaskCutting); + GUI::Checkbox("MaskUVMove", &m_EffectInfo.isMaskUVMove); ImGui::PushItemWidth(80); - GUI::DragFloat2("MaskingUVGainAmount", (_float*)&m_vMaskingUVGainAmount, 0.01f); + GUI::DragFloat2("MaskingUVGainAmount", (_float*)&m_EffectInfo.vMaskingUVGainAmount, 0.01f); ImGui::PopItemWidth(); GUI::Spacing(); - _int iMaskMoveLerpOption = (_int)m_iMaskMoveLerpOption; + _int iMaskMoveLerpOption = (_int)m_EffectInfo.iMaskMoveLerpOption; if (ImGui::Combo("Lerp MaskMove Option", &iMaskMoveLerpOption, pLerp, 9)) { - m_iMaskMoveLerpOption = iMaskMoveLerpOption; + m_EffectInfo.iMaskMoveLerpOption = iMaskMoveLerpOption; } @@ -303,7 +526,12 @@ void CEditEffect::Describe_Entity() if (GUI::TreeNode("MASKING_TEX")) { - m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "MASKING_TEXTURE", (CComponent**)&m_pMasking_TextureCom, nullptr, this); + string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "MASKING_TEXTURE", (CComponent**)&m_pMasking_TextureCom, nullptr, this); + + if (strName != "") { + m_strMaskingName = strName; + } + GUI::TreePop(); } GUI::Separator(); GUI::Spacing(); @@ -312,13 +540,18 @@ void CEditEffect::Describe_Entity() } } - if (m_isDissolve == true) + if (m_EffectInfo.isDissolve == true) { if (GUI::TreeNode("DISSOLVE")) { if (GUI::TreeNode("DISSOLV_TEX")) { - m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DISSOLVE_TEXTURE", (CComponent**)&m_pDissolve_TextureCom, nullptr, this); + _string strName = m_strDissolveName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DISSOLVE_TEXTURE", (CComponent**)&m_pDissolve_TextureCom, nullptr, this); + + if (strName != "") { + m_strDissolveName = strName; + } + GUI::TreePop(); } GUI::Separator(); GUI::Spacing(); @@ -327,34 +560,34 @@ void CEditEffect::Describe_Entity() } } - if (m_isNoise == true) + if (m_EffectInfo.isNoise == true) { if (GUI::TreeNode("NOISE")) { ImGui::PushItemWidth(80); - GUI::DragFloat("NoiseDistortionIntensity", &m_fNoiseDistortionIntensity, 0.005f, 0.f, 1.f); + GUI::DragFloat("NoiseDistortionIntensity", &m_EffectInfo.fNoiseDistortionIntensity, 0.005f, 0.f, 1.f); GUI::Spacing(); - GUI::DragFloat2("DiffuseNoiseUVGainAmount", (_float*)&m_vDiffuseNoiseUVGainAmount, 0.01f); + GUI::DragFloat2("DiffuseNoiseUVGainAmount", (_float*)&m_EffectInfo.vDiffuseNoiseUVGainAmount, 0.01f); - _int iDiffuseNoiseMoveLerpOption = (_int)m_iDiffuseNoiseMoveLerpOption; + _int iDiffuseNoiseMoveLerpOption = (_int)m_EffectInfo.iDiffuseNoiseMoveLerpOption; if (ImGui::Combo("Lerp DiffuseNoiseMove Option", &iDiffuseNoiseMoveLerpOption, pLerp, 9)) { - m_iDiffuseNoiseMoveLerpOption = iDiffuseNoiseMoveLerpOption; + m_EffectInfo.iDiffuseNoiseMoveLerpOption = iDiffuseNoiseMoveLerpOption; } GUI::Spacing(); - GUI::DragFloat2("MaskNoiseUVGainAmount", (_float*)&m_vMaskNoiseUVGainAmount, 0.01f); + GUI::DragFloat2("MaskNoiseUVGainAmount", (_float*)&m_EffectInfo.vMaskNoiseUVGainAmount, 0.01f); - _int iMaskNoiseMoveLerpOption = (_int)m_iMaskNoiseMoveLerpOption; + _int iMaskNoiseMoveLerpOption = (_int)m_EffectInfo.iMaskNoiseMoveLerpOption; if (ImGui::Combo("Lerp MaskNoiseMove Option", &iMaskNoiseMoveLerpOption, pLerp, 9)) { - m_iMaskNoiseMoveLerpOption = iMaskNoiseMoveLerpOption; + m_EffectInfo.iMaskNoiseMoveLerpOption = iMaskNoiseMoveLerpOption; } GUI::Spacing(); @@ -363,7 +596,11 @@ void CEditEffect::Describe_Entity() if (GUI::TreeNode("NOISE_TEX")) { - m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NOISE_TEXTURE", (CComponent**)&m_pNoise_TextureCom, nullptr, this); + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NOISE_TEXTURE", (CComponent**)&m_pNoise_TextureCom, nullptr, this); + + if (strName != "") { + m_strNoiseName = strName; + } GUI::TreePop(); } diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp index de7a5df24..7b16e6b60 100644 --- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "EffectObject.h" #include "GameInstance.h" @@ -62,11 +62,11 @@ HRESULT CEffectObject::Render_Blur() return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fBlurIntensity", &m_fBlurIntensity, sizeof(_float)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_fBlurIntensity", &m_EffectInfo.fBlurIntensity, sizeof(_float)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_iBlurWeight", &m_iBlurWeight, sizeof(_int)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_iBlurWeight", &m_EffectInfo.iBlurWeight, sizeof(_int)))) { return E_FAIL; } @@ -95,6 +95,200 @@ HRESULT CEffectObject::Render_Blur() return S_OK; } +HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) +{ + _string strPerfectFilePath = pFilePath; + + strPerfectFilePath += ".bin"; + + HANDLE hFile = CreateFileW( + CMyTools::ToWstring(strPerfectFilePath).c_str(), // 파ì�¼ ì�´ë¦„ + GENERIC_READ, // ì�½ê¸° 모드 + FILE_SHARE_READ, // 다른 프로세스ë�„ ì�½ê¸° 가능 + NULL, + OPEN_EXISTING, // 기존 파ì�¼ 열기 + FILE_ATTRIBUTE_NORMAL, + NULL + ); + + + if (hFile == INVALID_HANDLE_VALUE) { + MessageBox(NULL, L"오브ì �트 ì�½ê¸° 실패", L"System Message", MB_OK); + return E_FAIL; + } + + + DWORD dwByte(0); + + if (!ReadFile(hFile, &m_EffectInfo, sizeof(EFFECT_INFO), &dwByte, nullptr)) { + return E_FAIL; + } + + m_EffectInfo.LightDesc.pPosition = m_pTransformCom->Get_StatePtr(STATE::POSITION); + m_EffectInfo.LightDesc.iLevel = ENUM_CLASS(eLevel); + + if (m_EffectInfo.LightDesc.eType != LIGHT::DIRECTIONAL) // 0ì�´ ì•„ë‹�때만 ìƒ�성 + { + if (FAILED(Add_Component(g_iStaticLevel, &m_pLightCom, &m_EffectInfo.LightDesc))) + { + return E_FAIL; + } + } + + + if (m_EffectInfo.isDiffuse) + { + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + + m_strDiffuseName = szName; + + } + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDiffuseName), + reinterpret_cast(&m_pDiffuse_TextureCom)))) + return E_FAIL; + } + + if (m_EffectInfo.isNoise) + { + size_t iComponentLength = {}; + + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + + m_strNoiseName = szName; + } + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNoiseName), + reinterpret_cast(&m_pNoise_TextureCom)))) + return E_FAIL; + } + + if (m_EffectInfo.isMasking) + { + size_t iComponentLength = {}; + + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + + m_strMaskingName = szName; + } + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strMaskingName), + reinterpret_cast(&m_pMasking_TextureCom)))) + return E_FAIL; + } + + if (m_EffectInfo.isDissolve) + { + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + + m_strDissolveName = szName; + } + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDissolveName), + reinterpret_cast(&m_pDissolve_TextureCom)))) + return E_FAIL; + } + + if (m_EffectInfo.isEmissive) + { + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + + m_strEmissiveName = szName; + } + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strEmissiveName), + reinterpret_cast(&m_pEmissive_TextureCom)))) + return E_FAIL; + } + + size_t iComponentLength = {}; + + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)(DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + + m_strModelName = szName; + } + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strModelName), + reinterpret_cast(&m_pInstance_ModelCom)))) + return E_FAIL;; + + m_pInstance_ModelCom->Load_InstanceModel(hFile); + + CloseHandle(hFile); + + return S_OK; +} + HRESULT CEffectObject::Bind_ShaderResources() { @@ -110,91 +304,95 @@ HRESULT CEffectObject::Bind_ShaderResources() } - if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuse", &m_isDiffuse, sizeof(_bool)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuse", &m_EffectInfo.isDiffuse, sizeof(_bool)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_isMasking", &m_isMasking, sizeof(_bool)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_isMasking", &m_EffectInfo.isMasking, sizeof(_bool)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_isDissolve", &m_isDissolve, sizeof(_bool)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_isDissolve", &m_EffectInfo.isDissolve, sizeof(_bool)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoise", &m_isNoise, sizeof(_bool)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoise", &m_EffectInfo.isNoise, sizeof(_bool)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuseUVMove", &m_isDiffuseUVMove, sizeof(_bool)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_isEmissive", &m_EffectInfo.isEmissive, sizeof(_bool)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_isMaskUVMove", &m_isMaskUVMove, sizeof(_bool)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuseUVMove", &m_EffectInfo.isDiffuseUVMove, sizeof(_bool)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_vColor", &m_vColor, sizeof(_float4)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_isMaskUVMove", &m_EffectInfo.isMaskUVMove, sizeof(_bool)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_vEmissive", &m_vEmissive, sizeof(_float4)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_vColor", &m_EffectInfo.vColor, sizeof(_float4)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fColorOption", &m_fColorOption, sizeof(_float)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_vEmissive", &m_EffectInfo.vEmissive, sizeof(_float4)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fEmissiveCutAlpha", &m_fEmissiveCutAlpha, sizeof(_float)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_fColorOption", &m_EffectInfo.fColorOption, sizeof(_float)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fNoiseDistortionIntensity", &m_fNoiseDistortionIntensity, sizeof(_float)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_fEmissiveCutAlpha", &m_EffectInfo.fEmissiveCutAlpha, sizeof(_float)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseUVGainAmount", &m_vDiffuseUVGainAmount, sizeof(_float2)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_fNoiseDistortionIntensity", &m_EffectInfo.fNoiseDistortionIntensity, sizeof(_float)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskingUVGainAmount", &m_vMaskingUVGainAmount, sizeof(_float2)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseUVGainAmount", &m_EffectInfo.vDiffuseUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskingUVGainAmount", &m_EffectInfo.vMaskingUVGainAmount, sizeof(_float2)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseNoiseUVGainAmount", &m_vDiffuseNoiseUVGainAmount, sizeof(_float2)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseNoiseUVGainAmount", &m_EffectInfo.vDiffuseNoiseUVGainAmount, sizeof(_float2)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskNoiseUVGainAmount", &m_vMaskNoiseUVGainAmount, sizeof(_float2)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskNoiseUVGainAmount", &m_EffectInfo.vMaskNoiseUVGainAmount, sizeof(_float2)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVCutting", &m_vUVCutting, sizeof(_float2)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVCutting", &m_EffectInfo.vUVCutting, sizeof(_float2)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVMaskCutting", &m_vUVMaskCutting, sizeof(_float2)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVMaskCutting", &m_EffectInfo.vUVMaskCutting, sizeof(_float2)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_iMaskMoveLerpOption", &m_iMaskMoveLerpOption, sizeof(_int)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_iMaskMoveLerpOption", &m_EffectInfo.iMaskMoveLerpOption, sizeof(_int)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_iDiffuseMoveLerpOption", &m_iDiffuseMoveLerpOption, sizeof(_int)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_iDiffuseMoveLerpOption", &m_EffectInfo.iDiffuseMoveLerpOption, sizeof(_int)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_iMaskNoiseMoveLerpOption", &m_iMaskNoiseMoveLerpOption, sizeof(_int)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_iMaskNoiseMoveLerpOption", &m_EffectInfo.iMaskNoiseMoveLerpOption, sizeof(_int)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_iDiffuseNoiseMoveLerpOption", &m_iDiffuseNoiseMoveLerpOption, sizeof(_int)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_iDiffuseNoiseMoveLerpOption", &m_EffectInfo.iDiffuseNoiseMoveLerpOption, sizeof(_int)))) { return E_FAIL; } @@ -229,7 +427,16 @@ HRESULT CEffectObject::Bind_ShaderResources() } } + if (m_pEmissive_TextureCom != nullptr) + { + if (FAILED(m_pEmissive_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_EmissiveTexture", 0))) { + return E_FAIL; + } + } + + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { return E_FAIL; } @@ -245,7 +452,9 @@ HRESULT CEffectObject::Ready_Components(void* pArg) if (FAILED(__super::Ready_Components(pArg))) { return E_FAIL; } + + //나중ì—� 로드할 때 ë�¼ì�´íŠ¸ë¥¼ ê°’ì�„ 입력받아서 ìƒ�성 하ìž� return S_OK; } @@ -275,9 +484,13 @@ void CEffectObject::Free() SAFE_RELEASE(m_pNoise_TextureCom); SAFE_RELEASE(m_pMasking_TextureCom); SAFE_RELEASE(m_pDissolve_TextureCom); + SAFE_RELEASE(m_pEmissive_TextureCom); SAFE_RELEASE(m_pShaderCom); SAFE_RELEASE(m_pInstance_ModelCom); + + if(m_pLightCom != nullptr) + SAFE_RELEASE(m_pLightCom); } diff --git a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp index 8b7dd5244..ee746e3a3 100644 --- a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp +++ b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp @@ -263,9 +263,10 @@ void CEffect_Editor::ReadMaterial(_wstring wstrFileName, const char* pFilePath) wifs.close(); } -void CEffect_Editor::Reference_Mat_For_EditEffect(CComponent** pTexture, CGameObject* pObject) +_string CEffect_Editor::Reference_Mat_For_EditEffect(CComponent** pTexture, CGameObject* pObject) { + _string strName = {}; for (auto iter : m_MatFiles) { if (GUI::TreeNode(CMyTools::ToString(iter.first).c_str())) @@ -273,7 +274,7 @@ void CEffect_Editor::Reference_Mat_For_EditEffect(CComponent** pTexture, CGameOb for (auto wstrTextureInfo : iter.second) { - m_pGameInstance->Asset_Description( + strName = m_pGameInstance->Asset_Description( ENUM_CLASS(LEVEL::EFFECT), CMyTools::ToString(iter.first).c_str() , pTexture @@ -281,6 +282,9 @@ void CEffect_Editor::Reference_Mat_For_EditEffect(CComponent** pTexture, CGameOb , pObject , wstrTextureInfo.first // ì�´ë¦„ ); + + if(strName != "") + return strName; }; @@ -291,7 +295,24 @@ void CEffect_Editor::Reference_Mat_For_EditEffect(CComponent** pTexture, CGameOb } + return ""; +} +HRESULT CEffect_Editor::Load_Edit(const _char* pPath) +{ + + if (m_pEditEffect == nullptr) + return E_FAIL; + + if (FAILED(m_pEditEffect->Load(pPath, LEVEL::EFFECT))) + { + Safe_Release(m_pEditEffect); + return E_FAIL; + } + + Safe_Release(m_pEditEffect); + + return S_OK; } @@ -337,6 +358,22 @@ void CEffect_Editor::Describe_Entity() if (m_pEditEffect != nullptr) m_pEditEffect->Describe_Entity(); + GUI::InputTextMultiline("FILE PATH", m_szBuffer, sizeof(m_szBuffer), ImVec2(250, 25)); + + m_strSavePath = m_szBuffer; + + if (GUI::Button("SAVE")) + { + m_pEditEffect->Save_Effect(m_strSavePath.c_str()); + } + + GUI::SameLine(); + + if (GUI::Button("LOAD")) + { + Load_Edit(m_strSavePath.c_str()); + } + ImGui::End(); ImGui::Begin("Reference Material"); diff --git a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp index 484764bbd..be30b4e6a 100644 --- a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp +++ b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "GamePlay_Canvas.h" #include "GameInstance.h" #include "Mission_Panel.h" diff --git a/Jusin154_Team3D/Editor/Private/Head.cpp b/Jusin154_Team3D/Editor/Private/Head.cpp index e7c43d420..7c20ff934 100644 --- a/Jusin154_Team3D/Editor/Private/Head.cpp +++ b/Jusin154_Team3D/Editor/Private/Head.cpp @@ -50,7 +50,78 @@ void CHead::Late_Update(_float fTimeDelta) HRESULT CHead::Render() { - __super::Render(); + if(!m_pModelCom) + return S_OK; + + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { + return E_FAIL; + } + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { + return E_FAIL; + } + + if (i == m_HeadIndex) + { + + if (FAILED(m_pShaderCom->Begin(5))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + else + { + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + + } + + return S_OK; +} + +HRESULT CHead::Bind_ShaderResources() +{ + if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", &m_CombinedWorldMatrix))) { + 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; + } + + + GUI::DragFloat4("COLOR", (_float*)&m_vColor, 0.1f); + + if (FAILED(m_pShaderCom->Bind_RawValue("g_TestColor", &m_vColor, sizeof(_float4)))) { + return E_FAIL; + } return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp b/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp index 28e9b00e7..e700478a2 100644 --- a/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp +++ b/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "IMGUIUI.h" #include "UIObject.h" #include "GamePlay_Canvas.h" @@ -38,7 +38,7 @@ void CIMGUIUI::PanelwstringTostring(vector& panelNames) for (auto& wname : panelNames) { - // wstring -> UTF-8 string º¯È¯ + // wstring -> UTF-8 string 변환 int size = WideCharToMultiByte(CP_UTF8, 0, wname.c_str(), (int)wname.size(), nullptr, 0, nullptr, nullptr); @@ -49,11 +49,11 @@ void CIMGUIUI::PanelwstringTostring(vector& panelNames) wname.c_str(), (int)wname.size(), &result[0], size, nullptr, nullptr); - // º¯È¯µÈ string ÀúÀå + // 변환ë�œ string 저장 m_iPanelNamestring.push_back(std::move(result)); } - // vector ¾÷µ¥ÀÌÆ® + // vector ì—…ë�°ì�´íЏ for (auto& str : m_iPanelNamestring) m_iPanelName.push_back(str.c_str()); @@ -70,7 +70,7 @@ void CIMGUIUI::ElementwstringTostring(vector& panelNames) for (auto& wname : panelNames) { - // wstring -> UTF-8 string º¯È¯ + // wstring -> UTF-8 string 변환 int size = WideCharToMultiByte(CP_UTF8, 0, wname.c_str(), (int)wname.size(), nullptr, 0, nullptr, nullptr); @@ -81,11 +81,11 @@ void CIMGUIUI::ElementwstringTostring(vector& panelNames) wname.c_str(), (int)wname.size(), &result[0], size, nullptr, nullptr); - // º¯È¯µÈ string ÀúÀå + // 변환ë�œ string 저장 m_pElementNamestring.push_back(std::move(result)); } - // vector ¾÷µ¥ÀÌÆ® + // vector ì—…ë�°ì�´íЏ for (auto& str : m_pElementNamestring) m_pElementName.push_back(str.c_str()); diff --git a/Jusin154_Team3D/Editor/Private/Information.cpp b/Jusin154_Team3D/Editor/Private/Information.cpp index aab0c25df..35c5c8a6e 100644 --- a/Jusin154_Team3D/Editor/Private/Information.cpp +++ b/Jusin154_Team3D/Editor/Private/Information.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Information.h" diff --git a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp index 0ea3f3380..69dfa26cb 100644 --- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp @@ -7,6 +7,7 @@ #include "Effect_Editor.h" #include "Dummy_Cube.h" #include "MainLight.h" +#include "Dummy_Plane.h" CLevel_EffectViewer::CLevel_EffectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } @@ -36,6 +37,9 @@ HRESULT CLevel_EffectViewer::Initialize() if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, LAYER_CUBE))) return E_FAIL; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, LAYER_CUBE))) + return E_FAIL; + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp index bd84001a1..6c63d1a3d 100644 --- a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Level_MapViewer.h" #include "GameInstance.h" @@ -23,7 +23,7 @@ void CLevel_MapViewer::Update(_float fTimeDelta) HRESULT CLevel_MapViewer::Render() { - SetWindowText(g_hWnd, TEXT("MapEditor·¹º§ÀÔ´Ï´Ù")); + SetWindowText(g_hWnd, TEXT("MapEditor레벨입니다")); GUI::ShowDemoWindow(); return S_OK; } @@ -73,6 +73,7 @@ HRESULT CLevel_MapViewer::Ready_Layer_Camera(const _wstring& strLayerTag) CameraDesc.vEye = _float3(0.f, 10.f, -10.f); CameraDesc.vAt = _float3(0.f, 0.f, 0.f); CameraDesc.fSpeedPerSec = 2.f; + CameraDesc.pCameraKey = TEXT("Debug_Camera"); CameraDesc.fRotationPerSec = XMConvertToRadians(90.0f); CameraDesc.fMouseSensor = 0.1f; @@ -80,6 +81,7 @@ HRESULT CLevel_MapViewer::Ready_Layer_Camera(const _wstring& strLayerTag) strLayerTag, &CameraDesc))) return E_FAIL; + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp index 33621c15a..bedaddf02 100644 --- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp @@ -14,6 +14,7 @@ #include "DummySkyBox.h" #include "MainLight.h" +#include "Terrain.h" CLevel_ObjectViewer::CLevel_ObjectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) @@ -265,6 +266,7 @@ void CLevel_ObjectViewer::Show_AnimList() { pModel->Set_AnimationIndex(i); pModel->Set_CurrentTrackPosition(0.f); + //pModel->Play_Animation(0.f); } } } @@ -301,9 +303,16 @@ void CLevel_ObjectViewer::Dummy_Object_Setting() GUI::Begin("Object_Info"); if (!m_Objects.empty()) { + _float3 Pos; + XMStoreFloat3(&Pos, m_Objects[m_iObjectIndex]->Get_Component()->Get_State(STATE::POSITION)); + GUI::DragFloat3("Pos", (_float*)&Pos); + Show_ObjectList(); + CModel* pModel = m_Objects[m_iObjectIndex]->Get_Component(); + GUI::Button(pModel->Get_AnimList(pModel->Get_AnimIndex())); + _float AnimTrack = pModel->Get_CurrentTrackPosition(); GUI::DragFloat("AnimTrack", &AnimTrack); @@ -333,6 +342,18 @@ void CLevel_ObjectViewer::Parts_Object_Setting() CModel* pModel = m_HumanRoot->Get_MainModel(); if (pModel) { + _float3 Pos; + XMStoreFloat3(&Pos, m_HumanRoot->Get_WorldPostion()); + + float Pos3[3] = { Pos.x, Pos.y, Pos.z }; + GUI::DragFloat3("Pos", Pos3); + + Pos.x = Pos3[0]; + Pos.y = Pos3[1]; + Pos.z = Pos3[2]; + + m_HumanRoot->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(Pos.x, Pos.y, Pos.z, 1.f)); + GUI::Button(pModel->Get_AnimList(pModel->Get_AnimIndex())); _float KeyFrame = pModel->Get_CurrentTrackPosition(); @@ -496,6 +517,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; + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 2152944cd..bf64d8ffb 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -52,7 +52,7 @@ #include "VIBuffer_Terrain.h" #include "Terrain.h" #include "BuildingContainer.h" -#include "MapObject_Static.h" +#include "MapObject_Collision.h" #include "MapObject_LOD.h" #include "MapObject_Manager.h" #include "MapElement_Interactable.h" @@ -65,6 +65,7 @@ #include "TestEffect.h" #include "EditEffect.h" #include "Effect_Editor.h" +#include "Dummy_Plane.h" #pragma endregion @@ -475,6 +476,10 @@ HRESULT CLoader::Loading_For_Effect() CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixIdentity())))) return E_FAIL; + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Model_DummyPlane"), + CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Effect/DummyPlane/DummyPlane.fbx", XMMatrixIdentity())))) + return E_FAIL; + m_strMessage = TEXT("Shader Loading.."); @@ -509,6 +514,10 @@ HRESULT CLoader::Loading_For_Effect() if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CDummy_Cube::Create(m_pDevice, m_pContext)))) return E_FAIL; + if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CDummy_Plane::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + m_strMessage = TEXT("Loading Success!"); m_isFinished = true; @@ -641,7 +650,7 @@ HRESULT CLoader::Loading_For_PhysXLevel() return E_FAIL; } - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapObject_Static::Create(m_pDevice, m_pContext)))) + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapObject_Collision::Create(m_pDevice, m_pContext)))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapObject_LOD::Create(m_pDevice, m_pContext)))) @@ -680,6 +689,60 @@ HRESULT CLoader::Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreN return S_OK; } +HRESULT CLoader::MapFolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag, vector<_wstring>& ModelPrototypeTags, vector& ModelPrototypePath) +{ + for (const auto& file : filesystem::directory_iterator(pDirectoryPath)) + { + if (file.is_directory()) + continue; + + string ext = file.path().extension().string(); + + if (strcmp(ext.c_str(), pFileExt)) { + continue; + } + + _char szFilePath[MAX_PATH] = {}; + + strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str()); + + _wstring strFileName = L"Prototype_GameObject_" + file.path().stem().wstring(); + + CModel* pModel = CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, szFilePath); + + /*For Prototype_Component_Model_*/ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, strFileName, pModel))) + return E_FAIL; + + if(bUseTag) + { + ModelPrototypeTags.push_back(strFileName); + ModelPrototypePath.emplace_back(file.path()); + } + + _uint iNumMesh = pModel->Get_NumMeshes(); + + + CRigidBody::RIGIDBODY_PROTOTYPEDESC Desc{}; + for (_uint i = 0; i < iNumMesh; ++i) { + _string strDestName = pModel->Get_MeshName(i) + to_string(i); + { + Desc.eType = ACTOR::TRIANGLEMESH; + Desc.ePxRigidBodyFlags = {}; + Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE }; + Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT; + Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f); + Desc.fContactOffset = 0.f; + } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, CMyTools::ToWstring(strDestName).c_str(), CRigidBody::Create(m_pDevice, m_pContext, Desc)))) { + return E_FAIL; + } + } + } + + return S_OK; +} + HRESULT CLoader::Loading_For_ObjectViewer() @@ -726,6 +789,14 @@ HRESULT CLoader::Loading_For_ObjectViewer() CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/FeMale/T_NPC_F_Head_Eye_Honey.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) return E_FAIL; + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_F_Head_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/FeMale/F_Head.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + return E_FAIL; + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_Head_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/Male/M_Head.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + return E_FAIL; + #pragma endregion #pragma region HAIR @@ -747,6 +818,10 @@ HRESULT CLoader::Loading_For_ObjectViewer() return E_FAIL; #pragma endregion + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_TestHuman_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/TestHuman.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + return E_FAIL; + #pragma region MONSTER if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_TombProtector_Model"), @@ -783,10 +858,20 @@ HRESULT CLoader::Loading_For_ObjectViewer() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("TerrainTest"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Cursor/UI_T_CursorRings.dds"), 0)))) { + return E_FAIL; + } + m_strMessage = TEXT("Shader Loading.."); m_strMessage = TEXT("Prototype Loading.."); + /* For.Prototype_Component_VIBuffer_Terrain */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"), + CVIBuffer_Terrain::Create(m_pDevice, m_pContext, nullptr, 100, 100)))) + return E_FAIL; + /* For.Prototype_GameObject_RootModelPart */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRootModelPart::Create(m_pDevice, m_pContext)))) return E_FAIL; @@ -811,6 +896,10 @@ HRESULT CLoader::Loading_For_ObjectViewer() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummySkyBox::Create(m_pDevice, m_pContext)))) return E_FAIL; + /* For.Prototype_GameObject_Terrain */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTerrain::Create(m_pDevice, m_pContext)))) + return E_FAIL; + m_strMessage = TEXT("Loading Success!"); m_isFinished = true; @@ -828,6 +917,11 @@ HRESULT CLoader::Loading_For_MapViewer() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("CollisionDebug"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Effect/Noises/VFX_T_noise6_D.png"), 0)))) { + return E_FAIL; + } + m_strMessage = TEXT("모ë�¸ë¥¼(ì�„) 로딩 중 입니다."); /* For.Prototype_Component_SkyboxModel */ @@ -838,56 +932,28 @@ HRESULT CLoader::Loading_For_MapViewer() vector<_wstring> ModelPrototypeTags = {}; vector ModelPrototypePath = {}; - //for (const auto& file : filesystem::directory_iterator("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes")) - for (const auto& file : filesystem::directory_iterator("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogwarts\\SUB_GreatHall\\Static_Mesh\\Kit_INT")) - //for (const auto& file : filesystem::directory_iterator("C:\\Users\\kimnuri\\Desktop\\Hogwart\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Terrain")) - { - if (file.is_directory()) - continue; + if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Terrain", + ".fbx", false, ModelPrototypeTags, ModelPrototypePath))) + return E_FAIL; + if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Terrain", + ".fbx", false, ModelPrototypeTags, ModelPrototypePath))) + return E_FAIL; + if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Collisions", + ".fbx", false, ModelPrototypeTags, ModelPrototypePath))) + return E_FAIL; + if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Meshes", + ".fbx", false, ModelPrototypeTags, ModelPrototypePath))) + return E_FAIL; + if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Collision", + ".fbx", true, ModelPrototypeTags, ModelPrototypePath))) + return E_FAIL; + if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes", + ".fbx", true, ModelPrototypeTags, ModelPrototypePath))) + return E_FAIL; + if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes\\3Broom_Kit", + ".fbx", true, ModelPrototypeTags, ModelPrototypePath))) + return E_FAIL; - string ext = file.path().extension().string(); - - //if (strcmp(ext.c_str(), ".bin")){ - // continue; - //} - if (strcmp(ext.c_str(), ".fbx")){ - continue; - } - - _char szFilePath[MAX_PATH] = {}; - - strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str()); - - _wstring strFileName = L"Prototype_GameObject_" + file.path().stem().wstring(); - - CModel* pModel = CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, szFilePath); - - /*For Prototype_Component_Model_*/ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, strFileName, pModel))) - return E_FAIL; - - ModelPrototypeTags.push_back(strFileName); - ModelPrototypePath.emplace_back(file.path()); - - _uint iNumMesh = pModel->Get_NumMeshes(); - - - CRigidBody_Static::RIGIDBODY_STATIC_PROTOTYPEDESC Desc{}; - for (_uint i = 0; i < iNumMesh; ++i) { - _string strDestName = pModel->Get_MeshName(i) + to_string(i); - { - Desc.eType = ACTOR::TRIANGLEMESH; - Desc.ePxRigidBodyFlags = {}; - Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE }; - Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT; - Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f); - Desc.fContactOffset = 0.f; - } - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, CMyTools::ToWstring(strDestName).c_str(), CRigidBody_Static::Create(m_pDevice, m_pContext, Desc)))) { - return E_FAIL; - } - } - } m_strMessage = TEXT("ì‰�ì�´ë�”를(ì�„) 로딩 중 입니다."); @@ -907,8 +973,8 @@ HRESULT CLoader::Loading_For_MapViewer() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBuildingContainer::Create(m_pDevice, m_pContext)))) return E_FAIL; - /* For.Prototype_GameObject_MapObject_Static */ - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapObject_Static::Create(m_pDevice, m_pContext)))) + /* For.Prototype_GameObject_MapObject_Collision */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapObject_Collision::Create(m_pDevice, m_pContext)))) return E_FAIL; /* For.Prototype_GameObject_MapObject_LOD */ diff --git a/Jusin154_Team3D/Editor/Private/MapContainer.cpp b/Jusin154_Team3D/Editor/Private/MapContainer.cpp index b4520a259..3c31bb688 100644 --- a/Jusin154_Team3D/Editor/Private/MapContainer.cpp +++ b/Jusin154_Team3D/Editor/Private/MapContainer.cpp @@ -1,9 +1,8 @@ -#include "pch.h" +#include "pch.h" #include "MapContainer.h" #include "PartObject.h" #include "MapObject_LOD.h" -#include "MapObject_Static.h" CMapContainer::CMapContainer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CContainerObject(pDevice, pContext) @@ -75,7 +74,7 @@ HRESULT CMapContainer::Save_PartObjects(tinyxml2::XMLDocument& Doc, tinyxml2::XM for (_uint i = 0; i < pMapObject->Get_LodLevel() + 1; ++i) { - // ÅØ½ºÆ® + // í…�스트 tinyxml2::XMLElement* proto = Doc.NewElement("PrototypeTag"); proto->SetText(CMyTools::ToString(pMapObject->Get_PrototypeTag(i)).c_str()); PartObject->InsertEndChild(proto); @@ -113,6 +112,59 @@ HRESULT CMapContainer::Save_PartObjects(tinyxml2::XMLDocument& Doc, tinyxml2::XM PartObject->InsertEndChild(RotationElem); } + for (auto& pObject : m_ColiisonPartObjects) + { + CMapObject* pMapObject = dynamic_cast(pObject); + + if (nullptr == pMapObject) + return E_FAIL; + + // + tinyxml2::XMLElement* Collision = Doc.NewElement("Collision"); + Collision->SetAttribute("Lod_Level", pMapObject->Get_LodLevel()); + Collision->SetAttribute("Key_Index", pMapObject->Get_iKeyIndex()); + Container->InsertEndChild(Collision); + + for (_uint i = 0; i < pMapObject->Get_LodLevel() + 1; ++i) + { + // í…�스트 + tinyxml2::XMLElement* proto = Doc.NewElement("PrototypeTag"); + proto->SetText(CMyTools::ToString(pMapObject->Get_PrototypeTag(i)).c_str()); + Collision->InsertEndChild(proto); + } + + // + tinyxml2::XMLElement* PositionElem = Doc.NewElement("Position"); + + _float3 vPosition = {}; + XMStoreFloat3(&vPosition, pMapObject->Get_Component()->Get_State(STATE::POSITION)); + + PositionElem->SetAttribute("x", vPosition.x); + PositionElem->SetAttribute("y", vPosition.y); + PositionElem->SetAttribute("z", vPosition.z); + Collision->InsertEndChild(PositionElem); + + // + tinyxml2::XMLElement* ScaleElem = Doc.NewElement("Scale"); + + _float3 pScale = pMapObject->Get_Component()->Get_Scale(); + ScaleElem->SetAttribute("x", pScale.x); + ScaleElem->SetAttribute("y", pScale.y); + ScaleElem->SetAttribute("z", pScale.z); + Collision->InsertEndChild(ScaleElem); + + // + tinyxml2::XMLElement* RotationElem = Doc.NewElement("Rotation"); + + _float3 vRotation = {}; + XMStoreFloat3(&vRotation, pMapObject->Get_Component()->Get_RollPitchYawVector()); + + RotationElem->SetAttribute("x", vRotation.x); + RotationElem->SetAttribute("y", vRotation.y); + RotationElem->SetAttribute("z", vRotation.z); + Collision->InsertEndChild(RotationElem); + } + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Static.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Collision.cpp similarity index 52% rename from Jusin154_Team3D/Editor/Private/MapObject_Static.cpp rename to Jusin154_Team3D/Editor/Private/MapObject_Collision.cpp index e3a4761ac..71d7d579b 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject_Static.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject_Collision.cpp @@ -1,5 +1,5 @@ #include "pch.h" -#include "MapObject_Static.h" +#include "MapObject_Collision.h" #include "GameInstance.h" #include "DebugCamera.h" @@ -8,29 +8,29 @@ #include "VIBuffer_Terrain.h" #include "MapObject_Manager.h" -CMapObject_Static::CMapObject_Static(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +CMapObject_Collision::CMapObject_Collision(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CMapObject(pDevice, pContext) { } -CMapObject_Static::CMapObject_Static(const CMapObject_Static& Prototype) +CMapObject_Collision::CMapObject_Collision(const CMapObject_Collision& Prototype) : CMapObject(Prototype) { } -void CMapObject_Static::Priority_Update(_float fTimeDelta) +void CMapObject_Collision::Priority_Update(_float fTimeDelta) { #ifdef _DEBUG m_bSelected = false; #endif } -void CMapObject_Static::Update(_float fTimeDelta) +void CMapObject_Collision::Update(_float fTimeDelta) { } -void CMapObject_Static::Late_Update(_float fTimeDelta) +void CMapObject_Collision::Late_Update(_float fTimeDelta) { #ifdef _DEBUG if (m_bSelected) @@ -41,30 +41,33 @@ void CMapObject_Static::Late_Update(_float fTimeDelta) } #endif - XMStoreFloat4x4(&m_CombinedWorldMatrix, m_pTransformCom->Get_XMWorldMatrix() * m_pParentTransformCom->Get_XMWorldMatrix()); + if(m_pGameInstance->Key_Pressing(DIK_Z)) + { + XMStoreFloat4x4(&m_CombinedWorldMatrix, m_pTransformCom->Get_XMWorldMatrix() * m_pParentTransformCom->Get_XMWorldMatrix()); - _float4 vPos; - XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION)); - m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this, vPos, 20.f); + _float4 vPos; + XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION)); + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this, vPos, 20.f); + } } -HRESULT CMapObject_Static::Render() +HRESULT CMapObject_Collision::Render() { if (FAILED(Bind_ShaderResources())) { return E_FAIL; } - _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + _uint iNumMeshes = m_pModelComs[m_iLodIndex]->Get_NumMeshes(); for (_uint i = 0; i < iNumMeshes; i++) { - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { - return E_FAIL; - } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { + if (FAILED(m_pShaderCom->Bind_SRV("g_DiffuseTexture", m_pTextureCom->Get_SRV(0)))) { return E_FAIL; } + if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { + return E_FAIL; + } if (m_bSelected) { if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::MAPTOOL)))) { @@ -78,7 +81,7 @@ HRESULT CMapObject_Static::Render() } } - if (FAILED(m_pModelCom->Render(i))) { + if (FAILED(m_pModelComs[m_iLodIndex]->Render(i))) { return E_FAIL; } } @@ -86,20 +89,24 @@ HRESULT CMapObject_Static::Render() return S_OK; } -HRESULT CMapObject_Static::Initialize_Prototype() +HRESULT CMapObject_Collision::Initialize_Prototype() { return S_OK; } -HRESULT CMapObject_Static::Initialize(void* pArg) +HRESULT CMapObject_Collision::Initialize(void* pArg) { m_iMaxLodLevel = 0; - MAPOBJECT_STATIC_DESC* pDesc = static_cast(pArg); + MAPOBJECT_LOD_DESC* pDesc = static_cast(pArg); - m_strModelPrototypeTag = pDesc->strModelPrototypeTag; - m_iModelPathIndex = pDesc->iModelPathIndex; + m_iMaxLodLevel = pDesc->iMaxLodLevel; + for (_uint i = 0; i < m_iMaxLodLevel + 1; i++) + { + m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]); + //m_ModelPathIndices.push_back((*pDesc->pModelPathIndices)[i]); + } if (FAILED(__super::Initialize(pArg))) return E_FAIL; @@ -121,29 +128,44 @@ HRESULT CMapObject_Static::Initialize(void* pArg) return S_OK; } -_wstring CMapObject_Static::Get_PrototypeTag(_uint iLodIndex) +_wstring CMapObject_Collision::Get_PrototypeTag(_uint iLodIndex) { - return m_strModelPrototypeTag; + if (m_iMaxLodLevel < iLodIndex) + return m_ModelPrototypeTags[0]; + + return m_ModelPrototypeTags[iLodIndex]; } -HRESULT CMapObject_Static::Ready_Components() +HRESULT CMapObject_Collision::Ready_Components() { __super::Ready_Components(); - /* Com_Model */ - if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag, - reinterpret_cast(&m_pModelCom)))) - return E_FAIL; + for (_uint i = 0; i < m_iMaxLodLevel + 1; ++i) + { + CModel* pModel = { nullptr }; + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_ModelPrototypeTags[i], + reinterpret_cast(&pModel)))) + return E_FAIL; + + m_pModelComs.push_back(pModel); + } /* Com_Shader */ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, reinterpret_cast(&m_pShaderCom)))) return E_FAIL; + /* Com_Texture */ + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("CollisionDebug"), reinterpret_cast(&m_pTextureCom), nullptr))) { + return E_FAIL; + } + return S_OK; } -HRESULT CMapObject_Static::Bind_ShaderResources() +HRESULT CMapObject_Collision::Bind_ShaderResources() { if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", &m_CombinedWorldMatrix))) { return E_FAIL; @@ -162,9 +184,9 @@ HRESULT CMapObject_Static::Bind_ShaderResources() return S_OK; } -CMapObject_Static* CMapObject_Static::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +CMapObject_Collision* CMapObject_Collision::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { - CMapObject_Static* pInstance = new CMapObject_Static(pDevice, pContext); + CMapObject_Collision* pInstance = new CMapObject_Collision(pDevice, pContext); if (FAILED(pInstance->Initialize_Prototype())) { @@ -175,28 +197,32 @@ CMapObject_Static* CMapObject_Static::Create(ID3D11Device* pDevice, ID3D11Device return pInstance; } -CGameObject* CMapObject_Static::Clone(void* pArg, CGameObject* pOwner) +CGameObject* CMapObject_Collision::Clone(void* pArg, CGameObject* pOwner) { - CMapObject_Static* pInstance = new CMapObject_Static(*this); + CMapObject_Collision* pInstance = new CMapObject_Collision(*this); pInstance->m_pOwner = pOwner; if (FAILED(pInstance->Initialize(pArg))) { - MSG_BOX("Failed to Cloned : CMapObject_Static"); + MSG_BOX("Failed to Cloned : CMapObject_Collision"); SAFE_RELEASE(pInstance); } return pInstance; } -void CMapObject_Static::Free() +void CMapObject_Collision::Free() { __super::Free(); SAFE_RELEASE(m_pShaderCom); - SAFE_RELEASE(m_pModelCom); + SAFE_RELEASE(m_pTextureCom); + + for (auto& pModel : m_pModelComs) + Safe_Release(pModel); + m_pModelComs.clear(); } -void CMapObject_Static::Describe_Entity() +void CMapObject_Collision::Describe_Entity() { if (m_bDead) return; @@ -204,6 +230,7 @@ void CMapObject_Static::Describe_Entity() return; //ImGui::Text(CMyTools::ToString(m_strModelPrototypeTag).c_str()); + GUI::Checkbox("Visible", &m_bVisible); ImGui::Text("----- Transfrom ----"); ImGui::InputFloat("X##Position", &m_vPosition.x, 0.1f, 1.f); ImGui::InputFloat("Y##Position", &m_vPosition.y, 0.1f, 1.f); @@ -216,7 +243,6 @@ void CMapObject_Static::Describe_Entity() { pTerrain->Get_Component()->Picking(pTerrain->Get_Component(), m_vPosition); } - } ImGui::Text("----- Rotation ----"); @@ -241,31 +267,31 @@ void CMapObject_Static::Describe_Entity() GUI::OpenPopup("BakeStaticPhysXMesh##popup"); } - if (GUI::BeginPopup("BakeStaticPhysXMesh##popup")) { - if (GUI::Button("No")) { - GUI::CloseCurrentPopup(); - } - GUI::SameLine(); - if (GUI::Button("Bake!!!")) { - CMapObject_Manager* pManager = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_MAPOBJECTMANAGER)->Get_Object(); + //if (GUI::BeginPopup("BakeStaticPhysXMesh##popup")) { + // if (GUI::Button("No")) { + // GUI::CloseCurrentPopup(); + // } + // GUI::SameLine(); + // if (GUI::Button("Bake!!!")) { + // CMapObject_Manager* pManager = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_MAPOBJECTMANAGER)->Get_Object(); - filesystem::path filePath = pManager->Get_PrototypePath(m_iModelPathIndex); - m_pModelCom->Save_PhysXTriMeshes(CMyTools::ToString(pManager->Get_PrototypePath(m_iModelPathIndex)).c_str()); - _uint iNumMesh = m_pModelCom->Get_NumMeshes(); + // filesystem::path filePath = pManager->Get_PrototypePath(m_iModelPathIndex); + // m_pModelCom->Save_PhysXTriMeshes(CMyTools::ToString(pManager->Get_PrototypePath(m_iModelPathIndex)).c_str()); + // _uint iNumMesh = m_pModelCom->Get_NumMeshes(); - CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc{}; - for (_uint i = 0; i < iNumMesh; ++i) - { // RIGID_BODY - Desc.pMeshName = CMyTools::ToWstring(m_pModelCom->Get_MeshName(i) + to_string(i)).c_str(); + // CRigidBody::RIGIDBODY_DESC Desc{}; + // for (_uint i = 0; i < iNumMesh; ++i) + // { // RIGID_BODY + // Desc.szMeshName = _string(m_pModelCom->Get_MeshName(i) + to_string(i)).c_str(); - if (FAILED(Add_Asset_Component(g_iStaticLevel, Desc.pMeshName, nullptr, &Desc))) { - assert(false); - } - } - GUI::CloseCurrentPopup(); - } - GUI::EndPopup(); - } + // if (FAILED(Add_Asset_Component(g_iStaticLevel, CMyTools::ToWstring(Desc.szMeshName).c_str(), nullptr, &Desc))) { + // assert(false); + // } + // } + // GUI::CloseCurrentPopup(); + // } + // GUI::EndPopup(); + //} m_bSelected = true; } diff --git a/Jusin154_Team3D/Editor/Private/MapObject_LOD.cpp b/Jusin154_Team3D/Editor/Private/MapObject_LOD.cpp index 5885ef07f..3221add85 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject_LOD.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject_LOD.cpp @@ -99,6 +99,7 @@ HRESULT CMapObject_LOD::Render() if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { return E_FAIL; } + if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp index 8d50b328e..15d1742bb 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp @@ -6,7 +6,7 @@ #include "Layer.h" #include "MapObject.h" #include "MapObject_LOD.h" -#include "MapObject_Static.h" +#include "MapObject_Collision.h" #include "BuildingContainer.h" #include "MapElement_Static.h" #include "MapElement_Interactable.h" @@ -67,6 +67,10 @@ void CMapObject_Manager::Priority_Update(_float fTimeDelta) { pObject->Priority_Update(fTimeDelta); } + for (auto* pObject : m_Collision) + { + pObject->Priority_Update(fTimeDelta); + } } void CMapObject_Manager::Update(_float fTimeDelta) @@ -79,7 +83,8 @@ void CMapObject_Manager::Update(_float fTimeDelta) "ELEMENT_INTERACT" }; GUI::Combo("MODE", (_int*)(&m_eType), ModeNames, IM_ARRAYSIZE(ModeNames)); - + GUI::Checkbox("Model View", &m_bModelVisable); + GUI::Checkbox("COL View", &m_bCollisionVisable); GUI::InputText("MapFileName", m_szSaveFileName, MAX_PATH); if (GUI::Button("Save_Map")) { @@ -111,10 +116,7 @@ void CMapObject_Manager::Update(_float fTimeDelta) Update_ObjectList(); - if (ADD_TYPE::CONTAINER != m_eType) - { - Update_Edit(); - } + Update_Edit(); if (ADD_TYPE::CONTAINER == m_eType) { @@ -125,6 +127,10 @@ void CMapObject_Manager::Update(_float fTimeDelta) { pObject->Update(fTimeDelta); } + for (auto* pObject : m_Collision) + { + pObject->Update(fTimeDelta); + } } void CMapObject_Manager::Late_Update(_float fTimeDelta) @@ -139,11 +145,28 @@ void CMapObject_Manager::Late_Update(_float fTimeDelta) } else { - (*iter)->Late_Update(fTimeDelta); + if(m_bModelVisable) + (*iter)->Late_Update(fTimeDelta); ++iter; } } + + auto Col_iter = m_Collision.begin(); + for (; Col_iter != m_Collision.end();) + { + if ((*Col_iter)->isDead()) + { + SAFE_RELEASE(*Col_iter); + Col_iter = m_Collision.erase(Col_iter); + } + else + { + if (m_bCollisionVisable) + (*Col_iter)->Late_Update(fTimeDelta); + ++Col_iter; + } + } } HRESULT CMapObject_Manager::Render() @@ -388,7 +411,7 @@ HRESULT CMapObject_Manager::Save_MapData(const _char* pFileName) HRESULT CMapObject_Manager::Save_ContainerData(const _char* pFileName, const _char* pContainerName) { - if (true == m_MapObjects.empty()) + if (true == m_MapObjects.empty()&& true == m_Collision.empty()) return E_FAIL; tinyxml2::XMLDocument doc; @@ -498,7 +521,67 @@ HRESULT CMapObject_Manager::Save_ContainerData(const _char* pFileName, const _ch m_pSelectObject = nullptr; #pragma endregion - // ?ú?Ã¥ +#pragma region SAVE_COLLISION + for (auto& pColObject : m_Collision) + { + // + tinyxml2::XMLElement* Collision = doc.NewElement("Collision"); + _uint iLodLvel = pColObject->Get_LodLevel(); + + Collision->SetAttribute("Lod_Level", iLodLvel); + Collision->SetAttribute("Key_Index", pColObject->Get_iKeyIndex()); + container->InsertEndChild(Collision); + + for (_uint i = 0; i < pColObject->Get_LodLevel() + 1; ++i) + { + // ÅØ½ºÆ® + tinyxml2::XMLElement* proto = doc.NewElement("PrototypeTag"); + proto->SetText(CMyTools::ToString(pColObject->Get_PrototypeTag(i)).c_str()); + Collision->InsertEndChild(proto); + } + + // + tinyxml2::XMLElement* PositionElem = doc.NewElement("Position"); + + _float3 vPosition = {}; + XMStoreFloat3(&vPosition, pColObject->Get_Component()->Get_State(STATE::POSITION)); + + PositionElem->SetAttribute("x", vPosition.x); + PositionElem->SetAttribute("y", vPosition.y); + PositionElem->SetAttribute("z", vPosition.z); + Collision->InsertEndChild(PositionElem); + + // + tinyxml2::XMLElement* ScaleElem = doc.NewElement("Scale"); + + _float3 pScale = pColObject->Get_Component()->Get_Scale(); + ScaleElem->SetAttribute("x", pScale.x); + ScaleElem->SetAttribute("y", pScale.y); + ScaleElem->SetAttribute("z", pScale.z); + Collision->InsertEndChild(ScaleElem); + + // + tinyxml2::XMLElement* RotationElem = doc.NewElement("Rotation"); + + _float3 vRotation = {}; + XMStoreFloat3(&vRotation, pColObject->Get_Component()->Get_RollPitchYawVector()); + + vRotation.x = XMConvertToDegrees(vRotation.x); + vRotation.y = XMConvertToDegrees(vRotation.y); + vRotation.z = XMConvertToDegrees(vRotation.z); + + RotationElem->SetAttribute("x", vRotation.x); + RotationElem->SetAttribute("y", vRotation.y); + RotationElem->SetAttribute("z", vRotation.z); + Collision->InsertEndChild(RotationElem); + + SAFE_RELEASE(pColObject); + } + m_Collision.clear(); +#pragma endregion + + + // ÀúÀå if (doc.SaveFile(strPath.c_str()) != tinyxml2::XML_SUCCESS) { MSG_BOX("Failed to Save File"); } @@ -612,6 +695,51 @@ HRESULT CMapObject_Manager::Load_MapData(const _char* pFileName) } #pragma endregion + +#pragma region ADD_COLLISION + for (auto* Collision = Container->FirstChildElement("Collision"); Collision; Collision = Collision->NextSiblingElement("Collision")) + { + _uint iLodLevel = {}; + _uint iKeyIndex = {}; + + Collision->QueryUnsignedAttribute("Lod_Level", &iLodLevel); + Collision->QueryUnsignedAttribute("Key_Index", &iKeyIndex); + +#pragma region MAPOBJECT_LOD + MAPOBJECT_LOD_DESC Desc = {}; + string strTag = {}; + for (auto* PrototypeTag = Collision->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag")) + { + strTag = PrototypeTag->GetText(); + + Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag)); + } + Desc.iMaxLodLevel = iLodLevel; + Desc.pParentTransform = pContainerObject->Get_Component(); + + /* Position */ + tinyxml2::XMLElement* Position = Collision->FirstChildElement("Position"); + Position->QueryFloatAttribute("x", &Desc.vPosition.x); + Position->QueryFloatAttribute("y", &Desc.vPosition.y); + Position->QueryFloatAttribute("z", &Desc.vPosition.z); + + /* Scale */ + tinyxml2::XMLElement* Scale = Collision->FirstChildElement("Scale"); + Scale->QueryFloatAttribute("x", &Desc.vScale.x); + Scale->QueryFloatAttribute("y", &Desc.vScale.y); + Scale->QueryFloatAttribute("z", &Desc.vScale.z); + + /* Rotation */ + tinyxml2::XMLElement* Rotation = Collision->FirstChildElement("Rotation"); + Rotation->QueryFloatAttribute("x", &Desc.vRotation.x); + Rotation->QueryFloatAttribute("y", &Desc.vRotation.y); + Rotation->QueryFloatAttribute("z", &Desc.vRotation.z); + + pContainerObject->Add_Collision(g_iStaticLevel, &Desc); +#pragma endregion + + } +#pragma endregion } for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object")) @@ -766,6 +894,52 @@ HRESULT CMapObject_Manager::Load_ContainerData(const _char* pFileName, const _ch } #pragma endregion +#pragma region ADD_COLLISION + for (auto* Collision = TargetContainer->FirstChildElement("Collision"); Collision; Collision = Collision->NextSiblingElement("Collision")) + { + _uint iLodLevel = {}; + _uint iKeyIndex = {}; + + Collision->QueryUnsignedAttribute("Lod_Level", &iLodLevel); + Collision->QueryUnsignedAttribute("Key_Index", &iKeyIndex); + +#pragma region MAPOBJECT_LOD + MAPOBJECT_LOD_DESC Desc = {}; + string strTag = {}; + for (auto* PrototypeTag = Collision->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag")) + { + strTag = PrototypeTag->GetText(); + + Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag)); + } + Desc.iMaxLodLevel = iLodLevel; + Desc.pParentTransform = pContainerObject->Get_Component(); + + /* Position */ + tinyxml2::XMLElement* Position = Collision->FirstChildElement("Position"); + Position->QueryFloatAttribute("x", &Desc.vPosition.x); + Position->QueryFloatAttribute("y", &Desc.vPosition.y); + Position->QueryFloatAttribute("z", &Desc.vPosition.z); + + /* Scale */ + tinyxml2::XMLElement* Scale = Collision->FirstChildElement("Scale"); + Scale->QueryFloatAttribute("x", &Desc.vScale.x); + Scale->QueryFloatAttribute("y", &Desc.vScale.y); + Scale->QueryFloatAttribute("z", &Desc.vScale.z); + + /* Rotation */ + tinyxml2::XMLElement* Rotation = Collision->FirstChildElement("Rotation"); + Rotation->QueryFloatAttribute("x", &Desc.vRotation.x); + Rotation->QueryFloatAttribute("y", &Desc.vRotation.y); + Rotation->QueryFloatAttribute("z", &Desc.vRotation.z); + + pContainerObject->Add_Collision(g_iStaticLevel, &Desc); +#pragma endregion + + } +#pragma endregion + + return S_OK; } #pragma endregion @@ -780,7 +954,7 @@ void CMapObject_Manager::Update_PrototypeList() { auto& Tag = m_ModelPrototypeTags[i]; - if (_wstring::npos != Tag.find(L"Lod")) { + if (_wstring::npos != Tag.find(L"Lod") || _wstring::npos != Tag.find(L"COL")) { continue; } @@ -807,6 +981,56 @@ void CMapObject_Manager::Update_PrototypeList() } GUI::End(); + /* COL Mesh를 Containerì—� 추가 */ + if (ADD_TYPE::CONTAINER == m_eType) + { + GUI::Begin("Collision Model"); + _uint iMaxSize = (_uint)m_ModelPrototypeTags.size(); + for (_uint i = 0; i < iMaxSize; ++i) + { + auto& Tag = m_ModelPrototypeTags[i]; + + if (_wstring::npos != Tag.find(L"COL") && _wstring::npos == Tag.find(L"Lod")) { + if (ImGui::Button(CMyTools::ToString(Tag).c_str())) + { + vector<_uint> LodModelIndices; + + MAPOBJECT_LOD_DESC Desc = {}; + + vector<_wstring> PrototypeTags; + + Find_Lod_Prototype(Tag, LodModelIndices); + + PrototypeTags.push_back(Tag); + + for (_uint i = 0; i < LodModelIndices.size(); ++i) + { + _wstring strLodTag = Tag + L"_Lod" + to_wstring(i + 1); + PrototypeTags.push_back(strLodTag); + } + + Desc.iMaxLodLevel = (_uint)LodModelIndices.size() - 1; + Desc.ModelPrototypeTags = PrototypeTags; + Desc.pParentTransform = m_pTransformCom; + Desc.vPosition = _float3(0.f, 0.f, 0.f); + Desc.vRotation = _float3(0.f, 0.f, 0.f); + Desc.vScale = _float3(1.f, 1.f, 1.f); + Desc.pModelPathIndices = &LodModelIndices; + + CMapObject_Collision* pMapObject = { nullptr }; + const string strKey = CMyTools::ToString(Tag); + + pMapObject = m_pGameInstance->Clone_Prototype(g_iStaticLevel, &Desc); + + if(nullptr != pMapObject) + m_Collision.push_back(pMapObject); + } + } + + + } + GUI::End(); + } } void CMapObject_Manager::Update_ObjectList() @@ -820,11 +1044,34 @@ void CMapObject_Manager::Update_ObjectList() _uint iObjectIndex = {}; string strSrc; - if(ADD_TYPE::CONTAINER == m_eType) + if (ADD_TYPE::CONTAINER == m_eType) { - if (false == m_MapObjects.empty()) + if (ImGui::CollapsingHeader("Map Objects", ImGuiTreeNodeFlags_DefaultOpen)) { - for (auto pMapObject : m_MapObjects) + if (false == m_MapObjects.empty()) + { + for (auto pMapObject : m_MapObjects) + { + CMapObject* pCurrentMapObject = static_cast(pMapObject); + + if (nullptr == pCurrentMapObject) + continue; + + wstring strPrototypeTag = pCurrentMapObject->Get_PrototypeTag(); + + strSrc = CMyTools::ToString(strPrototypeTag) + to_string(iObjectIndex) + "##" + to_string(iObjectIndex++); + + if (ImGui::Button(strSrc.c_str())) + { + m_pSelectObject = pCurrentMapObject; + } + } + + } + } + if (ImGui::CollapsingHeader("COL", ImGuiTreeNodeFlags_DefaultOpen)) + { + for (auto pMapObject : m_Collision) { CMapObject* pCurrentMapObject = static_cast(pMapObject); @@ -1055,8 +1302,13 @@ _bool CMapObject_Manager::Find_Lod_Prototype(_wstring strPrototypeTag, vector<_u // for (auto& Tag : m_LODModelPrototypeTags) for(_uint i = 0 ; i < m_ModelPrototypeTags.size(); ++i) { - if (_wstring::npos != m_ModelPrototypeTags[i].find(strPrototypeTag) && 5 > (m_ModelPrototypeTags[i].size() - strPrototypeTag.size())) + if (m_ModelPrototypeTags[i] == strPrototypeTag) LodModelIndices.push_back(i); + + _wstring strPt = strPrototypeTag + L"_Lod"; + if (_wstring::npos != m_ModelPrototypeTags[i].find(strPt)) //&& 5 > (m_ModelPrototypeTags[i].size() - strPrototypeTag.size())) + LodModelIndices.push_back(i); + } if (0 < LodModelIndices.size()) { return true; @@ -1111,6 +1363,13 @@ void CMapObject_Manager::Free() { SAFE_RELEASE(pObject); } + m_MapObjects.clear(); + + for (auto& pObject : m_Collision) + { + SAFE_RELEASE(pObject); + } + m_Collision.clear(); SAFE_RELEASE(m_pContainer); } diff --git a/Jusin154_Team3D/Editor/Private/ModelParts.cpp b/Jusin154_Team3D/Editor/Private/ModelParts.cpp index 29c049335..7337f9efe 100644 --- a/Jusin154_Team3D/Editor/Private/ModelParts.cpp +++ b/Jusin154_Team3D/Editor/Private/ModelParts.cpp @@ -96,7 +96,13 @@ void CModelParts::Change_Model(const _wchar* Prototype) Remove_Component(); SAFE_RELEASE(m_pModelCom); } - + ; + if (strstr(CMyTools::ToString(Prototype).c_str(), "_F_")) + { + m_HeadIndex = 2; + } + else + m_HeadIndex = 1; if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, Prototype, reinterpret_cast(&m_pModelCom)))) return; diff --git a/Jusin154_Team3D/Editor/Private/Monster.cpp b/Jusin154_Team3D/Editor/Private/Monster.cpp index 728a58183..ec5853c7e 100644 --- a/Jusin154_Team3D/Editor/Private/Monster.cpp +++ b/Jusin154_Team3D/Editor/Private/Monster.cpp @@ -44,7 +44,7 @@ void CMonster::Priority_Update(_float fTimeDelta) void CMonster::Update(_float fTimeDelta) { - m_pModelCom->Play_Animation(fTimeDelta); + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); } void CMonster::Late_Update(_float fTimeDelta) diff --git a/Jusin154_Team3D/Editor/Private/RootModelPart.cpp b/Jusin154_Team3D/Editor/Private/RootModelPart.cpp index 4bc9d1713..e4e6ddd2d 100644 --- a/Jusin154_Team3D/Editor/Private/RootModelPart.cpp +++ b/Jusin154_Team3D/Editor/Private/RootModelPart.cpp @@ -71,7 +71,7 @@ void CRootModelPart::Update_Anim(_float fTimeDelta) { pModel->Set_PlayAnim(m_pMainModel->Get_PlayAnim()); pModel->Set_AnimSpeed(m_pMainModel->Get_AnimSpeed()); - pModel->Play_Animation(fTimeDelta); + pModel->Play_Animation(fTimeDelta,m_pTransformCom); } } } @@ -99,7 +99,7 @@ void CRootModelPart::Change_Model(_uint iIndex) pModel->Set_AnimationIndex(m_iAnimIndex); pModel->Set_CurrentTrackPosition(m_fTrackPosition); - pModel->Play_Animation(0.f); + pModel->Play_Animation(0.f, m_pTransformCom); if (iIndex == ENUM_CLASS(PARTSTYPE::BODY)) { @@ -112,7 +112,7 @@ void CRootModelPart::Set_Animation(_uint iAnimIndex) { m_pMainModel->Set_AnimationIndex(iAnimIndex); m_pMainModel->Set_CurrentTrackPosition(0.f); - m_pMainModel->Play_Animation(0.f); + m_pMainModel->Play_Animation(0.f, m_pTransformCom); for (auto& PartObject : m_ModelParts) { CModel* pModel = PartObject->Get_Component(); @@ -120,7 +120,7 @@ void CRootModelPart::Set_Animation(_uint iAnimIndex) { pModel->Set_AnimationIndex(m_pMainModel->Get_AnimIndex()); pModel->Set_CurrentTrackPosition(m_pMainModel->Get_CurrentTrackPosition()); - pModel->Play_Animation(0.f); + pModel->Play_Animation(0.f, m_pTransformCom); } } } diff --git a/Jusin154_Team3D/Editor/Public/Active_Icon.h b/Jusin154_Team3D/Editor/Public/Active_Icon.h index 11896987b..b19d0d329 100644 --- a/Jusin154_Team3D/Editor/Public/Active_Icon.h +++ b/Jusin154_Team3D/Editor/Public/Active_Icon.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "ElementObject.h" diff --git a/Jusin154_Team3D/Editor/Public/BuildingContainer.h b/Jusin154_Team3D/Editor/Public/BuildingContainer.h index bf4694f2d..bb90e6c14 100644 --- a/Jusin154_Team3D/Editor/Public/BuildingContainer.h +++ b/Jusin154_Team3D/Editor/Public/BuildingContainer.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "MapContainer.h" @@ -23,6 +23,23 @@ class CBuildingContainer final : public CMapContainer HRESULT Add_Part(const _string& strPartKey, _uint iPrototypeLevelIndex, T** ppOut, void* pArg = nullptr) { return Add_PartObject(strPartKey, iPrototypeLevelIndex, ppOut, pArg); } + template + HRESULT Add_Collision(_uint iPrototypeLevelIndex, void* pArg = nullptr) + { + T* pPartObject = m_pGameInstance->Clone_Prototype(iPrototypeLevelIndex, pArg, this); + + if (nullptr == pPartObject) { + return E_FAIL; + } + + m_ColiisonPartObjects.push_back(pPartObject); + + return S_OK; + } + + vector* Get_Collision() { return &m_ColiisonPartObjects; } + + private: virtual HRESULT Initialize_Prototype() override; @@ -37,4 +54,4 @@ class CBuildingContainer final : public CMapContainer virtual void Describe_Entity()override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/DebugCamera.h b/Jusin154_Team3D/Editor/Public/DebugCamera.h index 01adc1098..56c07bc30 100644 --- a/Jusin154_Team3D/Editor/Public/DebugCamera.h +++ b/Jusin154_Team3D/Editor/Public/DebugCamera.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "Camera.h" diff --git a/Jusin154_Team3D/Editor/Public/DummyObject.h b/Jusin154_Team3D/Editor/Public/DummyObject.h index 54de78e53..fd9c5ddd2 100644 --- a/Jusin154_Team3D/Editor/Public/DummyObject.h +++ b/Jusin154_Team3D/Editor/Public/DummyObject.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "GameObject.h" @@ -34,8 +34,8 @@ class CDummyObject final : public CGameObject _wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; } private: - CShader* m_pShaderCom = { nullptr }; - CModel* m_pModelCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CModel* m_pModelCom = { nullptr }; _wstring m_strModelPrototypeTag; _bool m_bRimLight = { true }; _float m_fRimLightPower = { 3.2f }; @@ -53,4 +53,4 @@ class CDummyObject final : public CGameObject virtual void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/DummyRect.h b/Jusin154_Team3D/Editor/Public/DummyRect.h index 404c1b391..8d92ae12f 100644 --- a/Jusin154_Team3D/Editor/Public/DummyRect.h +++ b/Jusin154_Team3D/Editor/Public/DummyRect.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "GameObject.h" diff --git a/Jusin154_Team3D/Editor/Public/DummySkyBox.h b/Jusin154_Team3D/Editor/Public/DummySkyBox.h index df368f9af..c13a2a814 100644 --- a/Jusin154_Team3D/Editor/Public/DummySkyBox.h +++ b/Jusin154_Team3D/Editor/Public/DummySkyBox.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "GameObject.h" diff --git a/Jusin154_Team3D/Editor/Public/Dummy_Cube.h b/Jusin154_Team3D/Editor/Public/Dummy_Cube.h index 2f3ced385..9ba5ab09f 100644 --- a/Jusin154_Team3D/Editor/Public/Dummy_Cube.h +++ b/Jusin154_Team3D/Editor/Public/Dummy_Cube.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "GameObject.h" diff --git a/Jusin154_Team3D/Editor/Public/Dummy_PhysXBox.h b/Jusin154_Team3D/Editor/Public/Dummy_PhysXBox.h index 00f39daa0..cf2d7f4bb 100644 --- a/Jusin154_Team3D/Editor/Public/Dummy_PhysXBox.h +++ b/Jusin154_Team3D/Editor/Public/Dummy_PhysXBox.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "GameObject.h" diff --git a/Jusin154_Team3D/Editor/Public/Dummy_PhysXMesh.h b/Jusin154_Team3D/Editor/Public/Dummy_PhysXMesh.h index bfea43799..06fc3e4ea 100644 --- a/Jusin154_Team3D/Editor/Public/Dummy_PhysXMesh.h +++ b/Jusin154_Team3D/Editor/Public/Dummy_PhysXMesh.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "GameObject.h" diff --git a/Jusin154_Team3D/Editor/Public/Dummy_PhysXPlayable.h b/Jusin154_Team3D/Editor/Public/Dummy_PhysXPlayable.h index 44d4b7f3b..0a9e42f12 100644 --- a/Jusin154_Team3D/Editor/Public/Dummy_PhysXPlayable.h +++ b/Jusin154_Team3D/Editor/Public/Dummy_PhysXPlayable.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "GameObject.h" diff --git a/Jusin154_Team3D/Editor/Public/Dummy_Plane.h b/Jusin154_Team3D/Editor/Public/Dummy_Plane.h new file mode 100644 index 000000000..b3cf85747 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Dummy_Plane.h @@ -0,0 +1,44 @@ +#pragma once + +#include "Editor_Define.h" +#include "GameObject.h" + +NS_BEGIN(Engine) +class CModel; +class CShader; +NS_END + +NS_BEGIN(Editor) + +class CDummy_Plane final : public CGameObject +{ +private: + CDummy_Plane(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CDummy_Plane(const CDummy_Plane& rhs); + virtual ~CDummy_Plane() = 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: + CModel* m_pModelCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + + +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 CDummy_Plane* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/EditEffect.h b/Jusin154_Team3D/Editor/Public/EditEffect.h index 26ff9cdeb..be9ec7891 100644 --- a/Jusin154_Team3D/Editor/Public/EditEffect.h +++ b/Jusin154_Team3D/Editor/Public/EditEffect.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "EffectObject.h" @@ -23,8 +23,8 @@ class CEditEffect final : public CEffectObject virtual void Late_Update(_float fTimeDelta) override; public: - void Reference_Mat_For_EditEffect(); - + void Reference_Mat_For_EditEffect(); + HRESULT Save_Effect(const _char* pPath); private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; @@ -39,4 +39,4 @@ class CEditEffect final : public CEffectObject void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h index 7ab131a7b..bbafb10c6 100644 --- a/Jusin154_Team3D/Editor/Public/EffectObject.h +++ b/Jusin154_Team3D/Editor/Public/EffectObject.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "PartObject.h" @@ -7,12 +7,56 @@ NS_BEGIN(Engine) class CInstance_Model; class CShader; class CTexture; +class CLight; NS_END NS_BEGIN(Editor) class CEffectObject abstract : public CPartObject { +public: + typedef struct tagEffectInfo + { + _float4 vColor = { 0.f ,0.f ,0.f ,1.f }; + + _float2 vDiffuseUVGainAmount = {}; + _float2 vMaskingUVGainAmount = {}; + + _float2 vDiffuseNoiseUVGainAmount = {}; + _float2 vMaskNoiseUVGainAmount = {}; + + _float2 vUVCutting = { 1.f ,1.f }; + _float2 vUVMaskCutting = { 1.f ,1.f }; + + _int iMaskMoveLerpOption = { 0 }; + _int iDiffuseMoveLerpOption = { 0 }; + _int iMaskNoiseMoveLerpOption = { 0 }; + _int iDiffuseNoiseMoveLerpOption = { 0 }; + _int iBlurWeight = { 0 }; + + + _bool isDiffuse = {}; + _bool isMasking = {}; + _bool isDissolve = {}; + _bool isNoise = {}; + _bool isEmissive = {}; + _bool isDiffuseUVMove = {}; + _bool isMaskUVMove = {}; + _bool isBlur = {}; + _bool isBillboard = {}; + + + _float4 vEmissive = { 0.f ,0.f ,0.f ,0.f }; + _float fColorOption = {}; + _float fBlurIntensity = {}; + _float fNoiseDistortionIntensity = {}; + _float fEmissiveCutAlpha = {}; + + LIGHT_DESC LightDesc = {}; + RENDER eRenderOrder = { RENDER::EFFECT }; + + }EFFECT_INFO; + protected: CEffectObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CEffectObject(const CEffectObject& rhs); @@ -24,6 +68,8 @@ class CEffectObject abstract : public CPartObject virtual void Late_Update(_float fTimeDelta); virtual HRESULT Render() override; virtual HRESULT Render_Blur() override; +public: + HRESULT Load(const _char* pFilePath, LEVEL eLevel); protected: virtual HRESULT Bind_ShaderResources() override; virtual HRESULT Ready_Components(void* pArg) override; @@ -35,50 +81,24 @@ class CEffectObject abstract : public CPartObject CTexture* m_pNoise_TextureCom = { nullptr }; CTexture* m_pMasking_TextureCom = { nullptr }; CTexture* m_pDissolve_TextureCom = { nullptr }; + CTexture* m_pEmissive_TextureCom = { nullptr }; CShader* m_pShaderCom = { nullptr }; + CLight* m_pLightCom = { nullptr }; + CInstance_Model* m_pInstance_ModelCom = { nullptr }; protected: - _float4 m_vColor = { 0.f ,0.f ,0.f ,1.f }; - - _float2 m_vDiffuseUVGainAmount = {}; - _float2 m_vMaskingUVGainAmount = {}; - - _float2 m_vDiffuseNoiseUVGainAmount = {}; - _float2 m_vMaskNoiseUVGainAmount = {}; - - _float2 m_vUVCutting = { 1.f ,1.f }; - _float2 m_vUVMaskCutting = { 1.f ,1.f }; - - _int m_iMaskMoveLerpOption = { 0 }; - _int m_iDiffuseMoveLerpOption = { 0 }; - _int m_iMaskNoiseMoveLerpOption = { 0 }; - _int m_iDiffuseNoiseMoveLerpOption = { 0 }; - _int m_iBlurWeight = { 0 }; - - - _bool m_isDiffuse = {}; - _bool m_isMasking = {}; - _bool m_isDissolve = {}; - _bool m_isNoise = {}; - _bool m_isDiffuseUVMove = {}; - _bool m_isMaskUVMove = {}; - _bool m_isBlur = {}; - _bool m_isBillboard = {}; - - - _float4 m_vEmissive = { 0.f ,0.f ,0.f ,0.f }; - _float m_fColorOption = {}; - _float m_fBlurIntensity = {}; - _float m_fNoiseDistortionIntensity = {}; - _float m_fEmissiveCutAlpha = {}; - - - RENDER m_eRenderOrder = { RENDER::EFFECT }; + EFFECT_INFO m_EffectInfo = {}; + _string m_strDiffuseName = {}; + _string m_strNoiseName = {}; + _string m_strMaskingName = {}; + _string m_strDissolveName = {}; + _string m_strModelName = {}; + _string m_strEmissiveName = {}; public: virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Effect_Editor.h b/Jusin154_Team3D/Editor/Public/Effect_Editor.h index f79d06dc0..60d90a65b 100644 --- a/Jusin154_Team3D/Editor/Public/Effect_Editor.h +++ b/Jusin154_Team3D/Editor/Public/Effect_Editor.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "ContainerObject.h" @@ -23,7 +23,8 @@ class CEffect_Editor final : public CContainerObject virtual void Late_Update(_float fTimeDelta) override; public: - void Reference_Mat_For_EditEffect(class CComponent** pTexture, CGameObject* pObject); + _string Reference_Mat_For_EditEffect(class CComponent** pTexture, CGameObject* pObject); + HRESULT Load_Edit(const _char* pPath); private: virtual HRESULT Initialize_Prototype() override; @@ -37,9 +38,13 @@ class CEffect_Editor final : public CContainerObject private: _string m_strCurrentEffectName = {}; + _uint m_iNumPart = { 0 }; class CEditEffect* m_pEditEffect = { nullptr }; - map<_wstring, vector>> m_MatFiles = {}; // map<¸ÓÅ׸®¾ó À̸§, vector<ÅØ½ºÃÄÀ̸§ , ÅØ½ºÃÄ °æ·Î>> + map<_wstring, vector>> m_MatFiles = {}; // map<머테리얼 ì�´ë¦„, vector<í…�스ì³�ì�´ë¦„ , í…�스ì³� 경로>> + + _char m_szBuffer[MAX_PATH] = { "../Bin/Resources/Data/Effect/"}; + _string m_strSavePath = {}; public: static CEffect_Editor* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); @@ -50,4 +55,4 @@ class CEffect_Editor final : public CContainerObject }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h b/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h index 8bd437356..53f22e997 100644 --- a/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h +++ b/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "CanvasObject.h" diff --git a/Jusin154_Team3D/Editor/Public/Hair.h b/Jusin154_Team3D/Editor/Public/Hair.h index d1070ca33..5b55ab3dc 100644 --- a/Jusin154_Team3D/Editor/Public/Hair.h +++ b/Jusin154_Team3D/Editor/Public/Hair.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "ModelParts.h" @@ -28,7 +28,6 @@ class CHair final : public CModelParts private: CTexture* m_pTextureCom = { nullptr }; _uint iTextureIndex = { 0 }; - _float4 m_vColor = _float4{1.f,1.f,1.f,1.f}; public: static CHair* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); @@ -37,4 +36,4 @@ class CHair final : public CModelParts virtual void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Head.h b/Jusin154_Team3D/Editor/Public/Head.h index 6afbfb83e..56cde3b20 100644 --- a/Jusin154_Team3D/Editor/Public/Head.h +++ b/Jusin154_Team3D/Editor/Public/Head.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "ModelParts.h" @@ -19,6 +19,7 @@ class CHead final : public CModelParts virtual void Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; + HRESULT Bind_ShaderResources(); private: HRESULT Ready_Components(); @@ -29,4 +30,4 @@ class CHead final : public CModelParts virtual void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/IMGUIUI.h b/Jusin154_Team3D/Editor/Public/IMGUIUI.h index 080137a12..ac2298f44 100644 --- a/Jusin154_Team3D/Editor/Public/IMGUIUI.h +++ b/Jusin154_Team3D/Editor/Public/IMGUIUI.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "GameObject.h" diff --git a/Jusin154_Team3D/Editor/Public/Information.h b/Jusin154_Team3D/Editor/Public/Information.h index 77b8932ea..dc4c393dd 100644 --- a/Jusin154_Team3D/Editor/Public/Information.h +++ b/Jusin154_Team3D/Editor/Public/Information.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" #include "Editor_Define.h" @@ -15,7 +15,7 @@ typedef class CInformation final : public CBase _bool strListBox(const _char* Label, _int& iCurrentIndex, vector<_string>& contents); _bool wstrListBox(const _char* Label, _int& iCurrentIndex, vector<_wstring>& contents); -#pragma endregion // Àü¿ª +#pragma endregion // ì „ì—­ #pragma region OBJECTVIEWER diff --git a/Jusin154_Team3D/Editor/Public/Loader.h b/Jusin154_Team3D/Editor/Public/Loader.h index 9546ada00..62caaffda 100644 --- a/Jusin154_Team3D/Editor/Public/Loader.h +++ b/Jusin154_Team3D/Editor/Public/Loader.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "Base.h" @@ -51,6 +51,7 @@ class CLoader final : public CBase private: HRESULT Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function AddPrototypeEvent); + HRESULT MapFolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag, vector<_wstring>& ModelPrototypeTags, vector& ModelPrototypePath); public: static CLoader* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eNextLevelID); @@ -58,4 +59,4 @@ class CLoader final : public CBase }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/MapContainer.h b/Jusin154_Team3D/Editor/Public/MapContainer.h index 57095b7d3..461f146e2 100644 --- a/Jusin154_Team3D/Editor/Public/MapContainer.h +++ b/Jusin154_Team3D/Editor/Public/MapContainer.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "ContainerObject.h" @@ -43,8 +43,10 @@ class CMapContainer abstract : public CContainerObject _float3 m_vRotation = {}; _float3 m_vScale = {}; + vector m_ColiisonPartObjects; + public: virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/MapObject_Static.h b/Jusin154_Team3D/Editor/Public/MapObject_Collision.h similarity index 55% rename from Jusin154_Team3D/Editor/Public/MapObject_Static.h rename to Jusin154_Team3D/Editor/Public/MapObject_Collision.h index 067097ed5..759b026a0 100644 --- a/Jusin154_Team3D/Editor/Public/MapObject_Static.h +++ b/Jusin154_Team3D/Editor/Public/MapObject_Collision.h @@ -1,16 +1,20 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "MapObject.h" +NS_BEGIN(Engine) +class CTexture; +NS_END + NS_BEGIN(Editor) -class CMapObject_Static final : public CMapObject // LOD ¸ðµ¨ÀÌ ¾ø´Â ¾Öµé +class CMapObject_Collision final : public CMapObject // LOD 모ë�¸ì�´ 없는 애들 { private: - CMapObject_Static(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); - CMapObject_Static(const CMapObject_Static& Prototype); - virtual ~CMapObject_Static() = default; + CMapObject_Collision(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CMapObject_Collision(const CMapObject_Collision& Prototype); + virtual ~CMapObject_Collision() = default; public: virtual void Priority_Update(_float fTimeDelta) override; @@ -23,10 +27,13 @@ class CMapObject_Static final : public CMapObject // LOD private: CShader* m_pShaderCom = { nullptr }; - CModel* m_pModelCom = { nullptr }; + CTexture* m_pTextureCom = { nullptr }; + vector m_pModelComs; - _wstring m_strModelPrototypeTag; - _uint m_iModelPathIndex = { UINT_MAX }; + _uint m_iLodIndex = {}; + + vector<_wstring> m_ModelPrototypeTags; + vector<_uint> m_ModelPathIndices = { }; private: virtual HRESULT Initialize_Prototype() override; @@ -36,10 +43,10 @@ class CMapObject_Static final : public CMapObject // LOD HRESULT Bind_ShaderResources(); public: - static CMapObject_Static* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + static CMapObject_Collision* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override; virtual void Free() override; virtual void Describe_Entity() 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 6d717337c..701a5f92d 100644 --- a/Jusin154_Team3D/Editor/Public/MapObject_Manager.h +++ b/Jusin154_Team3D/Editor/Public/MapObject_Manager.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "GameObject.h" @@ -32,9 +32,13 @@ class CMapObject_Manager final : public CGameObject private: ADD_TYPE m_eType = {}; + _bool m_bModelVisable = {true}; + _bool m_bCollisionVisable = { true }; + class CMapObject* m_pSelectObject = { nullptr }; class CMapElement* m_pSelectElemnt = { nullptr }; list m_MapObjects = {}; + list m_Collision = {}; vector<_wstring> m_ModelPrototypeTags; map<_wstring, _uint> m_PartObjectKeyCount; vector<_wstring> m_LODModelPrototypeTags; @@ -75,4 +79,4 @@ class CMapObject_Manager final : public CGameObject virtual void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/ModelParts.h b/Jusin154_Team3D/Editor/Public/ModelParts.h index e34d3834a..1061d45bf 100644 --- a/Jusin154_Team3D/Editor/Public/ModelParts.h +++ b/Jusin154_Team3D/Editor/Public/ModelParts.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "PartObject.h" @@ -34,14 +34,15 @@ class CModelParts abstract : public CPartObject _wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; } protected: - CShader* m_pShaderCom = { nullptr }; - CModel* m_pModelCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CModel* m_pModelCom = { nullptr }; _bool m_bRimLight = { true }; _float m_fRimLightPower = { 3.2f }; _float m_fRimLightStrength = { 3.04f }; _float3 m_vRimLightColor = { 69.f / 255.f, 5.f / 255.f, 10.f / 255.f }; - + _uint m_HeadIndex = {}; _wstring m_strModelPrototypeTag; + _float4 m_vColor = _float4{ 1.f,1.f,1.f,1.f }; protected: HRESULT Ready_Components(); HRESULT Bind_ShaderResources(); @@ -52,4 +53,4 @@ class CModelParts abstract : public CPartObject virtual void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl index 6e5d2ad4c..38eea62d7 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl @@ -19,8 +19,11 @@ float g_fSpotOuterAngle; vector g_vLightDir; vector g_vLightPos; +vector g_vLightPosOffset; + vector g_vCamPosition; + Texture2D g_NormalTexture; Texture2D g_DiffuseTexture; Texture2D g_ShadeTexture; @@ -156,7 +159,7 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In) vPosition = mul(vPosition, g_invmatProj); vPosition = mul(vPosition, g_invMatView); - vector vLightDir = vPosition - g_vLightPos; + vector vLightDir = vPosition - (g_vLightPos + g_vLightPosOffset); float fDistance = length(vLightDir); float fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); if (fAttenuation <= 0.f) diff --git a/Jusin154_Team3D/Engine/Private/Animation.cpp b/Jusin154_Team3D/Engine/Private/Animation.cpp index 8fd22f941..5c68587e0 100644 --- a/Jusin154_Team3D/Engine/Private/Animation.cpp +++ b/Jusin154_Team3D/Engine/Private/Animation.cpp @@ -2,6 +2,8 @@ #include "Animation.h" #include "Channel.h" +#include "Model.h" +#include "Transform.h" CAnimation::CAnimation() { @@ -29,7 +31,7 @@ CAnimation::CAnimation(const CAnimation& rhs) SAFE_ADDREF(pChannel); } } -_bool CAnimation::Update_TransformationMatrices(const vector& Bones, _bool bIsLoop, _float fTimeDelta) +_bool CAnimation::Update_TransformationMatrices(const vector& Bones, _bool bIsLoop, _float fTimeDelta,CTransform*pTransform) { //m_fCurrentTrackPosition += m_TickPerSeconds[m_bPause] * fTimeDelta; m_fCurrentTrackPosition += m_fTickPerSecond * fTimeDelta * m_fAnimSpeed; @@ -47,12 +49,17 @@ _bool CAnimation::Update_TransformationMatrices(const vector& Bone _uint iIndex = {}; for (auto& pChannel : m_Channels) { - pChannel->Update_TransformationMatirx(Bones, m_fCurrentTrackPosition, &m_CurrentKeyFrameIndices[iIndex++]); + pChannel->Update_TransformationMatirx(Bones, m_fCurrentTrackPosition, &m_CurrentKeyFrameIndices[iIndex++],pTransform); } return false; } +void CAnimation::ResetRootMotion() +{ + for (auto& pChannel : m_Channels) + pChannel->ResetRootMotion(); +} void CAnimation::Depart_Animation() { @@ -97,7 +104,25 @@ vector<_int>* CAnimation::Capture_Bones() } return &m_DestBones; } + +void CAnimation::Remap_Channels_By_Name(CModel* TargetModel) +{ + for (auto& channel : m_Channels) + { + const string& name = channel->Get_Name(); + + int idx = TargetModel->Get_BoneIndex(name.c_str()); + + if (idx != -1) + channel->Set_BoneIndex(idx); + else + channel->Set_BoneIndex(-1); + } +} + + #ifdef EDITOR_PROJECT + HRESULT CAnimation::Initialize(const vector& Bones, const aiAnimation* pAIAnimation) { m_strName = pAIAnimation->mName.data; @@ -272,4 +297,4 @@ void CAnimation::Describe_Entity() //if (GUI::CollapsingHeader(m_strName.c_str())) { // //} -} \ No newline at end of file +} diff --git a/Jusin154_Team3D/Engine/Private/Base.cpp b/Jusin154_Team3D/Engine/Private/Base.cpp index 0e9d8af33..9bae93d12 100644 --- a/Jusin154_Team3D/Engine/Private/Base.cpp +++ b/Jusin154_Team3D/Engine/Private/Base.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Base.h" diff --git a/Jusin154_Team3D/Engine/Private/Bounding.cpp b/Jusin154_Team3D/Engine/Private/Bounding.cpp index 692d73322..693b4bf72 100644 --- a/Jusin154_Team3D/Engine/Private/Bounding.cpp +++ b/Jusin154_Team3D/Engine/Private/Bounding.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Bounding.h" diff --git a/Jusin154_Team3D/Engine/Private/Bounding_AABB.cpp b/Jusin154_Team3D/Engine/Private/Bounding_AABB.cpp index d8d644831..73e4d1bf5 100644 --- a/Jusin154_Team3D/Engine/Private/Bounding_AABB.cpp +++ b/Jusin154_Team3D/Engine/Private/Bounding_AABB.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Bounding_AABB.h" #include "Bounding_OBB.h" #include "Bounding_Sphere.h" diff --git a/Jusin154_Team3D/Engine/Private/Bounding_OBB.cpp b/Jusin154_Team3D/Engine/Private/Bounding_OBB.cpp index 83a7f831b..6af136805 100644 --- a/Jusin154_Team3D/Engine/Private/Bounding_OBB.cpp +++ b/Jusin154_Team3D/Engine/Private/Bounding_OBB.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Bounding_AABB.h" #include "Bounding_OBB.h" #include "Bounding_Sphere.h" diff --git a/Jusin154_Team3D/Engine/Private/Bounding_Sphere.cpp b/Jusin154_Team3D/Engine/Private/Bounding_Sphere.cpp index 7ba372247..9ae0e3a95 100644 --- a/Jusin154_Team3D/Engine/Private/Bounding_Sphere.cpp +++ b/Jusin154_Team3D/Engine/Private/Bounding_Sphere.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Bounding_AABB.h" #include "Bounding_OBB.h" #include "Bounding_Sphere.h" diff --git a/Jusin154_Team3D/Engine/Private/CanvasObject.cpp b/Jusin154_Team3D/Engine/Private/CanvasObject.cpp index 2d19b0533..ccbfa92da 100644 --- a/Jusin154_Team3D/Engine/Private/CanvasObject.cpp +++ b/Jusin154_Team3D/Engine/Private/CanvasObject.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "CanvasObject.h" CCanvasObject::CCanvasObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -144,5 +144,5 @@ void CCanvasObject::Free() m_Panels.clear(); m_PanelNames.clear(); - m_Panels_map.clear(); // map ºñ¿ì±â + m_Panels_map.clear(); // map 비우기 } diff --git a/Jusin154_Team3D/Engine/Private/Cell.cpp b/Jusin154_Team3D/Engine/Private/Cell.cpp index 9595aaf8a..a48d211dd 100644 --- a/Jusin154_Team3D/Engine/Private/Cell.cpp +++ b/Jusin154_Team3D/Engine/Private/Cell.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Cell.h" #include "VIBuffer_Cell.h" @@ -44,7 +44,7 @@ _ubyte CCell::Get_CellAttribute() HRESULT CCell::Initialize(const _float3* pPoints, _uint iIndex) { if (nullptr == pPoints) { - return S_OK; // ·Îµù Àü¿ë + return S_OK; // 로딩 ì „ìš© } memcpy(m_vPoints, pPoints, sizeof(_float3) * ENUM_CLASS(NAVI_POINT::END)); @@ -153,7 +153,7 @@ HRESULT CCell::LoadAsBinary(HANDLE hFile, DWORD& dwByte, _uint iCellIndex) HRESULT CCell::SaveAsBinary(HANDLE hFile, DWORD& dwByte) { if (UINT_MAX == m_iIndex) { - assert(false); // ÃʱâÈ­ µÇÁö ¾ÊÀº Á¤Á¡ ÀúÀå ½Ãµµ + assert(false); // 초기화 ë�˜ì§€ 않ì�€ ì •ì � 저장 시ë�„ return E_FAIL; } WriteFile(hFile, m_vPoints, sizeof(_float3) * ENUM_CLASS(NAVI_POINT::END), &dwByte, nullptr); diff --git a/Jusin154_Team3D/Engine/Private/Channel.cpp b/Jusin154_Team3D/Engine/Private/Channel.cpp index c1d31901f..db221bf69 100644 --- a/Jusin154_Team3D/Engine/Private/Channel.cpp +++ b/Jusin154_Team3D/Engine/Private/Channel.cpp @@ -3,6 +3,7 @@ #include "Channel.h" #include "Model.h" #include "Bone.h" +#include "Transform.h" CChannel::CChannel() { @@ -99,7 +100,7 @@ HRESULT CChannel::Initialize(const vector& Bones, _uint iIndex) } -void CChannel::Update_TransformationMatirx(const vector& Bones, _float fCurrentTrackPosition, _uint* pCurrentKeyFrameIndex) +void CChannel::Update_TransformationMatirx(const vector& Bones, _float fCurrentTrackPosition, _uint* pCurrentKeyFrameIndex, CTransform* pTransform) { if (0.f == fCurrentTrackPosition) { @@ -142,10 +143,41 @@ void CChannel::Update_TransformationMatirx(const vector& Bones, _float f vRotation = XMQuaternionSlerp(XMLoadFloat4(&vSrcRotation), XMLoadFloat4(&vDstRotation), fRatio); vTranslation = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&vSrcTranslation), XMLoadFloat3(&vDstTranslation), fRatio), 1.f); } + + if (Bones[m_iBoneIndex]->Compare_Name("Reference") && pTransform != nullptr) + { + _float3 vCurRootPos; + XMStoreFloat3(&vCurRootPos, vTranslation); + + _vector vDeltaLocal = XMLoadFloat3(&vCurRootPos) - XMLoadFloat3(&m_vPrevRootPos); + + _vector vDeltaAdjusted = {}; + + XMMATRIX pre = XMLoadFloat4x4(&m_PreTransformMatrix); + vDeltaAdjusted = XMVector3TransformNormal(vDeltaLocal, pre); + + _vector vRight = pTransform->Get_State(STATE::RIGHT); + _vector vUp = pTransform->Get_State(STATE::UP); + _vector vLook = pTransform->Get_State(STATE::LOOK); + + _float dx = XMVectorGetX(vDeltaAdjusted); + _float dy = XMVectorGetY(vDeltaAdjusted); + _float dz = XMVectorGetZ(vDeltaAdjusted); + + _vector vDeltaWorld = vRight * dx + vUp * dz + vLook * dy; + + _vector vCurrentPos = pTransform->Get_State(STATE::POSITION); + _vector vTargetPos = vCurrentPos + vDeltaWorld; + + pTransform->Set_State(STATE::POSITION, vTargetPos); + + m_vPrevRootPos = vCurRootPos; + vTranslation = XMVectorZero(); + } + _matrix BoneTransformationMatrix = XMMatrixAffineTransformation(vScale, XMVectorSet(0.f, 0.f, 0.f, 1.f), vRotation, vTranslation); - if(Bones.size()>m_iBoneIndex) - Bones[m_iBoneIndex]->Set_TransformationMatrix(BoneTransformationMatrix); + Bones[m_iBoneIndex]->Set_TransformationMatrix(BoneTransformationMatrix); } diff --git a/Jusin154_Team3D/Engine/Private/Collider.cpp b/Jusin154_Team3D/Engine/Private/Collider.cpp index 4f6f12421..139cca0e4 100644 --- a/Jusin154_Team3D/Engine/Private/Collider.cpp +++ b/Jusin154_Team3D/Engine/Private/Collider.cpp @@ -1,4 +1,4 @@ -#include "Collider.h" +#include "Collider.h" #include "pch.h" #include "Collider.h" diff --git a/Jusin154_Team3D/Engine/Private/Collider_Manager.cpp b/Jusin154_Team3D/Engine/Private/Collider_Manager.cpp index e09cb2760..8bae0523c 100644 --- a/Jusin154_Team3D/Engine/Private/Collider_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/Collider_Manager.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Collider_Manager.h" #include "GameInstance.h" #include "GameObject.h" diff --git a/Jusin154_Team3D/Engine/Private/Component.cpp b/Jusin154_Team3D/Engine/Private/Component.cpp index e62fa471c..7a1e259e3 100644 --- a/Jusin154_Team3D/Engine/Private/Component.cpp +++ b/Jusin154_Team3D/Engine/Private/Component.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Component.h" #include "GameInstance.h" diff --git a/Jusin154_Team3D/Engine/Private/DebugDraw.cpp b/Jusin154_Team3D/Engine/Private/DebugDraw.cpp index eccac74d4..6e9ed447f 100644 --- a/Jusin154_Team3D/Engine/Private/DebugDraw.cpp +++ b/Jusin154_Team3D/Engine/Private/DebugDraw.cpp @@ -1,4 +1,4 @@ -//-------------------------------------------------------------------------------------- +//-------------------------------------------------------------------------------------- // File: DebugDraw.cpp // // Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/Jusin154_Team3D/Engine/Private/ElementObject.cpp b/Jusin154_Team3D/Engine/Private/ElementObject.cpp index 6cc98e56c..0cac26b33 100644 --- a/Jusin154_Team3D/Engine/Private/ElementObject.cpp +++ b/Jusin154_Team3D/Engine/Private/ElementObject.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "ElementObject.h" CElementObject::CElementObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) diff --git a/Jusin154_Team3D/Engine/Private/GameObject.cpp b/Jusin154_Team3D/Engine/Private/GameObject.cpp index df233fc89..0415223fd 100644 --- a/Jusin154_Team3D/Engine/Private/GameObject.cpp +++ b/Jusin154_Team3D/Engine/Private/GameObject.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "GameObject.h" #include "GameInstance.h" #include "Transform.h" diff --git a/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp b/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp index a016e734c..43ee13950 100644 --- a/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp +++ b/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Graphic_Device.h" CGraphic_Device::CGraphic_Device() @@ -95,32 +95,32 @@ HRESULT CGraphic_Device::Ready_SwapChain(HWND hWnd, _uint iWinCX, _uint iWinCY) IDXGIFactory* pFactory = nullptr; pAdapter->GetParent(__uuidof(IDXGIFactory), (void**)&pFactory); - /* ½º¿ÒüÀÎÀ» »ý¼ºÇÑ´Ù. = ÅØ½ºÃĸ¦ »ý¼ºÇÏ´Â ÇàÀ§ + ½º¿ÒÇÏ´Â ÇüÅ */ + /* 스왑체ì�¸ì�„ ìƒ�성한다. = í…�스ì³�를 ìƒ�성하는 행위 + 스왑하는 형태 */ DXGI_SWAP_CHAIN_DESC SwapChain; ZeroMemory(&SwapChain, sizeof(DXGI_SWAP_CHAIN_DESC)); - /* ¹é¹öÆÛ == ÅØ½ºÃÄ */ - /*ÅØ½ºÃ³(¹é¹öÆÛ == ID3D11Texture2D)¸¦ »ý¼ºÇÏ´Â ÇàÀ§*/ - SwapChain.BufferDesc.Width = iWinCX; /* °¡·Î Çȼ¿ ¼ö */ - SwapChain.BufferDesc.Height = iWinCY; /* ¼¼·Î Çȼ¿ ¼ö */ + /* 백버í�¼ == í…�스ì³� */ + /*í…�스처(백버í�¼ == ID3D11Texture2D)를 ìƒ�성하는 행위*/ + SwapChain.BufferDesc.Width = iWinCX; /* 가로 픽셀 수 */ + SwapChain.BufferDesc.Height = iWinCY; /* 세로 픽셀 수 */ /* float4(1.f, 1.f, 1.f, 1.f) */ /* float4(1.f, 0.f, 0.f, 1.f) */ - SwapChain.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; /* ¸¸µç Çȼ¿ÇϳªÀÇ µ¥ÀÌÅÍ Á¤º¸ : 32BITÇȼ¿»ý¼ºÇ쵂 ºÎÈ£°¡ ¾ø´Â Á¤±ÔÈ­µÈ ¼ö¸¦ ÀúÀåÇÒ²² */ + SwapChain.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; /* 만든 픽셀하나ì�˜ ë�°ì�´í„° ì •ë³´ : 32BIT픽셀ìƒ�성하ë�˜ 부호가 없는 정규화ë�œ 수를 저장할께 */ SwapChain.BufferDesc.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED; SwapChain.BufferDesc.Scaling = DXGI_MODE_SCALING_UNSPECIFIED; - /* ½ºÄÉÄ¡ºÏ¿¡ »ç°ú¸¦ ±×¸±²¨¾ß. */ - /* RENDER_TARGET : ±×¸²À» ´çÇÏ´Â ´ë»ó. ½ºÄÉÄ¡ºÏ */ + /* 스케치ë¶�ì—� 사과를 그릴꺼야. */ + /* RENDER_TARGET : 그림ì�„ 당하는 대ìƒ�. 스케치ë¶� */ SwapChain.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; SwapChain.BufferCount = 1; - /*½º¿ÒÇÏ´Â ÇüÅ : ¸ð´ÏÅÍ ÁÖ»çÀ²¿¡ µû¶ó Á¶ÀýÇØµµ µÊ. */ + /*스왑하는 형태 : 모니터 주사율ì—� ë”°ë�¼ 조절해ë�„ ë�¨. */ SwapChain.BufferDesc.RefreshRate.Numerator = 60; SwapChain.BufferDesc.RefreshRate.Denominator = 1; - /* ¸ÖƼ»ùÇøµ : ¾ÈƼ¾ó¶óÀÌ¡ (°è´ÜÇö»ó¹æÁö) */ - /* ³ªÁß¿¡ ÈÄó¸® ·»´õ¸µ : ¸ÖƼ»ùÇøµ Áö¿ø(x) */ + /* 멀티샘플ë§� : 안티얼ë�¼ì�´ì§• (계단현ìƒ�ë°©ì§€) */ + /* 나중ì—� 후처리 ë Œë�”ë§� : 멀티샘플ë§� ì§€ì›�(x) */ SwapChain.SampleDesc.Quality = 0; SwapChain.SampleDesc.Count = 1; @@ -128,7 +128,7 @@ HRESULT CGraphic_Device::Ready_SwapChain(HWND hWnd, _uint iWinCX, _uint iWinCY) SwapChain.Windowed = static_cast(true); SwapChain.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; - /* ¹é¹öÆÛ¶ó´Â ÅØ½ºÃ³(ID3D11Texture2D)¸¦ »ý¼ºÇß´Ù. */ + /* 백버í�¼ë�¼ëŠ” í…�스처(ID3D11Texture2D)를 ìƒ�성했다. */ if (FAILED(pFactory->CreateSwapChain(m_pDevice, &SwapChain, &m_pSwapChain))) return E_FAIL; diff --git a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp index 555eb4673..1c4321113 100644 --- a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp @@ -88,8 +88,31 @@ HRESULT CInstance_Model::Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fma return S_OK; } +HRESULT CInstance_Model::Save_InstanceModel(HANDLE hFile) +{ + DWORD dwByte = {}; + + if (!WriteFile(hFile, &m_InstanceDesc, sizeof(INSTANCE_DESC), &dwByte, nullptr)) { + return E_FAIL; + } + return S_OK; +} + #endif +HRESULT CInstance_Model::Load_InstanceModel(HANDLE hFile) +{ + DWORD dwByte = {}; + + if (!ReadFile(hFile, &m_InstanceDesc, sizeof(INSTANCE_DESC), &dwByte, nullptr)) { + return E_FAIL; + } + + Change_NumInstance(); + + return S_OK; +} + HRESULT CInstance_Model::Change_NumInstance() { SAFE_RELEASE(m_pVBInstance); @@ -99,39 +122,31 @@ HRESULT CInstance_Model::Change_NumInstance() //모든 버í�¼ë¥¼ 지우고 재 ìƒ�성 해야함 - if (FAILED(Create_Instance_Buffer(&m_InstanceDesc))) + if (FAILED(Create_Instance_Buffer())) return E_FAIL; if (FAILED(Create_SubResource_Buffer())) return E_FAIL; + //시작 시ì—� ì�¸ìŠ¤í„´íŠ¸ 버í�¼ë¥¼ 구성 해줌 Instane_Buffer_ReStruct(); - _uint CS_InputStrides[] = { - sizeof(VTX_INSTANCE_PARTICLE), - sizeof(CS_PARTICLE_VALUE_DESC), - }; - - _uint CS_OutputStrides[] = { - sizeof(VTX_INSTANCE_PARTICLE), - sizeof(CS_PARTICLE_VALUE_DESC), - }; - - m_pComputeShader = CComputeShader::Create(m_pDevice, m_pContext, - L"../Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl", "CS_MAIN", m_iNumInstance, 2, 2, CS_OutputStrides, CS_InputStrides); - - if (m_pComputeShader == nullptr) + if (FAILED(Create_CS())) return E_FAIL; + + + + + return S_OK; } -HRESULT CInstance_Model::Create_Instance_Buffer(const INSTANCE_DESC* pDesc) +HRESULT CInstance_Model::Create_Instance_Buffer() { - if (pDesc != nullptr) - m_InstanceDesc = *pDesc; + m_iNumInstance = m_InstanceDesc.iNumInstance; @@ -191,26 +206,11 @@ HRESULT CInstance_Model::Create_SubResource_Buffer() return S_OK; } - -HRESULT CInstance_Model::Initialize(void* pArg) +HRESULT CInstance_Model::Create_CS() { - - INSTANCE_DESC* pInstanceDesc = static_cast(pArg); - - - - if (FAILED(Create_Instance_Buffer(pInstanceDesc))) - return E_FAIL; - - if (FAILED(Create_SubResource_Buffer())) - return E_FAIL; - - //시작 시ì—� ì�¸ìŠ¤í„´íŠ¸ 버í�¼ë¥¼ 구성 해줌 - Instane_Buffer_ReStruct(); - _uint CS_InputStrides[] = { - sizeof(VTX_INSTANCE_PARTICLE), - sizeof(CS_PARTICLE_VALUE_DESC), + sizeof(VTX_INSTANCE_PARTICLE), + sizeof(CS_PARTICLE_VALUE_DESC), }; _uint CS_OutputStrides[] = { @@ -227,6 +227,32 @@ HRESULT CInstance_Model::Initialize(void* pArg) return S_OK; } + +HRESULT CInstance_Model::Initialize(void* pArg) +{ + + INSTANCE_DESC* pInstanceDesc = static_cast(pArg); + + if (pInstanceDesc != nullptr) + m_InstanceDesc = *pInstanceDesc; + else + return S_OK; + + if (FAILED(Create_Instance_Buffer())) + return E_FAIL; + + if (FAILED(Create_SubResource_Buffer())) + return E_FAIL; + + //시작 시ì—� ì�¸ìŠ¤í„´íŠ¸ 버í�¼ë¥¼ 구성 해줌 + Instane_Buffer_ReStruct(); + + if(FAILED(Create_CS())) + return E_FAIL; + + return S_OK; +} + void CInstance_Model::Drop(_float fTimeDelta) { D3D11_MAPPED_SUBRESOURCE ConstantSubResource = {}; diff --git a/Jusin154_Team3D/Engine/Private/Light.cpp b/Jusin154_Team3D/Engine/Private/Light.cpp index 1a7e28946..64296c575 100644 --- a/Jusin154_Team3D/Engine/Private/Light.cpp +++ b/Jusin154_Team3D/Engine/Private/Light.cpp @@ -1,8 +1,9 @@ -#include "pch.h" +#include "pch.h" #include "Light.h" #include "Shader.h" #include "VIBuffer.h" #include "GameInstance.h" +#include "GameObject.h" CLight::CLight(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -72,6 +73,9 @@ HRESULT CLight::Render(CShader* pShader, CVIBuffer* pVIBuffer) const if (FAILED(pShader->Bind_RawValue("g_vLightPos", m_LightDesc.pPosition, sizeof(_float4)))) { return E_FAIL; } + if (FAILED(pShader->Bind_RawValue("g_vLightPosOffset", &m_LightDesc.vPosOffset, sizeof(_float4)))) { + return E_FAIL; + } if (FAILED(pShader->Bind_RawValue("g_fLightRange", &m_LightDesc.fRange, sizeof(_float)))) { return E_FAIL; } @@ -84,7 +88,10 @@ HRESULT CLight::Render(CShader* pShader, CVIBuffer* pVIBuffer) const iPassIndex = ENUM_CLASS(SHADER_PASS_DEFERRED::SPOT); } else { - if (FAILED(pShader->Bind_RawValue("g_vLightPos", m_LightDesc.pDirection, sizeof(_float4)))) { + if (FAILED(pShader->Bind_RawValue("g_vLightPos", m_LightDesc.pPosition, sizeof(_float4)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_vLightPosOffset", &m_LightDesc.vPosOffset, sizeof(_float4)))) { return E_FAIL; } if (FAILED(pShader->Bind_RawValue("g_fLightRange", &m_LightDesc.fRange, sizeof(_float)))) { @@ -147,7 +154,7 @@ void CLight::Free() void CLight::Describe_Entity() { - if (ImGui::TreeNode("LIGHT")) + if (ImGui::TreeNode("LIGHT_INFO")) { ImGui::Separator(); ImGui::Spacing(); @@ -160,12 +167,23 @@ void CLight::Describe_Entity() m_LightDesc.eType = static_cast(iCurrentItem); } - ImGui::DragFloat4("Diffuse", reinterpret_cast(&m_LightDesc.vDiffuse)); - ImGui::DragFloat4("Ambient", reinterpret_cast(&m_LightDesc.vAmbient)); - ImGui::DragFloat4("Specular", reinterpret_cast(&m_LightDesc.vSpecular)); + GUI::DragFloat4("Diffuse", reinterpret_cast(&m_LightDesc.vDiffuse) , 0.01f , 0.f ,1.f); + GUI::DragFloat4("Ambient", reinterpret_cast(&m_LightDesc.vAmbient), 0.01f, 0.f, 1.f); + GUI::DragFloat4("Specular", reinterpret_cast(&m_LightDesc.vSpecular), 0.01f, 0.f, 1.f); + GUI::DragFloat("Range", &m_LightDesc.fRange, 1.f, 0.f); + GUI::DragFloat2("SpotAngle", reinterpret_cast(&m_LightDesc.vSpotAngles)); - ImGui::TreePop(); + GUI::Spacing(); + GUI::Spacing(); + + GUI::DragFloat3("PosOffest", reinterpret_cast(&m_LightDesc.vPosOffset)); + + GUI::Spacing(); + + m_pOwner->Get_Component()->Describe_Entity(); + + GUI::TreePop(); } - ImGui::Separator(); + GUI::Separator(); } diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index 2758b0339..e27b64933 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -6,6 +6,7 @@ #include "Animation.h" #include "LerpAnim.h" #include "GameObject.h" +#include "Transform.h" CModel::CModel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CComponent{ pDevice, pContext } @@ -140,7 +141,7 @@ HRESULT CModel::Bind_BoneMatrices(_uint iMeshIndex, CShader* pShader, const _cha return m_Meshes[iMeshIndex]->Bind_BoneMatrices(m_Bones, pShader, pConstantName); } -_bool CModel::Play_Animation(_float fTimeDelta) +_bool CModel::Play_Animation(_float fTimeDelta,CTransform* pTransform) { if (!m_bPlayAnim) return false; @@ -154,7 +155,7 @@ _bool CModel::Play_Animation(_float fTimeDelta) m_bIsFinishedLerp = m_pLerpAnim->Update_TransformationMatrices(m_Bones, fTimeDelta); } else { // 럴프중ì�´ì§€ 않다면 실제 애니메ì�´ì…˜ 재ìƒ�ì�„ 시작함 - m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsLoop, fTimeDelta); + m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsLoop, fTimeDelta, pTransform); } for (_int i = 0; i < m_Bones.size(); ++i) @@ -183,6 +184,9 @@ _bool CModel::Play_Animation(_float fTimeDelta) } } + if(m_bIsFinishedAnim) + m_Animations[m_iCurrentAnimIndex]->ResetRootMotion(); + return m_bIsFinishedAnim; } @@ -194,6 +198,7 @@ void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop) { m_iCurrentAnimIndex = iIndex; m_bIsLoop = isLoop; + m_Animations[m_iCurrentAnimIndex]->ResetRootMotion(); } else m_iCurrentAnimIndex = -1; @@ -308,6 +313,17 @@ void CModel::Set_AnimSpeed(_float fSpeed) m_Animations[m_iCurrentAnimIndex]->Set_AnimSpeed(fSpeed); } +void CModel::Set_Anim(CModel* Source) +{ + m_Animations = Source->m_Animations; + + for (auto& anim : m_Animations) + anim->Remap_Channels_By_Name(this); + + m_iNumAnimations = (_uint)m_Animations.size(); +} + + HRESULT CModel::Render(_uint iMeshIndex) { m_Meshes[iMeshIndex]->Bind_Resources(); diff --git a/Jusin154_Team3D/Engine/Private/Shader.cpp b/Jusin154_Team3D/Engine/Private/Shader.cpp index 36b85028f..b10c8276f 100644 --- a/Jusin154_Team3D/Engine/Private/Shader.cpp +++ b/Jusin154_Team3D/Engine/Private/Shader.cpp @@ -153,8 +153,9 @@ HRESULT CShader::CreateShader(const _tchar* pShaderFilePath, const D3D11_INPUT_E if (FAILED(m_pDevice->CreateInputLayout( pElements, iNumElements, - PassDesc.pIAInputSignature/*���̴����� �޾��ټ� �ִ� ������ ����*/, - PassDesc.IAInputSignatureSize/*���̴����� �޾��ټ� �ִ� ������ �����������*/, + PassDesc.pIAInputSignature/*ì‰�ì�´ë�”ì—�서 받아줄수 있는 ì •ì �ì�˜ ì •ë³´*/, + PassDesc.IAInputSignatureSize/*ì‰�ì�´ë�”ì—�서 받아줄수 있는 ì •ì �ì�˜ 멤버변수갯수*/, + &pInputLayout))) return E_FAIL; @@ -167,7 +168,8 @@ HRESULT CShader::CreateShader(const _tchar* pShaderFilePath, const D3D11_INPUT_E HRESULT CShader::Shader_Refresh() { - // �� ��Dz ���̾ƿ� ����Ʈ �Ҹ��Ű�� + // ë‚´ ì�¸í’‹ ë ˆì�´ì•„웃 ì�´íŽ™íŠ¸ 소멸시키고 + Safe_Release(m_pEffect); for (auto& pInputLayout : m_InputLayouts) @@ -175,10 +177,16 @@ HRESULT CShader::Shader_Refresh() m_InputLayouts.clear(); + //ê·¸ 경로로 재 ìƒ�성한다. - //�� ��η� �� �����Ѵ�. if (FAILED(CreateShader(m_strShaderPath.c_str(), m_pElements, m_iNumElements))) + { + MessageBox(NULL, L"ì‰�ì�´ë�” 변경 실패", L"System Message", MB_OK); return E_FAIL; + } + + + MessageBox(NULL, L"ì‰�ì�´ë�” 변경 성공", L"System Message", MB_OK); return S_OK; } @@ -193,8 +201,9 @@ HRESULT CShader::Begin(_uint iPassIndex) m_pContext->IASetInputLayout(m_InputLayouts[iPassIndex]); - /* Apply�� �ݵ�� ȣ���ؾ߸� ���̴��� �׷�����. */ - /* Apply������ ���̴��� ������ ��� �����͵��� �� �������ƾ��Ѵ�. */ + /* Apply를 반드시 호출해야만 ì‰�ì�´ë�”로 그려진다. */ + /* Applyì�´ì „ì—� ì‰�ì�´ë�”ì—� 전달할 모든 ë�°ì�´í„°ë“¤ì�„ 다 ë�˜ì ¸ë†“아야한다. */ + m_pEffect->GetTechniqueByIndex(0)->GetPassByIndex(iPassIndex)->Apply(0, m_pContext); return S_OK; diff --git a/Jusin154_Team3D/Engine/Public/Animation.h b/Jusin154_Team3D/Engine/Public/Animation.h index 717d565b9..d7cc21eec 100644 --- a/Jusin154_Team3D/Engine/Public/Animation.h +++ b/Jusin154_Team3D/Engine/Public/Animation.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" @@ -11,7 +11,8 @@ class ENGINE_DLL CAnimation : public CBase CAnimation(const CAnimation& rhs); virtual ~CAnimation() = default; public: - _bool Update_TransformationMatrices(const vector& Bones, _bool bIsLoop, _float fTimeDelta); + _bool Update_TransformationMatrices(const vector& Bones, _bool bIsLoop, _float fTimeDelta, class CTransform* pTransform = nullptr); + void ResetRootMotion(); void Depart_Animation(); void Set_AnimPause(_bool bValue) { m_bPause = bValue; } _float Get_AnimProgressRatio(); @@ -27,7 +28,8 @@ class ENGINE_DLL CAnimation : public CBase _float Get_CurrentTrackPosition() { return m_fCurrentTrackPosition; } void Set_AnimSpeed(_float fSpeed) { m_fAnimSpeed = fSpeed; } _float Get_AnimSpeed() { return m_fAnimSpeed; } - + void Set_Channel(CAnimation* Animation); + void Remap_Channels_By_Name(class CModel* TargetModel); #ifdef EDITOR_PROJECT private: HRESULT Initialize(const vector& Bones, const aiAnimation* pAIAnimation); @@ -38,7 +40,7 @@ class ENGINE_DLL CAnimation : public CBase private: HRESULT Initialize(HANDLE hFile, DWORD& dwByte); - // ¹ÙÀ̳ʸ® + // ë°”ì�´ë„ˆë¦¬ HRESULT Initialize(const class CModel* pModel,SaveAnimation* pSaveAnimation); // HRESULT Combined_Initialize(); @@ -50,22 +52,22 @@ class ENGINE_DLL CAnimation : public CBase _float m_fTickPerSecond = {}; _float m_fAnimSpeed = {1.f}; - _bool m_bPause = { FALSE }; // ¾Ö´ÔÆÛÁî À妽º - _string m_strName = {}; // ¾Ö´Ô À̸§ - _float m_fCurrentTrackPosition = {}; // ÇöÀç Æ®·¢ À§Ä¡ - _float m_fDuration = {}; // Æ®·¢ÀÇ Àüü ±æÀÌ - _float m_TickPerSeconds[2] = { 0.f, 0.f }; // ÃÊ´ç Æ®·¢ À̵¿ °Å¸® - _uint m_iNumChannels = {}; // ¿µÇâÀ» ¹Þ´Â º»ÀÇ ¼ö + _bool m_bPause = { FALSE }; // 애님í�¼ì¦ˆ ì�¸ë�±ìФ + _string m_strName = {}; // 애님 ì�´ë¦„ + _float m_fCurrentTrackPosition = {}; // 현재 트랙 위치 + _float m_fDuration = {}; // 트랙ì�˜ ì „ì²´ 길ì�´ + _float m_TickPerSeconds[2] = { 0.f, 0.f }; // 초당 트랙 ì�´ë�™ 거리 + _uint m_iNumChannels = {}; // ì˜�í–¥ì�„ 받는 본ì�˜ 수 - vector m_Channels; // ÀÌ ¾Ö´Ï¸ÞÀ̼ÇÀÌ ¿µÇâÀ» ÁØ »çÀü °è»êµÈ º»ÀÇ ¹è¿­ - vector<_uint> m_CurrentKeyFrameIndices; // °¢ º»ÀÌ ÇöÀç ¾Ö´Ï¸ÞÀ̼ǿ¡¼­ ÃëÇØ¾ßÇÒ Å°ÇÁ·¹ÀÓ ¿ÞÂÊ À妽º + vector m_Channels; // ì�´ 애니메ì�´ì…˜ì�´ ì˜�í–¥ì�„ 준 사전 계산ë�œ 본ì�˜ ë°°ì—´ + vector<_uint> m_CurrentKeyFrameIndices; // ê°� 본ì�´ 현재 애니메ì�´ì…˜ì—�서 취해야할 키프레임 왼쪽 ì�¸ë�±ìФ - vector<_int> m_DestBones; // ÀÌ ¾Ö´Ï¸ÞÀ̼ǿ¡¼­ ¿µÇâÀ» ¹Þ´Â º»µéÀÇ ÁýÇÕ - vector m_StartKeyFrames; // ÀÌ ¾Ö´Ï¸ÞÀ̼ÇÀÇ ¿µÇâÀ» ¹Þ´Â º»µéÀÇ ÃʱⰪ + vector<_int> m_DestBones; // ì�´ 애니메ì�´ì…˜ì—�서 ì˜�í–¥ì�„ 받는 본들ì�˜ ì§‘í•© + vector m_StartKeyFrames; // ì�´ 애니메ì�´ì…˜ì�˜ ì˜�í–¥ì�„ 받는 본들ì�˜ 초기값 public: static CAnimation* Create(HANDLE hFile, DWORD& dwByte); - // ¹ÙÀ̳ʸ® + // ë°”ì�´ë„ˆë¦¬ static CAnimation* Create(const class CModel* pModel, SaveAnimation* pSaveAnimation); // CAnimation* Clone(); @@ -73,4 +75,4 @@ class ENGINE_DLL CAnimation : public CBase void Describe_Entity(); }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/Assimp/BaseImporter.h b/Jusin154_Team3D/Engine/Public/Assimp/BaseImporter.h index 45cb527ea..2572c72f4 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/BaseImporter.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/BaseImporter.h @@ -1,4 +1,4 @@ -/* +/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/Bitmap.h b/Jusin154_Team3D/Engine/Public/Assimp/Bitmap.h index 815c964a2..c4a6ba57e 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/Bitmap.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/Bitmap.h @@ -1,4 +1,4 @@ -/* +/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/BlobIOSystem.h b/Jusin154_Team3D/Engine/Public/Assimp/BlobIOSystem.h index 800d75542..5341f05f8 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/BlobIOSystem.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/BlobIOSystem.h @@ -1,4 +1,4 @@ -/* +/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/ByteSwapper.h b/Jusin154_Team3D/Engine/Public/Assimp/ByteSwapper.h index bb15ea43a..d0f84fe17 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/ByteSwapper.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/ByteSwapper.h @@ -1,4 +1,4 @@ -/* +/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/ColladaMetaData.h b/Jusin154_Team3D/Engine/Public/Assimp/ColladaMetaData.h index 451c82899..20e83342a 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/ColladaMetaData.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/ColladaMetaData.h @@ -1,4 +1,4 @@ -/* +/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/CreateAnimMesh.h b/Jusin154_Team3D/Engine/Public/Assimp/CreateAnimMesh.h index 5a258a300..7936b43c7 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/CreateAnimMesh.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/CreateAnimMesh.h @@ -1,4 +1,4 @@ -/* +/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/DefaultIOStream.h b/Jusin154_Team3D/Engine/Public/Assimp/DefaultIOStream.h index cbc1cb405..56bfb4562 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/DefaultIOStream.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/DefaultIOStream.h @@ -1,4 +1,4 @@ -/* +/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/DefaultIOSystem.h b/Jusin154_Team3D/Engine/Public/Assimp/DefaultIOSystem.h index a3aff4961..46f124692 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/DefaultIOSystem.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/DefaultIOSystem.h @@ -1,4 +1,4 @@ -/* +/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/Exceptional.h b/Jusin154_Team3D/Engine/Public/Assimp/Exceptional.h index 9ea2788bc..e24ab129c 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/Exceptional.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/Exceptional.h @@ -1,4 +1,4 @@ -/* +/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/GenericProperty.h b/Jusin154_Team3D/Engine/Public/Assimp/GenericProperty.h index 537fc05f0..e99d7c7d2 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/GenericProperty.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/GenericProperty.h @@ -1,4 +1,4 @@ -/* +/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/GltfMaterial.h b/Jusin154_Team3D/Engine/Public/Assimp/GltfMaterial.h index 7522bb4a1..32e3f2edb 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/GltfMaterial.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/GltfMaterial.h @@ -1,4 +1,4 @@ -/* +/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/Hash.h b/Jusin154_Team3D/Engine/Public/Assimp/Hash.h index 71ed9aa53..ec7447b6c 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/Hash.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/Hash.h @@ -1,4 +1,4 @@ -/* +/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/aabb.h b/Jusin154_Team3D/Engine/Public/Assimp/aabb.h index 1ff494a66..8861e1d9f 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/aabb.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/aabb.h @@ -1,4 +1,4 @@ -/* +/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/anim.h b/Jusin154_Team3D/Engine/Public/Assimp/anim.h index 797748fb1..a92df7f5e 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/anim.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/anim.h @@ -1,4 +1,4 @@ -/* +/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/camera.h b/Jusin154_Team3D/Engine/Public/Assimp/camera.h index b3580794e..db8214cbb 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/camera.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/camera.h @@ -1,4 +1,4 @@ -/* +/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/cexport.h b/Jusin154_Team3D/Engine/Public/Assimp/cexport.h index 1d559f239..06366f1cf 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/cexport.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/cexport.h @@ -1,4 +1,4 @@ -/* +/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/cfileio.h b/Jusin154_Team3D/Engine/Public/Assimp/cfileio.h index 671b70ce0..205270033 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/cfileio.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/cfileio.h @@ -1,4 +1,4 @@ -/* +/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/cimport.h b/Jusin154_Team3D/Engine/Public/Assimp/cimport.h index f296a98d8..692a0d354 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/cimport.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/cimport.h @@ -1,4 +1,4 @@ -/* +/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/color4.h b/Jusin154_Team3D/Engine/Public/Assimp/color4.h index dbadcf33b..dde77c469 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/color4.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/color4.h @@ -1,4 +1,4 @@ -/* +/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/commonMetaData.h b/Jusin154_Team3D/Engine/Public/Assimp/commonMetaData.h index 0f9286cff..e47e0b9a6 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/commonMetaData.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/commonMetaData.h @@ -1,4 +1,4 @@ -/* +/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/config.h b/Jusin154_Team3D/Engine/Public/Assimp/config.h index f47b7a8b0..d0b4897dd 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/config.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/config.h @@ -1,4 +1,4 @@ -/* +/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/defs.h b/Jusin154_Team3D/Engine/Public/Assimp/defs.h index 2f98d0211..6957a38f1 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/defs.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/defs.h @@ -1,4 +1,4 @@ -/* +/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/fast_atof.h b/Jusin154_Team3D/Engine/Public/Assimp/fast_atof.h index 0e8339643..654b114e8 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/fast_atof.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/fast_atof.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once // Copyright (C) 2002-2007 Nikolaus Gebhardt // This file is part of the "Irrlicht Engine" and the "irrXML" project. diff --git a/Jusin154_Team3D/Engine/Public/Assimp/importerdesc.h b/Jusin154_Team3D/Engine/Public/Assimp/importerdesc.h index 8d60ca96b..223695fa1 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/importerdesc.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/importerdesc.h @@ -1,4 +1,4 @@ -/* +/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/port/AndroidJNI/AndroidJNIIOSystem.h b/Jusin154_Team3D/Engine/Public/Assimp/port/AndroidJNI/AndroidJNIIOSystem.h index 29ad8e079..066418b21 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/port/AndroidJNI/AndroidJNIIOSystem.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/port/AndroidJNI/AndroidJNIIOSystem.h @@ -1,4 +1,4 @@ -/* +/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Assimp/port/AndroidJNI/BundledAssetIOSystem.h b/Jusin154_Team3D/Engine/Public/Assimp/port/AndroidJNI/BundledAssetIOSystem.h index c6adae60e..abc67a43b 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/port/AndroidJNI/BundledAssetIOSystem.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/port/AndroidJNI/BundledAssetIOSystem.h @@ -1,4 +1,4 @@ -/* +/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Base.h b/Jusin154_Team3D/Engine/Public/Base.h index 141398bf0..df272ea38 100644 --- a/Jusin154_Team3D/Engine/Public/Base.h +++ b/Jusin154_Team3D/Engine/Public/Base.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Engine_Define.h" diff --git a/Jusin154_Team3D/Engine/Public/Bone.h b/Jusin154_Team3D/Engine/Public/Bone.h index 48cfa4251..12b408475 100644 --- a/Jusin154_Team3D/Engine/Public/Bone.h +++ b/Jusin154_Team3D/Engine/Public/Bone.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" @@ -22,22 +22,22 @@ class ENGINE_DLL CBone final : public CBase _bool Compare_Name(const _char* pBoneName) const { return !strcmp(pBoneName, m_szName); } - void Get_KeyFrame(KEYFRAME& kf, _bool bIsCurrentFrame); // ÇöÀç º»ÀÇ ·ÎÄÃ¸ÅÆ®¸¯½º¸¦ ĸÃÄÇØ¼­ ŰÇÁ·¹ÀÓÀ¸·Î ¼ººÐ ºÐÇØÇÏ¿© ¿Ã·Áº¸³½´Ù. + void Get_KeyFrame(KEYFRAME& kf, _bool bIsCurrentFrame); // 현재 본ì�˜ 로컬매트릭스를 캡ì³�해서 키프레임으로 성분 분해하여 올려보낸다. const _char* Get_Name() const { return m_szName; } _float3 Get_LocalPosition(); void Update_CombinedTransformationMatrix(const vector& Bones, _fmatrix PreTransformMatrix); - void Set_TransformationMatrix(_fmatrix TransformationMatrix); // ¾Ö´Ï¸ÞÀ̼ǿ¡¼­ ÇöÀç ·ÎÄà ¸ÅÆ®¸¯½º¸¦ º¯°æÇÒ ¶§ »ç¿ëµÈ´Ù + void Set_TransformationMatrix(_fmatrix TransformationMatrix); // 애니메ì�´ì…˜ì—�서 현재 로컬 매트릭스를 변경할 때 사용ë�œë‹¤ private: - _char m_szName[MAX_PATH] = {}; // º»ÀÇ À̸§ - _float4x4 m_TransformationMatrix = {}; // º»ÀÇ ÇöÀç ·ÎÄà ¸ÅÆ®¸¯½º - _float4x4 m_CombinedTransformationMatrix = {}; // º»ÀÇ ·çÆ®³ëµå·ÎºÎÅÍ »ó´ëÀûÀÎ º¹ÇՏů®¸¯½º ( ºÎ¸ð³ëµå´Â PreTranformMatrix¿Í ¿ùµåÁÂÇ¥·ÎºÎÅÍ »ó´ëÀûÀÓ ) - _int m_iParentBoneIndex = { -1 }; // ºÎ¸ðº»ÀÇ À妽º ( ¸ðµ¨¿¡ ÀÖ´Â º»º¤ÅÍÀÇ À妽º ) ( ºÎ¸ð´Â À妽º -1 °íÁ¤ ) + _char m_szName[MAX_PATH] = {}; // 본ì�˜ ì�´ë¦„ + _float4x4 m_TransformationMatrix = {}; // 본ì�˜ 현재 로컬 매트릭스 + _float4x4 m_CombinedTransformationMatrix = {}; // 본ì�˜ 루트노드로부터 ìƒ�대ì �ì�¸ 복합매트릭스 ( 부모노드는 PreTranformMatrix와 월드좌표로부터 ìƒ�대ì �ìž„ ) + _int m_iParentBoneIndex = { -1 }; // 부모본ì�˜ ì�¸ë�±ìФ ( 모ë�¸ì—� 있는 본벡터ì�˜ ì�¸ë�±ìФ ) ( 부모는 ì�¸ë�±ìФ -1 ê³ ì • ) _float4x4 m_matInitial = {}; private: HRESULT Initialize(HANDLE hFile, DWORD& dwByte); - // ¹ÙÀ̳ʸ® + // ë°”ì�´ë„ˆë¦¬ HRESULT Initialize(const SaveNode& _SaveNode, _int iParentIndex); // @@ -46,7 +46,7 @@ class ENGINE_DLL CBone final : public CBase CBone* Clone(); virtual void Free() override; - // ¹ÙÀ̳ʸ® + // ë°”ì�´ë„ˆë¦¬ static CBone* Create(const SaveNode& _SaveNode, _int iParentIndex); // #ifdef EDITOR_PROJECT diff --git a/Jusin154_Team3D/Engine/Public/Bounding.h b/Jusin154_Team3D/Engine/Public/Bounding.h index 4beac6292..b86650f89 100644 --- a/Jusin154_Team3D/Engine/Public/Bounding.h +++ b/Jusin154_Team3D/Engine/Public/Bounding.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" diff --git a/Jusin154_Team3D/Engine/Public/Bounding_AABB.h b/Jusin154_Team3D/Engine/Public/Bounding_AABB.h index 786c06990..1edae7941 100644 --- a/Jusin154_Team3D/Engine/Public/Bounding_AABB.h +++ b/Jusin154_Team3D/Engine/Public/Bounding_AABB.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Bounding.h" diff --git a/Jusin154_Team3D/Engine/Public/Bounding_OBB.h b/Jusin154_Team3D/Engine/Public/Bounding_OBB.h index aad0cae28..8c0599a99 100644 --- a/Jusin154_Team3D/Engine/Public/Bounding_OBB.h +++ b/Jusin154_Team3D/Engine/Public/Bounding_OBB.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Bounding.h" diff --git a/Jusin154_Team3D/Engine/Public/Bounding_Sphere.h b/Jusin154_Team3D/Engine/Public/Bounding_Sphere.h index 44e8de478..7d7d6788a 100644 --- a/Jusin154_Team3D/Engine/Public/Bounding_Sphere.h +++ b/Jusin154_Team3D/Engine/Public/Bounding_Sphere.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Bounding.h" diff --git a/Jusin154_Team3D/Engine/Public/CanvasObject.h b/Jusin154_Team3D/Engine/Public/CanvasObject.h index 340cf5174..b36e37cf5 100644 --- a/Jusin154_Team3D/Engine/Public/CanvasObject.h +++ b/Jusin154_Team3D/Engine/Public/CanvasObject.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "UIObject.h" @@ -34,10 +34,10 @@ class ENGINE_DLL CCanvasObject abstract : public CUIObject virtual void Add_Panel(wstring Name, class CGameObject* pPanel); protected: - vector m_Panels; // ĵ¹ö½º°¡ ÆÐ³ÎµéÀ» °ü¸® Çϱâ À§Çؼ­ ÇÊ¿äÇÔ - vector m_PanelNames; // ÆÐ³ÎµéÀÇ À̸§À» ÀüÇØÁÖ±â À§Çؼ­ - map m_Panels_map; // ĵ¹ö½º¿¡¼­ ³»°¡ ¿øÇÏ´Â ÆÐ³ÎÀ» ã±â À§Çؼ­ - _int m_iPanel_Count{}; // Àüü ÆÐ³ÎÀÇ °¹¼ö + vector m_Panels; // 캔버스가 패ë„�들ì�„ 관리 하기 위해서 필요함 + vector m_PanelNames; // 패ë„�들ì�˜ ì�´ë¦„ì�„ 전해주기 위해서 + map m_Panels_map; // 캔버스ì—�서 ë‚´ê°€ ì›�하는 패ë„�ì�„ 찾기 위해서 + _int m_iPanel_Count{}; // ì „ì²´ 패ë„�ì�˜ 갯수 private: virtual class CGameObject* Find_Panel(const wstring& Name); diff --git a/Jusin154_Team3D/Engine/Public/Cell.h b/Jusin154_Team3D/Engine/Public/Cell.h index 7c77f2e8f..e79bfb399 100644 --- a/Jusin154_Team3D/Engine/Public/Cell.h +++ b/Jusin154_Team3D/Engine/Public/Cell.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" diff --git a/Jusin154_Team3D/Engine/Public/Channel.h b/Jusin154_Team3D/Engine/Public/Channel.h index fb1379f26..cba4f9bf1 100644 --- a/Jusin154_Team3D/Engine/Public/Channel.h +++ b/Jusin154_Team3D/Engine/Public/Channel.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" @@ -19,37 +19,39 @@ class ENGINE_DLL CChannel : public CBase #endif // EDITOR_PROJECT public: - void Update_TransformationMatirx(const vector& Bones, _float fCurrentTrackPosition, _uint* pCurrentKeyFrameIndex); + void Update_TransformationMatirx(const vector& Bones, _float fCurrentTrackPosition, _uint* pCurrentKeyFrameIndex,class CTransform* pTransform=nullptr); _int Get_BoneIndex() { return { m_iBoneIndex }; } - + void Set_BoneIndex(_int iBoneIndex) { m_iBoneIndex = iBoneIndex; } + void ResetRootMotion() { m_vPrevRootPos = { 0.f, 0.f, 0.f }; } KEYFRAME* Get_Frame(_uint iIndex); void Set_Frame(_uint iIndex, KEYFRAME& kf); _bool Compare_Name(const _char* pChannelname) const { return !strcmp(pChannelname, m_szName); } + _char* Get_Name() { return m_szName; } private: HRESULT Initialize(HANDLE hFile, DWORD& dwByte); - // ¹ÙÀ̳ʸ® + // ë°”ì�´ë„ˆë¦¬ HRESULT Initialize(const class CModel* pModel, SaveChannel* pSaveChannel); // HRESULT Initialize(const vector& Bones, _uint iIndex); private: - _char m_szName[MAX_PATH] = {}; // ¿µÇâÀ» ¹ÞÀ» º»ÀÇ À̸§ - _int m_iBoneIndex = { -1 }; // º» º¤ÅÍ¿¡¼­ º»ÀÇ À妽º - _uint m_iNumKeyFrames = {}; // AnimationÀÇ m_fDurationµ¿¾È ÀÌ º»ÀÌ ÃëÇØ¾ßÇÒ Å°ÇÁ·¹ÀÓÀÇ °¹¼ö + _char m_szName[MAX_PATH] = {}; // ì˜�í–¥ì�„ ë°›ì�„ 본ì�˜ ì�´ë¦„ + _int m_iBoneIndex = { -1 }; // 본 벡터ì—�서 본ì�˜ ì�¸ë�±ìФ + _uint m_iNumKeyFrames = {}; // Animationì�˜ m_fDurationë�™ì•ˆ ì�´ 본ì�´ 취해야할 키프레임ì�˜ 갯수 _float4x4 m_PreTransformMatrix = {}; - vector m_KeyFrames; // ŰÇÁ·¹ÀÓ º¤ÅÍ - + vector m_KeyFrames; // 키프레임 벡터 + _float3 m_vPrevRootPos = { 0.f, 0.f, 0.f }; public: - static CChannel* Create(const vector& Bones, _uint iIndex); // ·²ÇÁÀü¿ë + static CChannel* Create(const vector& Bones, _uint iIndex); // 럴프전용 static CChannel* Create(HANDLE hFile, DWORD& dwByte); - // ¹ÙÀ̳ʸ® + // ë°”ì�´ë„ˆë¦¬ static CChannel* Create(const class CModel* pModel, SaveChannel* pSaveChannel); // virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/Collider.h b/Jusin154_Team3D/Engine/Public/Collider.h index 538ece0c7..01c399467 100644 --- a/Jusin154_Team3D/Engine/Public/Collider.h +++ b/Jusin154_Team3D/Engine/Public/Collider.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Component.h" #include "Bounding_AABB.h" #include "Bounding_OBB.h" diff --git a/Jusin154_Team3D/Engine/Public/Collider_Manager.h b/Jusin154_Team3D/Engine/Public/Collider_Manager.h index 487b5ef35..205896621 100644 --- a/Jusin154_Team3D/Engine/Public/Collider_Manager.h +++ b/Jusin154_Team3D/Engine/Public/Collider_Manager.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" diff --git a/Jusin154_Team3D/Engine/Public/Component.h b/Jusin154_Team3D/Engine/Public/Component.h index 4ff590597..9fed78368 100644 --- a/Jusin154_Team3D/Engine/Public/Component.h +++ b/Jusin154_Team3D/Engine/Public/Component.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" @@ -30,7 +30,7 @@ class ENGINE_DLL CComponent abstract : public CBase virtual void Free(); #ifdef _DEBUG - virtual void Describe_Entity()PURE; // IMGUI Àü¿ë + virtual void Describe_Entity()PURE; // IMGUI ì „ìš© #endif }; diff --git a/Jusin154_Team3D/Engine/Public/ComputeShader.h b/Jusin154_Team3D/Engine/Public/ComputeShader.h index 4d3a00a4a..d13457208 100644 --- a/Jusin154_Team3D/Engine/Public/ComputeShader.h +++ b/Jusin154_Team3D/Engine/Public/ComputeShader.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" @@ -47,9 +47,9 @@ class ENGINE_DLL CComputeShader final : public CBase private: - _uint m_iNumElement = 0; // Àμö °³¼ö - _uint m_iNumInputBuffer = 0; // ÀÎDz ¹öÆÛÀÇ °³¼ö - _uint m_iNumOutputBuffer = 0; // ÀÎDz ¹öÆÛÀÇ °³¼ö + _uint m_iNumElement = 0; // ì�¸ìˆ˜ 개수 + _uint m_iNumInputBuffer = 0; // ì�¸í’‹ 버í�¼ì�˜ 개수 + _uint m_iNumOutputBuffer = 0; // ì�¸í’‹ 버í�¼ì�˜ 개수 public: static CComputeShader* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _tchar* pShaderFilePath, const _char* pStartFunctionName, _uint iNumElement, _uint iNumInputBuffer, _uint iNumOutputBuffer, _uint iInputStructStride[], _uint iOutputStructStride[]); diff --git a/Jusin154_Team3D/Engine/Public/DebugDraw.h b/Jusin154_Team3D/Engine/Public/DebugDraw.h index 452e66726..1162ea2d5 100644 --- a/Jusin154_Team3D/Engine/Public/DebugDraw.h +++ b/Jusin154_Team3D/Engine/Public/DebugDraw.h @@ -1,4 +1,4 @@ -//-------------------------------------------------------------------------------------- +//-------------------------------------------------------------------------------------- // File: DebugDraw.h // // Helpers for drawing various debug shapes using PrimitiveBatch diff --git a/Jusin154_Team3D/Engine/Public/DirectXTK/Audio.h b/Jusin154_Team3D/Engine/Public/DirectXTK/Audio.h index ffb3896fb..14171b1fe 100644 --- a/Jusin154_Team3D/Engine/Public/DirectXTK/Audio.h +++ b/Jusin154_Team3D/Engine/Public/DirectXTK/Audio.h @@ -1,4 +1,4 @@ -//-------------------------------------------------------------------------------------- +//-------------------------------------------------------------------------------------- // File: Audio.h // // DirectXTK for Audio header diff --git a/Jusin154_Team3D/Engine/Public/DirectXTK/BufferHelpers.h b/Jusin154_Team3D/Engine/Public/DirectXTK/BufferHelpers.h index cd462d818..838758d14 100644 --- a/Jusin154_Team3D/Engine/Public/DirectXTK/BufferHelpers.h +++ b/Jusin154_Team3D/Engine/Public/DirectXTK/BufferHelpers.h @@ -1,4 +1,4 @@ -//-------------------------------------------------------------------------------------- +//-------------------------------------------------------------------------------------- // File: BufferHelpers.h // // Copyright (c) Microsoft Corporation. diff --git a/Jusin154_Team3D/Engine/Public/DirectXTK/DDSTextureLoader.h b/Jusin154_Team3D/Engine/Public/DirectXTK/DDSTextureLoader.h index ff2b1ee30..77035e793 100644 --- a/Jusin154_Team3D/Engine/Public/DirectXTK/DDSTextureLoader.h +++ b/Jusin154_Team3D/Engine/Public/DirectXTK/DDSTextureLoader.h @@ -1,4 +1,4 @@ -//-------------------------------------------------------------------------------------- +//-------------------------------------------------------------------------------------- // File: DDSTextureLoader.h // // Functions for loading a DDS texture and creating a Direct3D runtime resource for it diff --git a/Jusin154_Team3D/Engine/Public/DirectXTK/DirectXHelpers.h b/Jusin154_Team3D/Engine/Public/DirectXTK/DirectXHelpers.h index ffc9d9746..920572be7 100644 --- a/Jusin154_Team3D/Engine/Public/DirectXTK/DirectXHelpers.h +++ b/Jusin154_Team3D/Engine/Public/DirectXTK/DirectXHelpers.h @@ -1,4 +1,4 @@ -//-------------------------------------------------------------------------------------- +//-------------------------------------------------------------------------------------- // File: DirectXHelpers.h // // Copyright (c) Microsoft Corporation. diff --git a/Jusin154_Team3D/Engine/Public/DirectXTK/Effects.h b/Jusin154_Team3D/Engine/Public/DirectXTK/Effects.h index aa32fff69..7280d4805 100644 --- a/Jusin154_Team3D/Engine/Public/DirectXTK/Effects.h +++ b/Jusin154_Team3D/Engine/Public/DirectXTK/Effects.h @@ -1,4 +1,4 @@ -//-------------------------------------------------------------------------------------- +//-------------------------------------------------------------------------------------- // File: Effects.h // // Copyright (c) Microsoft Corporation. diff --git a/Jusin154_Team3D/Engine/Public/DirectXTK/GamePad.h b/Jusin154_Team3D/Engine/Public/DirectXTK/GamePad.h index 03e372bcd..684807275 100644 --- a/Jusin154_Team3D/Engine/Public/DirectXTK/GamePad.h +++ b/Jusin154_Team3D/Engine/Public/DirectXTK/GamePad.h @@ -1,4 +1,4 @@ -//-------------------------------------------------------------------------------------- +//-------------------------------------------------------------------------------------- // File: GamePad.h // // Copyright (c) Microsoft Corporation. diff --git a/Jusin154_Team3D/Engine/Public/DirectXTK/GeometricPrimitive.h b/Jusin154_Team3D/Engine/Public/DirectXTK/GeometricPrimitive.h index 5d6f37700..bc72ce08d 100644 --- a/Jusin154_Team3D/Engine/Public/DirectXTK/GeometricPrimitive.h +++ b/Jusin154_Team3D/Engine/Public/DirectXTK/GeometricPrimitive.h @@ -1,4 +1,4 @@ -//-------------------------------------------------------------------------------------- +//-------------------------------------------------------------------------------------- // File: GeometricPrimitive.h // // Copyright (c) Microsoft Corporation. diff --git a/Jusin154_Team3D/Engine/Public/Engine_Struct.h b/Jusin154_Team3D/Engine/Public/Engine_Struct.h index 3d16816a9..aa8a0f72a 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Struct.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Struct.h @@ -46,6 +46,8 @@ typedef struct tagLightDesc const XMFLOAT4* pDirection = nullptr; const XMFLOAT4* pPosition = nullptr; + _float4 vPosOffset = {}; + _float fRange = {}; _float2 vSpotAngles = {}; diff --git a/Jusin154_Team3D/Engine/Public/FX11/d3dx11effect.h b/Jusin154_Team3D/Engine/Public/FX11/d3dx11effect.h index 76f3d2ba0..8926284aa 100644 --- a/Jusin154_Team3D/Engine/Public/FX11/d3dx11effect.h +++ b/Jusin154_Team3D/Engine/Public/FX11/d3dx11effect.h @@ -1,4 +1,4 @@ -//-------------------------------------------------------------------------------------- +//-------------------------------------------------------------------------------------- // File: D3DX11Effect.h // // Direct3D 11 Effect Types & APIs Header diff --git a/Jusin154_Team3D/Engine/Public/FX11/d3dxGlobal.h b/Jusin154_Team3D/Engine/Public/FX11/d3dxGlobal.h index ee23c9fa9..1a29c398e 100644 --- a/Jusin154_Team3D/Engine/Public/FX11/d3dxGlobal.h +++ b/Jusin154_Team3D/Engine/Public/FX11/d3dxGlobal.h @@ -1,4 +1,4 @@ -//-------------------------------------------------------------------------------------- +//-------------------------------------------------------------------------------------- // File: D3DXGlobal.h // // Direct3D 11 Effects helper defines and data structures diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h index 15df38cc3..44e3b722b 100644 --- a/Jusin154_Team3D/Engine/Public/GameInstance.h +++ b/Jusin154_Team3D/Engine/Public/GameInstance.h @@ -66,7 +66,7 @@ class ENGINE_DLL CGameInstance final : public CBase } template - void Asset_Description(_uint iLevel, const _char* pComponentName, Engine::CComponent** ppOut, void* pDesc, class CGameObject* pOwner = nullptr, _wstring wstrGroupName = L"") + _string Asset_Description(_uint iLevel, const _char* pComponentName, Engine::CComponent** ppOut, void* pDesc, class CGameObject* pOwner = nullptr, _wstring wstrGroupName = L"") { return m_pPrototype_Manager->CPrototype_Manager::Asset_Description(iLevel, pComponentName, ppOut, pDesc, pOwner, wstrGroupName); } diff --git a/Jusin154_Team3D/Engine/Public/GameObject.h b/Jusin154_Team3D/Engine/Public/GameObject.h index d4d1daa8c..4d068bad7 100644 --- a/Jusin154_Team3D/Engine/Public/GameObject.h +++ b/Jusin154_Team3D/Engine/Public/GameObject.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Transform.h" #include "GameInstance.h" @@ -22,12 +22,12 @@ class ENGINE_DLL CGameObject abstract virtual HRESULT Render_Shadow() { return S_OK; } virtual HRESULT Render_Blur() { return S_OK; } - virtual _float Get_Depth(); // z ¼ÒÆÃ ÇÒ ¶§ ¾²½Ã¸é µÊ + virtual _float Get_Depth(); // z 소팅 í•  때 쓰시면 ë�¨ - // ³»°¡ ¸ÂÀ½ ( Collider_Manager°¡ ºÎ¸§ ) + // ë‚´ê°€ ë§žì�Œ ( Collider_Managerê°€ 부름 ) virtual void OnCollision(CGameObject* pOther = nullptr); - // ³»°¡ ¶§¸² ( È÷Æ®¹Ú½º°¡ ºÎ¸§ ) + // ë‚´ê°€ 때림 ( 히트박스가 부름 ) virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr); virtual _vector Get_WorldPostion(); diff --git a/Jusin154_Team3D/Engine/Public/Graphic_Device.h b/Jusin154_Team3D/Engine/Public/Graphic_Device.h index c3910cba8..bcc42305a 100644 --- a/Jusin154_Team3D/Engine/Public/Graphic_Device.h +++ b/Jusin154_Team3D/Engine/Public/Graphic_Device.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" diff --git a/Jusin154_Team3D/Engine/Public/IMGUI/imconfig.h b/Jusin154_Team3D/Engine/Public/IMGUI/imconfig.h index 4dab1b604..8bd07e2a1 100644 --- a/Jusin154_Team3D/Engine/Public/IMGUI/imconfig.h +++ b/Jusin154_Team3D/Engine/Public/IMGUI/imconfig.h @@ -1,4 +1,4 @@ -//----------------------------------------------------------------------------- +//----------------------------------------------------------------------------- // DEAR IMGUI COMPILE-TIME OPTIONS // Runtime options (clipboard callbacks, enabling various features, etc.) can generally be set via the ImGuiIO structure. // You can use ImGui::SetAllocatorFunctions() before calling ImGui::CreateContext() to rewire memory allocation functions. diff --git a/Jusin154_Team3D/Engine/Public/IMGUI/imgui_internal.h b/Jusin154_Team3D/Engine/Public/IMGUI/imgui_internal.h index e92ab7b5c..bbb68a086 100644 --- a/Jusin154_Team3D/Engine/Public/IMGUI/imgui_internal.h +++ b/Jusin154_Team3D/Engine/Public/IMGUI/imgui_internal.h @@ -1,4 +1,4 @@ -// dear imgui, v1.92.2 WIP +// dear imgui, v1.92.2 WIP // (internal structures/api) // You may use this file to debug, understand or extend Dear ImGui features but we don't provide any guarantee of forward compatibility. diff --git a/Jusin154_Team3D/Engine/Public/IMGUI/imstb_rectpack.h b/Jusin154_Team3D/Engine/Public/IMGUI/imstb_rectpack.h index f6917e7a6..df7f81888 100644 --- a/Jusin154_Team3D/Engine/Public/IMGUI/imstb_rectpack.h +++ b/Jusin154_Team3D/Engine/Public/IMGUI/imstb_rectpack.h @@ -1,4 +1,4 @@ -// [DEAR IMGUI] +// [DEAR IMGUI] // This is a slightly modified version of stb_rect_pack.h 1.01. // Grep for [DEAR IMGUI] to find the changes. // diff --git a/Jusin154_Team3D/Engine/Public/IMGUI/imstb_textedit.h b/Jusin154_Team3D/Engine/Public/IMGUI/imstb_textedit.h index 33eef7095..ec2659452 100644 --- a/Jusin154_Team3D/Engine/Public/IMGUI/imstb_textedit.h +++ b/Jusin154_Team3D/Engine/Public/IMGUI/imstb_textedit.h @@ -1,4 +1,4 @@ -// [DEAR IMGUI] +// [DEAR IMGUI] // This is a slightly modified version of stb_textedit.h 1.14. // Those changes would need to be pushed into nothings/stb: // - Fix in stb_textedit_discard_redo (see https://github.com/nothings/stb/issues/321) diff --git a/Jusin154_Team3D/Engine/Public/Instance_Model.h b/Jusin154_Team3D/Engine/Public/Instance_Model.h index 58dea1a6d..763cfe150 100644 --- a/Jusin154_Team3D/Engine/Public/Instance_Model.h +++ b/Jusin154_Team3D/Engine/Public/Instance_Model.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Component.h" #include "Assimp/scene.h" @@ -10,19 +10,19 @@ class ENGINE_DLL CInstance_Model final : public CComponent public: typedef struct tagInstanceDesc { - _int iNumInstance = { 1 }; // ÀνºÅϽº °³¼ö + _int iNumInstance = { 1 }; // ì�¸ìŠ¤í„´ìŠ¤ 개수 _bool isLoop = { true }; _bool isBillboard = { false }; - _float2 vLifeTime = { 1.f , 1.f }; // ¶óÀÌÇÁ ŸÀÓ min , max - _float3 vSizeMin = { 1.f, 1.f ,1.f }; // »çÀÌÁî min xyz - _float3 vSizeMax = { 1.f ,1.f ,1.f }; // »çÀÌÁî max xyz - _float3 vRotationAngleMin = {}; // ·ÎÅ×ÀÌ¼Ç min x y z for angle - _float3 vRotationAngleMax = {};// ·ÎÅ×ÀÌ¼Ç max x y z for angle - _float2 vRotationSpeed = {}; // ·ÎÅ×ÀÌ¼Ç ½ºÇǵå min , max - _float2 vSpeed = {}; // ½ºÇǵå min , max - _float3 vCenter = {}; // ¼¾ÅÍ À§Ä¡ - _float3 vRange = {}; // À§Ä¡ ¹üÀ§ + _float2 vLifeTime = { 1.f , 1.f }; // ë�¼ì�´í”„ 타임 min , max + _float3 vSizeMin = { 1.f, 1.f ,1.f }; // 사ì�´ì¦ˆ min xyz + _float3 vSizeMax = { 1.f ,1.f ,1.f }; // 사ì�´ì¦ˆ max xyz + _float3 vRotationAngleMin = {}; // 로테ì�´ì…˜ min x y z for angle + _float3 vRotationAngleMax = {};// 로테ì�´ì…˜ max x y z for angle + _float2 vRotationSpeed = {}; // 로테ì�´ì…˜ 스피드 min , max + _float2 vSpeed = {}; // 스피드 min , max + _float3 vCenter = {}; // 센터 위치 + _float3 vRange = {}; // 위치 범위 _float2 vMaskingUVMoveTime = { 1.f, 1.f }; _float2 vDiffuseUVMoveTime = { 1.f, 1.f }; @@ -75,25 +75,29 @@ class ENGINE_DLL CInstance_Model final : public CComponent public: #ifdef EDITOR_PROJECT virtual HRESULT Initialize_Prototype(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex); - + HRESULT Save_InstanceModel(HANDLE hFile); #endif virtual HRESULT Initialize(void* pArg) override; void Drop(_float fTimeDelta); public: - HRESULT Render(_uint iMeshIndx); + HRESULT Render(_uint iMeshIndx); void Instane_Buffer_ReStruct(); _uint Get_NumMeshes() const { return m_iNumMeshes; } - HRESULT Bind_CS_Output(_uint Index, _uint iBufferIndex); + HRESULT Bind_CS_Output(_uint Index, _uint iBufferIndex); INSTANCE_DESC Get_EffectValue() { return m_InstanceDesc; } + HRESULT Load_InstanceModel(HANDLE hFile); private: #ifdef EDITOR_PROJECT HRESULT Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex); HRESULT Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& PreTransformMatrix); + #endif + HRESULT Change_NumInstance(); - HRESULT Create_Instance_Buffer(const INSTANCE_DESC* pDesc); + HRESULT Create_Instance_Buffer(); HRESULT Create_SubResource_Buffer(); + HRESULT Create_CS(); private: ID3D11Buffer* m_pVBInstance = { nullptr }; @@ -111,12 +115,12 @@ class ENGINE_DLL CInstance_Model final : public CComponent _float4x4 m_PreTransformMatrix = {}; vector m_Meshes = {}; - vector m_Bones = {}; // ³ªÁß¿¡ Ȥ½Ã ¾Ö´Ô¸Þ½¬¸¦ ÀνºÅÏ½Ì ÇÒ ÀÏÀÌ ÀÖÀ»Áöµµ ¸ð¸£´Ï ³²°Ü³õÀ½ + vector m_Bones = {}; // 나중ì—� 혹시 애님메쉬를 ì�¸ìŠ¤í„´ì‹± í•  ì�¼ì�´ 있ì�„ì§€ë�„ 모르니 남겨놓ì�Œ private: class CComputeShader* m_pComputeShader = {}; - ID3D11Buffer* m_pConstantBuffer = { nullptr }; // ÄÄǻƮ ½¦À̵å Àü¿ë »ó¼ö¹öÆÛ - ID3D11Buffer* m_pParticleValueBuffer = { nullptr }; // ÄÄǻƮ ½¦ÀÌµå µÎ¹øÂ° ¹öÆÛ (½ºÇǵå, ·ÎÅ×À̼Ç) + ID3D11Buffer* m_pConstantBuffer = { nullptr }; // 컴퓨트 ì‰�ì�´ë“œ ì „ìš© ìƒ�수버í�¼ + ID3D11Buffer* m_pParticleValueBuffer = { nullptr }; // 컴퓨트 ì‰�ì�´ë“œ ë‘�번째 버í�¼ (스피드, 로테ì�´ì…˜) public: #ifdef EDITOR_PROJECT @@ -127,4 +131,4 @@ class ENGINE_DLL CInstance_Model final : public CComponent void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/Light.h b/Jusin154_Team3D/Engine/Public/Light.h index 932de65cd..ea5877295 100644 --- a/Jusin154_Team3D/Engine/Public/Light.h +++ b/Jusin154_Team3D/Engine/Public/Light.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Component.h" NS_BEGIN(Engine) @@ -21,7 +21,7 @@ class ENGINE_DLL CLight final : public CComponent public: const LIGHT_DESC* Get_LightDesc() { return &m_LightDesc; } public: - HRESULT Render(class CShader* pShader, class CVIBuffer* pVIBuffer) const; + HRESULT Render(class CShader* pShader, class CVIBuffer* pVIBuffer) const; private: LIGHT_DESC m_LightDesc = {}; @@ -33,4 +33,4 @@ class ENGINE_DLL CLight final : public CComponent }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h index 65e05b28f..e495f8907 100644 --- a/Jusin154_Team3D/Engine/Public/Model.h +++ b/Jusin154_Team3D/Engine/Public/Model.h @@ -20,19 +20,20 @@ class ENGINE_DLL CModel final : public CComponent virtual HRESULT Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIndexLocation, _uint BaseVertexLocation); #pragma endregion #pragma region Animation - void Change_AnimationIndex(_int iAnimationIndex, _bool bIsLoop, _float fLerpDuration, _bool bIgnoreCurrentIndex = false); // ¾Ö´Ï¸ÞÀ̼ÇÀ» ´Ù¸¥ À妽º·Î º¯°æÇÔ - _bool Play_Animation(_float fTimeDelta); // ¾Ö´Ï¸ÞÀ̼ǿ¡ µ¨Å¸Å¸ÀÓÀ» ³Ö¾îÁÜ - void RefreshAnim(); // ¾Ö´ÔÀ» ÇöÀç ¾Ö´ÔÀÇ Ãʱâ»óÅ·ΠµÇµ¹¸² + void Change_AnimationIndex(_int iAnimationIndex, _bool bIsLoop, _float fLerpDuration, _bool bIgnoreCurrentIndex = false); // 애니메ì�´ì…˜ì�„ 다른 ì�¸ë�±ìŠ¤ë¡œ 변경함 + _bool Play_Animation(_float fTimeDelta, class CTransform* pTransform); // 애니메ì�´ì…˜ì—� ë�¸íƒ€íƒ€ìž„ì�„ 넣어줌 + void RefreshAnim(); // 애님ì�„ 현재 애님ì�˜ 초기ìƒ�태로 ë�˜ë�Œë¦¼ void Set_AnimationIndex(_uint iIndex, _bool isLoop = true); - void Stop_Animation(); // ¾Ö´Ï¸ÞÀ̼ÇÀ» Á¤Áö (Ãʱâ»óÅ·Î) + void Stop_Animation(); // 애니메ì�´ì…˜ì�„ ì •ì§€ (초기ìƒ�태로) + void Set_Anim(CModel* Source); _bool IsFinishedAnim() const { return m_bIsFinishedAnim; } _bool IsFinishedLerp() const { return m_bIsFinishedLerp; } _float Get_AnimProgressRatio(); _int Get_AnimProgressPostion(const _char* pAnimChannelName); _float Get_AnimEstimatedDuration(); void Set_AnimProgressPostion(const _char* pChannelName, _uint iPosition); - void Set_AnimPauseState(_bool bValue);// ¾Ö´ÔÀ» ÇöÀç»óÅ·ΠÁ¤Áö - void ReallocateResources(class CTransform* pTransform = nullptr); // ¾Ö´Ô À̵¿ÀÇ ´ë»ó Æ®·£½ºÆû(À̵¿½ÃÄѾßÇÒ Æ®·£½ºÆû)À» ÀçÁöÁ¤ÇÔ + void Set_AnimPauseState(_bool bValue);// 애님ì�„ 현재ìƒ�태로 ì •ì§€ + void ReallocateResources(class CTransform* pTransform = nullptr); // 애님 ì�´ë�™ì�˜ 대ìƒ� 트랜스í�¼(ì�´ë�™ì‹œì¼œì•¼í•  트랜스í�¼)ì�„ 재지정함 void Set_CurrentTrackPosition(_float TrackPosition); const _char* Get_AnimList(_uint iIndex); size_t Get_AnimSize() { return m_Animations.size(); } @@ -54,7 +55,7 @@ class ENGINE_DLL CModel final : public CComponent const _float4x4* Get_BoneMatrixPtr(const _char* pBoneName) const; _int Get_RootBoneIndex() const { return m_iRootBoneIndex; } void Set_RootBoneIndex(_int iIndex) { m_iRootBoneIndex = iIndex; } -static _int Get_BoneIndex(const _char* pBoneName, vector Bones); // º»ÀÇ º¤ÅÍ¿Í À̸§À» ³Ñ°ÜÁÖ¸é À妽º¸¦ ³Ñ°ÜÁÜ ( n ¼øÈ¸ ) +static _int Get_BoneIndex(const _char* pBoneName, vector Bones); // 본ì�˜ 벡터와 ì�´ë¦„ì�„ 넘겨주면 ì�¸ë�±ìŠ¤ë¥¼ 넘겨줌 ( n 순회 ) _int Get_BoneIndex(const _char* pBoneName) const; _matrix Get_BoneMatrix(_uint iBoneIndex); #pragma endregion @@ -74,7 +75,7 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); / HRESULT Ready_Materials_FromFile(const aiScene* pAIScene, const _char* pModelFilePath); HRESULT Ready_Animations(const aiScene* pAIScene); HRESULT Ready_Bones(const aiNode* pAINode, _int iParentIndex); - // ¹ÙÀ̳ʸ® + // ë°”ì�´ë„ˆë¦¬ _bool SaveAssimpModel(const _char* filename); _int SaveNodeRecursive(const aiNode* pAINode, std::vector& outNodes, _int parentIndex); // @@ -88,49 +89,49 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); / #endif private: - MODEL m_eType = {}; // ¸ðµ¨ÀÇ Å¸ÀÔ - _float4x4 m_PreTransformMatrix = {}; // »çÀü¿¡ ·çÆ®º»¿¡ °öÇØÁÙ ¸ÅÆ®¸¯½º + MODEL m_eType = {}; // 모ë�¸ì�˜ 타입 + _float4x4 m_PreTransformMatrix = {}; // 사전ì—� 루트본ì—� 곱해줄 매트릭스 - _uint m_iNumMeshes = {}; // ¸Þ½¬ÀÇ °¹¼ö - vector m_Meshes; // ¸Þ½¬ÀÇ º¤ÅÍ - _uint m_iNumPhysXMeshes = {}; // ÇÇÁ÷½º ¸Þ½¬ÀÇ °¹¼ö - vector m_TriMeshes = {}; // ÇÇÁ÷½º ¸Þ½¬ÀÇ °¹¼ö + _uint m_iNumMeshes = {}; // 메쉬ì�˜ 갯수 + vector m_Meshes; // 메쉬ì�˜ 벡터 + _uint m_iNumPhysXMeshes = {}; // 피ì§�스 메쉬ì�˜ 갯수 + vector m_TriMeshes = {}; // 피ì§�스 메쉬ì�˜ 갯수 - _uint m_iNumMaterials = {}; // ¸ÓÅ׸®¾óÀÇ °¹¼ö - vector m_Materials; // ¸ÓÅ׸®¾óÀÇ º¤ÅÍ + _uint m_iNumMaterials = {}; // 머테리얼ì�˜ 갯수 + vector m_Materials; // 머테리얼ì�˜ 벡터 - vector m_Bones; // º»ÀÇ º¤ÅÍ, Á¤·Ä¼ø¼­´Â ·çÆ®º»ºÎÅÍ Æ®¸®ÀÇ ¸¶Áö¸· ³ëµå±îÁö + vector m_Bones; // 본ì�˜ 벡터, 정렬순서는 루트본부터 트리ì�˜ 마지막 노드까지 - _int m_iCurrentAnimIndex = { -1 }; // ÇöÀç ¼±ÅÃµÈ ¾Ö´Ï¸ÞÀÌ¼Ç ( m_AnimationsÀÇ À妽º ) - _uint m_iNumAnimations = {}; // ¾Ö´Ï¸ÞÀ̼ÇÀÇ Á¾·ù - _bool m_bIsLoop = { false }; // ·çÇÁ¾Ö´Ï¸ÞÀ̼ÇÀÎÁö - _bool m_bIsFinishedAnim = { false }; // ´ë»ó ¾Ö´Ï¸ÞÀ̼ÇÀÌ ³¡³µ´ÂÁö - _bool m_bIsFinishedLerp = { false }; // ·²ÇÁ ¾Ö´Ï¸ÞÀ̼ÇÀÌ ³¡³µ´ÂÁö + _int m_iCurrentAnimIndex = { -1 }; // 현재 ì„ íƒ�ë�œ 애니메ì�´ì…˜ ( m_Animationsì�˜ ì�¸ë�±ìФ ) + _uint m_iNumAnimations = {}; // 애니메ì�´ì…˜ì�˜ 종류 + _bool m_bIsLoop = { false }; // 루프애니메ì�´ì…˜ì�¸ì§€ + _bool m_bIsFinishedAnim = { false }; // 대ìƒ� 애니메ì�´ì…˜ì�´ ë��났는지 + _bool m_bIsFinishedLerp = { false }; // 럴프 애니메ì�´ì…˜ì�´ ë��났는지 _bool m_bPlayAnim = { true }; - vector m_Animations; // ¾Ö´Ï¸ÞÀ̼ÇÀÇ º¤ÅÍ, + vector m_Animations; // 애니메ì�´ì…˜ì�˜ 벡터, - class CLerpAnim* m_pLerpAnim = { nullptr }; // ·²ÇÁÀü¿ë ¾Ö´Ï¸ÞÀÌ¼Ç + class CLerpAnim* m_pLerpAnim = { nullptr }; // 럴프전용 애니메ì�´ì…˜ - _int m_iRootBoneIndex = { -1 }; // ·çÆ®º»ÀÇ À妽º - _matrix m_PrevAnimationMatrix = XMMatrixIdentity(); // ·çÆ®º»ÀÇ ÀÌÀü À§Ä¡ - _matrix m_DeltaAnimationMatrix = {}; // ·çÆ®º»ÀÇ µ¨Å¸¾Ö´Ï¸ÞÀÌ¼Ç - class CTransform* m_pTransform = { nullptr }; // ¸ðµ¨ ´ë»óÀÇ Æ®·£½ºÆû + _int m_iRootBoneIndex = { -1 }; // 루트본ì�˜ ì�¸ë�±ìФ + _matrix m_PrevAnimationMatrix = XMMatrixIdentity(); // 루트본ì�˜ ì�´ì „ 위치 + _matrix m_DeltaAnimationMatrix = {}; // 루트본ì�˜ ë�¸íƒ€ì• ë‹ˆë©”ì�´ì…˜ + class CTransform* m_pTransform = { nullptr }; // 모ë�¸ 대ìƒ�ì�˜ 트랜스í�¼ - // ¹ÙÀ̳ʸ® + // ë°”ì�´ë„ˆë¦¬ SaveModel* m_pSaveModel = { nullptr }; list m_SaveModel; // private: - // ¹ÙÀ̳ʸ® + // ë°”ì�´ë„ˆë¦¬ virtual HRESULT Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix); bool LoadData(const _char* filename); // virtual HRESULT Initialize(void* pArg) override; private: - // ¹ÙÀ̳ʸ® + // ë°”ì�´ë„ˆë¦¬ HRESULT Ready_Meshes(); HRESULT Ready_Materials(const _char* pModelFilePath); HRESULT Ready_Bones(const std::vector& allNodes, _int currentIndex, _int parentIndex); @@ -138,7 +139,7 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); / // public: - // ¹ÙÀ̳ʸ® + // ë°”ì�´ë„ˆë¦¬ static CModel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix = XMMatrixIdentity()); // virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr); @@ -147,4 +148,4 @@ virtual void Free(); public: void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/Prototype_Manager.h b/Jusin154_Team3D/Engine/Public/Prototype_Manager.h index 9c564ad70..aad27801c 100644 --- a/Jusin154_Team3D/Engine/Public/Prototype_Manager.h +++ b/Jusin154_Team3D/Engine/Public/Prototype_Manager.h @@ -73,7 +73,7 @@ class CPrototype_Manager final : public CBase //만들고 ì„ íƒ�í•  시ì—� ë‚´ ppOutì—� í�´ë¡ í•˜ëŠ” 기능ì�„ 담당 template - void Asset_Description(_uint iLevel, const _char* pComponentName, Engine::CComponent** ppOut, void* pDesc, class CGameObject* pOwner = nullptr, _wstring wstrGroupName = L"") + _string Asset_Description(_uint iLevel, const _char* pComponentName, Engine::CComponent** ppOut, void* pDesc, class CGameObject* pOwner = nullptr, _wstring wstrGroupName = L"") { vector pComponentNames = {}; vector<_string> strNames = {}; @@ -120,7 +120,7 @@ class CPrototype_Manager final : public CBase *ppOut = iter->second->Clone(pDesc, pOwner); - return; + return strName; } pTexture->HoverName(); @@ -130,7 +130,7 @@ class CPrototype_Manager final : public CBase } - return; + return ""; } static _int s_iCurrentItem = 0; @@ -185,15 +185,18 @@ class CPrototype_Manager final : public CBase GUI::EndCombo(); - return; + return ""; } if (*ppOut != nullptr) SAFE_RELEASE(*ppOut); *ppOut = iter->second->Clone(pDesc, pOwner); + + return pComponentNames[s_iCurrentItem]; } + return ""; } #endif diff --git a/Jusin154_Team3D/Engine/Public/fMod/fmod.h b/Jusin154_Team3D/Engine/Public/fMod/fmod.h index a72e0b505..92e4bb4c2 100644 --- a/Jusin154_Team3D/Engine/Public/fMod/fmod.h +++ b/Jusin154_Team3D/Engine/Public/fMod/fmod.h @@ -1,4 +1,4 @@ -/* ======================================================================================== */ +/* ======================================================================================== */ /* FMOD Core API - C header file. */ /* Copyright (c), Firelight Technologies Pty, Ltd. 2004-2025. */ /* */ diff --git a/Jusin154_Team3D/Engine/Public/fMod/fmod_common.h b/Jusin154_Team3D/Engine/Public/fMod/fmod_common.h index d289558c0..9ddfd4a44 100644 --- a/Jusin154_Team3D/Engine/Public/fMod/fmod_common.h +++ b/Jusin154_Team3D/Engine/Public/fMod/fmod_common.h @@ -1,4 +1,4 @@ -/* ======================================================================================== */ +/* ======================================================================================== */ /* FMOD Core API - Common C/C++ header file. */ /* Copyright (c), Firelight Technologies Pty, Ltd. 2004-2025. */ /* */ diff --git a/Jusin154_Team3D/Engine/Public/fMod/fmod_dsp.h b/Jusin154_Team3D/Engine/Public/fMod/fmod_dsp.h index b20dda259..19d7dad31 100644 --- a/Jusin154_Team3D/Engine/Public/fMod/fmod_dsp.h +++ b/Jusin154_Team3D/Engine/Public/fMod/fmod_dsp.h @@ -1,4 +1,4 @@ -/* ======================================================================================== */ +/* ======================================================================================== */ /* FMOD Core API - DSP header file. */ /* Copyright (c), Firelight Technologies Pty, Ltd. 2004-2025. */ /* */ diff --git a/Jusin154_Team3D/Engine/Public/fMod/fmod_dsp_effects.h b/Jusin154_Team3D/Engine/Public/fMod/fmod_dsp_effects.h index e7408a9bf..03566683e 100644 --- a/Jusin154_Team3D/Engine/Public/fMod/fmod_dsp_effects.h +++ b/Jusin154_Team3D/Engine/Public/fMod/fmod_dsp_effects.h @@ -1,4 +1,4 @@ -/* ============================================================================================================= */ +/* ============================================================================================================= */ /* FMOD Core API - Built-in effects header file. */ /* Copyright (c), Firelight Technologies Pty, Ltd. 2004-2025. */ /* */